Answers for "tkinter for windows"

10

install tkinter

pip3 install tk
Posted by: Guest on August-25-2020
1

tkinter window

from tkinter import *

root = Tk()
root.geometry("500x500")
root.title("My App")
root.config(bg="#ff0000")

def printhi(*args):
	print("Hi!")
    
btn = Button(root, text="Click to print hi", command=printhi)
btn.place(x=200, y=200)

root.mainloop()
Posted by: Guest on August-05-2021
0

setup python in windows tikinter

Installing Tkinter in Windows
Tkinter comes with the Python installer. We just need to install Python from www.python.org, and it comes along with the Python. We don't need to install it separately. Click on the checkbox of tcl/tk and IDE.
Posted by: Guest on December-02-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language