My head goes dizzy.. I must be asleep or what? But the issue *is still valid!
*Help!
Hello!

I'm implementing a custom popup window for a gtk.Entry. Actually it's a custom completion popup. but does not really matter. The real question is:

*for a given gtk.Entry (parented, realized) get location of the left-bottom corner of the entry in screen coordinates* (in order to position the popup window).


Part of the problem I solved myself:
    window = entry.get_parent_window()
    origin = window.get_origin()
origin returns left-top corner of window's client area in screen coordinates. It's OK.

But I'm not able to get *actual* entry position and size in window coordinates. entry.get_allocation() returns allocation which not always corresponds to *actual* on-screen size and position, but rather reflects he space devoted to the widget. For example putting gtk.Entry into gtk.VBox gives the above results.

Help is much appreciated! Thanks!
--
Michael Baranov
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to