Lots of bup fixes, API updates, etc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -661,9 +661,10 @@ _haveUpdated = False
|
||||
def updateColourDB():
|
||||
global _haveUpdated
|
||||
if not _haveUpdated:
|
||||
from wxPython.wx import wxTheColourDatabase
|
||||
import wx
|
||||
assert wx.GetApp() is not None, "You must have a wx.App object before you can use the colour database."
|
||||
cl = getColourInfoList()
|
||||
for info in cl:
|
||||
wxTheColourDatabase.Append(*info)
|
||||
wx.TheColourDatabase.Append(*info)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user