Nested Tabs Imposable?
JT
Please Log in or Create an account to join the conversation.
Would you mind showing me where in the xml code I would be defining its size?
Unfortunately it does not work like that at present
If you call pyvcp directly you can use the -g [<WxH><+X+Y>] switch, but then you end up with a floating window
Axis does this to embed the pyvcp widgets
if vcp:
import vcpparse
comp.setprefix("pyvcp")
f = Tkinter.Frame(root_window)
f.grid(row=0, column=4, rowspan=6, sticky="nw", padx=4, pady=4)
vcpparse.filename = vcp
vcpparse.create_vcp(f, comp)
comp.ready()
vcpparse is a seperate file which parses the xml and creates the widgets.
I am going to have to look through pyvcp_widgets again, I may have to make some more changes, if it can be done at xml level
JT wrote
I also tried loading the pyvcp panel in the hal file but it does not embed into Axis. Unless there is a loadusr command string that will embed it into Axis???
The only thing that might embed is something like
EMBED_TAB_COMMAND = halrun loadusr -Wn tab pyvcp -c tab tab.xml {XID}
in the ini file
I will try that in a bit
regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
JT wrote
I also tried loading the pyvcp panel in the hal file but it does not embed into Axis. Unless there is a loadusr command string that will embed it into Axis???
ArcEye wrote:
The only thing that might embed is something like
EMBED_TAB_COMMAND = halrun loadusr -Wn tab pyvcp -c tab tab.xml {XID}
in the ini file
No that doesnt work, it is spookly similar to how you embed a gladeVCP widget through
Will keep on trying.
So if I am understanding correctly what I am trying to do is not possible at this time?
It should be, but appears not to work with embedded widgets, because of the way they are created.
I am playing with tkInter.pack() at present, because that is what is used underneath.
EDIT
Well in fact the widget is based upon bWidget.notebook I have just found
I will have a dig into it to see what can be changed in pyvcp_widgets that might display the contents of a nested widget properly
Please Log in or Create an account to join the conversation.
Afraid I am giving up on this, the only solution I have found that works, is to create the pyvcp panel in a postgui.hal file with something like
loadusr -Wn tab pyvcp -c tab -g 200x300 tab.xml
If you must have nested tabs AND have it embedded, will probably be simpler to create the panel with glade.
regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
www.gnipsel.com/glade/index.html
The main wiki is here
www.linuxcnc.org/docs/html/gui/gladevcp.html
The examples are in configs/gladevcp in a RIP build or probably /usr/share/linuxcnc/configs/ on an installed system ( I haven't used one for a while)
Then there is the forum section
www.linuxcnc.org/index.php/english/forum/48-gladevcp
good luck
Please Log in or Create an account to join the conversation.
Happen to know of any pre-done panels for a lathe?
www.linuxcnc.org/index.php/english/forum...s/26550-lathe-macros
Please Log in or Create an account to join the conversation.