Re: [gnome-love] gtk3 installation



I've thought that this form of import just only for this method of installation. Okay, I'll try to import like you said


2014-08-23 21:08 GMT+03:00 Germán Poo-Caamaño <gpoo gnome org>:
On Sat, 2014-08-23 at 20:32 +0300, Антон Козловский wrote:
> I've installed python3-gobject. When I'm trying to import gtk3 or gtk
> module it fails.

You have to use:

    from gi.repository import Gtk

There is a nice tutorial available at
http://python-gtk-3-tutorial.readthedocs.org/en/latest/introduction.html

--
Germán Poo-Caamaño
http://calcifer.org/



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