E5Gui/E5Action.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3057
10516539f238
parent 3035
36e9f388958b
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
79 icon = None 79 icon = None
80 incr = 0 80 incr = 0
81 if len(args) < 6 + incr: 81 if len(args) < 6 + incr:
82 raise ArgumentsError( 82 raise ArgumentsError(
83 "Not enough arguments, {0:d} expected, got {1:d}".format( 83 "Not enough arguments, {0:d} expected, got {1:d}".format(
84 6 + incr, len(args))) 84 6 + incr, len(args)))
85 elif len(args) > 7 + incr: 85 elif len(args) > 7 + incr:
86 raise ArgumentsError( 86 raise ArgumentsError(
87 "Too many arguments, max. {0:d} expected, got {1:d}".format( 87 "Too many arguments, max. {0:d} expected, got {1:d}".format(
88 7 + incr, len(args))) 88 7 + incr, len(args)))
89 89
90 parent = args[4 + incr] 90 parent = args[4 + incr]
91 super(E5Action, self).__init__(parent) 91 super(E5Action, self).__init__(parent)
92 name = args[5 + incr] 92 name = args[5 + incr]
93 if name: 93 if name:

eric ide

mercurial