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
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]>
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
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
--
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.
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