src/eric7/EricWidgets/EricToolBox.py

branch
eric7
changeset 10423
299802979277
parent 9876
800c539f8700
child 10439
21c28b0f9e41
diff -r e28b89693f37 -r 299802979277 src/eric7/EricWidgets/EricToolBox.py
--- a/src/eric7/EricWidgets/EricToolBox.py	Tue Dec 19 11:04:03 2023 +0100
+++ b/src/eric7/EricWidgets/EricToolBox.py	Tue Dec 19 19:57:08 2023 +0100
@@ -22,7 +22,8 @@
         """
         Constructor
 
-        @param parent reference to the parent widget (QWidget)
+        @param parent reference to the parent widget
+        @type QWidget
         """
         super().__init__(parent)
 
@@ -31,7 +32,7 @@
         Public slot to set the current widget.
 
         @param widget reference to the widget to become the current widget
-            (QWidget)
+        @type QWidget
         """
         try:
             index = self.indexOf(widget)
@@ -52,7 +53,8 @@
         """
         Constructor
 
-        @param parent reference to the parent widget (QWidget)
+        @param parent reference to the parent widget
+        @type QWidget
         """
         EricTabWidget.__init__(self, parent)
         self.setTabPosition(QTabWidget.TabPosition.West)
@@ -62,10 +64,14 @@
         """
         Public method to add a widget to the toolbox.
 
-        @param widget reference to the widget to be added (QWidget)
-        @param icon the icon to be shown (QIcon)
-        @param text the text to be shown (string)
-        @return index of the added widget (integer)
+        @param widget reference to the widget to be added
+        @type QWidget
+        @param icon the icon to be shown
+        @type QIcon
+        @param text the text to be shown
+        @type str
+        @return index of the added widget
+        @rtype int
         """
         index = self.addTab(widget, icon, "")
         self.setTabToolTip(index, text)
@@ -75,11 +81,16 @@
         """
         Public method to add a widget to the toolbox.
 
-        @param index position at which the widget should be inserted (integer)
-        @param widget reference to the widget to be added (QWidget)
-        @param icon the icon to be shown (QIcon)
-        @param text the text to be shown (string)
-        @return index of the added widget (integer)
+        @param index position at which the widget should be inserted
+        @type int
+        @param widget reference to the widget to be added
+        @type QWidget
+        @param icon the icon to be shown
+        @type QIcon
+        @param text the text to be shown
+        @type str
+        @return index of the added widget
+        @rtype int
         """
         index = self.insertTab(index, widget, icon, "")
         self.setTabToolTip(index, text)
@@ -89,7 +100,8 @@
         """
         Public method to remove a widget from the toolbox.
 
-        @param index index of the widget to remove (integer)
+        @param index index of the widget to remove
+        @type int
         """
         self.removeTab(index)
 
@@ -97,8 +109,10 @@
         """
         Public method to set the tooltip of an item.
 
-        @param index index of the item (integer)
-        @param toolTip tooltip text to be set (string)
+        @param index index of the item
+        @type int
+        @param toolTip tooltip text to be set
+        @type str
         """
         self.setTabToolTip(index, toolTip)
 
@@ -106,8 +120,10 @@
         """
         Public method to set the enabled state of an item.
 
-        @param index index of the item (integer)
-        @param enabled flag indicating the enabled state (boolean)
+        @param index index of the item
+        @type int
+        @param enabled flag indicating the enabled state
+        @type bool
         """
         self.setTabEnabled(index, enabled)
 
@@ -116,7 +132,7 @@
         Public slot to set the current widget.
 
         @param widget reference to the widget to become the current widget
-            (QWidget)
+        @type QWidget
         """
         try:
             index = self.indexOf(widget)

eric ide

mercurial