Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

make a label using tkinter in python

import tkinter as tk
window = tk.Tk()

firstLabel=tk.Label(window) #creates label and tells program where to load it
firstLabel.config(text="Label Statement: ") #alter the label to include text

firstLabel.pack() #loads the label to make it visible
window.mainloop()
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #label #tkinter #python
ADD COMMENT
Topic
Name
9+1 =