self["config"] = ConfigList(self.list)
self.createSetup()
- self["introduction"] = Label("Press OK to activate the settings.")
+ self["introduction"] = Label(_("Press OK to activate the settings."))
def createSetup(self):
self.list = []
- self.list.append(getConfigListEntry(_("Use DHCP"), config.network.dhcp))
+ self.dhcpEntry = getConfigListEntry(_("Use DHCP"), config.network.dhcp)
+ self.list.append(self.dhcpEntry)
self.list.append(getConfigListEntry(_('IP Address'), config.network.ip))
if (config.network.dhcp.value == 0):
self.list.append(getConfigListEntry(_('Netmask'), config.network.netmask))
def newConfig(self):
print self["config"].getCurrent()
- if self["config"].getCurrent()[0] == _("Use DHCP"):
+ if self["config"].getCurrent() == self.dhcpEntry:
self.createSetup()
def keyLeft(self):
for x in self["config"].list:
x[1].cancel()
iNetwork.loadNetworkConfig()
- self.close()
\ No newline at end of file
+ self.close()