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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to