Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

importing tkinter in python

import tkinter as tk
 
master_window = tk.Tk()
master_window.geometry("150x150")
master_window.title("StringVar Example")
 
string_variable = tk.StringVar(master_window, "Hello Everyone!!")
 
label = tk.Label(master_window, textvariable=string_variable, height=150)
label.pack()
 
master_window.mainloop()
 
PREVIOUS NEXT
Tagged: #importing #tkinter #python
ADD COMMENT
Topic
Name
7+1 =