How to use HWT & HWAT

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

hi,

 

i am new to TCl /TK programming.

can anyone help me in how to write code for HWT & HWAT.

from altair help section there is an example of HWT in Tk GUIs  but it is showing an error in first line 

 

Code:

 

 

package require hwt;

 

set base [::hwt::CreateWindow .example2 \

  -windowtitle 'Example 2' \

  -geometry 200x110 \

  -acceptbutton 'Accept' \

  -acceptfunc {::create_comp $::cardimage $::compname} \

  -noGeometrySaving \

  -propagate 1];

 

 

 

error:

[invalid command name '::hwt::createwindow']

 

 

thanks

image/emoticons/default_smile.png' alt=':)' srcset='/emoticons/smile@2x.png 2x' width='20' height='20'>

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited July 2013

    Hello Adam,

    This package is part of Hypermesh. So If you run this script in hypermesh by File ->Run -> TCL Script. Then it will work fine.

    If you want to create window, then you can use toplevel .windowname. which is command of TK only.Follow this link http://www.tcl.tk/man/tcl8.5/TkCmd/toplevel.htm