import tkinter as tk from tkinter import messagebox as mb def answer(): mb.showerror("Answer", "Sorry, no answer available") def operatingsystem(): mb.operatingsystem("operatingsystem","Your operatingsystem is" + platform.system()) if platform.system() == "Windows": print(platform.system() + platform.release(),) elif platform.system() == "Linux": #command = "lsb_release -a" print(platform.linux_distribution()[0] + platform.linux_distribution()[1],) elif platform.system() == "Darwin": print( 'Apple OSX'+ platform.mac_ver()[0]) def callback(): if mb.askyesno('Verify', 'Really quit?'): mb.showwarning('Yes', 'Not yet implemented') else: mb.showinfo('No', 'Quit has been cancelled') tk.Button(text='Quit', command=callback).pack(fill=tk.X) tk.Button(text='Answer', command=answer).pack(fill=tk.X) tk.Button(text='Operatingsystem', command=operatingsystem).pack(fill=tk.X) tk.mainloop()How did i get this to works?
Test GPU app:
Messages In This Thread |
Test GPU app: - by lmh1 - Apr-06-2020, 10:31 AM
RE: Test GPU app: - by lmh1 - Apr-06-2020, 11:42 AM
RE: Test GPU app: - by deanhystad - Apr-06-2020, 03:43 PM
RE: Test GPU app: - by lmh1 - Apr-06-2020, 04:21 PM
RE: Test GPU app: - by lmh1 - Apr-06-2020, 05:22 PM
|
Users browsing this thread: 1 Guest(s)