def FolderChoice(self): dlg = wx.DirDialog(self, self.request_description, style=wx.DD_DEFAULT_STYLE | wx.DD_NEW_DIR_BUTTON) addr = self.FindWindowById(wdr.ID_ADDRESS) dlg.SetPath(awu.ExpandPath(addr.GetValue())) if dlg.ShowModal() == wx.ID_OK: addr.SetValue(awu.ReducePath(dlg.GetPath())) dlg.Destroy()
def AppendPathAlt(x): global pathalt pathalt.append(awu.ExpandPath(x))
def SetPathSub(x): global pathsub pathsub = awu.ExpandPath(x)
def SetPathImg(x): global pathimg pathimg = awu.ExpandPath(x)
def SetPathPdf(x): global pathpdf pathpdf = awu.ExpandPath(x)
def SetPathRpt(x): global pathrpt pathrpt = awu.ExpandPath(x)