I can't run CubeColourDialog demo

I can't run "wxPython2.8 Docs and Demos\demo\agw\CubeColourDialog.py"
I got some error in console:

wx.version: 2.8.10.1 (msw-unicode)
pid: 3064
Traceback (most recent call last):
  File "D:\dev\wxPython2.8 Docs and Demos\demo\agw
\CubeColourDialog.py", line 39, in OnButton
    dlg = CCD.CubeColourDialog(self, self.colourData)
  File "d:\dev\python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw
\cubecolourdialog.py", line 2459, in __init__
    self._colour = Colour(self._colourData.GetColour())
  File "d:\dev\python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw
\cubecolourdialog.py", line 1367, in __init__
    self.alpha = colour.Alpha()
AttributeError: can't set attribute

Help please, thank you.

Hi,

2009/7/2 Zeb:

I can't run "wxPython2.8 Docs and Demos\demo\agw\CubeColourDialog.py"
I got some error in console:

wx.version: 2.8.10.1 (msw-unicode)
pid: 3064
Traceback (most recent call last):
File "D:\dev\wxPython2.8 Docs and Demos\demo\agw
\CubeColourDialog.py", line 39, in OnButton
dlg = CCD.CubeColourDialog(self, self.colourData)
File "d:\dev\python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw
\cubecolourdialog.py", line 2459, in __init__
self._colour = Colour(self._colourData.GetColour())
File "d:\dev\python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw
\cubecolourdialog.py", line 1367, in __init__
self.alpha = colour.Alpha()
AttributeError: can't set attribute

Help please, thank you.

This has been fixed in SVN 3 days ago. For some reason, "alpha" is now
a "reserved" attribute of wx.Colour. You can get the latest version of
CubeColourDialog here:

http://svn.wxwidgets.org/viewvc/wx/wxPython/3rdParty/AGW/agw/cubecolourdialog.py?revision=61163&content-type=text/plain

Or by using a SVN client:

http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/AGW/agw/

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

Andrea Gavana wrote:

For some reason, "alpha" is now
a "reserved" attribute of wx.Colour.

It's a property. There's also red, green and blue properties.

···

--
Robin Dunn
Software Craftsman