示例#1
0
 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))
示例#2
0
 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))
示例#3
0
 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 ''
示例#4
0
 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 ''