4

I am developing apps in Quickly. Default codes start with from gi.repository import Gtk. Why is it so and not simply import gtk for example?

The point is, a lot of tutorials, documentation and forums answers on the web are based on the second importation, as far as I have seen.

1 Answer 1

8

from gi.repository import Gtk uses the new PyGObject instead of the older PyGTK that is used with import gtk.

1
  • Thank you. I am now reassured as far as the future of my apps is concerned, since I know that PyGObject is some sort of replacement for PyGtk. But this leads me also to ask other questions on Ask Ubuntu…
    – Agmenor
    Jun 23, 2012 at 18:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.