wx.SpinCtrl is intended to be used only with numbers so it is not too surprising that it must always have something that is a numeric value. If you want different behavior then you can use a wx.TextCtrl and a wx.SpinButton and process the spin button events as needed to update the associated textctrl in whatever way you want.
···
c.buhtz@posteo.jp wrote:
On 2015-04-11 00:45<c.buhtz@posteo.jp> wrote:
Using Phoenix I tried to create a SpinCtrl with its field empty.
I always tried
wx.SpinCtrl(self, value=None)
what gives me this error
overload 1: argument 1 has unexpected type 'NoneType'
The control should act less restrictive. When there is the "definied
nothing" then just display nothing. '0' is not nothing.
Would you accept an issue-ticket about it?
Another point would be that 'value' accept strings (means: don't give
an type exception about it) but doesn't display them in the control.
I think you misread vadz comment in that ticket. I believe he thinks/says that it should always be '0' initialized, unless this is not the default behaviour of native implementations of SpinCtrl.
I understood this very well. But please keep your comments about that
ticket inside the ticket to make it possible for all developers to
participate to the topic.
···
On 2015-04-25 17:36 Werner <wernerfbd@gmx.ch> wrote: