def __init__(self, device): glade_file = "ethernetconfig.glade" DeviceConfigDialog.__init__(self, glade_file, device) xml_signal_autoconnect(self.xml, { \ "on_aliasSupportCB_toggled" : self.on_aliasSupportCB_toggled, "on_hwAddressCB_toggled" : self.on_hwAddressCB_toggled, "on_hwProbeButton_clicked" : self.on_hwProbeButton_clicked, }) window = self.sharedtcpip_xml.get_widget('dhcpWindow') frame = self.sharedtcpip_xml.get_widget('dhcpFrame') vbox = self.xml.get_widget('generalVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device) window = self.sharedtcpip_xml.get_widget('routeWindow') frame = self.sharedtcpip_xml.get_widget('routeFrame') vbox = self.xml.get_widget('routeVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.route_init(self.sharedtcpip_xml, self.device, self.dialog) window = self.sharedtcpip_xml.get_widget('hardwareWindow') frame = self.sharedtcpip_xml.get_widget('hardwareFrame') vbox = self.xml.get_widget('hardwareVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.hardware_init(self.sharedtcpip_xml, self.device) self.hydrate()
def __init__(self, device): glade_file = "ADSLInterfaceDialog.glade" DeviceConfigDialog.__init__(self, glade_file, device) xml_signal_autoconnect( self.xml, { "on_tonlineButton_clicked": self.on_tonlineButton_clicked, "on_dialonDemandCB_clicked": self.on_dialonDemandCB_clicked, }) window = self.sharedtcpip_xml.get_widget('dhcpWindow') frame = self.sharedtcpip_xml.get_widget('dhcpFrame') vbox = self.xml.get_widget('generalVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device) window = self.sharedtcpip_xml.get_widget('routeWindow') frame = self.sharedtcpip_xml.get_widget('routeFrame') vbox = self.xml.get_widget('routeVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.route_init(self.sharedtcpip_xml, self.device, self.dialog) window = self.sharedtcpip_xml.get_widget('hardwareWindow') frame = self.sharedtcpip_xml.get_widget('hardwareFrame') vbox = self.xml.get_widget('hardwareVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.dsl_hardware_init(self.sharedtcpip_xml, self.device) self.hydrate()
def init_gui(self): # pylint: disable-msg=W0201 if self.xml: return glade_file = "sharedtcpip.glade" if not os.path.exists(glade_file): glade_file = GLADEPATH + glade_file if not os.path.exists(glade_file): glade_file = NETCONFDIR + glade_file self.sharedtcpip_xml = gtk.glade.XML(glade_file, None, domain=PROGNAME) glade_file = 'TokenRingInterfaceDruid.glade' if not os.path.exists(glade_file): glade_file = GLADEPATH + glade_file if not os.path.exists(glade_file): glade_file = NETCONFDIR + glade_file self.xml = gtk.glade.XML(glade_file, 'druid', domain=PROGNAME) xml_signal_autoconnect( self.xml, { "on_hostname_config_page_back": self.on_hostname_config_page_back, "on_hostname_config_page_next": self.on_hostname_config_page_next, "on_hostname_config_page_prepare": self.on_hostname_config_page_prepare, "on_hw_config_page_back": self.on_hw_config_page_back, "on_hw_config_page_next": self.on_hw_config_page_next, "on_hw_config_page_prepare": self.on_hw_config_page_prepare, "on_finish_page_finish": self.on_finish_page_finish, "on_finish_page_prepare": self.on_finish_page_prepare, "on_finish_page_back": self.on_finish_page_back }) window = self.sharedtcpip_xml.get_widget('dhcpWindow') frame = self.sharedtcpip_xml.get_widget('dhcpFrame') vbox = self.xml.get_widget('generalVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device) self.druid = self.xml.get_widget('druid') for i in self.druid.get_children(): self.druid.remove(i) self.druids.append(i) self.hwDruid = TokenringHardware(self.toplevel) self.hwDruid.has_tokenring = None self.druids = [self.druids[0]] + self.hwDruid.druids[:]\ + self.druids[1:]
def do_init(self): # pylint: disable-msg=W0201 xml_signal_autoconnect( self.xml, { "on_essidAutoButton_toggled": self.on_essidAutoButton_toggled, }) window = self.sharedtcpip_xml.get_widget('dhcpWindow') frame = self.sharedtcpip_xml.get_widget('dhcpFrame') vbox = self.xml.get_widget('generalVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device) window = self.sharedtcpip_xml.get_widget('routeWindow') frame = self.sharedtcpip_xml.get_widget('routeFrame') vbox = self.xml.get_widget('routeVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.route_init(self.sharedtcpip_xml, self.device, self.dialog) window = self.sharedtcpip_xml.get_widget('hardwareWindow') frame = self.sharedtcpip_xml.get_widget('hardwareFrame') vbox = self.xml.get_widget('hardwareVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.hardware_init(self.sharedtcpip_xml, self.device) self.modestore = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING) for i in modeList: self.modestore.append(i) combo = self.xml.get_widget("modeCombo") combo.set_model(self.modestore) cell = gtk.CellRendererText() combo.pack_start(cell, True) combo.add_attribute(cell, 'text', 0) self.xml.get_widget("rateCombo").set_popdown_strings( (_("Auto"), "11M", "5.5M", "2M", "1M")) combo.connect("changed", self.on_modeChanged) self.initialized = True
def __init__(self, device): glade_file = "DialupInterfaceDialog.glade" DeviceConfigDialog.__init__(self, glade_file, device) self.edit = False xml_signal_autoconnect(self.xml, { "on_chooseButton_clicked" : self.on_chooseButton_clicked, "on_helpButton_clicked" : self.on_helpButton_clicked, "on_callbackCB_toggled" : self.on_callbackCB_toggled, "on_pppOptionEntry_changed" : self.on_pppOptionEntry_changed, "on_pppOptionAddButton_clicked" : \ self.on_pppOptionAddButton_clicked, "on_pppOptionList_select_row" : self.on_pppOptionList_select_row, "on_ipppOptionList_unselect_row" : \ self.on_ipppOptionList_unselect_row, "on_pppOptionDeleteButton_clicked" : \ self.on_pppOptionDeleteButton_clicked, "on_tonlineButton_clicked" : self.on_tonlineButton_clicked, "on_showPassword_clicked" : self.on_showPassword_clicked, }) self.noteBook = self.xml.get_widget("dialupNotebook") self.xml.get_widget("pppOptionList").column_titles_passive() window = self.sharedtcpip_xml.get_widget('dhcpWindow') frame = self.sharedtcpip_xml.get_widget('dhcpFrame') vbox = self.xml.get_widget('generalVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device) window = self.sharedtcpip_xml.get_widget('routeWindow') frame = self.sharedtcpip_xml.get_widget('routeFrame') vbox = self.xml.get_widget('routeVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.route_init(self.sharedtcpip_xml, self.device, self.dialog) self.hydrate()
def __init__(self, device): glade_file = "QethConfig.glade" DeviceConfigDialog.__init__(self, glade_file, device) xml_signal_autoconnect(self.xml, { \ "on_aliasSupportCB_toggled" : self.on_aliasSupportCB_toggled, }) window = self.sharedtcpip_xml.get_widget('dhcpWindow') frame = self.sharedtcpip_xml.get_widget('dhcpFrame') vbox = self.xml.get_widget('generalVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device) window = self.sharedtcpip_xml.get_widget('routeWindow') frame = self.sharedtcpip_xml.get_widget('routeFrame') vbox = self.xml.get_widget('routeVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.route_init(self.sharedtcpip_xml, self.device, self.dialog) window = self.sharedtcpip_xml.get_widget('hardwareWindow') frame = self.sharedtcpip_xml.get_widget('hardwareFrame') vbox = self.xml.get_widget('hardwareVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.hardware_init(self.sharedtcpip_xml, self.device) self.sharedtcpip_xml.get_widget("hardwareMACToggle").set_sensitive( false) self.sharedtcpip_xml.get_widget("hardwareMACEntry").set_sensitive( false) self.sharedtcpip_xml.get_widget("hardwareProbeButton").set_sensitive( false) self.hydrate()
def init_gui(self): # pylint: disable-msg=W0201 if self.xml: return glade_file = "sharedtcpip.glade" if not os.path.exists(glade_file): glade_file = GLADEPATH + glade_file if not os.path.exists(glade_file): glade_file = NETCONFDIR + glade_file self.sharedtcpip_xml = gtk.glade.XML(glade_file, None, domain=PROGNAME) glade_file = 'QethInterfaceDruid.glade' if not os.path.exists(glade_file): glade_file = GLADEPATH + glade_file if not os.path.exists(glade_file): glade_file = NETCONFDIR + glade_file self.xml = gtk.glade.XML(glade_file, 'druid', domain=PROGNAME) xml_signal_autoconnect(self.xml, { "on_hostname_config_page_back" : \ self.on_hostname_config_page_back, "on_hostname_config_page_next" : \ self.on_hostname_config_page_next, "on_hostname_config_page_prepare" : \ self.on_hostname_config_page_prepare, "on_hw_config_page_back" : self.on_hw_config_page_back, "on_hw_config_page_next" : self.on_hw_config_page_next, "on_hw_config_page_prepare" : self.on_hw_config_page_prepare, "on_finish_page_finish" : self.on_finish_page_finish, "on_finish_page_prepare" : self.on_finish_page_prepare, "on_finish_page_back" : self.on_finish_page_back } ) #print "EthernetInterface getDeviceList" self.devicelist = getDeviceList() df = getDeviceFactory() devclass = df.getDeviceClass(self.connection_type) if devclass: self.device = devclass() else: self.device = NCPluginDevQeth.DevQeth() self.device.Type = self.connection_type self.device.OnBoot = True self.device.AllowUser = False self.device.IPv6Init = False self.profilelist = NCProfileList.getProfileList() self.hw_sel = 0 self.hwPage = False window = self.sharedtcpip_xml.get_widget('dhcpWindow') frame = self.sharedtcpip_xml.get_widget('dhcpFrame') vbox = self.xml.get_widget('generalVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device) self.druids = [] self.druid = self.xml.get_widget('druid') for i in self.druid.get_children(): self.druid.remove(i) self.druids.append(i) if self.connection_type == QETH: self.hwDruid = QethHardware(self.toplevel) self.hwDruid.has_ethernet = None self.druids = [self.druids[0]] + self.hwDruid.druids[:]\ + self.druids[1:]
def init_gui(self): # pylint: disable-msg=W0201 if self.xml: return if request_rpms(["wireless-tools"]): return glade_file = "sharedtcpip.glade" if not os.path.exists(glade_file): glade_file = GLADEPATH + glade_file if not os.path.exists(glade_file): glade_file = NETCONFDIR + glade_file self.sharedtcpip_xml = gtk.glade.XML(glade_file, None, domain=PROGNAME) glade_file = 'WirelessInterfaceDruid.glade' if not os.path.exists(glade_file): glade_file = GLADEPATH + glade_file if not os.path.exists(glade_file): glade_file = NETCONFDIR + glade_file self.xml = gtk.glade.XML(glade_file, 'druid', domain=PROGNAME) xml_signal_autoconnect(self.xml, { "on_hostname_config_page_back" : \ self.on_hostname_config_page_back, "on_hostname_config_page_next" : \ self.on_hostname_config_page_next, "on_hostname_config_page_prepare" : \ self.on_hostname_config_page_prepare, "on_wireless_config_page_back" : \ self.on_wireless_config_page_back, "on_wireless_config_page_next" : \ self.on_wireless_config_page_next, "on_wireless_config_page_prepare" : \ self.on_wireless_config_page_prepare, "on_hw_config_page_back" : self.on_hw_config_page_back, "on_hw_config_page_next" : self.on_hw_config_page_next, "on_hw_config_page_prepare" : self.on_hw_config_page_prepare, "on_finish_page_finish" : self.on_finish_page_finish, "on_finish_page_prepare" : self.on_finish_page_prepare, "on_finish_page_back" : self.on_finish_page_back, "on_essidAutoButton_toggled" : self.on_essidAutoButton_toggled, } ) window = self.sharedtcpip_xml.get_widget('dhcpWindow') frame = self.sharedtcpip_xml.get_widget('dhcpFrame') vbox = self.xml.get_widget('generalVbox') window.remove(frame) vbox.pack_start(frame) sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device) self.druid = self.xml.get_widget('druid') for i in self.druid.get_children(): self.druid.remove(i) self.druids.append(i) self.hwDruid = ethernetHardware(self.toplevel) self.hwDruid.has_ethernet = None self.druids = [self.druids[0]] + self.hwDruid.druids[:]\ + self.druids[1:] self.modestore = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING) for i in modeList: self.modestore.append(i) combo = self.xml.get_widget("modeCombo") combo.set_model(self.modestore) cell = gtk.CellRendererText() combo.pack_start(cell, True) combo.add_attribute(cell, 'text', 0) combo.set_active(0) self.xml.get_widget("rateCombo").set_popdown_strings( (_("Auto"), "11M", "5.5M", "2M", "1M"))