Re: GObject Introspection instead of PyGTK
- From: Dylan McCall <dylanmccall gmail com>
- To: "Jasper St. Pierre" <jstpierre mecheye net>
- Cc: desktop-devel-list <desktop-devel-list gnome org>
- Subject: Re: GObject Introspection instead of PyGTK
- Date: Wed, 2 Nov 2011 13:16:53 -0700
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]