Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 8 down vote accepted

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

share|improve this answer
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 '12 at 18:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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