PDA

View Full Version : text fields: only TCL expressions?



alexB
September 17th, 2008, 09:45 AM
hi,

is it possible to write python expressions in text fields?

e.g.: now i have to write something like [subst [knob parent.artist]]
(and the popup help tells me that has to be that way.)

i dont know any tcl and would like to keep it that way:happydevi

so: is the implementation of python far enough to use it there?

cheers

alex

michaelmovies
September 17th, 2008, 10:01 AM
Sadly no, not really ... you could use a TCL command to run a python command to return a TCL formatted field, but I think you'd drive yourself nuts pretty quickly. I was waiting on this, but then just started to break down and hack through learning some basic TCL (arguably a better language for single line commands like this anyway).

alexB
September 17th, 2008, 10:07 AM
thanks for the info..

and i have to admit; writing somthng like this:
[clock format [clock seconds] -format {%a, %m.%b.%Y}]
in Python, would need about 200 dots :)

damn.. ok.. next language

*doingAnIndentWithMyKnifeInMyTable*

cheers

alex