我试着像这样侮辱Gtk:
from gi.repository import Gtk
我收到以下错误:
ImportError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject"
我在尝试from gi.repository import GObject
请帮我解决这个问题!
答案 0 :(得分:2)
我重新安装了python-gobject
和python-gobject-2
,现在一切正常!