problem in python function --Name-error

Alex cut_me_out at
Sat Apr 29 13:24:15 EDT 2000

> The error says nameError frame1.

Perhaps you want to call this self.frame1 in the __init__ method.  Then
you will still be able to refer to it in the drawCanvas method by the
same name.  At the moment, you are getting an error because there is no
variable called frame1 in the namespace of the drawCanvas method.


More information about the Python-list mailing list