On Mon, 26 Mar 2001, Eduardo Ferro wrote:

> Hi!
> 
> I need to get the "actual" widget size of a Window, but when i
> request the size with size_request() it return me the minimal size
> that can use this widget :-?

That is the correct behaviour for the size_request() method (it returns
the ammount of space the widget requests).  You want the space allocated
to the widget.  That can be found with the get_allocation() method:

  x, y, width, height = widget.get_allocation()

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to