src/eric7/MicroPython/MicroPythonWidget.py

branch
mpy_network
changeset 9887
52a659bdc65a
parent 9878
a82014a9e57b
child 9895
61b6e99648b5
equal deleted inserted replaced
9886:1a4f05b0dc00 9887:52a659bdc65a
633 self.connectButton.setIcon(EricPixmapCache.getIcon("linkConnect")) 633 self.connectButton.setIcon(EricPixmapCache.getIcon("linkConnect"))
634 self.connectButton.setToolTip( 634 self.connectButton.setToolTip(
635 self.tr("Press to connect the selected device") 635 self.tr("Press to connect the selected device")
636 ) 636 )
637 637
638 if not connected and self.__wifiMenu and self.__wifiMenu.isTearOffMenuVisible(): 638 if not connected:
639 self.__wifiMenu.hideTearOffMenu() 639 for menu in (self.__wifiMenu, self.__btMenu, self.__ethernetMenu):
640 if menu and menu.isTearOffMenuVisible():
641 menu.hideTearOffMenu()
640 642
641 def isConnected(self): 643 def isConnected(self):
642 """ 644 """
643 Public method to get the MicroPython device connection state. 645 Public method to get the MicroPython device connection state.
644 646

eric ide

mercurial