'settings edits default and check tools'

def mConfigure(self):

    self.get_interfaces = Refactor.get_interfaces()
    try:
        self.EditGateway.setText([self.get_interfaces[x] for x in self.get_interfaces.keys() if (x == 'gateway')][0])
    except Exception:
        pass
    self.EditApName.setText(self.FSettings.Settings.get_setting('accesspoint', 'ssid'))
    self.EditChannel.setValue(self.FSettings.Settings.get_setting('accesspoint', 'channel', format=int))
    self.SettingsEnable['PortRedirect'] = self.FSettings.redirectport.text()
    interfaces = self.get_interfaces['all']
    wireless = []
    for iface in interfaces:
        if search('wl', iface):
            wireless.append(iface)
    self.selectCard.addItems(wireless)
    if self.get_interfaces['activated'][0]:
        self.set_StatusConnected_Iface(True, self.get_interfaces['activated'][0])
    else:
        self.InternetShareWiFi = False
        self.set_StatusConnected_Iface(False, '')
    interface = self.FSettings.Settings.get_setting('accesspoint', 'interfaceAP')
    if ((interface != 'None') and (interface in self.get_interfaces['all'])):
        self.selectCard.setCurrentIndex(wireless.index(interface))
    driftnet = popen('which    driftnet').read().split('\n')
    dhcpd = popen('which    dhcpd').read().split('\n')
    hostapd = popen('which    hostapd').read().split('\n')
    xterm = popen('which    xterm').read().split('\n')
    lista = ['', '', driftnet[0], dhcpd[0], '', hostapd[0], xterm[0]]
    for i in lista:
        self.SettingsEnable['ProgCheck'].append(path.isfile(i))
