X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a693e6e0460b6b3c32e4b6f114a3ab7b7cd24ea..f6bcfd974ef26faf6f91a62cac09827e09463fd1:/utils/wxPython/tests/thrtest.py diff --git a/utils/wxPython/tests/thrtest.py b/utils/wxPython/tests/thrtest.py deleted file mode 100644 index b47cdfc82e..0000000000 --- a/utils/wxPython/tests/thrtest.py +++ /dev/null @@ -1,39 +0,0 @@ - -from wxPython.wx import * -from wxPython.lib.grids import wxFlexGridSizer - -import time -from threading import Thread -def foo(): - for x in range(20): - print x, "Fooing!" - time.sleep(0.5) -Thread(target=foo).start() - -class MyFrame(wxFrame): - def __init__(self, parent, ID, title, pos, size): - wxFrame.__init__(self, parent, ID, title, pos, size) - panel = wxPanel(self, -1) - self.panel=panel - box = wxFlexGridSizer(1, 2, 10, 10) - box.Add(wxButton(panel, 11211, "Foo"), 0, wxCENTER) - box.Add(wxButton(panel, 11211, "Bar"), 0, wxCENTER) - box.AddGrowableCol(1) - panel.SetSizer(box) - panel.SetAutoLayout(true) - #EVT_SIZE(panel, lambda e, p=panel: p.Layout()) - EVT_BUTTON(self, 11211, self.Click) - - def Click(self, event): - print "Click" - - -class MyApp(wxApp): - def OnInit(self): - win = MyFrame(None, -1, "Bummer", wxDefaultPosition, (200, 100)) - win.Show(true) - self.SetTopWindow(win) - return true - -MyApp(0).MainLoop() -