我從菜單欄項(xiàng)啟動(dòng) GtkAboutDialog。這是切換對(duì)話框的函數(shù):def open_about(self, *args): x = about.run() if x == -4: # When pressing close; about.destroy()如果我單擊有關(guān)項(xiàng)目的菜單欄一次,就沒有問題,對(duì)話框?qū)⒋蜷_,我可以按照您的預(yù)期將其關(guān)閉。但如果我再次單擊,則會(huì)出現(xiàn)一個(gè)空窗口。只能使用一次。(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
按兩次時(shí) GtkAboutDialog 不起作用
慕田峪4524236
2023-07-05 18:03:57