From 6b1fb9d761663bba6697f6c4b484660a883c96bb Mon Sep 17 00:00:00 2001 From: Metallicow Date: Tue, 4 Oct 2016 13:25:49 -0500 Subject: [PATCH] auqabutton phoenix fix --- wx/lib/agw/aquabutton.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wx/lib/agw/aquabutton.py b/wx/lib/agw/aquabutton.py index 5c051237..852c6ed3 100644 --- a/wx/lib/agw/aquabutton.py +++ b/wx/lib/agw/aquabutton.py @@ -264,8 +264,9 @@ class AquaButton(wx.Control): r = colour.Red() + ((i*rd*100)/high)/100 g = colour.Green() + ((i*gd*100)/high)/100 b = colour.Blue() + ((i*bd*100)/high)/100 + a = colour.Alpha() - return wx.Colour(r, g, b) + return wx.Colour(int(r), int(g), int(b), int(a)) def OnPaint(self, event):