Lesson #3
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from tkinter import *
|
||||
|
||||
root = Tk()
|
||||
|
||||
|
||||
def myClick():
|
||||
myLabel = Label(root, text="Look! I clicked a Button!")
|
||||
myLabel.pack()
|
||||
|
||||
|
||||
myButton = Button(root, text="Click Me!", command=myClick, fg="blue", bg="#000000")
|
||||
myButton.pack()
|
||||
|
||||
root.mainloop()
|
||||
Reference in New Issue
Block a user