Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create a label in tkinter python

from tkinter import *  # Importing the tkinter module
root = Tk()  # Creating a window
label = Label(root, text="Your Text")  # Creating a label
label.pack()  # Putting the label on the window
label.mainloop()  # Opening the window
 
PREVIOUS NEXT
Tagged: #create #label #tkinter #python
ADD COMMENT
Topic
Name
8+2 =