summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-02-11 16:26:26 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-02-11 16:26:26 (GMT)
commit726b238860d6ec09a9ad1ca227390dddfdc01047 (patch)
treed4f5e77f08e7b4031b4a428c94d339e39246644b /Mac/Tools
parent82ed25c15a8f79011161356cae5fffb49af8b24a (diff)
downloadcpython-726b238860d6ec09a9ad1ca227390dddfdc01047.zip
cpython-726b238860d6ec09a9ad1ca227390dddfdc01047.tar.gz
cpython-726b238860d6ec09a9ad1ca227390dddfdc01047.tar.bz2
- More int() calls around floating point numbers passed where integers are
expected. - Fixed resizing of multi-column lists, somewhat.
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/Wlists.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/Wlists.py b/Mac/Tools/IDE/Wlists.py
index 4f0e49b..a40db85 100644
--- a/Mac/Tools/IDE/Wlists.py
+++ b/Mac/Tools/IDE/Wlists.py
@@ -74,7 +74,7 @@ class List(Wbase.SelectableWidget):
# now *why* doesn't the list manager recalc the cellrect???
l, t, r, b = self._list.LRect((0,0))
cellheight = b - t
- self._list.LCellSize((width, cellheight))
+ self._list.LCellSize((width/self._cols, cellheight))
# reset visRgn
self._parentwindow.wid.CalcVis()
else:
@@ -456,10 +456,10 @@ class TwoLineList(CustomList):
line2 = lines[1]
else:
line2 = ""
- Qd.MoveTo(left + 4, top + ascent)
+ Qd.MoveTo(int(left + 4), int(top + ascent))
Qd.DrawText(line1, 0, len(line1))
if line2:
- Qd.MoveTo(left + 4, top + ascent + linefeed)
+ Qd.MoveTo(int(left + 4), int(top + ascent + linefeed))
Qd.DrawText(line2, 0, len(line2))
Qd.PenPat("\x11\x11\x11\x11\x11\x11\x11\x11")
bottom = top + theList.cellSize[1]