X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec873c943d71f0d5f13e3398557071448cda6c23..a4027e74873007e3430af3bd77019bcab76f6c04:/wxPython/samples/wxPIA_book/Chapter-01/sample.py diff --git a/wxPython/samples/wxPIA_book/Chapter-01/sample.py b/wxPython/samples/wxPIA_book/Chapter-01/sample.py deleted file mode 100644 index 95032945fb..0000000000 --- a/wxPython/samples/wxPIA_book/Chapter-01/sample.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/env python -import wx - -class MyFrame(wx.Frame): - - def __init__(self): - wx.Frame.__init__(self, None, -1, "My Frame", size=(300, 300)) - panel = wx.Panel(self, -1) - panel.Bind(wx.EVT_MOTION, self.OnMove) - wx.StaticText(panel, -1, "Pos:", pos=(10, 12)) - self.posCtrl = wx.TextCtrl(panel, -1, "", pos=(40, 10)) - - def OnMove(self, event): - pos = event.GetPosition() - self.posCtrl.SetValue("%s, %s" % (pos.x, pos.y)) - -if __name__ == '__main__': - app = wx.PySimpleApp() - frame = MyFrame() - frame.Show(True) - app.MainLoop()