Сustomization QTvcp

More
05 Jan 2023 22:48 #261046 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Ufortunately, you can't. That is made from tkinter, which is not embeddable. You would need to rebuild it in qt or gtk (qtvcp or gladevcp). Both of those libraries are embeddable.
The following user(s) said Thank You: hottabich

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

More
06 Jan 2023 03:52 - 06 Jan 2023 04:09 #261061 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Sorry! I didn't ask the right question. Everything turned out just need to open with three axes. Thanks for the answer.
Attachments:
Last edit: 06 Jan 2023 04:09 by hottabich.

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

More
06 Jan 2023 06:13 #261066 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Sorry, I misunderstood.

Chris

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

More
07 Jan 2023 11:58 #261160 by hottabich
Replied by hottabich on topic Сustomization QTvcp
In QtDragon_hd disable_spindle_pause not working screenshot 1, 2. I propose to do as in screenshots 3,4. The btn_pause_spindle button function is disabled.
Attachments:

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

More
20 Jan 2023 12:06 #262475 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Hello! Is it possible to somehow make the lowering of the tool only after pressing the OK button? Please tell me. This is necessary so that the tool does not gain momentum on the surface of the material. Thank you!
Attachments:

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

More
21 Jan 2023 04:17 #262548 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Probably this function:
    # tool frame
    def disable_pause_buttons(self, state):
        self.w.action_pause.setEnabled(not state)
        self.w.action_step.setEnabled(not state)
        if state:
        # set external offsets to lift spindle
            self.h['eoffset-enable'] = self.w.chk_eoffsets.isChecked()
            fval = float(self.w.lineEdit_eoffset_count.text())
            self.h['eoffset-count'] = int(fval)
            self.h['spindle-inhibit'] = True
        else:
            self.h['eoffset-count'] = 0
            self.h['eoffset-clear'] = True
            self.h['spindle-inhibit'] = False
        # instantiate warning box
            info = "Wait for spindle at speed signal before resuming"
            mess = {'NAME':'MESSAGE', 'ICON':'WARNING', 'ID':'_wait_resume_', 'MESSAGE':'CAUTION', 'MORE':info, 'TYPE':'OK'}
            ACTION.CALL_DIALOG(mess)

I bet you need to set:
self.h = False
then put up the dialog
Then when the dialog returns set:
self.h = 0
self.h = True

Please let me know if you try it.

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

More
21 Jan 2023 08:05 #262559 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Here is the code:
def btn_pause_spindle_clicked(self, state):
        eofsets = self.w.chk_eoffsets.isChecked()
        if eofsets:
            self.w.action_pause.setEnabled(not state)
            self.w.action_step.setEnabled(not state)
            if state:
            # set external offsets to lift spindle
                self.h['eoffset-enable'] = self.w.chk_eoffsets.isChecked()
                fval = float(self.w.lineEdit_eoffset_count.text())
                self.h['eoffset-spindle-count'] = int(fval)
                self.w.spindle_eoffset_value.setText(self.w.lineEdit_eoffset_count.text())
                self.h['spindle-inhibit'] = True
                #self.w.btn_enable_comp.setChecked(False)
                #self.w.widget_zaxis_offset.hide()
                if not QHAL.hal.component_exists("z_level_compensation"):
                    self.add_status("Z level compensation HAL component not loaded", CRITICAL)
                    return
                #self.h['comp-on'] = False
            else:
                self.h['eoffset-spindle-count'] = 0
                self.w.spindle_eoffset_value.setText('0')
                #self.h['eoffset-clear'] = True
                self.h['spindle-inhibit'] = False
                if STATUS.is_auto_running():
                # instantiate warning box
                    info = "Wait for spindle at speed signal before resuming"
                    mess = {'NAME':'MESSAGE', 'ICON':'WARNING',
                        'ID':'_wait_resume_', 'MESSAGE':'CAUTION',
                        'NONBLOCKING':'True', 'MORE':info, 'TYPE':'OK'}
                    ACTION.CALL_DIALOG(mess)
It is necessary to enter a delay for lowering the spindle ( G4 P5) or lowering after the OK dialog. Thank you for your attention.
Attachments:

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

More
22 Jan 2023 21:21 #262677 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Everything worked out. I created a separate button for lowering the spindle. With chk_eoffsets non checked btn_pause_spindle no activated. I am attaching the code.
def btn_pause_spindle_clicked(self, state):
        eofsets = self.w.chk_eoffsets.isChecked()
        if eofsets:
            self.w.action_pause.setEnabled(not state)
            self.w.action_step.setEnabled(not state)
            if state:
            # set external offsets to lift spindle
                self.h['eoffset-enable'] = self.w.chk_eoffsets.isChecked()
                fval = float(self.w.lineEdit_eoffset_count.text())
                self.h['eoffset-spindle-count'] = int(fval)
                self.w.spindle_eoffset_value.setText(self.w.lineEdit_eoffset_count.text())
                self.h['spindle-inhibit'] = True
                #self.w.btn_enable_comp.setChecked(False)
                #self.w.widget_zaxis_offset.hide()
                if not QHAL.hal.component_exists("z_level_compensation"):
                    self.add_status("Z level compensation HAL component not loaded", CRITICAL)
                    return
                #self.h['comp-on'] = False
            else:
                self.h['spindle-inhibit'] = False
                self.w.stackedWidget_5.setCurrentIndex(1)
                self.w.btn_lower_the_spindle.isChecked()
                self.w.action_pause.setEnabled(False)
                
    def lower_the_spindle_pressed(self):            
            self.h['eoffset-spindle-count'] = 0           
            self.w.spindle_eoffset_value.setText('0')
            self.w.stackedWidget_5.setCurrentIndex(0)
            self.w.btn_pause_spindle.isChecked()
            self.w.action_pause.setEnabled(True)
            if STATUS.is_auto_running():   
                # instantiate warning box
                    info = "Wait for spindle at speed signal before resuming"
                    mess = {'NAME':'MESSAGE', 'ICON':'WARNING',
                        'ID':'_wait_resume_', 'MESSAGE':'CAUTION',
                        'NONBLOCKING':'True', 'MORE':info, 'TYPE':'OK'}
                    ACTION.CALL_DIALOG(mess)
Attachments:

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

More
29 Jan 2023 20:18 #263183 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Hi Chris! I posted all the woodpecker interface options on GitHub and made the latest changes. Please update if possible. Sincerely, Yura. Thank you! 

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

More
29 Jan 2023 23:14 #263193 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Yura.
As is, that is just too much work for me.
You have created these to be integrated locally in the users config file.
To be included in linuxcnc's repository they must be integrated in the standard places.

If you could fork linuxcnc's github repository (pick branch 2.9 or master) and commit your work in the standard places ie share/qtvcp/screens/woodpecker then it's much easier for me.

Also compensation.py and gcode_ripper are included in linuxcnc so adding them is a sample config is a not necessary.

I would start with one version say the 5 axis version (as we don't have a 5 axis qtvcp screen yet)
I can guide you more as you need it.
I hope you can find time to do this as I'd like to update woodpecker to the latest greatest.

Chris
The following user(s) said Thank You: hottabich

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

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