I guess the capitalised versions got removed from the event API at some point.
This diff updates PyColourChooser to not use those removed properties.
Index: wx/lib/colourchooser/pycolourchooser.py
···
===================================================================
--- wx/lib/colourchooser/pycolourchooser.py (revision 64551)
+++ wx/lib/colourchooser/pycolourchooser.py (working copy)
@@ -342,7 +342,7 @@
the selected colour values."""
self.mouse_down = True
self.palette.ReDraw()
- self.doPaletteClick(event.X, event.Y)
+ self.doPaletteClick(event.x, event.y)
def onPaletteUp(self, event):
"""Stores state that the mouse is no longer depressed."""
@@ -352,7 +352,7 @@
"""Updates the colour values during mouse motion while the
mouse button is depressed."""
if self.mouse_down:
- self.doPaletteClick(event.X, event.Y)
+ self.doPaletteClick(event.x, event.y)
def doPaletteClick(self, m_x, m_y):
"""Updates the colour values based on the mouse location
Thanks,
Euan.