Used interger devision in ColourDB due to python 3 change

This commit is contained in:
Steve Barnes
2016-06-02 06:53:08 +01:00
parent e900c979c9
commit 064805dcfe

View File

@@ -110,12 +110,12 @@ class TestWindow(wx.ScrolledWindow):
rect = rgn.GetBox()
pixStart = vs[1]*self.lineHeight + rect.y
pixStop = pixStart + rect.height
start = pixStart / self.lineHeight - 1
stop = pixStop / self.lineHeight
start = pixStart // self.lineHeight - 1
stop = pixStop // self.lineHeight
else:
start = 0
stop = numColours
for line in range(max(0,start), min(stop,numColours)):
clr = colours[line][0]
y = (line+1) * self.lineHeight + 2