0

How do I make a button with python?

19th Nov 2022, 3:37 AM
C Johnson
C Johnson - avatar
3 odpowiedzi
+ 3
#Tkinter Button. from tkinter import * # create a tkinter window root = Tk() # Open window having dimension 100x100 root.geometry('100x100') # Create a Button btn = Button(root, text = 'Click me !', bd = '5', command = root.destroy) # Set the position of button on the top of window. btn.pack(side = 'top') root.mainloop()
19th Nov 2022, 6:43 AM
JaScript
JaScript - avatar
+ 3
In pyscript
19th Nov 2022, 8:16 AM
Oma Falk
Oma Falk - avatar
0
How do I use Tkinter?
19th Nov 2022, 6:45 AM
C Johnson
C Johnson - avatar