GUI woes

jeff elkins jeffelkins at earthlink.net
Sat Apr 23 17:45:34 EDT 2005


Howdy,

This may not belong here, if so apologies...

I'm a python newbie, but have completed a console app that I'd like to run 
under X. Reading recent postings here, wxpython seemed a reasonable choice so 
under debian sid, I installed (via apt-get) the various wxpython stuff 
available.:

libwxgtk2.4-python 
libwxgtk2.5.3-python
python-opengl
python-pythoncard
python2.1-opengl 
python2.2-opengl 
python2.3-opengl 
python2.3-pythoncard
pythoncard 
pythoncard-doc
pythoncard-tools
wx2.5-examples
wxpython2.5.3 
wxwin2.4-examples

test.py crashes with the error below. Any clues?  

===========

Running test.py: 

Traceback (most recent call last):
  File "./test.py", line 87, in ?
    app = MyApp(0)     # Create an instance of the application class
  File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in 
__init__
    _wxStart(self.OnInit)
  File "./test.py", line 76, in OnInit
    frame = MyFrame(None, -1, "This is a test")
  File "./test.py", line 26, in __init__
    self.Bind(wx.EVT_SIZE, self.OnSize)
AttributeError: MyFrame instance has no attribute 'Bind'



More information about the Python-list mailing list