Preview Tab

More
6 years 3 months ago #174909 by phillc54
Preview Tab was created by phillc54
Is possible to switch the ntb_preview notebook to the preview (gremlin) page from an external python program.

Please Log in to join the conversation.

More
6 years 3 months ago #174916 by cmorley
Replied by cmorley on topic Preview Tab
Not without source code changes - Gmoccapy has no user access to it's code.

Please Log in to join the conversation.

More
6 years 3 months ago #174918 by phillc54
Replied by phillc54 on topic Preview Tab
Thanks Chris, I thought so but I was hopeful...

Please Log in to join the conversation.

More
6 years 3 months ago #174920 by tommylight
Replied by tommylight on topic Preview Tab
You can always use gremlin on a separate window.
I did some experimenting with two monitors with Axis or Touchy on one monitor and the gremlin on the other. It works.

Please Log in to join the conversation.

More
6 years 3 months ago #174922 by phillc54
Replied by phillc54 on topic Preview Tab
Thanks Tom, food for thought.

I am doing a bit of work on the conversational in PlasmaC and I wanted to switch to the preview screen automagically when a shape was selected. I can do it in Axis and was also hoping to do it in Gmoccapy. Not to worry, I don't use Gmoccapy anyway. :)

I suppose I could open a separate gremlin to do it but...

Please Log in to join the conversation.

More
6 years 3 months ago #174925 by tommylight
Replied by tommylight on topic Preview Tab
Found the topic with axis and gremlin:
forum.linuxcnc.org/21-axis/34860-gremlin-view#113534

Please Log in to join the conversation.

More
6 years 3 months ago #174926 by phillc54
Replied by phillc54 on topic Preview Tab
I wish you hadn't suggested this Tom. I did a quick mock up and it looks really good.
Now I think I have to totally redo the conversational..

Please Log in to join the conversation.

More
6 years 2 months ago #178053 by newbynobi
Replied by newbynobi on topic Preview Tab
Unfortunately I can not understand what you want to do in detail.

Can you please post two screenshots, showing one and the other notebook tab you want to change?
It might be a good idea to introduce Hal pin for that purpose. Would not be too much work.

Norbert

P.S, I was already thinking about opening all gmoccapy functions to be activated from an external source, but I did not find a good solution yet. So if someone has an ides how to archive an external command to be forwarded to gmoccapy, please let me know.

Please Log in to join the conversation.

More
6 years 2 months ago #178056 by cmorley
Replied by cmorley on topic Preview Tab
He wants to control tab selection prom a separate program.
There have been several ways this has been done to date.
I added X11 client messages to AXIS to let gladevcp program know if the glade panel was showing for Andy.
AXIS has axis-remote for some external control.
HAL pins are a quick and dirty way to do it.
Ultimately I think opening your code to user modifications is the best way (ie something like handler file), so the user can decide the best technique.

Saying that, in the long run maybe I should add a zeroQM module into Qtvcp so inter program communication is easier.

It would be ultimately best if linuxcnc it's self utilized an easy to use interprogram communication system. NML is what linuxcnc uses and it's not easy to use or expand. Machinekit chose zeroQM but IFAIK they didn't get it beyond HAL communication.

Please Log in to join the conversation.

More
6 years 2 months ago #178061 by phillc54
Replied by phillc54 on topic Preview Tab

newbynobi wrote: Unfortunately I can not understand what you want to do in detail.

Can you please post two screenshots, showing one and the other notebook tab you want to change?
It might be a good idea to introduce Hal pin for that purpose. Would not be too much work.

Norbert

P.S, I was already thinking about opening all gmoccapy functions to be activated from an external source, but I did not find a good solution yet. So if someone has an ides how to archive an external command to be forwarded to gmoccapy, please let me know.

What I wanted to do at the time was be able to open the Preview tab from a python script. I ended up not needing to do this as I used a separate window with it's own gremlin.

Please Log in to join the conversation.

Time to create page: 0.228 seconds
Powered by Kunena Forum