Ejemplo n.º 1
0
def get_sett():
    info = wifi.show_wifi()
    try :
        s = "Mode : %s SSID name : %s Max number of clients : %s Authentication : %s"%(info['Mode'],info['SSID name'],info['Max number of clients'],info['Authentication'])
    except KeyError:
        s = ""
        for i in info:
            s+= i + " : " + info[i]+ " "
    sett_text.set(s)
    return s
Ejemplo n.º 2
0
def get_status():
    info = wifi.show_wifi()
    stat = info['Status']
    if stat == 'Started\r':
        s = "Status : %s Number of clients : %s  BSSID : %s Radio type : %s Channel : %s"%(info['Status'],info['Number of clients'],info['BSSID'],info['Radio type'],info['Channel'])
        h = 420
        c = 'dark green'
    else:
        h = 340
        s = "Status : %s"%(info['Status'])
        c = 'red'
    status_text.set(s)
    center_window(300,h)
    return s, h, c