eric6/MicroPython/MicroPythonWidget.py

changeset 8121
9a2aa5353a32
parent 8117
aaa5e0eacd4e
child 8133
4d1d1c248f79
equal deleted inserted replaced
8120:84928e9f446f 8121:9a2aa5353a32
1252 if self.__device: 1252 if self.__device:
1253 menuEntries = self.__device.getDownloadMenuEntries() 1253 menuEntries = self.__device.getDownloadMenuEntries()
1254 if menuEntries: 1254 if menuEntries:
1255 downloadMenu = QMenu(self.tr("Downloads"), self.__superMenu) 1255 downloadMenu = QMenu(self.tr("Downloads"), self.__superMenu)
1256 for text, url in menuEntries: 1256 for text, url in menuEntries:
1257 downloadMenu.addAction( 1257 if text == "<separator>":
1258 text, 1258 downloadMenu.addSeparator()
1259 functools.partial(self.__downloadFromUrl, url) 1259 else:
1260 ) 1260 downloadMenu.addAction(
1261 text,
1262 functools.partial(self.__downloadFromUrl, url)
1263 )
1261 else: 1264 else:
1262 downloadMenu = None 1265 downloadMenu = None
1263 1266
1264 # populate the super menu 1267 # populate the super menu
1265 if self.__device: 1268 if self.__device:

eric ide

mercurial