def __init__(self): TabPlugin.__init__(self, ComputersTab.ui, toplevel_widget='vpaned1', extra_objects=['reg_liststore', 'unreg_liststore', 'reg_menu', 'edit_dialog', 'printer_dialog', 'available_store']) self.reg_store = self.builder.get_object('reg_liststore') self.reg_tv = self.builder.get_object('reg_tv') self.unreg_store = self.builder.get_object('unreg_liststore') self.unreg_iv = self.builder.get_object('unreg_iv') self.reg_menu = self.builder.get_object('reg_menu') self.edit_dialog = self.builder.get_object('edit_dialog') self.available_store = self.builder.get_object('available_store') self.name_box = self.builder.get_object('name_box') self.name_lbl = self.builder.get_object('name_lbl') self.ip_lbl = self.builder.get_object('ip_lbl') self.printer_dialog = self.builder.get_object('printer_dialog') self.printer_name_box = self.builder.get_object('printer_name_box') self.printer_mac_entry = self.builder.get_object('printer_mac_entry') self.populate() self.logger = logging.getLogger(TEXTBUFFER_LOGGER) self.printer_discover = PrinterDiscover() self.printer_discover.connect('printer_discovered', self.printer_discovered) self.printer_discover.connect('printer_losed', self.printer_losed) Dispatcher.connect('slave_discovered', self.discovered) Dispatcher.connect('slave_alive', self.discovered) Dispatcher.connect('slave_losed', self.losed) Dispatcher.connect('slave_dead', self.losed)
def __init__(self): TabPlugin.__init__(self, CalendarTab.ui, toplevel_widget='vpaned1') Dispatcher.connect('slave_discovered', self.discovered)