check button

It seems that a check button (a button that can be either on or off) does not exist in wxPython. Is it true or am I missing something? (I know that there is a check box)

Marina Gourtovaia
Research Associate
Engineering Design Center
Department of Engineering
University of Cambridge
Cambridge, UK

Tel: +44 (0)1223 766961
Fax: +44 (0)1223 332662

Marina Gourtovaia wrote:

It seems that a check button (a button that can be either on or off) does not exist in wxPython. Is it true or am I missing something? (I know that there is a check box)

I think you can do something like this with wxBitmapButton, or with the generic buttons in wxPython.lib.buttons (see Generic Buttons under More Windows/Controls in the demo).

If you are trying to do something like the Motif equivalent of a checkbox, those tiny squares with shading, I would advise against it. Everyone I've asked agrees that they can't tell which state is on and which is off - checkboxes are much clearer.

David

Marina Gourtovaia wrote:

It seems that a check button (a button that can be either on or off) does not exist in wxPython. Is it true or am I missing something? (I know that there is a check box)

How about wxToggleButton?

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!