]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/colourdb.py
reSWIGged
[wxWidgets.git] / wxPython / wx / lib / colourdb.py
index ec9ae457f21dba655e44c85f0770cee2b3b1c6aa..8f14df111bb208c5b162b3ea9280f9d4fe9be108 100644 (file)
@@ -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)