我从菜单栏项启动 GtkAboutDialog。这是切换对话框的函数:
def open_about(self, *args):
x = about.run()
if x == -4:
# When pressing close;
about.destroy()
如果我单击有关项目的菜单栏一次,就没有问题,对话框将打开,我可以按照您的预期将其关闭。但如果我再次单击,则会出现一个空窗口。只能使用一次。
(translate.py:31837): Gtk-CRITICAL **: 19:44:24.373: gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed
(translate.py:31837): Gtk-CRITICAL **: 19:44:24.373: gtk_label_set_markup: assertion 'GTK_IS_LABEL (label)' failed
(translate.py:31837): Gtk-CRITICAL **: 19:44:24.376: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed
沧海一幻觉
相关分类