src/eric7/MicroPython/MicroPythonWebreplUrlsConfigDialog.py

branch
eric7
changeset 10019
e56089d00750
parent 10010
8a68a7a7ab88
child 10439
21c28b0f9e41
equal deleted inserted replaced
10018:53315c3db26b 10019:e56089d00750
107 Private slot to edit the selected WebREPL connection. 107 Private slot to edit the selected WebREPL connection.
108 """ 108 """
109 itm = self.webreplUrlsList.selectedItems()[0] 109 itm = self.webreplUrlsList.selectedItems()[0]
110 dlg = MicroPythonWebreplUrlAddEditDialog( 110 dlg = MicroPythonWebreplUrlAddEditDialog(
111 self.__definedNames(), 111 self.__definedNames(),
112 connectionParams=(itm.text(0), itm.text(1), itm.text(2)), 112 connectionParams=(
113 itm.text(0),
114 itm.text(1),
115 itm.text(2),
116 itm.data(0, Qt.ItemDataRole.UserRole),
117 ),
113 parent=self, 118 parent=self,
114 ) 119 )
115 if dlg.exec() == QDialog.DialogCode.Accepted: 120 if dlg.exec() == QDialog.DialogCode.Accepted:
116 name, description, url, deviceType = dlg.getWebreplUrl() 121 name, description, url, deviceType = dlg.getWebreplUrl()
117 itm.setText(0, name) 122 itm.setText(0, name)

eric ide

mercurial