Re: Missing GObject.connect function in typelib, but present in gir
Marko Tasic <[email protected]> Thu, 24 Mar 2011 23:38:41 +0100
| Newsgroups | gmane.comp.gnome.language-bindings |
|---|---|
| Message-ID | <[email protected]> |
--===============0484260005== Content-Type: multipart/alternative; boundary=00151757711cd4f5eb049f42243c --00151757711cd4f5eb049f42243c Content-Type: text/plain; charset=UTF-8 Thanks, I also found out that connect is not introspectable. I'll try to use GObject.signal_connect_closure for this purpose. I found gjs and seed very useful, too. Regards, Marko Tasic On Thu, Mar 24, 2011 at 11:25 PM, Johan Dahlin <[email protected]> wrote: > On Thu, Mar 24, 2011 at 6:31 PM, Marko Tasic <[email protected]> wrote: > > Hi, > > I've started new project called pygir-ctypes. It's pure python binding > > of girepository. Initial results are promising. pygir-ctypes parses all > > GI*Info structs, and dynamically produces python classes, methods, > > functions, etc. Have in mind that pygir-ctypes isn't trying to be > compatible > > with pygtk nor pyobject. > > But, when I try to look for function "connect" in "GObject" typelib, > > it's missing. However there are: 'signal_connect_closure', > > 'signal_connect_closure_by_id', 'signal_handler_disconnect', > > 'signal_handler_is_connected', 'signal_handlers_disconnect_matched'. > > There is no connect function which usable by introspection since g-i > doesn't support varargs. > You'd need to wrap that manually, look at the pygobject sources to see > how it's done and convert that to ctypes. > > -- > Johan Dahlin > --00151757711cd4f5eb049f42243c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks,<div><br></div><div>I also found out that connect is not=C2=A0intros= pectable. I'll try to use</div><div>GObject.signal_connect_closure for = this purpose.</div><div><br></div><div>I found gjs and seed very useful, to= o.</div> <div><br></div><div>Regards,<br clear=3D"all">Marko Tasic<br> <br><br><div class=3D"gmail_quote">On Thu, Mar 24, 2011 at 11:25 PM, Johan = Dahlin <span dir=3D"ltr"><<a href=3D"mailto:[email protected]">johan@gnome= .org</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"ma= rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> <div class=3D"im">On Thu, Mar 24, 2011 at 6:31 PM, Marko Tasic <<a href= =3D"mailto:[email protected]">[email protected]</a>> wrote:<br> > Hi,<br> > I've started new project called pygir-ctypes. It's pure python= binding<br> > of=C2=A0girepository. Initial results are=C2=A0promising. pygir-ctypes= parses all<br> > GI*Info structs, and=C2=A0dynamically=C2=A0produces python classes, me= thods,<br> > functions, etc. Have in mind that pygir-ctypes isn't trying to be = compatible<br> > with=C2=A0pygtk nor pyobject.<br> > But, when I try to look for function "connect" in "GObj= ect" typelib,<br> > it's=C2=A0missing. However there are:=C2=A0'signal_connect_clo= sure',<br> > 'signal_connect_closure_by_id',=C2=A0'signal_handler_disco= nnect',<br> > 'signal_handler_is_connected',=C2=A0'signal_handlers_disco= nnect_matched'.<br> <br> </div>There is no connect function which usable by introspection since g-i<= br> doesn't support varargs.<br> You'd need to wrap that manually, look at the pygobject sources to see<= br> how it's done and convert that to ctypes.<br> <br> --<br> <font color=3D"#888888">Johan Dahlin<br> </font></blockquote></div><br></div> --00151757711cd4f5eb049f42243c-- --===============0484260005== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ language-bindings mailing list [email protected] http://mail.gnome.org/mailman/listinfo/language-bindings --===============0484260005==--