예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
 def __init__(self, name='_DebconfEditor'):
     ListNoteBook.__init__(self)
     self.set_name(name)
     self._debconf = {}
     self.reset_rows()
     self.append_page(TextScroll(''), 'data')