Published
- 1 min read
importing tkinter in python
The solution for this is noted below
importing tkinter in python
Solution
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()
Try other methods by searching on the site. That is if this doesn’t work