Closed jameslkey closed 6 years ago
The py package is documented here: https://wxpython.org/Phoenix/docs/html/wx.py.html
The hello world example is about wxPython, not the py package. So, everything is fine.
Weird, I guess I’m confused. The example will not run with out the edit. This was brought to my attention by someone following my Raspberry Pi install Tutorial. I’m seeing it here: https://wxpython.org/pages/overview/#hello-world
Sent from Mail for Windows 10
From: Dietmar Schwertberger Sent: Wednesday, June 13, 2018 17:21 To: wxWidgets/Phoenix Cc: James L. Key; Author Subject: Re: [wxWidgets/Phoenix] Hello World Example on website needsupdating. (#883)
The py package is documented here: https://wxpython.org/Phoenix/docs/html/wx.py.html The hello world example is about wxPython, not the py package. So, everything is fine. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
It seems the “issue tracker” link on wxPython points to your bug tracker. I’ll let Robin know.
Sent from Mail for Windows 10
From: Dietmar Schwertberger Sent: Wednesday, June 13, 2018 17:21 To: wxWidgets/Phoenix Cc: James L. Key; Author Subject: Re: [wxWidgets/Phoenix] Hello World Example on website needsupdating. (#883)
The py package is documented here: https://wxpython.org/Phoenix/docs/html/wx.py.html The hello world example is about wxPython, not the py package. So, everything is fine. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
This is the issue tracker for wxPython. So it's the right place to report an issue.
The example is running fine on Windows and I don't see why it should not run anythwere What traceback do you get from the unedited version or does it not show up at all?
P.S.: I was just following your tutorial yesterday to build wxPython on my new Gemini PDA. Thanks a lot for it. It's working well on Gemian (Debian on Gemini).
Okay I’m embarrassed. Yes It’s working for me too.
The individual was getting:
Traceback (most recent call last):
File "<pyshell#12>", line 1, in
I’m glad to hear that! It’s amazing how simple it is to do if you have a checklist to follow. It took MANY days to get it right as there was nothing close to it. Initially I wondered if it would even work, I kept getting out of memory issues on a Raspberry Pi Zero. My whole reason for trying is I am building a Morse code demo for a local Railroad museum. You walk into the small station we have and the Pi detects you with an IR unit. It picks a random message from an SQLite db and plays Morse code though a relay to a real Morse code responder. Simultaneously displaying the message on an LCD display.
Sent from Mail for Windows 10
From: Dietmar Schwertberger Sent: Wednesday, June 13, 2018 17:30 To: wxWidgets/Phoenix Cc: James L. Key; Author Subject: Re: [wxWidgets/Phoenix] Hello World Example on website needsupdating. (#883)
This is the issue tracker for wxPython. So it's the right place to report an issue. The example is running fine on Windows and I don't see why it should not run anythwere What traceback do you get from the unedited version or does it not show up at all? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
I would guess from the "line 1"
that this was tried in a Python shell and not by running python hello_world.py
.
Then, after some trying, the wx.App()
call was made before trying frame.Frame
.
The error message is clearly complaining about wx.Frame
being called before wx.App()
.
So, I would suggest to close the issue.
It's really cool that wxPython can be built right on such small platforms. For my Sailfish OS phone I could only use Qt which was required to be built on the SDK on a PC.
This version does not take into account wx.py.frame.Frame()