01.  #!/usr/bin/env python
02.
03.  from wxPython.wx import *
04.  import time
05.
06.  Title = "Projekt"
07.
08.  class MyFrame(wxFrame):
09.
10.      def __init__(self, parent, id, title):
11.
12.          wxFrame.__init__(self, parent, id, title, wxPoint(150,150),
13.                           wxSize(650, 400))
14.
15.          self.CenterOnScreen()
16.
17.          sb = self.CreateStatusBar(2)
18.          sb.SetStatusWidths([-1, 130])
19.
20.          self.timer = wxPyTimer(self.Notify)
21.          self.timer.Start(1000)
22.          self.Notify()
23.
24.      def Notify(self):
25.
26.          t = time.localtime(time.time())
27.          st= time.strftime("%d-%b-%Y  %I:%M:%S", t)
28.          self.SetStatusText(st, 1)
29.
30.  class MyApp(wxApp):
31.
32.      def OnInit(self):a
33.          frame = MyFrame(NULL, -1, Title)
34.          frame.Show(true)
35.          self.SetTopWindow(frame)
36.          return(true)
37.
38.  app = MyApp(0)
39.  app.MainLoop()