From df8682fd87bb04bbf6c5a1cbd85a4dbd61205c2d Mon Sep 17 00:00:00 2001 From: Michel Bats Date: Sun, 10 Dec 2023 13:03:19 +0100 Subject: [PATCH] Lesson #2 --- .../grid.py | 14 ++++++++++++++ readme.md | 1 + 2 files changed, 15 insertions(+) create mode 100644 002. Positioning With Tkinter's Grid System - Python Tkinter GUI Tutorial #2/grid.py diff --git a/002. Positioning With Tkinter's Grid System - Python Tkinter GUI Tutorial #2/grid.py b/002. Positioning With Tkinter's Grid System - Python Tkinter GUI Tutorial #2/grid.py new file mode 100644 index 0000000..bfe5a35 --- /dev/null +++ b/002. Positioning With Tkinter's Grid System - Python Tkinter GUI Tutorial #2/grid.py @@ -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() diff --git a/readme.md b/readme.md index fe01bc4..f4fba09 100644 --- a/readme.md +++ b/readme.md @@ -5,3 +5,4 @@ ## Lessons * [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)