[wxPython-users] Read Only wx.CheckBox

Mark Erbaugh mark at microenh.com
Sun Nov 4 17:48:54 PST 2007


On Sun, 2007-11-04 at 16:03 -0600, Cody Precord wrote:
> You need to do more than just trap the event, you need to reset the  
> value in the handler as well.
> 
> def OnCheck(self, evt):
>         e_obj = evt.GetEventObject()
>         e_obj.SetValue(not e_obj.GetValue())
> 


Thanks. That did the trick.





More information about the wxpython-users mailing list