Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不确定关闭模式窗口的最佳方法是什么(这是定义为 window.set_modal (true) 而不是 Gtk.Dialog 的 Gtk.Window)。
我想在窗口中用一个按钮用Gtk.WIndow.destroy() 连接一个函数,但是效果不好。
我读到您应该使用“删除事件”,但我不知道如何实现它。有人在精灵中有一个例子吗?谢谢你。