This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients PythonInTheGrass, amaury.forgeotdarc, belopolsky, cgohlke, loewis, pitrou, terry.reedy
Date 2011-02-05.14:22:23
SpamBayes Score 7.869495e-05
Marked as misclassified No
Message-id <>
Tk produces "bad screen distance" in Tk_GetScreenMM (convert string to screen millimeters) and TkGetDoublePixels (convert string to number of pixels) when strtod fails on the string being passed. It also produces the error in SetPixelAny (convert object to pixel) if the string doesn't start with a double, and SetMMFromAny (convert object to millimeters) if the string either is no double, or not followed by "[cimp]". Finally, TkPixelParseProc returns the error if TkGetDoublePixels returns a negative number.

In relationship to the canvas line command, TkPixelParseProc is used for converting the -width, -activewidth, and -disabledwidth arguments. None of these are used in the test case, though, so it's not clear which pixel parsing fails specifically.
Date User Action Args
2011-02-05 14:22:25loewissetrecipients: + loewis, terry.reedy, amaury.forgeotdarc, belopolsky, pitrou, cgohlke, PythonInTheGrass
2011-02-05 14:22:25loewissetmessageid: <>
2011-02-05 14:22:24loewislinkissue11077 messages
2011-02-05 14:22:23loewiscreate