Oh my, I feel kind of dumb. I can't believe I spent time stewing over that. Thanks!<br><br><div class="gmail_quote">On Sun, Feb 1, 2009 at 11:50 PM, Cody Precord <span dir="ltr"><<a href="mailto:codyprecord@gmail.com">codyprecord@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<div class="Ih2E3d"><br>
<br>
On Feb 1, 2009, at 10:42 PM, Bryan Smith wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Everyone,<br>
<br>
I am trying out a simple wx program from a book and anytime I try and run the code, the wxFrame flashes open and closes immediately. This is frustrating as the code is essentially the same as in the book. Here is the code for your viewing pleasure:<br>
<br>
import wx<br>
<br>
class wxTest():<br>
<br>
def __init__(self):<br>
mainApp = wx.App()<br>
<br>
mainFrame = wx.Frame(None)<br>
mainButton = wx.Button(mainFrame)<br>
mainFrame.show()<br>
<br>
</blockquote>
<br></div>
Should be mainFrame.Show() <- UPPER case S.<br>
<br>
To see the traceback of errors you should create the app object with wx.App(False) to disable redirection of output, so tracebacks will be printed to the console.<br><font color="#888888">
<br>
<br>
Cody<br>
<br>
</font></blockquote></div><br>