From 8936fce2f3d8b4d782505a39882074cf8949cb31 Mon Sep 17 00:00:00 2001 From: neingeist Date: Thu, 11 Nov 2004 00:43:16 +0000 Subject: [PATCH] foo --- smstool.py | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 smstool.py diff --git a/smstool.py b/smstool.py new file mode 100644 index 0000000..1251980 --- /dev/null +++ b/smstool.py @@ -0,0 +1,43 @@ +from wxPython.wx import * + +class SmsToolFrame(wxFrame): + def __init__(self, parent, id, title): + wxFrame.__init__(self, parent, id, title, + wxPoint(100, 100), wxSize(450, 70)) + + panel = wxPanel(self, -1) + self.panel = panel + + wxStaticText(panel, -1, "Text:", + wxDLG_PNT(panel, wxPoint(4, 4)), wxDefaultSize) + wxStaticText(panel, -1, "Nummer:", + wxDLG_PNT(panel, wxPoint(4, 20)), wxDefaultSize) + self.textCtrl = wxTextCtrl(panel, -1, "", + wxDLG_PNT(panel, wxPoint(30, 4)), + wxDLG_SZE(panel, wxSize(160, -1))) + + self.nrCtrl = wxTextCtrl(panel, -1, "", + wxDLG_PNT(panel, wxPoint(30, 20)), + wxDLG_SZE(panel, wxSize(30, -1))) + + self.fooCtrl = wxButton(panel, 10, "Senden", + wxDLG_PNT(panel, wxPoint(70, 20)), + wxDLG_SZE(panel, wxSize(30, -1))) + EVT_BUTTON(self, 10, self.OnFooClick) + + def OnCloseWindow(self, event): + self.Destroy() + + def OnFooClick(self, event): + self.Destroy() + +class SmsTool(wxApp): + def OnInit(self): + frame = SmsToolFrame(NULL, -1, "SmsTool") + frame.Show(true) + self.SetTopWindow(frame) + return true + +smstool=SmsTool(0) +smstool.MainLoop() +