Answers for "add text to the middle of the window tkinter"

1

add text to the middle of the window tkinter

import tkinter

window = tkinter.Tk()       # creating the window object
window.title('my first GUI program')
window.minsize(width=600, height=500)

# label 
# adding text to the middle of the window
my_label = tkinter.Label(text='I am a Label')
my_label.pack()

window.mainloop()           # keeping the window until we close it
Posted by: Guest on February-01-2021

Code answers related to "add text to the middle of the window tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language