Skip to content

Commit 0205c7c

Browse files
decodeaisswt2c
andauthored
speedmeter.py lost background color (#2528)
* Update speedmeter.py missing typcast makes the backgraound of the speedmeter white * Update wx/lib/agw/speedmeter.py --------- Co-authored-by: Scott Talbert <swt@techie.net>
1 parent e207aa2 commit 0205c7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wx/lib/agw/speedmeter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ def Draw(self, dc):
840840
interface = 0
841841

842842
for ind in range(numsteps+1):
843-
currCol = (r1 + rf, g1 + gf, b1 + bf)
843+
currCol = (int(r1 + rf), int(g1 + gf), int(b1 + bf))
844844
dc.SetBrush(wx.Brush(currCol))
845845

846846
gradradius = flrect - radiusteps*ind

0 commit comments

Comments
 (0)