def __init__(self, conn, suite, trait, script): self.conn = conn self.suite = suite self.trait = trait self.script = TraitScript(self.conn, self.suite) self.script.set_trait(trait) self.current_script = script text = self.script.read_script(self.current_script) TextScroll.__init__(self, text)
def machine_selected(self, listbox, row, column, event): machine = listbox.get_selected_data()[0][0] print 'machine selected', machine text = TextScroll(self._print_items(machine)) if machine not in self.pages: self.append_page(text, machine) self.set_current_page(machine)
def append_script(self, name, text=''): page = TextScroll(text, name=name) page.tview.connect('populate-popup', self.populate_menu, self.menu) self.append_page(page, name)
def __init__(self, name='_DebconfEditor'): ListNoteBook.__init__(self) self.set_name(name) self._debconf = {} self.reset_rows() self.append_page(TextScroll(''), 'data')