Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create a label in 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 #python
ADD COMMENT
Topic
Name
6+7 =