Lesson #4
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from tkinter import *
|
||||
|
||||
root = Tk()
|
||||
|
||||
e = Entry(root, width=50)
|
||||
e.pack()
|
||||
e.insert(0, "Enter Your Name: ")
|
||||
|
||||
|
||||
def myClick():
|
||||
hello = "Hello " + e.get()
|
||||
myLabel = Label(root, text=hello)
|
||||
myLabel.pack()
|
||||
|
||||
|
||||
myButton = Button(root, text="Enter Your Stock Quote", command=myClick)
|
||||
myButton.pack()
|
||||
|
||||
|
||||
root.mainloop()
|
||||
Reference in New Issue
Block a user