X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b166c70307f14952b3844837c98602425020e1c5..bfdc04a9bb95e6865570d59192718052b6229221:/wxPython/demo/ColourDB.py diff --git a/wxPython/demo/ColourDB.py b/wxPython/demo/ColourDB.py index 9187807513..e4995cfefa 100644 --- a/wxPython/demo/ColourDB.py +++ b/wxPython/demo/ColourDB.py @@ -5,11 +5,6 @@ from wxPython.lib import colourdb import images -# This loads a whole bunch of new color names and values -# into wxTheColourDatabase - -colourdb.updateColourDB() - #---------------------------------------------------------------------- class TestWindow(wxScrolledWindow): @@ -17,6 +12,7 @@ class TestWindow(wxScrolledWindow): wxScrolledWindow.__init__(self, parent, -1) self.clrList = colourdb.getColourList() + #self.clrList.sort() self.bg_bmp = images.getGridBGBitmap() EVT_PAINT(self, self.OnPaint) @@ -27,7 +23,7 @@ class TestWindow(wxScrolledWindow): dc = wxClientDC(self) dc.SetFont(self.font) - w,h,d,e = dc.GetFullTextExtent("Wy") # a wide character and one that decends + w,h,d,e = dc.GetFullTextExtent("Wy") # a wide character and one that descends self.textHeight = h + d self.lineHeight = self.textHeight + 5 self.cellWidth = w @@ -119,6 +115,10 @@ class TestPanel(wxPanel): def runTest(frame, nb, log): + # This loads a whole bunch of new color names and values + # into wxTheColourDatabase + colourdb.updateColourDB() + win = TestPanel(nb) return win @@ -126,3 +126,10 @@ def runTest(frame, nb, log): overview = """ """ + + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +