From: Jack Jansen Date: Wed, 12 Feb 2003 15:39:16 +0000 (+0000) Subject: More int() around float arguments. X-Git-Tag: v2.3c1~1892 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a359a3d0ac42cb9720af41c1b99fce9422eb0ad3;p=python More int() around float arguments. --- diff --git a/Mac/Tools/IDE/PyBrowser.py b/Mac/Tools/IDE/PyBrowser.py index 19ddbef0f3..397347ed66 100644 --- a/Mac/Tools/IDE/PyBrowser.py +++ b/Mac/Tools/IDE/PyBrowser.py @@ -91,7 +91,7 @@ def truncString(s, maxwid): def drawTextCell(text, cellRect, ascent, theList): l, t, r, b = cellRect cellwidth = r - l - Qd.MoveTo(l + 2, t + ascent) + Qd.MoveTo(int(l + 2), int(t + ascent)) condense, text = truncString(text, cellwidth - 3) if condense: Qd.TextFace(QuickDraw.condense)