[pygtk] How to get widget size

2001-03-26 Thread Eduardo Ferro
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 :-? Someone knows how can i get this value??? Thanks in advance -- Hasta otra! Eduardo Ferro Aldama [EMAIL PROTECTED]

Re: [pygtk] How to get widget size

2001-03-26 Thread James Henstridge
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

Re: [pygtk] How to get widget size?

2000-08-28 Thread acano
On Mon, 28 Aug 2000 11:16:28 -0400, Matt Wilson [EMAIL PROTECTED] wrote: call the widget's "size_allocation()" method. This will only give you good data after the allocation step has been done for the widget. Isn't that only for setting the size? I'd assumed that pygtk didn't have something

Re: [pygtk] How to get widget size?

2000-08-28 Thread James Henstridge
On Mon, 28 Aug 2000, Martin Grimme wrote: Hello, I want to get the current size of a container widget (like GtkHBox or GtkLayout). Is there any possibility to get these values at runtime? I can get the size of a window by using the configure-event, but this doesn't seem to work for

Re: [pygtk] how to get widget size?

1999-04-21 Thread James Henstridge
You would need to access the allocation member of the GtkWidget class, which is currently not wrapped. Expect to see it in pygtk-0.6.0 James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Wed, 21 Apr 1999, Rick Ree wrote: This may be a dumb question, but how can you