AGW on Phoenix: more fixes and porting to Phoenix; added unittest for aquabutton.py, flatnotebook.py, gradientbutton.py and infobar.py; minor modifications to wx.lib.masked.maskededit.py and wx.lib.colourutils.py.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Andrea Gavana
2012-12-28 22:08:07 +00:00
parent e1c94aef18
commit 5c33e560c8
53 changed files with 871 additions and 621 deletions

View File

@@ -59,9 +59,9 @@ def AdjustColour(color, percent, alpha=wx.ALPHA_OPAQUE):
:returns: A new darkened/lightened :class:`Colour` with the alpha channel
specified as input
"""
radj, gadj, badj = [ int(val * (abs(percent) / 100.))
for val in color.Get() ]
for val in color.Get(includeAlpha=False) ]
if percent < 0:
radj, gadj, badj = [ val * -1 for val in [radj, gadj, badj] ]