Does anybody know, how to get the list of *all* colours defined
in the wx.TheColourDatabase?
This info is probably defined somewhere in the class (attribute?),
but where?
Pseudo code:
for e in <wx.TheColourDatabase.list_of_colour_strings>
print e
from wx.lib.colourdb import getColourList
for color in getColourList():
print color
I hope this helps
Peter
···
On Fri, 19 Aug 2005 10:53:37 +0300, jmf <jfauth@bluewin.ch> wrote:
Hi,
Does anybody know, how to get the list of *all* colours defined
in the wx.TheColourDatabase?
This info is probably defined somewhere in the class (attribute?),
but where?
Pseudo code:
for e in <wx.TheColourDatabase.list_of_colour_strings>
print e
Does anybody know, how to get the list of *all* colours defined
in the wx.TheColourDatabase?
This info is probably defined somewhere in the class (attribute?),
but where?
Pseudo code:
for e in <wx.TheColourDatabase.list_of_colour_strings>
print e
Did you see this code in the demo?
# This loads a whole bunch of new color names and values
# into TheColourDatabase
···
#
# Note 11/24/03 - jg - I moved this into runTest() because
# there must be a wx.App existing before this function
# can be called - this is a change from 2.4 -> 2.5.
wx.lib.colourdb.updateColourDB()
Jean-Michel Fauth, Switzerland
See you
Werner
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org