def OnCWD(self,e):
panelphase = self.GetChildren()[1].GetPage(0)
if panelphase.pipeline_started == False:
cwd = self.CurrentWD()
dlg = wx.DirDialog(self, 'Set Working Directory', cwd, style=wx.DD_DEFAULT_STYLE, name="Change Current Working Directory")
if dlg.ShowModal() == wx.ID_OK:
os.chdir(dlg.GetPath())
dlg.Destroy()
评论列表
文章目录