def __ask_import__(self, *args): if not self._import_box: #print args #print '__import__' themes = self.cmd.getall(['theme'], 'themes') self._import_box = CList('hello') self._import_box.set_rows(themes) self._import_box.set_ok(self.__import_ok__)
def __hello__(self, listbox, row, column, event): self.statement.table = listbox.get_selected_data()[0]['table'] table = self.statement.table tb = CList(table, name=table) rows = self.cmd.getall('*', table) cols = [] if len(rows): cols = rows[0].keys() tb.set_rows(rows, cols) tb.set_usize(400,200)