Modify AXIS GUI
- noqui
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 2
25 Feb 2025 18:14 - 25 Feb 2025 18:19 #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
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: 25 Feb 2025 18:19 by noqui.
Please Log in or Create an account to join the conversation.
- Hastrh2o
- Online
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 6
25 Feb 2025 18:48 - 25 Feb 2025 18:49 #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.
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: 25 Feb 2025 18:49 by Hastrh2o.
The following user(s) said Thank You: noqui
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4258
- Thank you received: 1875
25 Feb 2025 19:19 - 25 Feb 2025 19:22 #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.
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: 25 Feb 2025 19:22 by Aciera.
The following user(s) said Thank You: noqui
Please Log in or Create an account to join the conversation.
- cakeslob
- Offline
- Platinum Member
-
Less
More
- Posts: 846
- Thank you received: 248
25 Feb 2025 19:48 #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
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.
- noqui
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 2
26 Feb 2025 02:16 - 26 Feb 2025 02:17 #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.
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: 26 Feb 2025 02:17 by noqui.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
Less
More
- Posts: 7864
- Thank you received: 2122
26 Feb 2025 06:55 #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
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.
- noqui
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 2
26 Feb 2025 09:11 - 26 Feb 2025 09:23 #322671
by noqui
Replied by noqui on topic Modify AXIS GUI
Thanks a lot cmorley!!! Great Help. Definitely I must study that doc. It has part of what I am looking for.
The last 3 questions I have is: I download from the github a copy of Linuxcnc to a folder in my pc. 1) Then I saw it says in that page: "There are several builtin HAL panels available. In a terminal type qtvcp list to see a list." => If I open a terminal and type this nothing happens 2) How do I start building my Qtvcp ? and 3) How do I start my linuxcnc version instead of the preconfigured version?
I think that maybe part of what I am asking is on linuxcnc.org/docs/html/gui/qtvcp.html#sec:qtvcp-overview suggested page by Hastrh2o
Thanks a lot,
The last 3 questions I have is: I download from the github a copy of Linuxcnc to a folder in my pc. 1) Then I saw it says in that page: "There are several builtin HAL panels available. In a terminal type qtvcp list to see a list." => If I open a terminal and type this nothing happens 2) How do I start building my Qtvcp ? and 3) How do I start my linuxcnc version instead of the preconfigured version?
I think that maybe part of what I am asking is on linuxcnc.org/docs/html/gui/qtvcp.html#sec:qtvcp-overview suggested page by Hastrh2o
Thanks a lot,
Last edit: 26 Feb 2025 09:23 by noqui.
Please Log in or Create an account to join the conversation.
- Hastrh2o
- Online
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 6
26 Feb 2025 20:49 #322745
by Hastrh2o
Replied by Hastrh2o on topic Modify AXIS GUI
Yes, you will find most answer in the doc. I suggest you to install the complete linuxcnc distrib (it can be done in a virtualbox to use it as a sandbox) to focus on your interface test. Here you can load a simulation example and then modify yourself the different files (some of them are duplicated in your home directory).
The following user(s) said Thank You: noqui
Please Log in or Create an account to join the conversation.
- noqui
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 2
01 Mar 2025 15:31 #322928
by noqui
Replied by noqui on topic Modify AXIS GUI
Hi, If I only want to add the Camera in the AXIS.GUI, I need to set again all the instructions in the Qt Designer? Or there is a simplified way? Thanks a lot.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
Less
More
- Posts: 7864
- Thank you received: 2122
01 Mar 2025 16:29 #322935
by cmorley
Replied by cmorley on topic Modify AXIS GUI
If you want to edit the panel that has the camerra, using Designer is best.
It's possible to hand edit the .UI file but very error prone.
It's possible to hand edit the .UI file but very error prone.
Please Log in or Create an account to join the conversation.
Time to create page: 0.093 seconds