Answers for "make a label using tkinter in python"

2

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()
Posted by: Guest on April-19-2022

Python Answers by Framework

Browse Popular Code Answers by Language