I have problems creating menu entries using Python… I use the following script, but TD interprets each character as a separate entry… where is my mistake?
Looks like the quotes were replaced by the forum editor here unfortunately.
Using preformatted text tag will fix that.
Yah matching single or double quotes.
Not sure I follow your example:
python >>> n.par.Menu.menuLabels = ('A','B','C') #3 entries: A, B and C
python >>> n.par.Menu.menuLabels = ['A','B','C'] #3 entries: A, B and C
python >>> n.par.Menu.menuLabels = (['A','B','C'],) #single entry: ['A','B','C']
python >>> n.par.Menu.menuLabels = [('A','B','C'),] #single entry: ('A','B','C')