def get_path(self, dlg): if isinstance(dlg, wx.DirDialog): return maybe_quote(dlg.GetPath()) else: paths = dlg.GetPaths() return maybe_quote(paths[0]) if len(paths) < 2 else ' '.join( map(maybe_quote, paths))
def get_path(self, dlg): if isinstance(dlg, wx.DirDialog): return maybe_quote(dlg.GetPath()) else: paths = dlg.GetPaths() return maybe_quote(paths[0]) if len(paths) < 2 else ' '.join(map(maybe_quote, paths))
def getValue(self): value = self.text_box.GetValue() if self.option_string and value: return '{0} {1}'.format(self.option_string, maybe_quote(value)) else: return maybe_quote(value) if value else ''