Re: [pygtk] Problem with gtk.TextView in Windows, but not in Linux

2010-12-13 Thread James Simmons
Tim, I tried using "monospace" and it looks like it works fine. If it works as well in Linux that's what I'll use. Thanks! James Simmons On Sun, Dec 12, 2010 at 7:06 PM, Tim Evans wrote: > On 2010-12-13 13:31, James Simmons wrote: >> >> Dieter, >> >> Good catch!  It seems to be an issue with

Re: [pygtk] Problem with gtk.TextView in Windows, but not in Linux

2010-12-12 Thread Tim Evans
On 2010-12-13 13:31, James Simmons wrote: 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

Re: [pygtk] Problem with gtk.TextView in Windows, but not in Linux

2010-12-12 Thread James Simmons
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 Cou

Re: [pygtk] Problem with gtk.TextView in Windows, but not in Linux

2010-12-12 Thread Dieter Verfaillie
-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

Re: [pygtk] Problem with gtk.TextView in Windows, but not in Linux

2010-12-11 Thread James Simmons
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 go

Re: [pygtk] Problem with gtk.TextView in Windows, but not in Linux

2010-12-11 Thread Dieter Verfaillie
Quoting "James Simmons" : 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 tha

Re: [pygtk] Problem with gtk.TextView in Windows, but not in Linux

2010-12-10 Thread James Simmons
Stephen, I too notice the cursor issue, but it comes and goes. Sometimes it's there and sometimes it just disappears on you. It does this in both Linux and Windows. Thanks for giving me your versions. These are the ones I'm using on Windows XP Pro: Python version 2.7.1 GTK+version 2.22

Re: [pygtk] Problem with gtk.TextView in Windows, but not in Linux

2010-12-10 Thread Stephen George
Hi James, Tried your program on windows and I could NOT see the problem you are describing, to me it worked as expected. > This program works flawlessly in Linux, but not in Windows. In > Windows everything works *except* when you hit the Enter key in the > TextView. It does not insert a n

Re: [pygtk] Problem with gtk.TextView in Windows, but not in Linux

2010-12-10 Thread James Simmons
Dieter, 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 t

Re: [pygtk] Problem with gtk.TextView in Windows, but not in Linux

2010-12-10 Thread Dieter Verfaillie
Quoting "James Simmons" : http://git.sugarlabs.org/e-book-making-scripts/mainline/blobs/master/proofer.py Just a thought, but try changing line 84 from etext_file = open(text_filename,"r") to etext_file = open(text_filename,"rU") and see what happens... mvg, Dieter --

Re: [pygtk] Problem with gtk.TextView in Windows, but not in Linux

2010-12-10 Thread Leon Bogaert
beginner myself... Regards, Leon From: pygtk-boun...@daa.com.au [pygtk-boun...@daa.com.au] on behalf of James Simmons [nices...@gmail.com] Sent: Friday, December 10, 2010 01:39 To: PyGTK Mailing List Subject: [pygtk] Problem with gtk.TextView in Windows, but not i

[pygtk] Problem with gtk.TextView in Windows, but not in Linux

2010-12-09 Thread James Simmons
I have written a simple program for proofing and correcting OCR'd text that I'm going to include in a book I'm writing about making e-books. The program has a left pane and a right pane. The left pane is a gtk.TextView and the right pane is a gtk.Image. The idea is that the left pane shows the OC