Re: Problem with GI and pygtk
- From: Thomas Martitz <kugel rockbox org>
- To: Simon Feltman <s feltman gmail com>
- Cc: "python-hackers-list gnome org" <python-hackers-list gnome org>
- Subject: Re: Problem with GI and pygtk
- Date: Thu, 14 Aug 2014 11:36:44 +0200
Am 14.08.2014 um 01:15 schrieb Simon Feltman:
On Wed, Aug 13, 2014 at 2:20 PM, Thomas Martitz <kugel rockbox org> wrote:
So are you saying there is no way to mix my Test typelib with python and
gtk2?
Not exactly. You cannot mix introspected GTK+ (PyGObject 3) with
statically bound GTK+ (PyGObject 2 and PyGTK). You can use GTK+ 2
through introspection, but I don't know how well it works beyond
simple examples. For instance, your test runs by replacing "import
gtk" with:
import gi
gi.require_version('Gtk', '2.0')
from gi.repository import Gtk as gtk
-Simon
Thanks, this was apparently what I was looking for. This works for my
test case and for my actual case too (as of now, though it's getting
more complex).
Best regards
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]