I am trying to set a wxSpinCtrl to blank (no text, no number). It defaults to this, and I can type in anything I want, including text. However, when I try wxSpinCtrl.SetValue(''), I get an error saying that the parameter has to be an integer. There are two different methods called SetValue that take either an integer or a string; I'm assuming this is an overloaded C++ function, so perhaps there is something special one has to do in Python (which doesn't have overloaded functions, right?). I've also tried SetValue(None), with no better results.
I am trying to set a wxSpinCtrl to blank (no text, no number). It defaults to this, and I can type in anything I want, including text. However, when I try wxSpinCtrl.SetValue(''), I get an error saying that the parameter has to be an integer. There are two different methods called SetValue that take either an integer or a string; I'm assuming this is an overloaded C++ function, so perhaps there is something special one has to do in Python (which doesn't have overloaded functions, right?).
Sorry, for some reason I didn't add a renamed method for that. (But I did for 2.5, I'll move it over to 2.4 also.)
If you build your own spin ctrl by tying together a wxTextCtrl and a wxSpinButton then you'll be able to do what you need.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!