HWTK GUI TOOLKIT Studio

Andy@LamteqSolutions
Andy@LamteqSolutions Altair Community Member
edited October 2020 in Community Q&A

Does anyone know how to use HWTK studio to develop guis? I can't get my head around the positioning of buttons and text boxes so was hoping the HWTK gui toolkit doesn't seem to have anything like that in it. When I click file, all it offers me is Exit.... which isn't exceptionally useful. 

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited December 2018

    Hwtk is very easy to used

    You should read sample codes in

    start.all programs.altair hyperworks 2017.tools.hwtk gui toolkit

  • Andy@LamteqSolutions
    Andy@LamteqSolutions Altair Community Member
    edited December 2018

    Cheers Tinh, 

     

    Hope you are well. 

     

    Yea, mine doesn't seem to have any options. All I get is a demo panel which shows me the various widgets and the code (assigned to those buttons) but nowhere to position buttons or read in code.

     

    Maybe there were more options I needed to click when installing the software and this is just a basic demo version?

     

    Cheers

    Andy

  • tinh
    tinh Altair Community Member
    edited December 2018

    What do you mean by 'position button'?

  • Andy@LamteqSolutions
    Andy@LamteqSolutions Altair Community Member
    edited December 2018

    Perhaps I am not fully understanding what the GUI builder is meant to do but ideally I would like a tool to position buttons and text boxes as I am struggling with the pack commands in my scripts - I've added a pic to demonstrate my problem.

     

    <?xml version="1.0" encoding="UTF-8"?>Capture.PNG

  • tinh
    tinh Altair Community Member
    edited December 2018

    Ok, I see

    In case you want to position widgets in both row & column, use grid command

    if using pack, you need to pack label and entry in a sub frame, then pack subframes top side down

    Or you can use place command - the most freely-positioning command

     

     

  • Andy@LamteqSolutions
    Andy@LamteqSolutions Altair Community Member
    edited December 2018

    Many thanks Tinh. I'll give it a go.