Ejemplo n.º 1
0
 def __repr__(self):
     if self.paths:
         s = eString()
         for p in self.paths:
             s+=p+'\n'
         return str(s)
     else:
         return 'No files selected.'
Ejemplo n.º 2
0
 def __str__(self):
     s = eestring.eString()
     firstishead = False
     startarg = 0
     if isinstance(self.args[0],str):
         firstishead = True
         s += self.args[0]
         startarg = 1
     
     for arg in self.args[startarg:]:
         s += '\n'
         if isinstance(arg,tuple) and len(arg) == 2:
             s += '  '+arg[0]+': '
             s += repr(arg[1])
         else:
             s += ' - '
             s += repr(arg)
     return str(s)