Hi Andrea and others,
One of my (Task Coach) users reported the following traceback:
Traceback (most recent call last):
File “taskcoach.pyw”, line 4, in
File "taskcoach.pyo
", line 79, in start
File “taskcoach.pyo”, line 31, in init
File “taskcoach.pyo”, line 60, in init
File “gui\mainwindow.pyo”, line 55, in init
File “gui\mainwindow.pyo”, line 67, in createWindowComponents
File “gui\mainwindow.pyo”, line 104, in createFilterSideBar
File “gui\filter.pyo”, line 128, in init
File “gui\filter.pyo”, line 146, in createInterior
File “widgets\treectrl.pyo”, line 461, in init
File “widgets\treectrl.pyo”, line 427, in init
File “widgets\itemctrl.pyo”, line 45, in init
File “widgets\itemctrl.pyo”, line 91, in init
File “wx\lib\customtreectrl.pyo”, line 1794, in init
File “wx_gdi.pyo”, line 114, in init
OverflowError: in method ‘new_Colour’, expected argument 3 of type ‘byte’
Line 1794 is the init of CustomTreeCtrl. The relevant lines are these, the last line is 1794:
btnshadow = wx.SystemSettings_GetColour(wx.SYS_COLOUR_BTNSHADOW)
self._hilightUnfocusedBrush = wx.Brush(btnshadow)
r, g, b = btnshadow.Red(), btnshadow.Green(), btnshadow.Blue()
backcolour = ((r >> 1) - 20, (g >> 1) - 20, (b >> 1) - 20)
backcolour = wx.Colour(backcolour[0], backcolour[1], backcolour[2])
Apparently the (b>>1) -20 gets too big for the button shows colour on my user’s platform (Windows, don’t know what version, let me know if it matters).
I’ve opened a bug report at SF: http://sourceforge.net/tracker/index.php?func=detail&aid=1645080&group_id=9863&atid=109863
Cheers, Frank