Run tcl script to create a GUI in HyperMesh

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hey guys,

I want to create a GUI in HyperMesh. I tried to take a script already generated by the HyperWorks GUI Toolkit.

 

There are demo scripts (like e.g. 'Entry'):  proc ::hwt::TestEntry {args} {......... }

 

--> I copied the text to a .tcl document.

 

However, I am too stupid to actually create the GUI. I tried adding the line 

hwt::TestEntry  

as well as

::hwt::TestEntry {}

as well as

::hwt::TestEntry $args

 

Then, I ran the the .tcl script in HyperMesh.

 

The error message is: can't read 'widgetTour_locale': no such variable. I am completly wrong, but I have to admit that I don't fully understand the procedure. What to I need the argument (args) for?

 

Sorry for such an easy questions but tcl scripting is new to me.

Cheers guys for your help!

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited March 2016

    Hi,

    you are not stupid, just you cannot run the example in hm.

    Unlucky, the code is compiled so I cannot debug more

    But if you want to learn GUI, search for Tk manual

    HW GUI toolkit calls to Tk commands to generate texts, entries, buttons,...

     

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.