wxPython code giving strange errors.

David C. Ullrich dullrich at sprynet.com
Fri Jul 18 17:29:22 EDT 2008


In article 
<c21e91f7-2feb-4dbc-96ab-05110e3b2127 at 34g2000hsh.googlegroups.com>,
 Mike Driscoll <kyosohma at gmail.com> wrote:

> On Jul 13, 10:18 am, teh_sAbEr <teh.sa... at gmail.com> wrote:
> > I'm busy trying to learn wxPython, and i'm trying to run the following
> > piece of code (its from the wxPyWiki tutorial):
> >
> > import wx
> >
[...]
> >
> > app = wx.PySimpleApp()
> > frame = MainWindow(None, -1, "Sample editor")
> > app.MainLoop()
> >[...]
> 
> This code works "as is" on Windows XP. However, I have gotten this
> error when trying to run it from IDLE and I've heard that that can
> happen in other Tkinter-based IDEs.

So I've heard. Just for fun I tried running it in a wxPython-based
shell - it worked fine.

> Try running it from the command
> line and I'll bet you won't get that error.
> 
> Also, there's a great wxPython user's group you can join from the
> official website:
> 
> www.wxpython.org
> 
> Mike

-- 
David C. Ullrich



More information about the Python-list mailing list