main.py 文件源码

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

项目:i3ColourChanger 作者: PMunch 项目源码 文件源码
def OnCreateSnippet(self,event):
        openFileDialog = wx.FileDialog(self, "Save i3 Colour snippet file", os.path.expanduser("~/.i3/"), "","i3 Colour snippet file |*", wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT)
        if openFileDialog.ShowModal() == wx.ID_CANCEL:
            return
        open(openFileDialog.GetPath(), 'w').close()
        self.config.updateConfig(openFileDialog.GetPath())
        os.system("rm '"+openFileDialog.GetPath()+"'")
        os.system("mv '/tmp/i3tmpconf' '"+openFileDialog.GetPath()+"'")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号