TK script text variable: user input
Hello,
in the below script, am trying to get the input from text variable. But everytime its throwing error and unable to rectify.
in the below script, highlighted in bold (w) is the user input. Can anyone help?
Answers
-
My guess is that the variable substitution is being done when the button is created rather than when it is clicked. I l like to use namespace in these instances so I can just call the full variable name from inside the procedure.
2 -
In Hypermesh customization, I prefer using hwtk rather than tk because there is a very helpful application:
In that application, learning and testing hwtk is very easy.
Plus, python is supported and docs:
https://help.altair.com/hwdesktop/pythonapi/index.html
https://help.altair.com/hwdesktop/pythonapi/gui_toolkit.html
Happy scripting!
2 -
Ben Buchanan said:
My guess is that the variable substitution is being done when the button is created rather than when it is clicked. I l like to use namespace in these instances so I can just call the full variable name from inside the procedure.
Thank you for prompt response
0