Plugins/UiExtensionPlugins/Translator/Translator.py

changeset 6434
872d10fa686a
parent 6048
82ad8ec9548c
child 6645
ad476851d7e0
equal deleted inserted replaced
6433:92680b6a3585 6434:872d10fa686a
90 90
91 def __activateWidget(self): 91 def __activateWidget(self):
92 """ 92 """
93 Private slot to handle the activation of the project browser. 93 Private slot to handle the activation of the project browser.
94 """ 94 """
95 if self.__ui.layout == "Toolboxes": 95 uiLayoutType = self.__ui.getLayoutType()
96 if uiLayoutType == "Toolboxes":
96 self.__ui.hToolboxDock.show() 97 self.__ui.hToolboxDock.show()
97 self.__ui.hToolboxDock.setCurrentWidget(self.__widget) 98 self.__ui.hToolbox.setCurrentWidget(self.__widget)
98 elif self.__ui.layout == "Sidebars": 99 elif uiLayoutType == "Sidebars":
99 self.__ui.bottomSidebar.show() 100 self.__ui.bottomSidebar.show()
100 self.__ui.bottomSidebar.setCurrentWidget(self.__widget) 101 self.__ui.bottomSidebar.setCurrentWidget(self.__widget)
101 else: 102 else:
102 self.__widget.show() 103 self.__widget.show()
103 self.__widget.setFocus(Qt.ActiveWindowFocusReason) 104 self.__widget.setFocus(Qt.ActiveWindowFocusReason)

eric ide

mercurial