QtDragon feature request go_to_zero

More
29 Dec 2021 13:42 #230235 by ucancallmebob89
I figured out how to do it from the ini yesterday, I'll make a post showing what I did later today when I have more time.

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

More
30 Dec 2021 05:01 #230319 by ucancallmebob89
Ok here's my macro button implementation:
 

You can have up to 10 macro buttons. You define the labels for each one according to its corresponding MDI_COMMAND.


I had to add one line to qt_istat.py, so here's the git diff. The changes to origin_offsetview.py and tool_offsetview.py are just cosmetic to fix the godawful highlight color.
 

File Attachment:

File Name: git_diff_qt_istat.txt
File Size:2 KB


And here's my updated .ui and handler.py files. I would supply the git diff for those but my VS Code does code cleanup and it changed a lot of arbitrary things.

qtdragon_hd_handler.py: I added a few dozen lines of code at the end of the initialized__ method. It assigns each label to a macrobutton and hides the macrobuttons not in use.
 

File Attachment:

File Name: qtdragon_h...ndler.py
File Size:51 KB


qtdragon_hd.ui: The main change is to add the frame_macro_buttons section. It also changes the led off_colors to red.
 

File Attachment:

File Name: qtdragon_hd.ui
File Size:608 KB

 
Attachments:
The following user(s) said Thank You: tommylight, zu4lu

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

More
23 Jan 2022 09:21 #232867 by cmorley
I finally added this idea to master. thanks for the code and the feedback.
The difference is you add the label text to the MDI command line after a comma.
ie.

[MDI_COMMAND_LIST]
MDI_COMMAND = G0 Z25 X0 Y0;Z0,Goto\nZero
MDI_COMMAND = G53 G0 Z0;G53 G0 X0 Y0,Goto\nMach\nZero
The following user(s) said Thank You: ikkuh

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

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