View Single Post
  #4 (permalink)  
Old 07-18-2008, 10:37 PM
David C. Ullrich
Guest
 
Posts: n/a
Default Re: wxPython code giving strange errors.

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

> On Jul 13, 10:18*am, teh_sAbEr <teh.sa...@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
Reply With Quote