RE: [wxPython] (no subject)
you need to put this at the end
app.MainLoop()
I’m not sure why its not quite working from interactive mode it does the same thing
in regular emacs for me…probably something in the python mode
But you can use the execute buffer command from the python mode and it works just fine
···
-----Original Message-----
From: Ray Drew [mailto:ray_drew@hotmail.com]
Sent: Monday, May 22, 2000 10:29 AM
To: wxpython-users@wxwindows.org
Subject: [wxPython] (no subject)
Hi,
I’m trying to run a wxPython example from a Python instance running in
Xemacs. (Windows 98, Xemacs 21.1.9, Python 1.5.2).
The code is…
from wxPython.wx import *
class MyApp(wxApp):
… def OnInit(self):
… frame = wxFrame(NULL, -1, “Hello from wxPython”)
… frame.Show(true)
… self.SetTopWindow(frame)
… return true
…
app = MyApp(0)
but no window appears.
if I execute >>>app.MainLoop() the prompt disappears as though it is waiting
for the loop to quit.
Same code works fine from a command window. Does anyone know why the window
doesn’t appear?
Thanks,
Ray Drew
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
wxPython-users mailing list wxPython-users@wxwindows.org