[pygtk] How to size a TextView? Any suggestions?
Sandro Dentella
sandro at e-den.it
Fri Jun 2 16:53:01 WST 2006
On Thu, Jun 01, 2006 at 11:31:37AM +0200, Sandro Dentella wrote:
> On Thu, Jun 01, 2006 at 01:38:06AM -0700, Charles D Hixson wrote:
> > I'm trying to place a textview into a scrolled window (inside of either
> > an HBox or a Table), and running into the problem that the window is
> > unreasonably narrow. Even if I attach it into a Table and tell the
> > table.attach(sw, 1, 6, 0, 4) while the pane is sufficiently wide, the
> > text entered in that pane is about 8-10 characters wide...then it will
I depicted the structure of the widgets here:
http://www.e-den.it/misc/tree.jpg
in my opinin you have at least a couple of HBox/Vbox in excess.
1. hbox2 is a child oh hbox with no addition benefit
2. vboxsw has no reason as ScrolledWindow is a container itself
anyhow the problem you have depends on the fact that you start with a little
window and the space is eaten up by the DrawingArea in wich you setup a
minimum geometry of 200x200 *and* expand & fill. Depending on tha layout you
prefere you may want to change the initial dimentions or the expand parameter.
>Besides, that file uses an attribute, thus: <property
>name="width_request">344</property>, and none of the documentation I've
>encountered defines what that would do.
"width-request" is a property defined for any gtk.Widget. (I never
understood why '_' and '-' change in glade ;-)
sandro
*:-)
--
Sandro Dentella *:-)
e-mail: sandro a e-den.it
http://www.tksql.org TkSQL Home page - My GPL work
More information about the pygtk
mailing list