--- a/src/eric7/Plugins/PluginVmTabview.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/Plugins/PluginVmTabview.py Wed Jul 13 14:55:47 2022 +0200 @@ -22,7 +22,7 @@ version = UI.Info.VersionOnly pluginType = "viewmanager" pluginTypename = "tabview" -displayString = QT_TRANSLATE_NOOP('VmTabviewPlugin', 'Tabbed View') +displayString = QT_TRANSLATE_NOOP("VmTabviewPlugin", "Tabbed View") className = "VmTabviewPlugin" packageName = "__core__" shortDescription = "Implements the Tabview view manager." @@ -36,22 +36,24 @@ def previewPix(): """ Module function to return a preview pixmap. - + @return preview pixmap (QPixmap) """ - fname = os.path.join(os.path.dirname(__file__), - "ViewManagerPlugins", "Tabview", "preview.png") + fname = os.path.join( + os.path.dirname(__file__), "ViewManagerPlugins", "Tabview", "preview.png" + ) return QPixmap(fname) - + class VmTabviewPlugin(QObject): """ Class implementing the Tabview view manager plugin. """ + def __init__(self, ui): """ Constructor - + @param ui reference to the user interface object (UI.UserInterface) """ super().__init__(ui) @@ -60,11 +62,12 @@ def activate(self): """ Public method to activate this plugin. - + @return tuple of reference to instantiated viewmanager and activation status (boolean) """ from ViewManagerPlugins.Tabview.Tabview import Tabview + self.__object = Tabview(self.__ui) return self.__object, True