🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Run tcl script to create a GUI in HyperMesh

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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!

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "tinh"
    Altair Community Member
    Updated by tinh

    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,...