[wxPython] [Fwd: wxGenBitmapToggleButton broken?]

P.S. These generic buttons don't work in the wxPython demo either.

Bryan

···

-----Forwarded Message-----

From: bryan cole <bryan.cole@teraview.co.uk>
To: wxpython-users@lists.wxwindows.org
Subject: wxGenBitmapToggleButton broken?
Date: 15 Jul 2002 17:06:32 +0100

Hi All,

Anyone know what's happened to the wxGenBitmapTogleButton in
wxGTK/wxPython-2.3.2.1? Used to work in the previous wxPython/wxGTK
version (2.2). Now it seems to be broken....

I get the following trace-back:

File "wxLabPlotCursors.py", line 1471, in __init__
    button = wxGenBitmapToggleButton(self.buttonpanel, 1015, bmp)
  File "/usr/lib/python2.2/site-packages/wxPython/lib/buttons.py", line
323, in __init__
    wxGenButton.__init__(self, parent, ID, "", pos, size, style,
validator, name)
  File "/usr/lib/python2.2/site-packages/wxPython/lib/buttons.py", line
78, in __init__
    self.InitColours()
  File "/usr/lib/python2.2/site-packages/wxPython/lib/buttons.py", line
142, in InitColours
    self.SetBackgroundColour(faceClr)
  File "/usr/lib/python2.2/site-packages/wxPython/lib/buttons.py", line
154, in SetBackgroundColour
    wxWindow.SetBackgroundColour(self, colour)
TypeError: unbound method SetBackgroundColour() must be called with
wxWindow instance as first argument (got wxGenBitmapToggleButton
instance instead)

cheers,
Bryan

--
Bryan Cole
Teraview Ltd., 302-304 Cambridge Science Park, Milton Road, Cambridge
CB4 0WG, United Kingdom.
tel: +44 (1223) 435380 / 435386 (direct-dial) fax: +44 (1223) 435382