Nested Tabs Imposable?

More
17 Oct 2013 22:24 #40016 by BigJohnT
Replied by BigJohnT on topic Nested Tabs Imposable?
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???

JT

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

More
17 Oct 2013 22:52 #40018 by ArcEye
Replied by ArcEye on topic Nested Tabs Imposable?

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.

More
17 Oct 2013 22:57 #40019 by DaOne
Replied by DaOne on topic Nested Tabs Imposable?
So if I am understanding correctly what I am trying to do is not possible at this time?

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

More
17 Oct 2013 23:34 - 17 Oct 2013 23:42 #40020 by ArcEye
Replied by ArcEye on topic Nested Tabs Imposable?

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
Last edit: 17 Oct 2013 23:42 by ArcEye.
The following user(s) said Thank You: DaOne

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

More
19 Oct 2013 19:15 #40063 by ArcEye
Replied by ArcEye on topic Nested Tabs Imposable?
Hi

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
Attachments:

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

More
20 Oct 2013 08:27 #40074 by DaOne
Replied by DaOne on topic Nested Tabs Imposable?
Thanks for trying Arceye. I really appreciate it. I guess now its time to learn glade. :) Happen to know of any pre-done panels for a lathe? :laugh:

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

More
20 Oct 2013 15:14 #40076 by ArcEye
Replied by ArcEye on topic Nested Tabs Imposable?
JT did a tutorial for glade
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.

More
20 Oct 2013 20:18 #40088 by andypugh
Replied by andypugh on topic Nested Tabs Imposable?

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.

Time to create page: 0.290 seconds
Powered by Kunena Forum