I'm using wxPython, but I suppose this question isn't really limited to
the Python edition of wxWidgets.
The wxCheckbox class does not have method via which to make a checkbox
read-only. I could disable the checkbox, but that's not really what I
want. I suppose I *could* use the EVT_CHECKBOX event handler to
override the user's attempt to alter the checkbox states manually, but
that's not really the ideal solution. Does anyone know a less awkward
solution? =\
Regards,
Markus
No worries about angry users. ;-) In my program, it is quite clear from
the context that the checkboxes merely display information (the
individual bits of a status word, to be precise) ... no one using the
program would expect to be able to actually check / uncheck the boxes
himself. But the thing about disabling the boxes that bothers me is
that the labels get grayed out and what's more, tool tips don't work
with disabled controls either. =(