wxpython 2.8.9.2 -- Demo: ButtonPanel (Advanced Generic Widgets)

Today I upgraded my version of wxPython to 2.8.9.2 as well as the wxPython Demo.
I played around with it for a bit to check out some new items.

I noticed that one of the demo’s -the ButtonPanel demo- didn’t work.

Redirecting the output gives:
Traceback (most recent call last):
File “ButtonPanel.py”, line 884, in OnButton
self.win = ButtonPanelDemo(self)
File “ButtonPanel.py”, line 504, in init
self.pngs = [ (images.get_bp_btn1Bitmap(), ‘label1’),
AttributeError: ‘module’ object has no attribute ‘get_bp_btn1Bitmap’

Is this an error or do I have the wrong images module?

Br,
Tom.

Hi Tom,

Today I upgraded my version of wxPython to 2.8.9.2 as well as the wxPython
Demo.
I played around with it for a bit to check out some new items.

I noticed that one of the demo's -the ButtonPanel demo- didn't work.

Redirecting the output gives:
Traceback (most recent call last):
File "ButtonPanel.py", line 884, in OnButton
self.win = ButtonPanelDemo(self)
File "ButtonPanel.py", line 504, in __init__
self.pngs = [ (images.get_bp_btn1Bitmap(), 'label1'),
AttributeError: 'module' object has no attribute 'get_bp_btn1Bitmap'

Is this an error or do I have the wrong images module?

The demo works correctly for me on Windows XP, wxPython 2.8.9.2,
Python 2.5.2. It may be that your images module is somehow old/not up
to date/corrupted. I believe you may try to uninstall, erase
everything related to wxPython and re-install.

Andrea.

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

···

On Tue, Apr 21, 2009 at 8:08 PM, Tom Clerckx wrote: