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. What I think is that something I've installed may be interfering with the TextView. I'm going to try installing on another computer running Windows and see if the same thing happens. Most of my computers at home are running Linux, so I may end up trying at work.
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. James Simmons On Sat, Dec 11, 2010 at 3:24 AM, Dieter Verfaillie <[email protected]> wrote: > Quoting "James Simmons" <[email protected]>: >> >> I tried it and it didn't work. I also tried replacing the GTK bundle >> with the older one, and the program would not accept it. I verified >> that the TextBuffer actually does contain the newlines. It's just >> that the TextView ignores them. Even if you have a text file that has >> newlines in there to begin with, visible in Notepad so I know the line >> endings are correct, the TextView seems to just compress them out. I >> verified with print statements that the lines are being added to the >> buffer. > > Strange. Everything works when I load an empty text file into your program. > Could you post the example image and text file the ocr package produced > you use for testing? Could be an encoding issue I can't reproduce here > with an empty text file... > > mvg, > Dieter > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
