Re: [wxpython-users] Why can't I run this code?
by Mark Erbaugh other posts by this author
May 8 2008 2:58PM messages near this date
Re: [wxpython-users] Why can't I run this code?
|
Re: [wxpython-users] Why can't I run this code?
On Thu, 2008-05-08 at 17:51 -0300, David Anderson wrote:
> I'm trying to run this code, but it compiles, runs, and then appears
> something very fast that I can't read =(
> Can anyone help? Here is the entire app code =)
>
> import wx
As the other Mark said, there is an error in your code, an unreferenced
self.id, which causes Python to raise an AttributeError exception.
The easiest way to see the error message is to run the application
inside a terminal window (Linux/Unix) or command prompt (Windows).
What's happening is that Python is displaying the error message to the
terminal window / command prompt and exiting so the the terminal window
is destroyed.
You can run your app with the command: python filename.py where
filename.py is the name of your python program
Actually, your app is not compiling as Python is an interpreted
language. Python is an interpreted language, and very dynamic. There is
no syntax error in the code, but when the Python interpreter tries to
find self.id, there is none to be found, so it raises the AttributeError
exception and quits.
I hope this helps.
Mark
_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
David Anderson
Mark Erbaugh
David Anderson
Mark Erbaugh
Christopher Barker
Mark Guagenti
|