[pygtk] How to run gtk.Builder.connect_signals multiple times?

2011-06-27 Thread Mac Ryan
I posted the same question on Stack Overflow, but so far it only got 3 views and no answers... :( http://stackoverflow.com/questions/6492000 In the design of my program I would like to pass around the gkt.Builder() instance to various modules (each of them has some of the handlers for managing

Re: [pygtk] How to run gtk.Builder.connect_signals multiple times?

2011-06-27 Thread Giuseppe Penone
I invite you to take a look to the source code of my simplest application http://www.giuspen.com/nautilus-pyextensions/ where as you can see gtk.Builder() is called only once and there's no need for further calls. the code that you have to look for: class GladeWidgetsWrapper: Handles the

Re: [pygtk] How to run gtk.Builder.connect_signals multiple times?

2011-06-27 Thread Mac Ryan
Thank you Giuseppe for your quick reply. I'm looking through your code right now, but it's not evident to me how this solves my problem. If I understand your code correctly, you call gtk.Builder.connect_signals() only once in the __init__ method of the GladeWidgetsWrapper class. Further

Re: [pygtk] How to run gtk.Builder.connect_signals multiple times?

2011-06-27 Thread Giuseppe Penone
Hi, I'm looking through your code right now, but it's not evident to me how this solves my problem. If I understand your code correctly, you call gtk.Builder.connect_signals() only once in the __init__ method of the GladeWidgetsWrapper class. yes, this is enough to connect: def

Re: [pygtk] porting gtk2 to gtk3

2011-06-27 Thread Giuseppe Penone
I looked there too but what I need has the mark introspectable=0 that, as described in http://live.gnome.org/PyGObject/IntrospectionPorting means Non-introspectable functions/methods. The problem is that there's not a solution for this. There's an example For example, Gtk.Menu.popup() is not

Re: [pygtk] How to run gtk.Builder.connect_signals multiple times?

2011-06-27 Thread Mac Ryan
On Mon, 27 Jun 2011 19:58:07 +0200 Giuseppe Penone gius...@gmail.com wrote: I always defined the glade callbacks in the same class, I'm afraid you can't split them in different modules unless you use different glade files for different classes. That's the same conclusion I arrived to, but I

Re: [pygtk] strange warnings in gtk3

2011-06-27 Thread Just Fill Bugs
On 06/27/2011 02:00 AM, Timo wrote: On 26-06-11 14:57, Giuseppe Penone wrote: Hi, I ported my first application to gtk3 but continue to read the followig warning: `menu_proxy_module_load': python: undefined symbol: menu_proxy_module_load anybody knows the reason? Don't know the reason, but