Lesson #2
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from tkinter import *
|
||||
|
||||
root = Tk()
|
||||
|
||||
# Creating a Label Widget
|
||||
myLabel1 = Label(root, text="Hello World!")
|
||||
myLabel2 = Label(root, text="My Name is John Elder")
|
||||
# Shoving it onto the screen
|
||||
|
||||
myLabel1.grid(row=0, column=0)
|
||||
myLabel2.grid(row=1, column=5)
|
||||
|
||||
|
||||
root.mainloop()
|
||||
Reference in New Issue
Block a user