Yang Zhang wrote: > Hi, I have a signal handler connected to an Entry's 'changed' signal, > but it never sees the updated cursor position, only the previous cursor > position. E.g., if I start with an empty Entry and then type 'a', > Entry.get_text() returns 'a', but Entry.get_position() returns 0, not 1. > I tried both .connect() and .connect_after(), but there doesn't seem > to be any difference. How can I get the updated cursor position? > Connect to the "notify::cursor-position" signal. This should work for your app.
John _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/