Dieter, Good catch! It seems to be an issue with the Courier font in Windows. If I replace the line that specifies the font with one saying "Sans 12" everything is fine and I'm guessing that the mysterious disappearing cursor problem might be improved too.
I had reasons for wanting to use a Courier font, but for Windows users of my program this is a useful workaround. Thanks much! James Simmons On Sun, Dec 12, 2010 at 3:35 AM, Dieter Verfaillie <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 11/12/2010 16:24, James Simmons wrote: >> Dieter, >> >> I tried replacing all my Python and PyGTK files with older versions >> and that didn't help. What's odd is that I CAN split a line into two >> lines with the Enter key; I just can't create a blank line. > > Oh! But I misunderstood your problem then :S > >> It is a great help to know that my program seems to work on Windows >> for other people, so I thank everyone who tried it. > > Well, it does not... I see the same problem here, I cannot create blank > lines. Or said in another way, multiple newline characters render as a > single newline character. The strange thing is that the saved textfile > *does* contain the exact amount of newline characters you would > expect... > > So, I did some further debugging and found that the modify_font call > is the culprit. Put line 151 [self.textview.modify_font(self.font_desc)] > in a comment and try again. All of the sudden, multiple newline > characters are actually rendered as blank lines :) > > mvg, > Dieter _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
