I have a bit of code here that is producing paranormal results on two
platforms.
On OSX, if the window is resized to be too small, the dreaded spinning
beach ball appears, and the application ceases to respond until forced
to quit twice. (Once doesn't cut it.) This behavior is made more
relevant by the fact that the window opens at too small a size.
I ran the same code in wxPython/GTK over an ssh connection with evilwm.
Control-alt-middleclicking anywhere in the window pops up a dialog box
reading, """
wxWindows Library (GTK port)
Version 2.4.0, compiled at Jan 29 2003 15:15:02
Copyright (c) 1995-2002 wxWindows team
"""
The code causing this is below. Should I report either of these on
wx-users/wx-dev?
from wxPython.wx import *
class MyFrame(wxFrame):
def __init__(self):
wxFrame.__init__(self, NULL, -1, "Hello, world!")
sizer = wxBoxSizer(wxHORIZONTAL)
st = wxStaticText(self, -1, "asdf")
sizer.Add(st, 1, wxEXPAND)
st2 = wxStaticText(self, -1, "asdf")
sizer.Add(st2, 1, wxEXPAND)
self.SetSizer(sizer)
class MyApp(wxApp):
def OnInit(self):
frame = MyFrame()
frame.Show()
return true
app = MyApp(0)
app.MainLoop()
···
--
Brian