Re: GObject Introspection instead of PyGTK



On Wed, Nov 2, 2011 at 12:59 PM, Jasper St. Pierre
<jstpierre mecheye net> wrote:
> There's a good introduction over here: http://python-gtk-3-tutorial.rtfd.org
>
> The first thing that I would do is replace:
>
>    import gtk
>    import gobject
>
> with something like:
>
>    from gi.repository import Gtk as gtk, GObject as gobject
>
> and see what breaks.

You can also find a porting guide over here:
https://live.gnome.org/PyGObject/IntrospectionPorting

Indeed, the first step is just renaming stuff. There's a bunch of
that, and in some cases it might be all you need to do. Good luck!

Dylan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]