[英]Importing WebKit causes application to fail at start-up.
我正在使用Quickly制作应用程序,并且想向Web窗口添加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
看来您正在混合绑定。 如果您已经在使用GObject Introspection,请继续使用。 尝试:
from gi.repository import WebKit
或将旧的绑定用于GTK(pygtk)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.