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 |