PythoncadBugTraker item #2929317, was opened at 2010-01-10 16:04
Message generated for change (Comment added) made by matteoboscolo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1128790&aid=2929317&group_id=263167
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Bug
Group: Gui Developer
>Status: Closed
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Gertwin (gertwin)
Assigned to: Nobody/Anonymous (nobody)
Summary: Exception when accept changes in Preferences dialog
Initial Comment:
When I do some changes in the preferences dialog and try to safe them with the "OK" button a exception is thrown:
Traceback (most recent call last):
File "/Users/gertwin/Work/PythonCAD/R38/pythoncad/PythonCAD/Interface/Menu/editmenu.py", line 154, in prefs_cb
gtkprefs.prefs_dialog(gtkimage)
File "/Users/gertwin/Work/PythonCAD/R38/pythoncad/PythonCAD/Interface/Preferences/gtkprefs.py", line 2799, in prefs_dialog
preferences.save_user_prefs()
File "/Users/gertwin/Work/PythonCAD/R38/pythoncad/PythonCAD/Generic/preferences.py", line 1671, in save_user_prefs
_save_dimstyle_values(_f)
File "/Users/gertwin/Work/PythonCAD/R38/pythoncad/PythonCAD/Generic/preferences.py", line 1482, in _save_dimstyle_values
if abs(_val - _ds.getOption('DIM_EXTENSION')) > 1e-10:
TypeError: unsupported operand type(s) for -: 'Color' and 'float'
----------------------------------------------------------------------
>Comment By: Matteo Boscolo (matteoboscolo)
Date: 2011-01-17 08:16
Message:
old bug with gtk interface
----------------------------------------------------------------------
Comment By: Gertwin (gertwin)
Date: 2010-01-11 21:35
Message:
Values:
_val = <PythonCAD.Generic.color.Color 0x336d2d0; len=20>
_ds.getOption('DIM_EXTENSION') = 1.0
I can reproduce this error by selection the options tabs one by one
clicking in the list on the left side.
In the list first click "Basic", after that "Sized Objects", etc. until
"Dimensions".
If the dialog is accepted with "OK" this exception is thrown.
Opening the preferences dialog and only selecting "Dimensions" in the list
on the left and close with "OK" will not reproduce the error.
----------------------------------------------------------------------
Comment By: Matteo Boscolo (matteoboscolo)
Date: 2010-01-11 06:58
Message:
in my linux installation i can't reproduce the error.
it's a ss
sytematic error?
culd you print the value of
_val
and
_ds.getOption('DIM_EXTENSION')
in the preference.py _save_dimstyle_values function ?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1128790&aid=2929317&group_id=263167
|