Error in tool_offsetview.py

More
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?
Attachments:

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

More
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.

More
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.

More
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
Attachments:

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

More
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.

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

More
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.

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

More
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.090 seconds
Powered by Kunena Forum