def __init__(self): self.tabs = [] self.xml = xml xml.signal_connect("on_quit_activate", self.destroy) xml.signal_connect("on_delete_clicked", self.delete) xml.signal_connect("on_add_clicked", self.add) xml.signal_connect("on_properties_clicked", self.properties) xml.signal_connect("on_local_clicked", self.on_local_clicked) self.add_page(statusPage.statusPage(xml)) if selinux.is_selinux_enabled() > 0: try: self.add_page(booleansPage.booleansPage(xml)) self.add_page(fcontextPage.fcontextPage(xml)) self.add_page(loginsPage.loginsPage(xml)) self.add_page(usersPage.usersPage(xml)) self.add_page(portsPage.portsPage(xml)) self.add_page(modulesPage.modulesPage(xml)) # modules self.add_page(domainsPage.domainsPage(xml)) # domains except ValueError as e: self.error(e.message) xml.signal_connect("on_quit_activate", self.destroy) xml.signal_connect("on_policy_activate", self.policy) xml.signal_connect("on_logging_activate", self.logging) xml.signal_connect("on_about_activate", self.on_about_activate) self.add_menu = xml.get_widget("add_menu_item") self.properties_menu = xml.get_widget("properties_menu_item") self.delete_menu = xml.get_widget("delete_menu_item")