On Mon, 23 May 2005 17:30:49 -0700
John Finlay <address deleted> wrote:

> Steven Usdansky wrote:
> 
> >I've got a program that constructs a series of gtk.Notebooks and
> >renders each of them in a top-level window. On the last-inserted
> >page of each notebook is a gtkTextView consisting of 34 lines of
> >text. If the window is not long enough to render all lines of text,
> >the vertical scrollbar is of no help. I must  resize the window to
> >make it tall enough to display all 34 lines before all 34 lines
> >become accessible. Is there a way to make all 34 lines accessible
> >without resizing the window?
> >  
> How are you doing this? Are you putting the TextView in a
> ScrolledWindow in the Notebook page?
> 
That's exactly what I'm doing. I found that if I take the number of
lines in the text buffer, multiply by 16 (for the Luxi Mono 9 font
I'm using), and use that to resize the top-level window before showing
it, everything works. I'm sure there's a better way, I just can't
figure it out. I tried queue_resize on my widgets, but it didn't seem
to do any good

-- 
Rock Doctor
_______________________________________________
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