E5Gui/E5Action.py

changeset 3035
36e9f388958b
parent 2990
583beaf0b4b8
child 3060
5883ce99ee12
child 3160
209a07d7e401
equal deleted inserted replaced
3034:7ce719013078 3035:36e9f388958b
77 icon = None 77 icon = None
78 incr = 0 78 incr = 0
79 if len(args) < 6 + incr: 79 if len(args) < 6 + incr:
80 raise ArgumentsError( 80 raise ArgumentsError(
81 "Not enough arguments, {0:d} expected, got {1:d}".format( 81 "Not enough arguments, {0:d} expected, got {1:d}".format(
82 6 + incr, len(args))) 82 6 + incr, len(args)))
83 elif len(args) > 7 + incr: 83 elif len(args) > 7 + incr:
84 raise ArgumentsError( 84 raise ArgumentsError(
85 "Too many arguments, max. {0:d} expected, got {1:d}".format( 85 "Too many arguments, max. {0:d} expected, got {1:d}".format(
86 7 + incr, len(args))) 86 7 + incr, len(args)))
87 87
88 parent = args[4 + incr] 88 parent = args[4 + incr]
89 super().__init__(parent) 89 super().__init__(parent)
90 name = args[5 + incr] 90 name = args[5 + incr]
91 if name: 91 if name:

eric ide

mercurial