From: Nitro <ni...@dr...> - 2007-05-22 14:38:05
|
Am 22.05.2007, 14:33 Uhr, schrieb मयंक जैन (makuchaku) <may...@gm...>: > Hi, > > I'm trying to write a python wrapper for my GObject derived system > > ----------- > // Object definition > struct _MakuObject > { > GObject parent; > gint age; > DBusGProxy *gproxy; > }; > > // ObjectKlass definition > struct _MakuObjectClass > { > GObjectClass parent; > > /* Signals */ > }; > ----------- > > And one public function > ----------- > void maku_object_say_cheese (int i); > ----------- > > I'm using SWIG for this process. SWIG is able to generate bindings > correctly > ----------- >>>> import maku >>>> maku.maku_object_say_cheese (10) > MakuObject just sent you a CHEESE! :) > ----------- > > HOWEVER, how can I get these bindings to be used as... > ----------- > import maku > maku.say_cheese (10) > ----------- > > Is there any way I can accomplish this? Read the part of the manual which deals with %rename. -Matthias |