Custom GUI and PyVCP

More
01 Jun 2015 11:46 #59295 by sdfzz
Custom GUI and PyVCP was created by sdfzz
Hi all,

I have a custom GUI and PyVCP panel. I can run them in two separate windows, and they work great.

However, I want to embed the PyVCP panel into my GUI. I know this can be done for AXIS GUI (like: linuxcnc.org/docs/html/hal/images/gs2_panel.png).

But, when I tried it on my GUI (though ini and hal files) the PyVCP panel does not show up.

I can include my PyVCP to AXIS GUI without any problem...

Is there a way to include a PyVCP panel to a custom GUI?

Any help will be appreciated

Regards,

Steve

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

More
01 Jun 2015 16:51 #59298 by newbynobi
Replied by newbynobi on topic Custom GUI and PyVCP
Steve,

what custom GUI do you use?
Just check the code of gscreen or gmoccapy to see, how we do include panel.

Norbert

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

More
02 Jun 2015 05:14 #59322 by cmorley
Replied by cmorley on topic Custom GUI and PyVCP
AXIS uses the same widget toolkit as pyVCP (so can natively embedded)
I would bet your custom GUI is GTK based.
Unfortunately IFAIK pyVCP cannot be embedded into GTK based screens.

gladeVCP panels can be embedded.
can you build your pyVCP panel with gladeVCP?

Chris M

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

More
02 Jun 2015 14:33 #59334 by sdfzz
Replied by sdfzz on topic Custom GUI and PyVCP
Hi, Chris, Norbert,

Thank you for replies. Indeed, my GUI is GTK-based, so I guess it cannot include pyVCP panel...

I will work out a way to run my CNC without using pyVCP..

Regards,

Steve

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

More
02 Jun 2015 23:13 #59350 by andypugh
Replied by andypugh on topic Custom GUI and PyVCP

I will work out a way to run my CNC without using pyVCP..


Once you have tried GladeVC you probably won't want to use PyVCP.

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

More
03 Jun 2015 05:28 #59360 by BigJohnT
Replied by BigJohnT on topic Custom GUI and PyVCP
I have a tutorial on GladeVCP...

gnipsel.com/linuxcnc/index.html

JT

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

More
13 Jun 2015 01:10 #59753 by vre
Replied by vre on topic Custom GUI and PyVCP
i have a pyvcp custom panel (for huanyang vfd) to the right side of axis gui.
How can move this pyvcp panel to an axis tab like dro tab/ngcgui tabs ?

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

More
13 Jun 2015 01:24 - 13 Jun 2015 01:25 #59754 by andypugh
Replied by andypugh on topic Custom GUI and PyVCP

i have a pyvcp custom panel (for huanyang vfd) to the right side of axis gui.
How can move this pyvcp panel to an axis tab like dro tab/ngcgui tabs ?


You could try doing the same thing:
www.linuxcnc.org/docs/html/gui/gladevcp....t_to_dro_and_preview

The Command would be something like "halcmd loadusr pyvcp -c mypanel mypanel.xml"

I don't know if it works.
Last edit: 13 Jun 2015 01:25 by andypugh.

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

More
13 Jun 2015 03:44 #59765 by vre
Replied by vre on topic Custom GUI and PyVCP
with this in my .ini file
[DISPLAY]
EMBED_TAB_NAME=Huanyang
EMBED_TAB_COMMAND=halcmd loadusr pyvcp -c custompanel custompanel.xml

Creates a new empty tab "Huanyang" and the panel opens in a new window...

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

More
13 Jun 2015 03:50 #59768 by andypugh
Replied by andypugh on topic Custom GUI and PyVCP

Creates a new empty tab "Huanyang" and the panel opens in a new window...


Well, it's a start. Clearly you need a different "command". I don't actually know if this will _ever_ work, but there might be other command-line parameters in the PyVCP docs that give further clues.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum