[wxPython-users] Read Only wx.CheckBox

C M cmpython at gmail.com
Sun Nov 4 13:48:23 PST 2007


On 11/4/07, Mark Erbaugh <mark at microenh.com> wrote:
>
> I thought about that.  We usually think of a checkbox as a button and
> buttons can't be made read only, only disabled.  In this case, I am
> using the checkbox to indicate the On/Off setting (True/False) of a
> Boolean field in a database.  When the user is viewing the corresponding
> record (read-only), I make the text fields read-only instead of
> disabling them. The user can select text, but can't change it.  I'm not
> sure of the proper paradigm for a checkbox.  Maybe I shouldn't use it
> here, but a lot of programs do.


It sounds like what you need is more of a flag or a signal than a widget
that one is meant to interact with, like a button or checkbox.  One simple
way might be just a bitmap image (wxstaticBitmap) to indicate status of
On/Off or True/False.  Could be the word itself, or a lightbulb or traffic
sign
or whatever you think would get it across without suggesting to the user
that they could do anything about it.  Greying out the read-only text might
be another way to go.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200711=
04/00bdb472/attachment.htm


More information about the wxpython-users mailing list