Re: [pygtk] A Timer and refreshing TextView

2007-12-03 Thread John Finlay
Nathaniel Smith wrote: On Sun, Dec 02, 2007 at 09:34:40PM -0800, Aravind Vijayakumar wrote: Since you are opening the file afresh each time in refreshLog, won't you be reading the first line each time? The .read() method in Python reads the whole file, not just the first line. rea

Re: [pygtk] A Timer and refreshing TextView

2007-12-02 Thread Nathaniel Smith
On Sun, Dec 02, 2007 at 09:34:40PM -0800, Aravind Vijayakumar wrote: > Since you are opening the file afresh each time in refreshLog, won't > you be reading the first line each time? The .read() method in Python reads the whole file, not just the first line. > You probably want a > persistent op

Re: [pygtk] A Timer and refreshing TextView

2007-12-02 Thread Aravind Vijayakumar
avind - Original Message From: Mark Stahler <[EMAIL PROTECTED]> To: PyGTK Sent: Monday, December 3, 2007 4:42:56 AM Subject: [pygtk] A Timer and refreshing TextView Hello, I am attempting to have a textview tail the end of a log file. So far I can load the log and scroll to the en

[pygtk] A Timer and refreshing TextView

2007-12-02 Thread Mark Stahler
Hello, I am attempting to have a textview tail the end of a log file. So far I can load the log and scroll to the end however I am running into a problem have the log file refresh. Code: textview = self.gui.get_widget("bottom_textview") # Methods that need to be run on s