Error in tool_offsetview.py

More
1 year 5 months ago #328626 by MarkoPolo
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?

Please Log in to join the conversation.

More
1 year 5 months ago #328646 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
That would work.. I pushed something similar before your post.

Please Log in to join the conversation.

More
1 year 5 months ago #328647 by MarkoPolo
I didn't fully understand it, but I've already tested your update, everything works fine.

 

Please Log in to join the conversation.

More
1 year 5 months ago #328681 by MarkoPolo
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

Please Log in to join the conversation.

More
1 year 5 months ago #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 to join the conversation.

More
1 year 5 months ago #328689 by MarkoPolo
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 to join the conversation.

More
1 year 5 months ago #328720 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Ok I tried fixing it again :)

Please Log in to join the conversation.

More
1 year 5 months ago #328994 by MarkoPolo
I found another problem with the MacroTab Widget related to the recent checkbox element improvement.

The checkbox element is not taken into account when numbering variables. All elements below the checkbox are shifted. #4 has value #5 etc. Two checkbox elements will shift everything below by 2, as in the screenshot.

Please Log in to join the conversation.

More
1 year 5 months ago #329026 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Ok try the latest please.

Please Log in to join the conversation.

More
1 year 5 months ago #329038 by MarkoPolo
Now it works properly, thanks.

Please Log in to join the conversation.

Time to create page: 0.483 seconds
Powered by Kunena Forum