PDA

View Full Version : wxpython help



Somenoob
July 26th, 2007, 11:54 PM
Traceback (most recent call last):
File "wxgui.py", line 17, in <module>
app.Mainloop()
AttributeError: 'App' object has no attribute 'Mainloop'

What is an AttributeError? this is suppose to be the last line.

raja
July 27th, 2007, 12:35 AM
An attribute error is when you are asking for some attribute that is not there.
Here it means that your 'App' has no 'Mainloop'.
Remember python is case-senstive. I think what you want is
app.MainLoop()

Somenoob
July 27th, 2007, 12:51 AM
An attribute error is when you are asking for some attribute that is not there.
Here it means that your 'App' has no 'Mainloop'.
Remember python is case-senstive. I think what you want is
app.MainLoop()

Thanks.