Modify AXIS GUI

More
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

Please Log in to join the conversation.

More
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.

Please Log in to join the conversation.

More
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.

Please Log in 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

Please Log in to join the conversation.

More
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.

Please Log in 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

Please Log in to join the conversation.

More
1 year 8 months ago #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,

Please Log in to join the conversation.

More
1 year 8 months ago #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).

Please Log in to join the conversation.

More
1 year 7 months ago #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 to join the conversation.

More
1 year 7 months ago #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.

Please Log in to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum