Re: [pygtk] How to size a TextView? Any suggestions?

2006-06-02 Thread Sandro Dentella
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_request344/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: [EMAIL PROTECTED] 
http://www.tksql.orgTkSQL Home page - My GPL work
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] How to size a TextView? Any suggestions?

2006-06-01 Thread Sandro Dentella
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'd include the code, but it's a bit verbose for a mailing list for even
 a simple case.  Also, I've tried several different things, and detailing
 that 

Can't you try and create a simple example of the problem you have? I
personally find it really difficult to help you w/o a code to read even
thouht I don't normally have problems w/ TextView dimentions... 

*:-)

-- 
Sandro Dentella  *:-)
http://www.tksql.orgTkSQL Home page - My GPL work
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/