python - 导入 gtk.glade Ubuntu 时出现运行时错误

标签 python ubuntu gtk runtime-error glade

在 Ubuntu 17.01 中导入 gtk.glade 时会引发 RuntimeError: sys.path must be a list of directory names。有任何想法吗?也许我缺少依赖项或其他东西。

最佳答案

您不应该使用 libglade 或 pygtk,因为它们是死项目。使用现代 PyGObject、Gtk3 和 GtkBuilder:https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Builder.html

关于python - 导入 gtk.glade Ubuntu 时出现运行时错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44169237/

相关文章:

python - 使用 matplotlib 为每个 x 轴值设置多个条形

python - 使用python过滤磁盘上的文件

c++ - Ubuntu 19.10 : Enabling and using Raspberry Pi Camera Module v2. 1

c++ - 有没有办法列出所有共享内存对象的名称?

python - 具有两列的组合框

Java 1.6 -> 1.7 JNLP = SIGSEGV

gtk - 抑制 Gtk.ToggleButton.set_active 上的信号

python - 语法正确,但错误?

python - 如何消除 "sys.excepthook is missing"错误?

c++ - Qt,链接器错误: can not find IGL