src/eric7/QScintilla/Exporters/ExporterTEX.py

branch
eric7
changeset 10431
64157aeb0312
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
--- a/src/eric7/QScintilla/Exporters/ExporterTEX.py	Wed Dec 20 19:28:22 2023 +0100
+++ b/src/eric7/QScintilla/Exporters/ExporterTEX.py	Thu Dec 21 12:03:40 2023 +0100
@@ -32,8 +32,10 @@
         """
         Constructor
 
-        @param editor reference to the editor object (QScintilla.Editor.Editor)
-        @param parent parent object of the exporter (QObject)
+        @param editor reference to the editor object
+        @type QScintilla.Editor.Editor
+        @param parent parent object of the exporter
+        @type QObject
         """
         ExporterBase.__init__(self, editor, parent)
 
@@ -41,8 +43,10 @@
         """
         Private method to convert a color object to a TeX color string.
 
-        @param color color object to convert (QColor)
-        @return TeX color string (string)
+        @param color color object to convert
+        @type QColor
+        @return TeX color string
+        @rtype str
         """
         # texcolor[rgb]{0,0.5,0}{....}
         rf = color.red() / 256.0
@@ -63,8 +67,10 @@
         Private method to calculate a style name string for a given style
         number.
 
-        @param style style number (integer)
-        @return style name string (string)
+        @param style style number
+        @type int
+        @return style name string
+        @rtype str
         """
         buf = ""
         if style >= 0:
@@ -85,11 +91,16 @@
         """
         Private method to define a new TeX style.
 
-        @param font the font to be used (QFont)
-        @param color the foreground color to be used (QColor)
-        @param paper the background color to be used (QColor)
-        @param file reference to the open file to write to (file object)
-        @param istyle style number (integer)
+        @param font the font to be used
+        @type QFont
+        @param color the foreground color to be used
+        @type QColor
+        @param paper the background color to be used
+        @type QColor
+        @param file reference to the open file to write to
+        @type file
+        @param istyle style number
+        @type int
         """
         closing_brackets = 3
         file.write(

eric ide

mercurial