Aaron Optimizer Digulla wrote:
>
> Quoting Joe Van Andel <[EMAIL PROTECTED]>:
>
> > Using gtk+-1.2.7,glib-1.2.7,gnome-python-1.0.53 on Redhat 6.1
> >
> > I have a toplevel window that initially shows some status messages.
> > After it processes some data, it creates a table of widgets that control
> > the rest of the application. The number of rows in the table depends on
> > the data.
> >
> > How do I force the window to grow to the proper size such that all the
> > rows in the table are visible? (I know that if I had created all the
> > widgets before the window was first created that the window would show
> > them all.)
Aaron Optimizer Digulla wrote:
>
> Call window.queue_resize(). When the mainloop is run the next time
> (I don't know if mainiteration() will work; probably not) the window
> will recalculate its size.
I tried window.queue_resize(), but it made no difference. I also tried
the following, where self.__table is packed inside self.__vbox, and it
didn't help, either.
self.set_resize_mode(RESIZE_IMMEDIATE)
self.size_request()
self.check_resize()
self.resize_children()
self.__table.queue_resize()
self.__vbox.queue_resize()
--
Joe VanAndel
National Center for Atmospheric Research
http://www.atd.ucar.edu/~vanandel/
Internet: [EMAIL PROTECTED]
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]