|
|
@ -3,6 +3,22 @@ from os import system
|
|
|
|
|
|
|
|
|
|
|
|
SMSLEN = 160
|
|
|
|
SMSLEN = 160
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#class FloatValidator(wxValidator):
|
|
|
|
|
|
|
|
# def Clone (self):
|
|
|
|
|
|
|
|
# return self.__class__()
|
|
|
|
|
|
|
|
# def Validate(self, window):
|
|
|
|
|
|
|
|
# ctrl =wxPyTypeCast(self.GetWindow(), "wxTextCtrl")
|
|
|
|
|
|
|
|
# try:
|
|
|
|
|
|
|
|
# value = float( ctrl.GetValue())
|
|
|
|
|
|
|
|
# return true
|
|
|
|
|
|
|
|
# except ValueError:
|
|
|
|
|
|
|
|
# wx.MessageBox("A text object must contain some text!", "Error")
|
|
|
|
|
|
|
|
# return false
|
|
|
|
|
|
|
|
# def TransferToWindow(self):
|
|
|
|
|
|
|
|
# return true
|
|
|
|
|
|
|
|
# def TransferFromWindow(self):
|
|
|
|
|
|
|
|
# return true
|
|
|
|
|
|
|
|
|
|
|
|
class SmsToolFrame(wxFrame):
|
|
|
|
class SmsToolFrame(wxFrame):
|
|
|
|
def __init__(self, parent, id, title):
|
|
|
|
def __init__(self, parent, id, title):
|
|
|
|
wxFrame.__init__(self, parent, id, title,
|
|
|
|
wxFrame.__init__(self, parent, id, title,
|
|
|
@ -19,10 +35,13 @@ class SmsToolFrame(wxFrame):
|
|
|
|
self.textCtrl = wxTextCtrl(panel, 20, "",
|
|
|
|
self.textCtrl = wxTextCtrl(panel, 20, "",
|
|
|
|
wxDLG_PNT(panel, wxPoint(30, 4)),
|
|
|
|
wxDLG_PNT(panel, wxPoint(30, 4)),
|
|
|
|
wxDLG_SZE(panel, wxSize(160, -1)))
|
|
|
|
wxDLG_SZE(panel, wxSize(160, -1)))
|
|
|
|
|
|
|
|
self.textCtrl.SetMaxLength(SMSLEN);
|
|
|
|
|
|
|
|
|
|
|
|
self.nrCtrl = wxTextCtrl(panel, -1, "",
|
|
|
|
self.nrCtrl = wxTextCtrl(panel, -1, "",
|
|
|
|
wxDLG_PNT(panel, wxPoint(30, 20)),
|
|
|
|
wxDLG_PNT(panel, wxPoint(30, 20)),
|
|
|
|
wxDLG_SZE(panel, wxSize(30, -1)))
|
|
|
|
wxDLG_SZE(panel, wxSize(30, -1)),
|
|
|
|
|
|
|
|
# validator = FloatValidator())
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
self.fooCtrl = wxButton(panel, 10, "Senden",
|
|
|
|
self.fooCtrl = wxButton(panel, 10, "Senden",
|
|
|
|
wxDLG_PNT(panel, wxPoint(70, 20)),
|
|
|
|
wxDLG_PNT(panel, wxPoint(70, 20)),
|
|
|
|