On Mon, 23 May 2005 19:16:31 -0700
John Finlay <[EMAIL PROTECTED]> 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
> >
> >
> Try creating a small example program that illustrates the problem so
> others can try to reproduce it.
>
> John
>
Can't come up with a small program that exhibits the error, so I've
posted the complete program at
http://sol.nfldinet.com/~rockdoctor/chemnet-61.py
The command line to run the program from an x-terminal is
chemnet-61.py aefqstw
--
Rock Doctor
Obviously not a skilled Python programmer :)
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/