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
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()
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()