Re: [pygtk] gtk.SpinButton - weird behaviour

2012-05-17 Thread Giuseppe Penone
it could be a problem with the update policy.
I bet that you did set to update the value that the spinbutton gets after
any key press.

You can control where the cursor goes after any key press anyway, the entry
is child of editable (http://www.pygtk.org/docs/pygtk/class-gtkeditable.html
)

I have a similar problem with glade 3.12 (for gtk3) and any entry (I can
only copy and paste, not enter characters at the middle of an existing
word), unfortunately that's a glade bug and I cannot do anything.



On Wed, May 16, 2012 at 10:08 AM, Andreas Heinlein wrote:

> Hello,
>
> we have a GTK2 python app which uses a gtk.SpinButton with a precision of
> 1, i.e. numbers like 1234.5. This widget behaves oddly when trying to enter
> values directly with the keyboard. It is difficult to describe; when you
> click the field and enter some digits, only the first is accepted, then the
> marker jumps to the end of the field (after the decimal digit) where you
> cannot enter anything. You can move the mark manually again and enter some
> more digits. It just isn't possible to click the field once and enter
> "1234.5" like it should.
>
> Is this a known GTK problem/bug? We're using GTK 2.20. The spinButton is
> configured with digits=1, numeric=True, snap-to-ticks=False, alignment=1,
> increments=0.1,10.
>
> Thanks,
> Andreas
> __**_
> pygtk mailing list   pygtk@daa.com.au
> http://www.daa.com.au/mailman/**listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

[pygtk] gtk.SpinButton - weird behaviour

2012-05-16 Thread Andreas Heinlein

Hello,

we have a GTK2 python app which uses a gtk.SpinButton with a precision 
of 1, i.e. numbers like 1234.5. This widget behaves oddly when trying to 
enter values directly with the keyboard. It is difficult to describe; 
when you click the field and enter some digits, only the first is 
accepted, then the marker jumps to the end of the field (after the 
decimal digit) where you cannot enter anything. You can move the mark 
manually again and enter some more digits. It just isn't possible to 
click the field once and enter "1234.5" like it should.


Is this a known GTK problem/bug? We're using GTK 2.20. The spinButton is 
configured with digits=1, numeric=True, snap-to-ticks=False, 
alignment=1, increments=0.1,10.


Thanks,
Andreas
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/