Re: [pygtk] gobject.idle_add and generators

2008-05-02 Thread skip
>> Does it make sense to call it like this? >> >> gobject.idle_add(g) Greg> No, but it might make sense to use it like this: Greg>gobject.idle_add(g().next) Thanks, Johan pointed me down the right path. That is indeed what I did. Then new version is substantially simple

[pygtk] Drag and drop question

2008-05-02 Thread Jason Schmidlapp
For lack of a better term, I need to do a "deferred" drag and drop operation. Here's the problem: When my drag source method is called, rather than immediately returning data, I want to perform an operation that will occur asynchronously in the future (say, retrieve some data from an HTTP connect

Re: [pygtk] gobject.idle_add and generators

2008-05-02 Thread Greg Ewing
[EMAIL PROTECTED] wrote: def g(): while True: do_something_useful() yield True Does it make sense to call it like this? gobject.idle_add(g) No, but it might make sense to use it like this: gobject.idle_add(g().next) -- Greg

[pygtk] Glade Resizing

2008-05-02 Thread Shadi Azoum
I was wondering if anyone has played around with Glade and experienced a resize problem. When I try to create just a basic window, I can't seem to resize it (no dragging or size parameters). Any help/advice would be greatly appreciated. ___ pygtk mailin

Re: [pygtk] Sync 2 widgets

2008-05-02 Thread Steven Brown
Timo, you have lots of options. The simplest would be to add an event handler to each widget's "toggled" (i think) signal to check the other widget and set the same value. If it's sufficient, you could create an action (gtk.Action) and connect both widgets to it. You could create your own "model

Re: [pygtk] [Announce] PyGooCanvas 0.10.0

2008-05-02 Thread Gian Mario Tagliaretti
On Fri, May 2, 2008 at 11:42 AM, Alessandro Dentella <[EMAIL PROTECTED]> wrote: Ciao Sandro, > has anybody tried generating windows binaries? > should it be a simple process? I've tried once to generate win32 binaries for goocanvas and pygoocanvas without a great success... but my friend Paolo

Re: [pygtk] [Announce] PyGooCanvas 0.10.0

2008-05-02 Thread Gian Mario Tagliaretti
On Fri, May 2, 2008 at 11:26 AM, Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote: Hi Thomas, > Do you have online documentation? For now, it's here: http://www.gnome.org/~gianmt/pygoocanvas/ I will investigate on how to host it at library.gnome.org cheers -- Gian Mario Tagliaretti _

Re: [pygtk] [Announce] PyGooCanvas 0.10.0

2008-05-02 Thread Thomas Dybdahl Ahle
Do you have online documentation? On Thu, 2008-05-01 at 19:35 +0200, Gian Mario Tagliaretti wrote: > I am pleased to announce version 0.10.0 of the Python bindings for Goocanvas. > > It is available at: > > https://developer.berlios.de/projects/pygoocanvas/ > > The bindings are updated with the