Translator plug-in: resolved some code style issues.

Thu, 09 Apr 2020 17:59:24 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 09 Apr 2020 17:59:24 +0200
changeset 7513
d8354f4d3dc7
parent 7512
170e64742ae7
child 7514
0960c7c1f497

Translator plug-in: resolved some code style issues.

eric6/Plugins/PluginTranslator.py file | annotate | diff | comparison | revisions
eric6/Plugins/UiExtensionPlugins/Translator/Translator.py file | annotate | diff | comparison | revisions
--- a/eric6/Plugins/PluginTranslator.py	Thu Apr 09 17:58:33 2020 +0200
+++ b/eric6/Plugins/PluginTranslator.py	Thu Apr 09 17:59:24 2020 +0200
@@ -62,10 +62,10 @@
     """
     if e5App().usesDarkPalette():
         icon = os.path.join("UiExtensionPlugins", "Translator", "icons",
-                         "flag-dark")
+                            "flag-dark")
     else:
         icon = os.path.join("UiExtensionPlugins", "Translator", "icons",
-                         "flag-light")
+                            "flag-light")
     return {
         "translatorPage": [
             QCoreApplication.translate("TranslatorPlugin",
--- a/eric6/Plugins/UiExtensionPlugins/Translator/Translator.py	Thu Apr 09 17:58:33 2020 +0200
+++ b/eric6/Plugins/UiExtensionPlugins/Translator/Translator.py	Thu Apr 09 17:59:24 2020 +0200
@@ -26,8 +26,13 @@
         """
         Constructor
         
-        @param plugin reference to the plugin object (TranslatorPlugin)
-        @param parent parent (QObject)
+        @param plugin reference to the plugin object
+        @type TranslatorPlugin
+        @param usesDarkPalette flag indicating that the platform uses a palette
+            with a dark background
+        @type bool
+        @param parent parent
+        @type QObject
         """
         QObject.__init__(self, parent)
         
@@ -92,7 +97,7 @@
         """
         return UI.PixmapCache.getIcon(os.path.join(
             os.path.dirname(__file__), "icons",
-           "{0}-{1}".format(name, self.__iconSuffix)
+            "{0}-{1}".format(name, self.__iconSuffix)
         ))
     
     def __activateWidget(self):

eric ide

mercurial