A big problem with _name_ == '_main_'

onurays onurays23 at gmail.com
Sat Sep 1 20:35:28 EDT 2007


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. 





More information about the Python-list mailing list