Error in tool_offsetview.py

More
1 year 5 months ago #328564 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
I did push some work to fix an error I found.
The following user(s) said Thank You: MarkoPolo

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

More
1 year 5 months ago #328586 by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
It's almost good.

Setting the style in the qtdragon file is quite sufficient.

Restoring settings from the file works well, but only if they are integers.
If it's a floating-point number, then an error appears as in the screenshot.

Another problem (request, proposal) is the "RadioButton" element. It works like a switch and in some macros this is the desired behavior, but in others it is not.
If I want more items to check a logical condition, then there is a problem. That's why a new "CheckBox" element would be useful.
Attachments:
The following user(s) said Thank You: tommylight

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

More
1 year 5 months ago #328593 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Ok fixed floating point problem.

added new default commands:
for a radio button (with exclusive behavior)
radiotrue
radiofalse

for a checkbox (independent):
checktrue
checkfalse

true and false now will show a checkable pushbutton

Chris
The following user(s) said Thank You: MarkoPolo

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

More
1 year 5 months ago #328604 by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
Great.

Everything works fine, that's what I wanted. Thanks a lot.

It would be good to update the documentation, because old ngc files with "MACRODEFAULTS=true,false" settings will stop working for some users after updating "MacroTab".

Marek

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

More
1 year 5 months ago #328611 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
I did update the docs but..
Maybe I should set true/false to be radio buttons too and add buttontrue/false.

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

More
1 year 5 months ago #328614 by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
Maybe leave it as it is now, but add so that radioButton also works with true/false string for backward compatibility ?


 

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

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