|
|
@ -6,7 +6,7 @@ from re import sub
|
|
|
|
|
|
|
|
|
|
|
|
SMSLEN = 160
|
|
|
|
SMSLEN = 160
|
|
|
|
|
|
|
|
|
|
|
|
class SmsToolFrame(wxFrame):
|
|
|
|
class SimserFrame(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,
|
|
|
|
wxPoint(100, 100), wxSize(450, 70))
|
|
|
|
wxPoint(100, 100), wxSize(450, 70))
|
|
|
@ -67,12 +67,12 @@ class SmsToolFrame(wxFrame):
|
|
|
|
def OnChange(self, event):
|
|
|
|
def OnChange(self, event):
|
|
|
|
self.zaehler.SetLabel(str(SMSLEN-len(self.textCtrl.GetValue())))
|
|
|
|
self.zaehler.SetLabel(str(SMSLEN-len(self.textCtrl.GetValue())))
|
|
|
|
|
|
|
|
|
|
|
|
class SmsTool(wxApp):
|
|
|
|
class Simser(wxApp):
|
|
|
|
def OnInit(self):
|
|
|
|
def OnInit(self):
|
|
|
|
frame = SmsToolFrame(NULL, -1, "SmsTool")
|
|
|
|
frame = SimserFrame(NULL, -1, "Simser")
|
|
|
|
frame.Show(true)
|
|
|
|
frame.Show(true)
|
|
|
|
self.SetTopWindow(frame)
|
|
|
|
self.SetTopWindow(frame)
|
|
|
|
return true
|
|
|
|
return true
|
|
|
|
|
|
|
|
|
|
|
|
smstool=SmsTool(0)
|
|
|
|
smstool=Simser(0)
|
|
|
|
smstool.MainLoop()
|
|
|
|
smstool.MainLoop()
|
|
|
|