problem in the compiler ?
Delaney, Timothy C (Timothy)
tdelaney at avaya.com
Tue May 3 19:35:53 EDT 2005
Glauco Silva wrote:
> My code is like this:
>
> MyClass()
>
> class MyClass:
> def __init__(self):
> btn = RadioButton(command=self.Function)
> def Function(self):
> print "Enter in the function"
>
> When a do this, the function 'Function' is call. And i don´t want
> this. What´s wrong ?
Are you absolutely sure this is the exact code? As it is this will not work - it will fail with a NameError.
You need to post a working piece of code that exhibits the behaviour, and include the exact error message (if any).
Tim Delaney
More information about the Python-list
mailing list