[pygtk] Scrolling to the previous position in a TreeView
Walter Leibbrandt
walter at translate.org.za
Fri Jan 30 19:36:52 WST 2009
Hi,
Lionel Dricot wrote:
> I perfectly agree. That's why I'm not satisfied with this solution.
> But, at least, it works and I prefer having an ugly working code than
> a non functionnal software.
Looks like I didn't succeed in saying what I wanted to say (I seem to do
that a lot :/). The reason why I mentioned gobject.idle_add() is to
suggest that you try it as an alternative to timeout_add()... Or have
you tried it?
>
> From my point of view (which is very new and not well exeperienced),
> it looks like a pygtk/gtk bug/design flaw. If I set a value for the
> adjustement, it should be done, not matter what. If waiting 100ms
> before calling a function change your software's behaviour, I call
> that a bug.
In that case, *please* stay away from a multi-threading in Gtk+ apps. ;)
>
> Maybe there's something that I don't understand because I really
> believe that going to a specific scroll position is a very common
> usecase. (but it looks like the documentation on this part is very
> weak. Look at the get_vadjustement which refers to set_vadjustement
> which, itself, just says : "it set the adjustement" without explaining
> what an adjustement is)
--
Walter Leibbrandt http://translate.org.za/blogs/walter
Software Developer +27 12 460 1095 (w)
Translate.org.za
Recent blogs:
* Virtaal's MVCisation
http://www.translate.org.za/blogs/walter/en/content/virtaals-mvcisation
* Things that changed the way I code
* Switching from Subversion to git
More information about the pygtk
mailing list