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 writing an app which has a button that, when clicked, should launch a Gwibber entry widget. This used to work, as suggested on the tutorial:

from gi.repository import GwibberGtk
entry = GwibberGtk.Entry()
add(entry)

But now it doesn't anymore on my computer. I encountered the error ImportError: cannot import name GwibberGtk. So, as suggested here, I installed gir1.2-gwibber-0.2 and I changed the first line of my code into

from gi.repository import Gwibber

But the problem is that this "Gwibber" object has no "Entry" method. What should I use to create an entry widget as before ? Will the method you advice me be compatible on computers on which my app will be distributed ?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

GwibberGtk is correct, you need gir1.2-gwibber-gtk-0.2

share|improve this answer

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.