コード例 #1
0
 def activate(self):
     LoggerGui.debug("FrameTab activate called")
     self.getting_psk = False
     self.set_code_text("")
     if not self.wpa_supplicant or not self.wpa_supplicant.get_status():
         self.status_message["text"] = ""
     self.dropdown_wii_u[
         "values"] = InterfaceUtil.get_wiiu_compatible_interfaces()
コード例 #2
0
 def activate(self):
     """
     Initializes the frame.
     :return: None
     """
     LoggerGui.debug("FrameRunServer activated")
     self.dropdown_wiiu_interface[
         "values"] = InterfaceUtil.get_wiiu_compatible_interfaces()
     self.dropdown_normal_interface[
         "values"] = InterfaceUtil.get_all_interfaces()
     self.dropdown_region["values"] = ["NONE", "NA"]
     self.label_wpa_status["text"] = self.wpa_supplicant.get_status() \
         if self.wpa_supplicant and self.wpa_supplicant.get_status() else WpaSupplicant.DISCONNECTED
     self.label_backend_status["text"] = self.drc_sim_c.get_status() \
         if self.drc_sim_c and self.drc_sim_c.get_status() else DrcSimC.STOPPED
     self.button_start.config(state="normal")
     self.button_stop.config(state="normal")
     self.label_interface_info.config(text="")