Toolbox/PyQt4ImportHook.py

changeset 5815
223fa32b3a32
parent 5814
50b299f6eb98
child 6048
82ad8ec9548c
diff -r 50b299f6eb98 -r 223fa32b3a32 Toolbox/PyQt4ImportHook.py
--- a/Toolbox/PyQt4ImportHook.py	Thu Jul 20 18:42:33 2017 +0200
+++ b/Toolbox/PyQt4ImportHook.py	Thu Jul 20 18:53:24 2017 +0200
@@ -12,6 +12,7 @@
 import sys
 import importlib
 
+
 class PyQt4Importer(object):
     """
     Class implementing an importer converting PyQt5 imports to PyQt4
@@ -40,10 +41,14 @@
     @staticmethod
     def QComboBox_currentData(other, role=None):
         """
-        Public method to emulate the currentData method of Qt5.
+        Static method to emulate the currentData method of Qt5.
         
-        @param role role of which data should be retrived
+        @param other reference to the combo box to get the user data of
+        @type QComboBox
+        @param role role of which data should be retrieved
+        @type int
         @return stored data at current selection
+        @rtype any
         """
         import PyQt4.Qt
         if role is None:

eric ide

mercurial