Q:

pip install tkinter

pip install tkinter
1
sudo apt-get install python3-tk 
7
# for pip and windows, in cmd, write:
pip install tk
3
import tkinter as tk

obj = tk.Tk() # Creates a tkinter object
label = tk.Label(obj, text="This is a text button")
4

New to Communities?

Join the community