HLEP: I have a problem about interpreting Error Message

Manus Hand mjhand at concentric.net
Sat May 22 04:02:49 EDT 1999


The "title", "text", and "bitmap" arguments, because they
do not have any default value to be assigned to them if not
supplied, must appear in the parameter list BEFORE all
of the arguments that DO have default values.

So instead of:
def __init__(self, master=None, title, text, bitmap,
             default=0, args=['Yes', 'No'], cnf={}, **kw):

you will need to change it to:

def __init__(self, title, text, bitmap, master=None,
             default=0, args=['Yes', 'No'], cnf={}, **kw):

(and change all instantiations of the non_modDialog class to
follow this new calling scheme, of course.)

Manus




More information about the Python-list mailing list