- Posts: 574
- Thank you received: 96
Error in tool_offsetview.py
- hottabich
- Offline
- Platinum Member
-
Less
More
3 years 10 months ago #259875
by hottabich
Replied by hottabich on topic Error in tool_offsetview.py
The dot is not put because editing is allowed in the floating point interface. How often do you edit these values in a screenshot? I agree with you that the interface is more convenient.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
3 years 10 months ago - 3 years 10 months ago #259942
by hottabich
Replied by hottabich on topic Error in tool_offsetview.py
Hello Marek! Line_edit issue resolved. You just need to edit the handler as in the screenshot. Question with a validator, but I'm not a programmer.
Last edit: 3 years 10 months ago by hottabich.
- MarkoPolo
- Offline
- Elite Member
-
Less
More
- Posts: 319
- Thank you received: 90
3 years 10 months ago #259983
by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
I found the reason for the lack of dots. The validator is locale-sensitive, and in some locales the decimal separator is a comma instead of a period. I corrected this entry in the handler file and it works fine now.
"self.valid = QtGui.QDoubleValidator(-999.999, 999.999, 3).setLocale(QtCore.QLocale("en_US"))"
I am sending the corrected file.
It doesn't work in the "probe" and "utils" tabs yet, but it needs to be changed in other files, I don't know where.
"self.valid = QtGui.QDoubleValidator(-999.999, 999.999, 3).setLocale(QtCore.QLocale("en_US"))"
I am sending the corrected file.
It doesn't work in the "probe" and "utils" tabs yet, but it needs to be changed in other files, I don't know where.
The following user(s) said Thank You: hottabich
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
3 years 10 months ago - 3 years 10 months ago #260022
by hottabich
Replied by hottabich on topic Error in tool_offsetview.py
Perhaps this will help you.
Last edit: 3 years 10 months ago by hottabich.
- MarkoPolo
- Offline
- Elite Member
-
Less
More
- Posts: 319
- Thank you received: 90
3 years 10 months ago #260031
by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
I corrected the rest of the files and now everything works fine in the whole qtdragon.
The following user(s) said Thank You: hottabich
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
3 years 10 months ago #260039
by hottabich
Replied by hottabich on topic Error in tool_offsetview.py
Everything works great. Thank you!
Moderators: cmorley
Time to create page: 1.855 seconds