Steven Usdansky wrote:

On 24 May 2005 12:11:33 -0500
Doug Quale <[EMAIL PROTECTED]> very elegantly stated:

Steven Usdansky <[EMAIL PROTECTED]> writes:

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
I tried this and see the same problem that you describe -- the
vertical scroll stops early and doesn't show all the lines on the
bottom.

It only happened when the font was set to "Luxi Mono 9".  When I
changed it to simply use "mono" as the font the scrollbars worked as
expected.

That doesn't explain why it doesn't work right with Luxi Mono...
_______________________________________________

I think I've got a proper solution. In the add_notebook_page() function, I
inserted the line
                     page_content.show()

immediately following the line that assigns a gtk.TextView to page_content
(page_content is a gtk.ScrolledWindow). No more need to count lines or
resize the top-level windows to make the full text scrollable.
My thanks to all of you who took a look at this
You should consider using the Dialog.run() method for handling your AboutDialog instead of connecting functions to the Close button and making the dialog modal. I found that change also cures your problem. I suspect that event processing is munged somewhere along the line.

John
_______________________________________________
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