Trim Whitespace colourchooser directory

This commit is contained in:
Metallicow
2016-10-12 22:34:12 -05:00
parent 4c539d5e77
commit 3d1789135d
3 changed files with 4 additions and 4 deletions

View File

@@ -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()

View File

@@ -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)

View File

@@ -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))