Howdy.
I'm the guy that uses Python 1.5.2, pygtk 0.6.8, and other 
ancient stuff.

Please help me anyway. ;-)

I have data in the form (title, message).
title is always just one line, and message could be anything
from one line to many lines, and not necessarily line-wrapped
(though I currently artificially line-wrap it at 68 chars).

I build a tree using (yeah, I know, yeeeach), GtkTree and
GtkItems built from a GtkLabel.

So I get this:

 - title1
 + title2
   message2
   ..
 - title3
 - title4
 + title5
   message5
   ..
 - title6

and so on.

What I am considering is replacing the GtkLabel with a 
GtkText. I tried this, and it works, but all of the GtkText
are made the same size, which is the full width of the GtkTree
container, and almost exactly 100% the height of the visible
part of the GtkTree.

What follow are some questions:

1. There has *got* to be a better way.  Please don't suggest 
   "use Gtk 2.x or pygtk > 1.6.8" because that is not a possibility
   for me.

2. How can I size the GtkText widget to roughly completely contain
   whatever its text contents are?  (A dialog I use could also benefit
   from this knowledge).

3. Why do the labels arbitrarily seem to "wrap" at 50-60 chars,
   despite their actual width?

Thanks!

-- 
Jon Nelson
C and Python Programmer, Code Gardener
Just because it's not broken doesn't mean we can't take it apart.
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to