Сustomization QTvcp

More
5 years 1 day ago #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.

Please Log in to join the conversation.

More
5 years 1 day ago #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.
 

Please Log in to join the conversation.

More
5 years 1 day ago #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!

Please Log in to join the conversation.

More
4 years 11 months ago #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?

Please Log in to join the conversation.

More
4 years 11 months ago #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)

Please Log in to join the conversation.

More
4 years 11 months ago #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 to join the conversation.

More
4 years 11 months ago #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.

Please Log in to join the conversation.

More
4 years 11 months ago #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.
 

Please Log in to join the conversation.

More
4 years 11 months ago #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.

Please Log in to join the conversation.

More
4 years 11 months ago #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.

Please Log in to join the conversation.

Time to create page: 0.252 seconds
Powered by Kunena Forum