In Tkinter a button can have the state "NORMAL" or the state "DISABLED".
How can I do this with wxPython?
Egon
In Tkinter a button can have the state "NORMAL" or the state "DISABLED".
How can I do this with wxPython?
Egon
In Tkinter a button can have the state "NORMAL" or the state
"DISABLED".How can I do this with wxPython?
btnWhatever.Enable(False)
David
In Tkinter a button can have the state "NORMAL" or the state "DISABLED".
How can I do this with wxPython?Egon
wxPython does not support disabled buttons. Just kidding! What you want is either:
yourButton.Enable(False)
or
yourButton.Enabled = False
where of course yourButton is a wx.Button. You might want to look at the documentation on the classes which lists all the methods available. FYI, most controls support this method/property.
- Mike
Rooney, Mike (ext. 324) schrieb:
In Tkinter a button can have the state "NORMAL" or the state "DISABLED".
How can I do this with wxPython?Egon
wxPython does not support disabled buttons. Just kidding! What you want is either:yourButton.Enable(False)
or
yourButton.Enabled = False
Thanks to you and to David.
where of course yourButton is a wx.Button. You might want to look at the documentation on the classes which lists all the methods available.
Huh. I looked up the wx2.6-manual but didn't find this function. Now I know it is from wxWindow.
Thanks.
FYI, most controls support this method/property.
- Mike