104 @pyqtSlot() |
104 @pyqtSlot() |
105 def __connectWifi(self): |
105 def __connectWifi(self): |
106 """ |
106 """ |
107 Private slot to connect the current device to a WiFi network. |
107 Private slot to connect the current device to a WiFi network. |
108 """ |
108 """ |
|
109 # TODO: add country to WiFi connection |
109 from .WifiConnectionDialog import WifiConnectionDialog |
110 from .WifiConnectionDialog import WifiConnectionDialog |
110 |
111 |
111 dlg = WifiConnectionDialog(parent=self.__mpy) |
112 dlg = WifiConnectionDialog(parent=self.__mpy) |
112 if dlg.exec() == QDialog.DialogCode.Accepted: |
113 if dlg.exec() == QDialog.DialogCode.Accepted: |
113 ssid, password, hostname = dlg.getConnectionParameters() |
114 ssid, password, hostname = dlg.getConnectionParameters() |