PygButton - 1
PygButton is a button UI module for Pygame that implements a clickable button for your apps. It is designed to be simple and easy to use. The module is described here: http://inventwithpython.com/blog/2012/10/30/creating-a-button-ui-module-for-pygame/
- Home Page
- PygButton is a button UI module for Pygame that implements a clickable button for your apps. It is designed to be simple and easy to use. The module is described here: http://inventwithpython.com/blog/2012/10/30/creating-a-button-ui-module-for-pygame/
Pygame.org account Comments
josmiley 2012-10-31 21:32:53
this is interesting, I expect to see improvements
Al Sweigart 2012-11-15 02:23:26
I'm not really planning on making any improvements to the code, unless there are bug fixes that need to be made. I just wanted to keep it as a simple Button class.
Ruth 2013-07-28 16:15:12
Really useful, nicely commented. Thanks very much.
Hougan 2013-09-08 10:00:35
pygbutton is great!
Is there any way to make a caption with multiple lines?
pink 2014-06-12 17:02:02
Is it possible to disable buttons in pygbuttons?
I am making asimple app in which when next button is pressed new buttons appear onn screen and former become deactivated and invisible. I could make them invisible but when ever I am clicking on new buttons they are playing sound of previous buttons, It means previous buttons are invisible but not deactivated.
Plz help if someone know how to solve this...
pink 2014-06-17 14:19:23
Is it possible to change color and play sound of pygbuttons simultaneously.........
In my app, color is changing in the end when all sounds are played...I want one sound one button then other sound other button.......
problem is color of the buttons are changing in the end and sounds are played before....
Plz help ...if someone knows about it..