X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b881fc787d2823bdd8a415080b82feee90804a17..32485259c1342115488d219776dfebeb3d4d81b1:/wxPython/wx/lib/colourdb.py?ds=inline diff --git a/wxPython/wx/lib/colourdb.py b/wxPython/wx/lib/colourdb.py index 677d60c712..c053c5ce0f 100644 --- a/wxPython/wx/lib/colourdb.py +++ b/wxPython/wx/lib/colourdb.py @@ -12,16 +12,19 @@ #---------------------------------------------------------------------- """ -Load color names/values from the rgb.txt file on my system... +Load addition color names/values into the wx colour database. These +names and values originally came from the rgb.txt file on my system... """ def getColourList(): + """Returns a list of just the colour names used by this module.""" return [ x[0] for x in getColourInfoList() ] def getColourInfoList(): + """Returns the list of colour name/value tuples used by this module.""" return [ ("SNOW", 255, 250, 250), ("GHOST WHITE", 248, 248, 255), @@ -659,6 +662,7 @@ def getColourInfoList(): _haveUpdated = False def updateColourDB(): + """Updates the wx colour database by adding new colour names and RGB values.""" global _haveUpdated if not _haveUpdated: import wx @@ -668,5 +672,5 @@ def updateColourDB(): for info in cl: wx.TheColourDatabase.Append(*info) - _haveUpdated = True + _haveUpdated = True