0

How do you insert a button in python

7th Apr 2021, 7:11 PM
Katlego Malefetse
Katlego Malefetse - avatar
3 ответов
+ 2
You need to use gui python library like tkinter, kviy, qython .
7th Apr 2021, 7:14 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 1
from tkinter import * from tkinter import ttk def Click(): pass root = Tk() root.geometry('100x200') root.resizable(True, False) lbl = Label(root, text = "click the button", font = ("center", 12, "bold")) lbl.pack() Click_button = ttk.Button(root, text = "click", command = Click, width = 15) Click_button.pack(pady = 5) root.mainloop()
11th Apr 2021, 2:46 PM
Momah Tidlio
Momah Tidlio - avatar
0
r= Tk( ) l = Label(r) l. grid( ) definitely ( Time) b = Button (r.text = :press me'; b. grid (kotlin) ; r. Mainloop( js) ; This is python tutorial. 🏜
26th Sep 2021, 1:12 PM
Shubham Bhatia
Shubham Bhatia - avatar