0

Can You Make A Button In Python?

Im Trying To Make A Clicker Game In Python. So Can You Create A Button In Python?

18th Jan 2023, 12:15 PM
CgmaxjakeYT
CgmaxjakeYT - avatar
2 Answers
+ 1
Hey CgmaxjakeYT, there is a library called Tkinter that lets you create Graphical User Interfaces with Buttons and more. I recommend you read the documentation: https://docs.python.org/3/library/tkinter.html There are examples on how to import and use the library in your python project. You can't use it in the sololearn playground, as far as i know.
18th Jan 2023, 12:22 PM
Tim G
Tim G - avatar
+ 2
It is possible, using the ttk.Button constructor . U can find more informations on this site https://www.pythontutorial.net/tkinter/tkinter-button/
18th Jan 2023, 12:22 PM
Abdellah Abnoune
Abdellah Abnoune - avatar