diff -r f0a7469a2ad4 -r fb84d8489bc1 eric6/UI/UserInterface.py --- a/eric6/UI/UserInterface.py Sun Jul 07 14:58:07 2019 +0200 +++ b/eric6/UI/UserInterface.py Sun Jul 07 18:48:17 2019 +0200 @@ -907,6 +907,15 @@ UI.PixmapCache.getIcon("irc.png"), self.tr("IRC")) + if Preferences.getUI("ShowMicroPython"): + # Create the MicroPython part of the user interface + logging.debug("Creating MicroPython Widget...") + from MicroPython.MicroPythonReplWidget import MicroPythonReplWidget + self.microPythonRepl = MicroPythonReplWidget(self) + self.rToolbox.addItem(self.microPythonRepl, + UI.PixmapCache.getIcon("micropython"), + self.tr("MicroPython")) + #################################################### ## Populate the bottom toolbox #################################################### @@ -1095,6 +1104,15 @@ self.irc, UI.PixmapCache.getIcon("irc.png"), self.tr("IRC")) + if Preferences.getUI("ShowMicroPython"): + # Create the MicroPython part of the user interface + logging.debug("Creating MicroPython Widget...") + from MicroPython.MicroPythonReplWidget import MicroPythonReplWidget + self.microPythonRepl = MicroPythonReplWidget(self) + self.rightSidebar.addTab( + self.microPythonRepl, UI.PixmapCache.getIcon("micropython"), + self.tr("MicroPython")) + #################################################### ## Populate the bottom side bar ####################################################