A big problem with _name_ == '_main_'

2007-09-01 Thread onurays
Hi,

I have begun to teach me Python today. The problem is :

NameError: name 'name' is not defined.

I am using winXP and i used that:

if  _name_ == '_main_' :
MyClass()
gtk.main()

Onuray. 


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: A big problem with _name_ == '_main_'

2007-09-01 Thread onurays
Oh, i solve the problem. It should be double underscore.. I am so 
careless..!

Onuray.

"onurays" <[EMAIL PROTECTED]>, haber iletisinde þunlarý 
yazdý:[EMAIL PROTECTED]
> Hi,
>
> I have begun to teach me Python today. The problem is :
>
>NameError: name 'name' is not defined.
>
> I am using winXP and i used that:
>
>if  _name_ == '_main_' :
>MyClass()
>gtk.main()
>
> Onuray.
> 


-- 
http://mail.python.org/mailman/listinfo/python-list