Re: [pygtk] [jeenuv.otherinbox.com] Re: [jeenuv.otherinbox.com] Re: [jeenuv.otherinbox.com] Re: Drawing and signals

2010-06-15 Thread Jeenu V
On Fri, Jun 11, 2010 at 12:36 AM, David Ripton wrote: > Cairo is basically immediate mode.  Which means you need to redraw > everything in the exposed area every time.  A canvas is retained mode. > Meaning you build some objects that know how to redraw themselves every > time they are exposed, wit

Re: [pygtk] [jeenuv.otherinbox.com] Re: [jeenuv.otherinbox.com] Re: Drawing and signals

2010-06-15 Thread Jeenu V
On Fri, Jun 11, 2010 at 3:19 PM, Dieter Verfaillie wrote: > Quoting "Jeenu V" : >> I couldn't get a documentation >> reference for PyCairo (or didn't I search enough?) > > Maybe this can help: > http://cairographics.org/documentation/pycairo/2/ Thanks Deiter. -- :J __

[pygtk] GIO: Monitor directory for changes recursively

2010-06-15 Thread Jason Heeris
Take the following demo code[1], which uses a GIO FileMonitor to monitor a directory for changes: import gio def directory_changed(monitor, file1, file2, evt_type): print "Changed:", file1, file2, evt_type gfile = gio.File(".") monitor = gfile.monitor_directory(gio.FILE_MONITO

[pygtk] CheckButton: toggled vs. clicked signal

2010-06-15 Thread Alessandro Dentella
Hi, I just realized that a 'clicked' signal is emitted each time a value is I toggled using .set_active(is_active) in a CheckButton. I find it misleading and counter-intuitive since no one is clicking anything. If that's the desired behaviour, what is the difference between signal 'toggled' and '