Hi there, How can I find the geometry (X, Y, width and height) of a widget (a gtk.TextView in this case) buried in a nested layout of Tables and VBoxes? The get_size_request() method always returns (-1, -1) and size_request() returns obviuosly wrong values (a width of 18 when it's at least 150). The gtk.gdk.Rectangle I get from the get_allocation() method also contains similar values (-1 for x and y and 1 for width and height). The get_window() method also returns None for all values of the parameter and the TextView's props.window is also None.
The TextView's "realize" and "show" events have been fired before I try to access this data. If it is relevant in any way, I want to use this information to move different window so that the bottom left corner of the TextView lines up with the top left corner of the window (I'm creating a "fake" drop-down box). Any help would be greatly appreciated. Thanks in advance, Walter -- 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 _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/