- Posts: 6803
- Thank you received: 0
Сustomization QTvcp
3 years 9 months ago #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.
Please Log in to join the conversation.
3 years 9 months ago #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.
Please Log in to join the conversation.
3 years 9 months ago #261066
by cmorley
Replied by cmorley on topic Сustomization QTvcp
Sorry, I misunderstood.
Chris
Chris
Please Log in to join the conversation.
3 years 9 months ago #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.
Please Log in to join the conversation.
3 years 9 months ago #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!
Please Log in to join the conversation.
3 years 9 months ago #262548
by cmorley
Replied by cmorley on topic Сustomization QTvcp
Probably this function:
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.
Code:
# 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 to join the conversation.
3 years 9 months ago #262559
by hottabich
Replied by hottabich on topic Сustomization QTvcp
Here is the code:
It is necessary to enter a delay for lowering the spindle ( G4 P5) or lowering after the OK dialog. Thank you for your attention.
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)
Please Log in to join the conversation.
3 years 9 months ago #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.
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)
Please Log in to join the conversation.
3 years 9 months ago #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 to join the conversation.
3 years 9 months ago #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
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
Please Log in to join the conversation.
Time to create page: 0.507 seconds
