saveasdialog.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:Dict-O-nator 作者: theawless 项目源码 文件源码
def __init__(self, window: Gtk.Window):

        """Constructor.

        :param window: current window to set as parent.
        """
        self.owner = window
        self.file_chooser = Gtk.FileChooserDialog("Save file", window, Gtk.FileChooserAction.SAVE, (
            Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_SAVE, Gtk.ResponseType.OK))
        # Sets whether we get the overwrite confirmation
        self.file_chooser.set_do_overwrite_confirmation(True)
        self.save_possible = False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号