def OnOpen(self, event):
openFileDialog = wx.FileDialog(self, "Open i3 Config file", os.path.expanduser("~/.i3/"), "","i3 Config file |*", wx.FD_OPEN | wx.FD_FILE_MUST_EXIST)
if openFileDialog.ShowModal() == wx.ID_CANCEL:
return
cfg = Config(self.messager,openFileDialog.GetPath())
self.LoadConfig(cfg)
评论列表
文章目录