Re: FloatSpin strange behavior?

"[email protected]" <[email protected]>
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
Sorry for resurrecting this very old thread, but I have the same issue, 
also on GTK. Are there any new insights to this problem?

Juampy schrieb am Donnerstag, 29. März 2012 um 22:31:06 UTC+2:

> The odd behavior is that it only happens around the "original value". Lets 
> say you set the value on 25 with increments of 1. If you press the up arrow 
> it will go: 25, 26, 27, 28, etc.. But if you press the down arrow it will 
> go:* 25, 26 , 25* , 24,23,22, etc.
> Another odd thing is that it repeats its behavior every time you go 
> through 25. For example, if you start on 25, and press the up arrow until 
> you reach 28 and then go down, it will go: 28, 27, *26, 25, 26, 25*, 24, 
> 23, 22, etc. 
> It doesn't matter the increment of the arrow and/or the initial value. If 
> you start on 10, with 0.2 increments, it will go: *10, 10.2, 10,* 9.8, 
>  9.6, etc.
>
> I've also noticed that either reaching the max_val or min_val, or doing a 
> "press and hold" on the arrow (so it will increase the value faster) makes 
> the FloatSpin work as it should.
>
> I really think that this is GTK related, but in any case if you have a 
> clue on how could I workaround this, would be really helpful.
>
> Best Regards,
>
>
> On Thursday, March 29, 2012 5:17:32 PM UTC-3, Juampy wrote:
>>
>> Hi Andrea, 
>> I know this thread have quite some time, but I stomped into this now. Is 
>> there any workaround to have it working on GTK?
>>
>> By the way, thanks for such great job on the AGW library.
>>
>> Regards,
>>
>> On Tuesday, June 2, 2009 11:22:43 PM UTC-3, Carlos Grohmann wrote:
>>>
>>> Hello all, 
>>>
>>> I'm using Andrea's FloatSpin in an app, and it works fine but there is 
>>> one small issue: if I set the initial value to, say, 3.5 (with steps 
>>> of 0.5), and the first thing I do when I run the pregram is to 
>>> decrease that value, it will go from 3.5 to 4.0, then 3.5 and then 
>>> finally 3.0. If I run the program and try to increase the values,it's 
>>> all good. Any hints? 
>>>
>>> cheers
>>
>>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/d48d811c-0e90-4dbd-96b5-8920a3092209n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.