spin control not getting value

Hi Jeff,

I changed the demo to set a string value, but I get an error.

Looking at the doc I would think that wxPython only implements the int version.

wxSpinCtrl::SetValue
void SetValue(const wxString& text)
void SetValue(int value)
Sets the value of the spin control.

Just checked the new API doc, in it there is a SetValueString

SetValue(self, value)

SetValueString(self, text)

See you
Werner

Jeff Peery wrote:

···

Hello, I'm using a spin control and it doesn't seem to be getting the correct strings.
I'm doing the following:
spinctrl.SetValueString('123abc')
myValue = spinctrl.GetValue()
MyValue is '123' not '123abc'. it doesn't seem get anything but numerical values. Is this correct behavior?
Jeff