src/eric7/MicroPython/MicroPythonWebreplDeviceInterface.py

branch
mpy_network
changeset 10016
8db27a64d434
parent 10012
d649d500a9a1
child 10019
e56089d00750
equal deleted inserted replaced
10015:9352f33732ae 10016:8db27a64d434
75 except ValueError: 75 except ValueError:
76 password, hostPort = None, connection 76 password, hostPort = None, connection
77 if password is None: 77 if password is None:
78 password, ok = QInputDialog.getText( 78 password, ok = QInputDialog.getText(
79 None, 79 None,
80 self.tr("WebRepl Password"), 80 self.tr("WebREPL Password"),
81 self.tr("Enter the WebRepl password:"), 81 self.tr("Enter the WebREPL password:"),
82 QLineEdit.EchoMode.Password, 82 QLineEdit.EchoMode.Password,
83 ) 83 )
84 if not ok: 84 if not ok:
85 return False 85 return False
86 86
95 if ok: 95 if ok:
96 ok = self.__socket.login(password) 96 ok = self.__socket.login(password)
97 if not ok: 97 if not ok:
98 EricMessageBox.warning( 98 EricMessageBox.warning(
99 None, 99 None,
100 self.tr("WebRepl Login"), 100 self.tr("WebREPL Login"),
101 self.tr( 101 self.tr(
102 "The login to the selected device 'webrepl' failed. The given" 102 "The login to the selected device 'webrepl' failed. The given"
103 " password may be incorrect." 103 " password may be incorrect."
104 ), 104 ),
105 ) 105 )

eric ide

mercurial