PluginPipxInterface.py

changeset 15
2fb8d19c38ae
parent 7
9a98f7260372
child 17
8c52c75a860c
equal deleted inserted replaced
14:12413552ae0d 15:2fb8d19c38ae
92 @param _configDlg reference to the configuration dialog (unused) 92 @param _configDlg reference to the configuration dialog (unused)
93 @type ConfigurationWidget 93 @type ConfigurationWidget
94 @return reference to the configuration page 94 @return reference to the configuration page
95 @rtype AutoCompletionRopePage 95 @rtype AutoCompletionRopePage
96 """ 96 """
97 from PipxInterface.ConfigurationPage.PipxPage import PipxPage # noqa: I102
98
97 global pipxInterfacePluginObject 99 global pipxInterfacePluginObject
98 from PipxInterface.ConfigurationPage.PipxPage import PipxPage # noqa: I101
99 100
100 page = PipxPage(pipxInterfacePluginObject) 101 page = PipxPage(pipxInterfacePluginObject)
101 return page 102 return page
102 103
103 104
166 Public method to activate this plug-in. 167 Public method to activate this plug-in.
167 168
168 @return tuple of None and activation status 169 @return tuple of None and activation status
169 @rtype bool 170 @rtype bool
170 """ 171 """
172 from PipxInterface.PipxWidget import PipxWidget # noqa: I102
173
171 global error, pipxInterfacePluginObject 174 global error, pipxInterfacePluginObject
172 error = "" # clear previous error 175 error = "" # clear previous error
173 pipxInterfacePluginObject = self 176 pipxInterfacePluginObject = self
174
175 from PipxInterface.PipxWidget import PipxWidget
176 177
177 self.__widget = PipxWidget(self, fromEric=True) 178 self.__widget = PipxWidget(self, fromEric=True)
178 iconName = "pipx96" if self.__ui.getLayoutType() == "Sidebars" else "pipx22" 179 iconName = "pipx96" if self.__ui.getLayoutType() == "Sidebars" else "pipx22"
179 self.__ui.addSideWidget( 180 self.__ui.addSideWidget(
180 _Side, 181 _Side,

eric ide

mercurial