What do you want? The widget's prefered minimum size? If so, use:
width, height = widget.size_request()
To get the actual allocated size of the widget, use:
x, y, width, height = widget.get_allocation()
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Fri, 11 F
t;<<<<<<<<<<<<<<<
On 2/11/00, 6:09:47 PM, "Stephan R.A. Deibel"
<[EMAIL PROTECTED]> wrote regarding [pygtk] Width of a widget?:
> OK, this is pretty basic, but if I have an instance of gtk.GtkVBox I
can't
> say x.width... it says
;>> Original Message <<<<<<<<<<<<<<<<<<
On 2/11/00, 6:09:47 PM, "Stephan R.A. Deibel"
<[EMAIL PROTECTED]> wrote regarding [pygtk] Width of a widget?:
> OK, this is pretty basic, but if I have an instance of gtk.GtkVB
OK, this is pretty basic, but if I have an instance of gtk.GtkVBox I can't
say x.width... it says Attribute Error.
Shouldn't this be defined for all GtkWidgets? Is there some other way to
get at this info?
Thanks,
- Stephan
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]