src/eric7/Preferences/ConfigurationPages/ConfigurationPageBase.py

branch
eric7
changeset 10428
a071d4065202
parent 10069
435cc5875135
child 10439
21c28b0f9e41
diff -r 3733e2b23cf7 -r a071d4065202 src/eric7/Preferences/ConfigurationPages/ConfigurationPageBase.py
--- a/src/eric7/Preferences/ConfigurationPages/ConfigurationPageBase.py	Wed Dec 20 11:06:38 2023 +0100
+++ b/src/eric7/Preferences/ConfigurationPages/ConfigurationPageBase.py	Wed Dec 20 14:58:58 2023 +0100
@@ -46,6 +46,7 @@
         Public method to set the state of the widget.
 
         @param state state data generated by saveState
+        @type list
         """
         pass
 
@@ -53,12 +54,16 @@
         """
         Public method to initialize a colour selection button.
 
-        @param colourKey key of the colour resource (string)
-        @param button reference to a button to show the colour on (QPushButton)
+        @param colourKey key of the colour resource
+        @type string
+        @param button reference to a button to show the colour on
+        @type QPushButton
         @param prefMethod preferences method to get the colour
+        @type function
         @param byName flag indicating to retrieve/save by colour name
-            (boolean)
-        @param hasAlpha flag indicating to allow alpha channel (boolean)
+        @type bool
+        @param hasAlpha flag indicating to allow alpha channel
+        @type bool
         """
         colour = QColor(prefMethod(colourKey))
         size = button.size()
@@ -109,6 +114,7 @@
         Public method to save the colour selections.
 
         @param prefMethod preferences method to set the colour
+        @type function
         """
         for key in self.__coloursDict:
             if self.__coloursDict[key][1]:
@@ -120,13 +126,17 @@
         """
         Public method used by the font selection buttons.
 
-        @param fontSample reference to the font sample widget (QLineEdit)
-        @param fontVar reference to the variable containing the font (QFont)
+        @param fontSample reference to the font sample widget
+        @type QLineEdit
+        @param fontVar reference to the variable containing the font
+        @type QFont
         @param showFontInfo flag indicating to show some font info
-            as the sample (boolean)
+            as the sample
+        @type bool
         @param options options for the font dialog
-            (QFontDialog.FontDialogOption)
-        @return selected font (QFont)
+        @type QFontDialog.FontDialogOption
+        @return selected font
+        @rtype QFont
         """
         if options is None:
             options = QFontDialog.FontDialogOption(0)

eric ide

mercurial