Hi all now i have another one issue
CODE
import os
import maya.cmds as cmds
class mypars_ts:
def __init__(self):
print "Hello\n"
def testing(*args):
print "Call Came\n"
def window_lod (self):
if cmds.window('ExampleWindow', exists=True):
cmds.deleteUI('ExampleWindow', window=True)
cmds.window( 'ExampleWindow' )
cmds.columnLayout()
cmds.text( label='Size and position the window before closing it.' )
cmds.button( label='Close', command=testing)
cmds.showWindow( 'ExampleWindow' )
my_calls=mypars_ts()
my_calls.window_lod()
but when i try to exicute this its giving error
CODE
# Error: global name 'testing' is not defined
# Traceback (most recent call last):
# File "", line 17, in
# File "", line 14, in window_lod
# NameError: global name 'testing' is not defined #
Why can some one help mee ??? joojaa plzz ![]()