I can't reproduce the behavious using FloatSpin from SVN. How many
significant digits are you using in FloatSpin? Could you please make a
small sample app which demonstrates the problem?
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
http://thedoomedcity.blogspot.com/
On Wed, Jun 3, 2009 at 7:06 PM, Carlos Grohmann wrote:
>
> Here it goes. (I'm using wx 2.8.10.1 from wx repositories in Ubuntu
> 8.10)
>
> #!/usr/bin/python
>
> # spinctrl.py
>
> import wx
> import wx.lib.agw.floatspin as FS
>
> class Sample(wx.Dialog):
> def __init__(self, parent, id, title):
> wx.Dialog.__init__(self, parent, id, title, size=(100, 100))
>
> self.polespin = FS.FloatSpin(self, -1, size=(60, -1),
> value=3.0, min_val=1, max_val=20, increment=0.5, digits=1)
>
> self.Centre()
> self.ShowModal()
> self.Destroy()
>
> def OnClose(self, event):
> self.Destroy()
>
> app = wx.App()
> Sample(None, -1, 'Converter')
> app.MainLoop()
>
>
> I noticed that if I change the values with the mouse wheel, it works
> fine, but using the up/down arrows I got the problem.
Your sample works perfectly well for me on Windows XP, Python 2.5,
wxPython 2.8.10.1. I believe it might be a quirk of wx.SpinButton on
GTK, but I can't say it for sure as I don't have a GTK machine to hunt
for the bug.