UI/UserInterface.py

branch
maintenance
changeset 6050
25a4ddb25ca4
parent 6004
548a9ba8c970
parent 6048
82ad8ec9548c
child 6166
bace7fb85a01
equal deleted inserted replaced
6005:6914826302ae 6050:25a4ddb25ca4
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 2
3 # Copyright (c) 2002 - 2017 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2002 - 2018 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the main user interface. 7 Module implementing the main user interface.
8 """ 8 """
1463 """<b>Activate Debug-Viewer</b>""" 1463 """<b>Activate Debug-Viewer</b>"""
1464 """<p>This switches the input focus to the Debug-Viewer""" 1464 """<p>This switches the input focus to the Debug-Viewer"""
1465 """ window.</p>""" 1465 """ window.</p>"""
1466 )) 1466 ))
1467 self.debugViewerActivateAct.triggered.connect( 1467 self.debugViewerActivateAct.triggered.connect(
1468 self.__activateDebugViewer) 1468 self.activateDebugViewer)
1469 self.actions.append(self.debugViewerActivateAct) 1469 self.actions.append(self.debugViewerActivateAct)
1470 self.addAction(self.debugViewerActivateAct) 1470 self.addAction(self.debugViewerActivateAct)
1471 1471
1472 self.shellActivateAct = E5Action( 1472 self.shellActivateAct = E5Action(
1473 self.tr('Shell'), 1473 self.tr('Shell'),
3957 self.leftSidebar.setCurrentWidget(self.multiProjectBrowser) 3957 self.leftSidebar.setCurrentWidget(self.multiProjectBrowser)
3958 else: 3958 else:
3959 self.multiProjectBrowser.show() 3959 self.multiProjectBrowser.show()
3960 self.multiProjectBrowser.setFocus(Qt.ActiveWindowFocusReason) 3960 self.multiProjectBrowser.setFocus(Qt.ActiveWindowFocusReason)
3961 3961
3962 def __activateDebugViewer(self): 3962 def activateDebugViewer(self):
3963 """ 3963 """
3964 Private slot to handle the activation of the debug viewer. 3964 Public slot to handle the activation of the debug viewer.
3965 """ 3965 """
3966 if self.layoutType == "Toolboxes": 3966 if self.layoutType == "Toolboxes":
3967 self.rToolboxDock.show() 3967 self.rToolboxDock.show()
3968 self.rToolbox.setCurrentWidget(self.debugViewer) 3968 self.rToolbox.setCurrentWidget(self.debugViewer)
3969 elif self.layoutType == "Sidebars": 3969 elif self.layoutType == "Sidebars":

eric ide

mercurial