Error in tool_offsetview.py
- MarkoPolo
- Offline
- Elite Member
-
Less
More
- Posts: 280
- Thank you received: 77
17 May 2025 13:12 #328626
by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
I noticed that after starting it doesn't load the 'true' state
in radiobuttons .
I modified this logic a bit and now it works:
rabiobutton with "radiotrue/true/radiofalse/false'
checkbox with 'checktrue/checkfalse'
What do you think about this?
in radiobuttons .
I modified this logic a bit and now it works:
rabiobutton with "radiotrue/true/radiofalse/false'
checkbox with 'checktrue/checkfalse'
What do you think about this?
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
Less
More
- Posts: 7907
- Thank you received: 2142
17 May 2025 18:23 #328646
by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
That would work.. I pushed something similar before your post.
The following user(s) said Thank You: MarkoPolo
Please Log in or Create an account to join the conversation.
- MarkoPolo
- Offline
- Elite Member
-
Less
More
- Posts: 280
- Thank you received: 77
17 May 2025 18:49 #328647
by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
I didn't fully understand it, but I've already tested your update, everything works fine.
The following user(s) said Thank You: cmorley
Please Log in or Create an account to join the conversation.
- MarkoPolo
- Offline
- Elite Member
-
Less
More
- Posts: 280
- Thank you received: 77
18 May 2025 09:59 #328681
by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
One more correction would be useful.
In the macro file there is such an entry as path:~/macro,
I think that it should be the directory where configurations are saved and from where they are read. Instead, it always opens the directory from the "last_loaded_directory" entry in qtdragon.pref
In the macro file there is such an entry as path:~/macro,
I think that it should be the directory where configurations are saved and from where they are read. Instead, it always opens the directory from the "last_loaded_directory" entry in qtdragon.pref
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
Less
More
- Posts: 7907
- Thank you received: 2142
18 May 2025 11:54 #328685
by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
macrotab will now honour these entries in MACEOOPTIONS:
default:default.txt
path:~/linuxcnc/nc_files/macros
You can set them to any valid name.path you like (filename must end in .txt)
Do you think it would be nicer to use this path the very first time then use one from the preference file? This would make it remember the last used path rather then always using the one defined in the macro file.
default:default.txt
path:~/linuxcnc/nc_files/macros
You can set them to any valid name.path you like (filename must end in .txt)
Do you think it would be nicer to use this path the very first time then use one from the preference file? This would make it remember the last used path rather then always using the one defined in the macro file.
Please Log in or Create an account to join the conversation.
- MarkoPolo
- Offline
- Elite Member
-
Less
More
- Posts: 280
- Thank you received: 77
18 May 2025 12:49 #328689
by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
I tested it. (Updated dialog_widget.py and macro_widget.py)
It works fine, but only with the "load" button. If I want to save the settings, it's the old way. (path from qtdragon.pref)
I think it would be better to always use the path defined in the macro file. Then each macro can collect its different settings in a defined directory.
It works fine, but only with the "load" button. If I want to save the settings, it's the old way. (path from qtdragon.pref)
I think it would be better to always use the path defined in the macro file. Then each macro can collect its different settings in a defined directory.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
Less
More
- Posts: 7907
- Thank you received: 2142
18 May 2025 23:13 #328720
by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Ok I tried fixing it again

The following user(s) said Thank You: MarkoPolo
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.089 seconds