src/eric7/UI/UserInterface.py

branch
eric7
changeset 9966
27f2437e6eea
parent 9947
ba47e3f454d8
child 9971
773ad1f1ed22
equal deleted inserted replaced
9964:a298db96ba65 9966:27f2437e6eea
1443 ## Set the start index of each side bar 1443 ## Set the start index of each side bar
1444 #################################################### 1444 ####################################################
1445 1445
1446 self.leftSidebar.setCurrentIndex(0) 1446 self.leftSidebar.setCurrentIndex(0)
1447 if self.rightSidebar: 1447 if self.rightSidebar:
1448 self.rightSidebar.setCurrentIndex(0) 1448 if self.__helpViewerWidget is not None:
1449 self.rightSidebar.setCurrentWidget(self.__helpViewerWidget)
1450 else:
1451 self.rightSidebar.setCurrentIndex(0)
1449 self.bottomSidebar.setCurrentIndex(0) 1452 self.bottomSidebar.setCurrentIndex(0)
1450 1453
1451 # create the central widget 1454 # create the central widget
1452 logging.debug("Creating central widget...") 1455 logging.debug("Creating central widget...")
1453 cw = self.centralWidget() # save the current central widget 1456 cw = self.centralWidget() # save the current central widget
5796 Public slot to handle the activation of the Code Documentation Viewer. 5799 Public slot to handle the activation of the Code Documentation Viewer.
5797 5800
5798 @param switchFocus flag indicating to transfer the input focus 5801 @param switchFocus flag indicating to transfer the input focus
5799 @type bool 5802 @type bool
5800 """ 5803 """
5801 if self.codeDocumentationViewer is not None: 5804 if self.codeDocumentationViewer is not None and (
5805 switchFocus or self.codeDocumentationViewer.isEnabled()
5806 ):
5802 if self.__layoutType == "Toolboxes": 5807 if self.__layoutType == "Toolboxes":
5803 self.rToolboxDock.show() 5808 self.rToolboxDock.show()
5804 self.rToolbox.setCurrentWidget(self.codeDocumentationViewer) 5809 self.rToolbox.setCurrentWidget(self.codeDocumentationViewer)
5805 elif self.__layoutType == "Sidebars": 5810 elif self.__layoutType == "Sidebars":
5806 self.__activateLeftRightSidebarWidget(self.codeDocumentationViewer) 5811 self.__activateLeftRightSidebarWidget(self.codeDocumentationViewer)

eric ide

mercurial