E5Gui/E5Action.py

changeset 2953
703452a2876f
parent 2302
f29e9405c851
child 2990
583beaf0b4b8
equal deleted inserted replaced
2952:94fc661a54a2 2953:703452a2876f
19 are given. 19 are given.
20 """ 20 """
21 def __init__(self, error): 21 def __init__(self, error):
22 """ 22 """
23 Constructor 23 Constructor
24
25 @param error error message of the exception (string)
24 """ 26 """
25 self.errorMessage = str(error) 27 self.errorMessage = str(error)
26 28
27 def __repr__(self): 29 def __repr__(self):
28 """ 30 """
62 parent (QObject), name (string), toggle (boolean)</li> 64 parent (QObject), name (string), toggle (boolean)</li>
63 <li>text (string), menu text (string), 65 <li>text (string), menu text (string),
64 accelarator (QKeySequence), alternative accelerator (QKeySequence), 66 accelarator (QKeySequence), alternative accelerator (QKeySequence),
65 parent (QObject), name (string)</li> 67 parent (QObject), name (string)</li>
66 </ul> 68 </ul>
69 @exception ArgumentsError raised to indicate invalid arguments
67 """ 70 """
68 if isinstance(args[1], QIcon): 71 if isinstance(args[1], QIcon):
69 icon = args[1] 72 icon = args[1]
70 incr = 1 73 incr = 1
71 else: 74 else:

eric ide

mercurial