Fix for Python 3.10

Fixes https://github.com/OSGeo/grass/issues/2045
This commit is contained in:
Anna Petrasova
2022-01-08 22:30:04 -05:00
committed by GitHub
parent fcf49322b6
commit da4dbf1110

View File

@@ -6586,7 +6586,7 @@ class CustomTreeCtrl(wx.ScrolledWindow):
rf, gf, bf = 0, 0, 0
for y in range(rect.y, rect.y + rect.height):
currCol = (r1 + rf, g1 + gf, b1 + bf)
currCol = (int(r1 + rf), int(g1 + gf), int(b1 + bf))
dc.SetBrush(wx.Brush(currCol, wx.BRUSHSTYLE_SOLID))
dc.DrawRectangle(rect.x, y, rect.width, 1)
rf = rf + rstep
@@ -6693,7 +6693,7 @@ class CustomTreeCtrl(wx.ScrolledWindow):
dc.SetPen(wx.TRANSPARENT_PEN)
for y in range(filRect.y, filRect.y + filRect.height):
currCol = (r1 + rf, g1 + gf, b1 + bf)
currCol = (int(r1 + rf), int(g1 + gf), int(b1 + bf))
dc.SetBrush(wx.Brush(currCol, wx.BRUSHSTYLE_SOLID))
dc.DrawRectangle(filRect.x, y, filRect.width, 1)
rf = rf + rstep