Сustomization QTvcp

More
29 Oct 2021 17:01 #224662 by cmorley
Replied by cmorley on topic Сustomization QTvcp
You can add a signal in designer to tab_widget that is sent when the tab changes.
currentChanged(int) pobably would do what you want.
The following user(s) said Thank You: hottabich

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

More
29 Oct 2021 19:30 - 29 Oct 2021 19:48 #224666 by hottabich
Replied by hottabich on topic Сustomization QTvcp

You can add a signal in designer to tab_widget that is sent when the tab changes.
currentChanged(int) pobably would do what you want.

 
I don't see the sender (tab_mdi) in the constructor.
self.w.main_tab_widget.setCurrentIndex(TAB_MDI)
            self.w.tab_mdi.setChecked(True)
ACTION.SET_MDI_MODE()
        self.w.mdi_mode_button.setChecked(True) I need to somehow link it in the handler. I think so.
 

Attachments:
Last edit: 29 Oct 2021 19:48 by hottabich.

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

More
29 Oct 2021 20:17 - 01 Nov 2021 21:21 #224670 by hottabich
Replied by hottabich on topic Сustomization QTvcp
The question is closed. Did this:
        def btn_start_macro_clicked(self):
        if STATUS.is_mdi_mode():
           self.w.tab_mdi
           print 'run MDI'
        self.w.mditouchy.run_command()
        return
Thank you for the attention!
Last edit: 01 Nov 2021 21:21 by hottabich.
The following user(s) said Thank You: cmorley

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

More
09 Nov 2021 21:59 #225884 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Modified sim_panel.ui for full screen. Please tell me how to add to sim_panel view dro?
Attachments:

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

More
10 Nov 2021 04:15 #225917 by cmorley
Replied by cmorley on topic Сustomization QTvcp
If you want to turn the embedded DRO on and off this should work:

self.w.GCODE_GRAPHICS_NAME.setProperty('_dro',True)
self.w.GCODE_GRAPHICS_NAME.setProperty('_dro',False)
The following user(s) said Thank You: hottabich

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

More
10 Nov 2021 05:45 #225925 by hottabich
Replied by hottabich on topic Сustomization QTvcp

If you want to turn the embedded DRO on and off this should work:

self.w.GCODE_GRAPHICS_NAME.setProperty('_dro',True)
self.w.GCODE_GRAPHICS_NAME.setProperty('_dro',False)
 

Thanks, but where to register for sim_panel.ui?

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

More
10 Nov 2021 13:55 #225987 by cmorley
Replied by cmorley on topic Сustomization QTvcp
you would add a handler file called sim_panel_handler.py in your config folder.
The following user(s) said Thank You: hottabich

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

More
10 Nov 2021 18:51 - 10 Nov 2021 21:07 #226022 by hottabich
Replied by hottabich on topic Сustomization QTvcp

you would add a handler file called sim_panel_handler.py in your config folder.
 
Thanks. Ideally used using widgetswitcher.
But this is probably impossible. What do you think?
Thanks to your advice, it turned out like this in the screenshot.
 

Attachments:
Last edit: 10 Nov 2021 21:07 by hottabich.

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

More
11 Nov 2021 02:10 #226053 by cmorley
Replied by cmorley on topic Сustomization QTvcp
So I might not understand what you are wanting.
Widgetswitcher is for moving a widget around on the screen. you asked about setting the DRO property on and off.
The following user(s) said Thank You: hottabich

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

More
11 Nov 2021 05:09 #226063 by hottabich
Replied by hottabich on topic Сustomization QTvcp
With sim_panel_handler.py dro is included on and off, everything is fine. Then I had an idea aboutmoving gcodegraphics into a separate scalable window for any monitor, but this is not possible. I think so.
Thanks for your help.
Attachments:

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

Moderators: cmorley
Time to create page: 0.122 seconds
Powered by Kunena Forum