I am very noob and I need help please.
Here's my code:
from tkinter import *
root = Tk()
root.geometry('500x500')
def callback() :
print ("click!")
b = Button(root, text="OK", command=callback)
b.pack()
mainloop()
I am very noob and I need help please.
Here's my code:
from tkinter import *
root = Tk()
root.geometry('500x500')
def callback() :
print ("click!")
b = Button(root, text="OK", command=callback)
b.pack()
mainloop()
Try This:
from Tkinter import *
import tkMessageBox
root = Tk()
root.geometry('200x60')
root.title('Test Application')
def notify():
tkMessageBox.showwarning('Notification', 'Display is not capable of DPMS!')
b1 = Button(root, text="Run!", command=notify)
b1.pack()
root.mainloop()
Uri, you should probably run it on your computer instead of on the web. If you are using a chromebook go into settings and enable Linux.
——-Windows-——
Windows Install:
——-Mac-——
Mac Install:
——-Linux-——
Linux Problems:
Linux Install: