Exemplo n.º 1
0
 def menu_click_open(self, widget, ssid, bssid, wificard):
     if bssid in open(wpa_supplican).read():
         connectToSsid(ssid, wificard)
     else:
         Open_Wpa_Supplicant(ssid, bssid, wificard)
     self.updateinfo()
     self.ifruning = False
Exemplo n.º 2
0
 def menu_click_open(self, widget, ssid, wificard):
     if f'"{ssid}"' in open("/etc/wpa_supplicant.conf").read():
         connectToSsid(ssid, wificard)
     else:
         Open_Wpa_Supplicant(ssid, wificard)
     self.updateinfo()
Exemplo n.º 3
0
 def menu_click_open(self, widget, ssid, bssid):
     Open_Wpa_Supplicant(ssid, bssid)
     if not self.thr.is_alive():
         self.thr.start()
     else:
         self.nmMenu = self.nm_menu()