eric6/UI/UserInterface.py

branch
micropython
changeset 7054
fb84d8489bc1
parent 7038
3bd9825cf895
child 7065
e3d04faced34
equal deleted inserted replaced
7053:f0a7469a2ad4 7054:fb84d8489bc1
905 self.irc = IrcWidget(self) 905 self.irc = IrcWidget(self)
906 self.rToolbox.addItem(self.irc, 906 self.rToolbox.addItem(self.irc,
907 UI.PixmapCache.getIcon("irc.png"), 907 UI.PixmapCache.getIcon("irc.png"),
908 self.tr("IRC")) 908 self.tr("IRC"))
909 909
910 if Preferences.getUI("ShowMicroPython"):
911 # Create the MicroPython part of the user interface
912 logging.debug("Creating MicroPython Widget...")
913 from MicroPython.MicroPythonReplWidget import MicroPythonReplWidget
914 self.microPythonRepl = MicroPythonReplWidget(self)
915 self.rToolbox.addItem(self.microPythonRepl,
916 UI.PixmapCache.getIcon("micropython"),
917 self.tr("MicroPython"))
918
910 #################################################### 919 ####################################################
911 ## Populate the bottom toolbox 920 ## Populate the bottom toolbox
912 #################################################### 921 ####################################################
913 922
914 # Create the task viewer part of the user interface 923 # Create the task viewer part of the user interface
1092 from Network.IRC.IrcWidget import IrcWidget 1101 from Network.IRC.IrcWidget import IrcWidget
1093 self.irc = IrcWidget(self) 1102 self.irc = IrcWidget(self)
1094 self.rightSidebar.addTab( 1103 self.rightSidebar.addTab(
1095 self.irc, UI.PixmapCache.getIcon("irc.png"), 1104 self.irc, UI.PixmapCache.getIcon("irc.png"),
1096 self.tr("IRC")) 1105 self.tr("IRC"))
1106
1107 if Preferences.getUI("ShowMicroPython"):
1108 # Create the MicroPython part of the user interface
1109 logging.debug("Creating MicroPython Widget...")
1110 from MicroPython.MicroPythonReplWidget import MicroPythonReplWidget
1111 self.microPythonRepl = MicroPythonReplWidget(self)
1112 self.rightSidebar.addTab(
1113 self.microPythonRepl, UI.PixmapCache.getIcon("micropython"),
1114 self.tr("MicroPython"))
1097 1115
1098 #################################################### 1116 ####################################################
1099 ## Populate the bottom side bar 1117 ## Populate the bottom side bar
1100 #################################################### 1118 ####################################################
1101 1119

eric ide

mercurial