Preview Tab

More
17 Jul 2020 07:23 #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 or Create an account to join the conversation.

More
17 Jul 2020 07:42 #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 or Create an account to join the conversation.

More
17 Jul 2020 07:43 #174918 by phillc54
Replied by phillc54 on topic Preview Tab
Thanks Chris, I thought so but I was hopeful...

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

More
17 Jul 2020 07:47 #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.
The following user(s) said Thank You: phillc54

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

More
17 Jul 2020 07:52 #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...
The following user(s) said Thank You: tommylight

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

More
17 Jul 2020 08:11 #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
The following user(s) said Thank You: phillc54

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

More
17 Jul 2020 09:18 #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..
The following user(s) said Thank You: tommylight

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

More
12 Aug 2020 20:03 #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 or Create an account to join the conversation.

More
12 Aug 2020 20:48 #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 or Create an account to join the conversation.

More
12 Aug 2020 23:24 #178061 by phillc54
Replied by phillc54 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.

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 or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 1.417 seconds
Powered by Kunena Forum