Error in tool_offsetview.py

More
10 Aug 2024 00:08 #307394 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
I did push some work that might have improved this. If you are using _hd maybe more work needs to be done the code base is a little different.
The following user(s) said Thank You: tommylight

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

More
18 Aug 2024 11:54 #308064 by MarkoPolo
Hi Chris

I don't know if anyone uses qtdragon_lathe , but I've made a few fixes for bad button sizes.

I've also made a few minor fixes for the brushed_metal_color theme.

I want to make the icons a bit bigger in the gcode editor, but it doesn't work well from the theme file. It can be done directly in the gcode_editor.py file, but that requires editing that file.
Do you have a way to do this in the theme file?
Attachments:
The following user(s) said Thank You: tommylight

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

More
18 Aug 2024 17:38 #308095 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
GcodeEditor QToolButton {
width: 50;
height: 50;}

makes the button bigger - can't make anything related to icon work.

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

More
18 Aug 2024 21:40 #308109 by MarkoPolo
Yes, that's how it works. Just make the buttons bigger. I  improwed the file.
Attachments:

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

More
10 Sep 2024 20:28 #309862 by MarkoPolo
Hello Cmorley

There is a small problem with the spindle lift function during pause.

If you pause the program with the "spindle lift" function and then press stop, the spindle locks and you can't start it, even in manual mode.

1. start the program
2. pause the program (with the "spindle lift" function enabled)
3. stop the program
4. after these actions you can't start the spindle normally.

The only way to start the spindle is either to restart qtdragon or this combination:
1. start the program
2. press "spindle lift"
3. pause the program
4. resume the program

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

More
11 Sep 2024 01:47 #309876 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Try this fix:
    def dialog_return(self, w, message):
        rtn = message.get('RETURN')
        name = message.get('NAME')
        plate_code = bool(message.get('ID') == '_touchplate_')
        sensor_code = bool(message.get('ID') == '_toolsensor_')
        wait_code = bool(message.get('ID') == '_wait_resume_')
        lower_code = bool(message.get('ID') == '_wait_to_lower_')
        unhome_code = bool(message.get('ID') == '_unhome_')
        overwrite = bool(message.get('ID') == '_overwrite_')
        if plate_code and name == 'MESSAGE' and rtn is True:
            self.touchoff('touchplate')
        elif sensor_code and name == 'MESSAGE' and rtn is True:
            self.touchoff('sensor')
        elif wait_code and name == 'MESSAGE':
            self.lowerSpindle()
        elif unhome_code and name == 'MESSAGE' and rtn is True:
            ACTION.SET_MACHINE_UNHOMED(-1)
        elif overwrite and name == 'MESSAGE':
            if rtn is True:
                self.do_file_copy()
            else:
                self.add_status(_translate("HandlerClass","File not copied"), CRITICAL)
        elif lower_code and name == 'MESSAGE':
            self.h['eoffset-spindle-count'] = 0
            self.h['spindle-inhibit'] = False # add this line <------
            self.add_status(_translate("HandlerClass",'Spindle lowered after machine stopped'))

The following user(s) said Thank You: MarkoPolo

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

More
11 Sep 2024 09:18 #309884 by MarkoPolo
Yes, now it works fine.

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

More
24 Sep 2024 21:52 #310735 by MarkoPolo
Hi Cmorley

Since recently, the "DEFAULT_LINEAR_VELOCITY" and "DEFAULT_ANGULAR_VELOCITY" in ini settings have not been working in qtdragon master.

Whatever value you enter, after starting qtdragon it is 15 and 360 respectively

I also have a slightly older version of master 2.10.0-pre0-3309, and it works fine in this version

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

More
26 Sep 2024 05:34 #310812 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Sorry for the delay - busy in life :)
I pushed a fix for default jog rates to master.
Thank you for the report.
The following user(s) said Thank You: tommylight, MarkoPolo

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

More
26 Sep 2024 10:21 #310820 by MarkoPolo
DEFAULT_LINEAR_VELOCITY now works correctly.

DEFAULT_ANGULAR_VELOCITY does not work yet.

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

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