[wxPython-users] Read Only wx.CheckBox
Rich Shepard
rshepard at appl-ecosys.com
Sun Nov 4 10:04:23 PST 2007
On Sun, 4 Nov 2007, Mark Erbaugh 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.
Mark,
If there's no method bound to the checkbox nothing will be permanently
changed. I don't recall -- without looking it up -- if there's a CB_READONLY
flag; there is for textCtrls: TE_READONLY.
Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the wxpython-users
mailing list