[pygtk] Terminal Resizing

Shalom Kramer kpeace1 at gmail.com
Wed Nov 28 23:00:49 WST 2007


If I understand correctly you want to make the VTE's change their size
acording to the users preferences, so that one terminal will expand and the
other one shrink.

I have done just that using the gtk.VPaned and gtk.HPaned classes. They can
hold two widgest each so I just packed gtk.Paned inside gtk.Paned objects.

8, 2007 9:15 AM, Seltzer <squabbit7 at gmail.com > wrote:

> Hello,
> > i have three vte widgets arranged in a vertical box.each vte widget is
> > inside of an hbox to group it with its scrollbar, and
> > a frame to label it, like so.
> >
> >         f_sos_out =3D gtk.Frame("stream control")
> >         term_sos_out =3D vte.Terminal()
> >         hb_sos_out =3D gtk.HBox()
> >         sb_sos_out =3D gtk.VScrollbar(term_sos_out.get_adjustment())
> >         sb_sos_out.show()
> >         hb_sos_out.pack_end(sb_sos_out, False, False, 0)
> >         hb_sos_out.pack_start(term_sos_out)
> >         f_sos_out.add(self.hb_sos_out)
> >
> > The problem that im having is with resizing these terminals. the main
> > window that
> > they are all in can be adjusted in size, and the user can select to have
> > one, two,
> > or three of them open at a time. with most widgets ive added to boxes,
> > the things
> > packed into them just resize automatically. the vte terminals wont do
> > this for me, and
> > ive been unable to get them to.
> >
> > any ideas?
> >
> > felix.
> >
> > _______________________________________________
> > pygtk mailing list   pygtk at daa.com.au
> > http://www.daa.com.au/mailman/listinfo/pygtk
> > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20071128/fdd07403/at=
tachment.htm


More information about the pygtk mailing list