NativeCam on LinuxCNC 2.9.3

More
1 year 5 months ago - 1 year 5 months ago #328659 by Giovanni
The file attached is a dirty patch to test only with qt_dragon interface.
The DISPLAY test function is disabled to allow NativeCAM to run.


If you would try NativeCAM with qt_dragon, follow the installation procedure (search in previous messages)
Replace the ncam.py file with the attached and add the line in green in the .ini file:

# required NativeCAM item:
EMBED_TAB_NAME = NativeCAM
EMBED_TAB_LOCATION = tabWidget_utilities
EMBED_TAB_COMMAND = gladevcp -x {XID} -U --catalog=mill /usr/share/linuxcnc/gladevcp/NativeCAM/ncam.ui

It will run in a strange way:
LinuxCNC will start with the NativeCAM error. Click OK
NativeCAM will start (not embedded)
LinuxCNC screen shows up.

The NativeCAM tab is empty and useless, but to use NativeCAM use ALT-TAB keys to bring its window up.
After sending the program to LinuxCNC, use ALT-TAB keys to bring  LinuxCNC up.

It's a terrible way to use it, but for now it at least  works.

Regards
Giovanni





 
Last edit: 1 year 5 months ago by Giovanni.

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

More
1 year 5 months ago #328682 by cmorley
Replied by cmorley on topic NativeCam on LinuxCNC 2.9.3
There is a slowly developing version for qt screens:
github.com/LinuxCNC/linuxcnc/commits/qt_ncam/

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

More
1 year 5 months ago - 1 year 5 months ago #328683 by Giovanni
Since a QT version is currently in development, I think it would be better to use that version for QT interfaces.whithout making strange combinations.

Regards
Giovanni
Last edit: 1 year 5 months ago by Giovanni. Reason: Maybe I used wrong words

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

More
1 year 5 months ago #328688 by cmorley
Replied by cmorley on topic NativeCam on LinuxCNC 2.9.3
If it's a lot of work I wouldn't bother. Either I will finish the qt version or adapt your version.
Qt version seems to mostly work, but looks slightly different:

 

 

Does the sample basic spacer work for you?
Also the turners cubes I can't get to work (flat verse diameter error)

Chris

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

More
1 year 5 months ago #328691 by Giovanni
Yes it's a lot of work but it will be all QT.
You have to change at least all the interface.
That's a very good job.

"My" (note the quotes, cause it's not mine) version, the solution I proposed in the message above it's only the "standard" gtk-tkinter version for python3 in which I disabled the exit to sys if the screen is not axis, gmocappy... etc. allowing to be used with qt_dragon interface.
The empty Ncam tab is only to launch NativeCAM with LinuxCNC.
It's meant to be only a temporary solution if someone really need to run it.

Regards
Giovanni

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

More
1 year 5 months ago #328692 by Giovanni
This is how the interface looks like.
 
The difference, the contrast in style is obvious.
So I think with a QT interface, as you are doing, it would be better.

Giovanni

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

Time to create page: 0.310 seconds
Powered by Kunena Forum