mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-09 05:20:08 +01:00
Trim Whitespace colourchooser directory
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user