Clasen: Introducing GtkInspector
Posted May 19, 2014 0:48 UTC (Mon) by sandsmark (subscriber, #62172)
Posted May 19, 2014 4:03 UTC (Mon) by tetromino (subscriber, #33846)
Does Qt have some equivalent of this?
Posted May 19, 2014 8:54 UTC (Mon) by jospoortvliet (subscriber, #33164)
And of course, the SMOKE bindings allow writing a GTK hello world app in Qt:
Posted May 19, 2014 13:19 UTC (Mon) by kigurai (subscriber, #85475)
Currently I can start a Python shell and do
>>> from gi.repository import GtkSource
and now I can natively make calls to the GtkSourceView library using a Pythonic interface.
And the same would go for JS, or any language for which a GObject introspection functionality exists.
When I've looked at programming with Qt, I've gotten the impression that all the Python interfaces are "handcrafted" in some sense. But maybe I'm wrong on this.
Still GIR is a really nice concept that I wish was more common.
Posted May 19, 2014 13:27 UTC (Mon) by sandsmark (subscriber, #62172)
Posted May 19, 2014 13:59 UTC (Mon) by kigurai (subscriber, #85475)
But, as I said, the documentation was not really clear to me.
With GIR, the introspection file is created once for each library, and the GIR mechanism is created once per runtime (Python, JS, ...).
And yes, it means doing things at runtime, but I have not noticed any overhead when using the Python GIR module.
For compiled languages I am guessing you would simply call into the C-library anyway?
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds