Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 6 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

 
discard

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.