def __init__(self, interface=None, parent=None): NetworkCommonWizard.__init__(self, parent=parent) self.q_netobject = QNetObject.getInstance() self.vlan_editor = VlanEditor(raw_device=interface) vlan_page = VlanPage(self.vlan_editor) vlan_page.validatePage() self._setPage(VLAN, vlan_page) self.connect(self.vlan_editor, SIGNAL('modified'), self.reemit)
def __init__(self, interface, parent=None): NetworkCommonWizard.__init__(self, parent) self.editor = NetFrame(interface) self.interface_page = InterfacePage() self._setPage(0, self.interface_page) self.net_page = NetPage(self.editor) self._setPage(1, self.net_page) self.connect(self.interface_page, SIGNAL('changed'), self.editor.setInterface) if interface is not None: self.setStartId(1) #Todo: find a way to allow going back self.interface_page.setInterface(interface) else: self.interface_page.propagate() self.connect(self, SIGNAL('accepted()'), self._done)
def __init__(self, parent=None): NetworkCommonWizard.__init__(self, parent=None) self.q_netobject = QNetObject.getInstance() bonding_page = BondingPage(self.q_netobject) self._setPage(BONDING, bonding_page)