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
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..
> >
> >
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
':
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,&
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
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()
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
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