src/eric7/Plugins/PluginVmListspace.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
--- a/src/eric7/Plugins/PluginVmListspace.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Plugins/PluginVmListspace.py	Wed Jul 13 14:55:47 2022 +0200
@@ -22,7 +22,7 @@
 version = UI.Info.VersionOnly
 pluginType = "viewmanager"
 pluginTypename = "listspace"
-displayString = QT_TRANSLATE_NOOP('VmListspacePlugin', 'Listspace')
+displayString = QT_TRANSLATE_NOOP("VmListspacePlugin", "Listspace")
 className = "VmListspacePlugin"
 packageName = "__core__"
 shortDescription = "Implements the Listspace 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", "Listspace", "preview.png")
+    fname = os.path.join(
+        os.path.dirname(__file__), "ViewManagerPlugins", "Listspace", "preview.png"
+    )
     return QPixmap(fname)
-    
+
 
 class VmListspacePlugin(QObject):
     """
     Class implementing the Listspace 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.Listspace.Listspace import Listspace
+
         self.__object = Listspace(self.__ui)
         return self.__object, True
 

eric ide

mercurial