import_sccprofile.py 文件源码

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

项目:sc-controller 作者: kozec 项目源码 文件源码
def on_btImportSccprofile_clicked(self, *a):
        # Create filters
        f1 = Gtk.FileFilter()
        f1.set_name("SC-Controller Profile or Archive")
        f1.add_pattern("*.sccprofile")
        f1.add_pattern("*.sccprofile.tar.gz")

        # Create dialog
        d = Gtk.FileChooserNative.new(_("Import Profile..."),
                self.window, Gtk.FileChooserAction.OPEN)
        d.add_filter(f1)
        if d.run() == Gtk.ResponseType.ACCEPT:
            if d.get_filename().endswith(".tar.gz"):
                self.import_scc_tar(d.get_filename())
            else:
                self.import_scc(d.get_filename())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号