mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Used interger devision in ColourDB due to python 3 change
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user