E5Gui/E5Action.py

changeset 410
e5d1addeb90c
parent 267
f4cd9c07da76
child 791
9ec2ac20e54e
equal deleted inserted replaced
409:0ea528e80202 410:e5d1addeb90c
68 incr = 1 68 incr = 1
69 else: 69 else:
70 icon = None 70 icon = None
71 incr = 0 71 incr = 0
72 if len(args) < 6+incr: 72 if len(args) < 6+incr:
73 raise ArgumentsError("Not enough arguments, %d expected, got %d" % \ 73 raise ArgumentsError(
74 (6+incr, len(args))) 74 "Not enough arguments, {0:d} expected, got {1:d}".format(
75 6 + incr, len(args)))
75 elif len(args) > 7+incr: 76 elif len(args) > 7+incr:
76 raise ArgumentsError("Too many arguments, max. %d expected, got %d" % \ 77 raise ArgumentsError(
77 (7+incr, len(args))) 78 "Too many arguments, max. {0:d} expected, got {1:d}".format(
79 7 + incr, len(args)))
78 80
79 parent = args[4+incr] 81 parent = args[4+incr]
80 QAction.__init__(self, parent) 82 QAction.__init__(self, parent)
81 name = args[5+incr] 83 name = args[5+incr]
82 if name: 84 if name:

eric ide

mercurial