Disabling widgets

Did you try,

YourWidget.Disable() or YourWidget.Enable(False)

I believe these functions are supported for most if not all controls.

cody

···

On Sep 20, 2007, at 3:10 AM, Craig Douglas wrote:

In the past i've used tkinter which gives an option to disable pretty much any
widget by setting it's state to disabled. I've been looking through
wxPyton/wxWidgets and i'm struggling to find something with the same effect.

I have some buttons, date and time controls and a text control that I wish to
disable when various control buttons/check boxes are pressed. How can I do
this? I'm not asking for all the code, just a nudge in the right direction to
where I should be looking as I can't believe this feature wouldn't be included!

Many thanks
Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org