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()
|
||||||
@@ -7,3 +7,4 @@
|
|||||||
* [Create Graphical User Interfaces With Python And TKinter](https://www.youtube.com/watch?v=yQSEXcf6s2I&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV)
|
* [Create Graphical User Interfaces With Python And TKinter](https://www.youtube.com/watch?v=yQSEXcf6s2I&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV)
|
||||||
* [Positioning With Tkinter's Grid System - Python Tkinter GUI Tutorial #2](https://www.youtube.com/watch?v=BSfbjrqIw20&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV)
|
* [Positioning With Tkinter's Grid System - Python Tkinter GUI Tutorial #2](https://www.youtube.com/watch?v=BSfbjrqIw20&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV)
|
||||||
* [Creating Buttons With TKinter - Python Tkinter GUI Tutorial #3](https://www.youtube.com/watch?v=yuuDJ3-EdNQ&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV)
|
* [Creating Buttons With TKinter - Python Tkinter GUI Tutorial #3](https://www.youtube.com/watch?v=yuuDJ3-EdNQ&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV)
|
||||||
|
* [Creating Input Fields With TKinter - Python Tkinter GUI Tutorial #4](https://www.youtube.com/watch?v=7A_csP9drJw&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV&index=4&pp=iAQB)
|
||||||
|
|||||||
Reference in New Issue
Block a user