[wxPython-users] CheckBox - Method to set it read-only ?

ianaré sévi ianare at gmail.com
Wed Apr 11 08:19:55 PDT 2007


You could use Enable(False) and Enable(True), it will gray out the
checkbox so the user can't change it, but you can still modify its
value programmaticaly.

-- 
- ianaré sévi


2007/4/11, DomDom <BestDomDom at neuf.fr>:
>
>
> Hello,
>
> Is there a method to set a checkbox in a read-only state?
> And to unset it. Which ones ? I can't find any.
>
> The purpose is that some checkboxes would not have to be checked by the
> user.
> It is the application that would check them or not depending on
> computations.
>
> If not, what widget would you advise me to use to do the same.
>
> Thanks in advance for your answer(s).
> Dominique


More information about the wxpython-users mailing list