Rob*_*inJ 1 python gtk pygtk webkit canonical-quickly
我正在使用Quickly创建一个应用程序,我想在我的窗口中添加一个Webkit小部件.我认为"应该足够容易",但一如既往,它可能不那么容易.
从我添加的那一刻起import webkit,应用程序无法启动.
robin@RobinJ:~/Ubuntu One/Python/gtkreddit$ quickly run
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
import gobject._gobject
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: specified class size for type `PyGtkGenericCellRenderer' is smaller than the parent type's `GtkCellRenderer' class size
from gtk import _gtk
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion `node != NULL' failed
from gtk import _gtk
Run Code Online (Sandbox Code Playgroud)
看来你正在混合绑定.如果您已经在使用GObject Introspection,那么请坚持下去.尝试:
from gi.repository import WebKit
Run Code Online (Sandbox Code Playgroud)
或者使用旧的绑定GTK(pygtk).
| 归档时间: |
|
| 查看次数: |
322 次 |
| 最近记录: |