def on_save_clicked(self, widget):
file_save_dialog = Gtk.FileChooserDialog(
title="Save Session",
action=Gtk.FileChooserAction.SAVE,
buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
Gtk.STOCK_SAVE, Gtk.ResponseType.ACCEPT)
)
file_save_dialog.set_icon_from_file(self.images.logo_favicon_path)
file_save_dialog.set_current_name("Untilted.huba")
file_save_dialog.set_do_overwrite_confirmation(True)
file_save_dialog.set_modal(True)
file_save_dialog.connect("response", self.on_save_response)
file_save_dialog.run()
评论列表
文章目录