Modify AXIS GUI

More
1 year 8 months ago - 1 year 8 months ago #322617 by noqui
Modify AXIS GUI was created by noqui
HI, I need to modify the AXIS GUI, and so I have some questions about it:

1) Whatś the name of the file ?
2) Is written in Python?
3) Which application I need to work with or compile it?

I have to work with it on a Debian 12.

Thanks a lot
Last edit: 1 year 8 months ago by noqui.

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

More
1 year 8 months ago - 1 year 8 months ago #322620 by Hastrh2o
Replied by Hastrh2o on topic Modify AXIS GUI
Hi,
Start with this help file : linuxcnc.org/docs/html/gui/axis.html
And then have a look at qtvcp although : linuxcnc.org/docs/html/gui/qtvcp.html#sec:qtvcp-overview .

I found it's a bit confusing at the beginning, but once you start to put the hand in, you'll begin to learn.
If you want to use qtvcp, you will need to install QtDesigner and the linuxcnc widgets.
Last edit: 1 year 8 months ago by Hastrh2o.
The following user(s) said Thank You: noqui

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

More
1 year 8 months ago - 1 year 8 months ago #322621 by Aciera
Replied by Aciera on topic Modify AXIS GUI
The classic axis gui is written in python so there is no need to compile anything here.
Source code is here:
github.com/LinuxCNC/linuxcnc/tree/master/src/emc/usr_intf/axis

It has nothing to do with qtvcp, but there is a qtvcp version of axis.
Last edit: 1 year 8 months ago by Aciera.
The following user(s) said Thank You: noqui

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

More
1 year 8 months ago #322622 by cakeslob
Replied by cakeslob on topic Modify AXIS GUI
linuxcnc.org/docs/html/gui/axis.html#_user_command_file

modify it using this local file instead. no need to change source, its easily deployable and is mostly safe from updates.

linuxcnc.org/docs/html/gui/axis.html#_axis_customization_hints
The following user(s) said Thank You: noqui, Aciera

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

More
1 year 8 months ago - 1 year 8 months ago #322643 by noqui
Replied by noqui on topic Modify AXIS GUI
Thanks you All!!! I am not familiar with Python. I am starting to learn it.
In the meanwhile,
If I only want to add an image in the AXIS GUI, that will show a Camera view near the tool, and 3 label boxes.

What do you think it will be the easier way to have it done quickly?

Is this source code correct to add in the INI file to see the image

[DISPLAY]
PYVCP = image.xml

<?xml version="1.0" encoding="UTF-8"?>
<pyvcp>
<image name='fwd' file='fwd.gif'/>
</pyvcp>


This source code would be correct to add for the labels?

<pyvcp>
<label>
<text>"AXIS X"</text>
</label>
<label>
<text>"AXIS Y"</text>
</label>
<label>
<text>"AXIS Z"</text>
</label>
</pyvcp>

Or should I use something like:

Et1 = tk.Label(WINDOW, text="AXIS X", font=("Arial", 24), fg="blue", bg="yellow")
etiqueta.pack(padx=20, pady=20)
Et2 = tk.Label(WINDOW, text="AXIS Y", font=("Arial", 24), fg="blue", bg="yellow")
etiqueta.pack(padx=20, pady=20)
Et3 = tk.Label(WINDOW, text="AXIS Z", font=("Arial", 24), fg="blue", bg="yellow")
etiqueta.pack(padx=20, pady=20)




Thanks a lot.
Last edit: 1 year 8 months ago by noqui.

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

More
1 year 8 months ago #322663 by cmorley
Replied by cmorley on topic Modify AXIS GUI
Embed a Qtvcp camera panel (there is a sim example of this)

linuxcnc.org/docs/devel/html/gui/qtvcp-v...vcp:panels:cam-align
You can modify the panel to add buttons or add a pyvcp panel as well for native buttons
The following user(s) said Thank You: noqui

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

Time to create page: 0.182 seconds
Powered by Kunena Forum