[pygtk] Entry.connect_after('changed', ...) doesn't see updated cursor position

Yang Zhang yanghatespam at gmail.com
Wed Dec 31 05:37:24 WST 2008


Gian Mario Tagliaretti wrote:
> On Tue, Dec 30, 2008 at 3:59 PM, Gian Mario Tagliaretti
> <gianmt at gnome.org> wrote:
> 
>> use the "insert-text" instead:
> 
> oh.. I just noticed that it works correctly only if you input text, if
> you copy the position is wrong, filing a bug....
> 
> cheers

Well, another problem is that I don't want this to just fire when text 
is being inserted.  I'm building an auto-completion widget, so if 
someone deletes text or in any way changes the contents of the text box, 
I want the list of completions to be updated all the same.

-- 
Yang Zhang
http://www.mit.edu/~y_z/


More information about the pygtk mailing list