mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 12:00:13 +01:00
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:
@@ -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] ]
|
||||
|
||||
Reference in New Issue
Block a user