Re: calling python procedures from tcl using tclpython

2005-07-07 Thread chand
That is exactly i want to know. i.e...,how to provide the python code path in tcl script file, that loads required function. --BestRegards., --chandra > definitions etc. Michael Schlenker wrote: > chand wrote: > > Hi.. > > > > I am writing a Gui in TCL and my backend c

Re: calling python procedures from tcl using tclpython

2005-07-07 Thread chand
Hi., can anyone help me how to provide the info about the python file procedure in the tcl script which uses tclpython i.e., is there a way to import that .py file procedure in the tcl script --BestRegards --Chandra Michael Schlenker wrote: > chand wrote: > > Hi.. > > > >

Warning when doubly linked list is defined gloablly

2005-08-24 Thread chand
Hi., In my api.py file 'g_opt_list' is defined globally g_opt_list =[[],[],[],[],[],[],[]] I am using this global list in the fucntion def function (): gloabl g_opt_list when I run the py file, I am getting the Following Error SyntaxWarning: name 'g_opt_list' is used prior to global declar

Re: Warning when doubly linked list is defined gloablly

2005-08-30 Thread chand
': for i in g_opt_list[int(index)]: if g_opt_list[int(index)].count(i) == 1: optList = Message_obj.showOptionalParameters(layer_name,add_delete_flag,i) displayoptparams(optList,layer_name,0,&

warning when doubly liked list is defined globally

2005-09-05 Thread chand
Hi., In my api.py file 'g_opt_list' is defined globally g_opt_list =[[],[],[],[],[],[],[]] when I run the py file, I am getting the Following Error SyntaxWarning: name 'g_opt_list' is used prior to global declaration Please let me know how to remove this error Here is the code which gives the

Re: Warning when doubly linked list is defined gloablly

2005-09-05 Thread chand
if g_opt_list[int(index)].count(i) == 1: optList = Message_obj.showOptionalParameters(layer_name,add_delete_flag,i) displayoptparams(optList,layer_name,0,"Null") add_delete_flag = 1 return "None" def main(): #choice = sys.argv[1] print "### choice ", #Process_GUI_Command("NEW") #list=CMSR.showOptionalParameters("SCCP",0) #CMSR.saveXMLfile("CMSR2.xml","CMSR") if __name__ == '__main__': main()

warning when doubly liked list is defined globally

2005-09-14 Thread chand
Hi., In my api.py file 'g_opt_list' is defined globally g_opt_list =[[],[],[],[],[],[],[]] when I run the py file, I am getting the Following Error SyntaxWarning: name 'g_opt_list' is used prior to global declaration SyntaxWarning: name 'layers' is used prior to global declaration Please let me

Removing Warning Messages .............

2005-09-19 Thread chand
Hi., In my api.py file 'g_opt_list' is defined globally g_opt_list =[[],[],[],[],[],[],[]] when I run the py file, I am getting the Following Error SyntaxWarning: name 'g_opt_list' is used prior to global declaration SyntaxWarning: name 'layers' is used prior to global declaration Please let me