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