[wxPython-users] Read Only wx.CheckBox
Mark Erbaugh
mark at microenh.com
Sun Nov 4 10:58:27 PST 2007
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.
Mark
On Sun, 2007-11-04 at 00:36 -0400, C M wrote:
> Also, such a use of a checkbox seems to me like it breaks the
> standard
> paradigm (i.e. users see a checkbox, they expect to be able to check
> or uncheck it). There are probably other ways to show the users that
> a state is a certain way (you could have a bitmap symbol of some
> kind,
> etc.), but it's hard to suggest any without knowing your needs.
>
>
> On 11/3/07, Mark Erbaugh <mark at microenh.com> wrote:
> Is there a way to make a wx.CheckBox read-only? I know I can
> use
> Enable(False), but that dims the checkbox. wx.TextCtrl has
> the
> wx.TE_READONLY style flag.
>
> Thanks,
> Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail:
> wxPython-users-help at lists.wxwidgets.org
>
>
More information about the wxpython-users
mailing list