[QtDragon] Simple vismach window

More
28 Feb 2024 09:55 #294681 by Abdulkareem
hello, could you please tell me where to write this script

Please Log in or Create an account to join the conversation.

More
28 Feb 2024 12:52 #294693 by Aciera
The vismach model is a python file that creates it's own hal pins and is loaded as a user component from hal.

For Qtvismach it is a bit more complicated than for a regular configuration.

You will need to place your actual vismach file in this folder:
<your_path_here>/lib/python/qtvcp/lib/qt_vismach

Then you also need a folder with a .ui and handle.py file for your vismach simulation here:

<your_path_here>/share/qtvcp/panels

Take a look at one of the preinstalled qtvismach simulations (eg millturn) as a reference.
The following user(s) said Thank You: Abdulkareem

Please Log in or Create an account to join the conversation.

More
02 Mar 2024 04:52 #294883 by cmorley
You shouldn't need to put the vismach file in <your_path_here>/lib/python/qtvcp/lib/qt_vismach.
I've tested a compiled version to confirm but not an installed version.

Also (to be complete) you only need to use an ui/handler file if you want to embed the window or want to add other widgets.
You can load the vismach file directly with python3 - good for testing vismach changes.
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.066 seconds
Powered by Kunena Forum