嗨,我正在学习 Gtk3 编程,我尝试使用 glade 我安装了它,但是当我尝试从 glade 加载文件时,我遇到了问题:
" AttributeError: 'gi.repository.Gtk' object has no attribute 'glade' "
或者当我只使用(Gtk.Builder)时:
" AttributeError: 'Builder' object has no attribute 'glade' "
我知道我应该在python3中安装glade 但是我现在不知道如何在下载后安装它>>__<<
谢谢你请帮助我
#!/usr/bin/python3.3
from gi.repository import Gtk
import pygtk
gu= Gtk.Builder()
gui = gu.glade.XML("1111.glade")
"AttributeError: 'Builder' object has no attribute 'glade'
#!/usr/bin/python3.3
from gi.repository import Gtk
import pygtk
gui = Gtk.glade.XML("1111.glade")
" AttributeError: 'gi.repository.Gtk' object has no attribute 'glade' "