Menu

#78 change default color handling

open
nobody
None
5
2001-08-21
2001-08-21
Kevin Altis
No

We are currently using:
def __getDefaultColor( self, aColor ) :
if aColor is None :
return wxNullColour
else :
# KEA 2001-07-27
# is the right place for this check?
if type(aColor) is types.TupleType and len
(aColor) == 3:
return wxColour(aColor[0], aColor[1],
aColor[2])
else:
return aColor

What we need to do instead is to be specific about the
default foregroundColor and backgroundColor per widget
type. This also impacts the Background (Panel) default
colors. If we decide to support setting the colors of
specific elements of a widget it may need to be
expanded for that as well.

see:
http://aspn.activestate.com/ASPN/Mail/Message/wxPython-
users/752915

Discussion


Log in to post a comment.