How to disable a button control in wxPython?

Robert Amesz sheershion at mailexpire.com
Fri Feb 15 20:24:31 EST 2002


eriggs wrote:

> I'm somewhat new to Python, and I'm trying to figure out how to
> disable a button control.

Use use button.Enable(true) instead of button.Enable(), and use 
button.Enable(false) instead of button.Disable(). That should do the 
trick. The documentation seems to be wrong concerning that, at least 
for wxPython.


Robert Amesz



More information about the Python-list mailing list