Re: [pygtk] gobject.idle_add and generators

2008-05-01 Thread Aravind Vijayakumar
I think you'll have to call it like this: iter = g() gobject.idle_add(iter.next) And yes, to terminate the idle execution, you would yield False. -Aravind - Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: pygtk@daa.com.au Sent: Thursday, May 1, 2008 8:05:16 AM Subjec

Re: [pygtk] Changing a style property of TreeView

2008-03-20 Thread Aravind Vijayakumar
Now that I do have the code in front of me, what I has done was: gtk.rc_reset_styles(self.main_window.get_settings()) You'd want to replace self.main_window with the appropriate widget. Regards, Aravind - Original Message From: Aravind Vijayakumar <[EMAIL PROTECTED]>

Re: [pygtk] Changing a style property of TreeView

2008-03-19 Thread Aravind Vijayakumar
HI Jeffrey, I recently ran into something similar, I don't have the code in front of me, but I had to do something like: gtk.rc_reset_styles(gtk.settings_get_default()) after I had done the rc_parse_string for the changes to take effect. References: http://www.pygtk.org/docs/pygtk/class-gtkset

Re: [pygtk] A Timer and refreshing TextView

2007-12-02 Thread Aravind Vijayakumar
Since you are opening the file afresh each time in refreshLog, won't you be reading the first line each time? You probably want a persistent open stream from which you can keep reading. Also, have a look at gobject.io_add_watch, it is probably simpler than threading for your needs. -Aravind --

Re: [pygtk] Textview to Tail a log file

2007-12-02 Thread Aravind Vijayakumar
Hi Mark, Not sure why your code doesn't work, here is my recipe that works for me: def send(text_view,message): """ Inputs : Text view to send to, message to add to the end of the current text Notes : message may be a list of strings. """ buf = text_view.

[pygtk] PyGTK cursor images/snapshots

2007-04-12 Thread Aravind Vijayakumar
Hi all, It looks like the documentation shipped with PyGTK doesn't have the .png images for the various cursor types. Neither does the documentation on pygtk.org. I whipped up a small script to allow the user to see the different cursors. Hope it's useful for someone other than me! -Aravind