diff --git a/wx/lib/colourchooser/canvas.py b/wx/lib/colourchooser/canvas.py index 27c8d6f1..5a94f4cc 100644 --- a/wx/lib/colourchooser/canvas.py +++ b/wx/lib/colourchooser/canvas.py @@ -58,7 +58,7 @@ class BitmapBuffer(wx.MemoryDC): # on OS X so this is a workaround for that issue. def GetPixelColour(self, x, y): """Gets the color value of the pixel at the given - cords. + cords. """ img = self.GetAsBitmap().ConvertToImage() diff --git a/wx/lib/colourchooser/pycolourchooser.py b/wx/lib/colourchooser/pycolourchooser.py index ebaee60c..940bd514 100644 --- a/wx/lib/colourchooser/pycolourchooser.py +++ b/wx/lib/colourchooser/pycolourchooser.py @@ -138,7 +138,7 @@ class PyColourChooser(wx.Panel): box = pycolourbox.PyColourBox(self, new_id) box.GetColourBox().Bind(wx.EVT_LEFT_DOWN, lambda x, b=box: self.onBasicClick(x, b)) - + self.colour_boxs.append(box) colour_grid.Add(box, 0, wx.EXPAND) diff --git a/wx/lib/colourchooser/pypalette.py b/wx/lib/colourchooser/pypalette.py index b98b202d..6f32597c 100644 --- a/wx/lib/colourchooser/pypalette.py +++ b/wx/lib/colourchooser/pypalette.py @@ -116,12 +116,12 @@ class PyPalette(canvas.Canvas): def __init__(self, parent, id): """Creates a palette object.""" # Load the pre-generated palette XPM - + # Leaving this in causes warning messages in some cases. # It is the responsibility of the app to init the image # handlers, IAW RD #wx.InitAllImageHandlers() - + self.palette = Image.GetBitmap() canvas.Canvas.__init__ (self, parent, id, size=(200, 192))