[wxpython-users] spinner on TimeCtrl GTK2

Mark Erbaugh mark at microenh.com
Wed Apr 2 11:52:30 PDT 2008


On Wed, 2008-04-02 at 14:43 -0400, Mark Erbaugh wrote:
> It appears that the spinner on the GTK2 version of wx.TimeCtrl is
> limited to the time initially set in the control.  When the time is at
> that value or if decrementing the cursor field (hours, minutes, etc)
> would result in a time earlier than the time, the decrement spinner
> button is disabled.  The down-arrow key will still decrement the
> time.  
> 
> Under Windows, this doesn't seem to be an issue.
> 
> This behavior can be seen in the wxPython demo.


Found a solution:  You need to set the range of the wx.SpinCtrl to allow
negatives.  I used spin.SetRange(-sys.maxint, sys.maxint)



More information about the wxpython-users mailing list