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()+"'")
评论列表
文章目录