2 odpowiedzi
+ 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.
+ 2
It is possible, using the ttk.Button constructor .
U can find more informations on this site https://www.pythontutorial.net/tkinter/tkinter-button/