Exemplo n.º 1
0
 def load(self):
     n = len(TableLogManager.get_titles())
     if n > 0: return True
     IPy.alert('No table opened!')
     return False
Exemplo n.º 2
0
 def run(self, para=None):
     if para['name'] == 'All':
         for i in TableLogManager.get_titles():
             TableLogManager.close(i)
     else:
         TableLogManager.close(para['name'])
Exemplo n.º 3
0
 def add_tab(self, title, key, unit):
     titles = TableLogManager.get_titles()
     self.add_choice(titles, str, title, key, unit)
     self.para[key] = titles[0]
     return True
Exemplo n.º 4
0
 def load(self):
     TableKiller.para = {'name': 'All'}
     titles = ['All'] + TableLogManager.get_titles()
     TableKiller.view = [(list, titles, str, 'Name', 'name', 'selected')]
     return True