wxPython beginners problem
David C. Ullrich
dullrich at sprynet.com
Sat Aug 16 12:12:03 EDT 2008
In article <adbba4hok1sg0b2d8dc1flaic8j197s2tj at 4ax.com>,
Ivan Reborin <ireborin at gmail.com> wrote:
> Hello all,
>
> I'm new to python, new as newbies get, so please, don't take wrongly
> if this seems like a stupid or overly simple question.
>
> I'm going through examples in a book I have ("Beginning python", by
> Hetland Marcus) and I just started doing wxPython examples.
>
> But every sample I try, for example:
>
> import wx
> app = wx.App()
> win = wx.Frame(None, title="Simple editor")
> loadButton = wx.Button(win, label='Open')
> saveButton = wx.Button(win, label='Save')
> win.Show
> app.MainLoop()
As mentioned, it should be win.Show().
If that doesn't help, try saving it to something.py
and executing that instead of running it inside IDLE.
> closes too fast. After running in python IDLE just the line
> === restart ===
> shows up.
>
> How can I keep the window to "stay alive" so I see what I get ?
> I'm on a winxp platform using python 2.5.2. if that matters.
>
> Please, any help, constructive advice and ideas are very much
> appreciated.
>
> Best regards
> Ivan Reborin
--
David C. Ullrich
More information about the Python-list
mailing list