home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.2)
-
- from wxPython.wx import *
- from TimedUpdate import TimedUpdate
-
- class StatusBar(wxStatusBar):
-
- def __init__(self, parent):
- wxStatusBar.__init__(self, parent, -1)
- self.Parent = parent
- self.SetFieldsCount(2)
- self.SetStatusWidths([
- -1,
- 160])
- self.Thread = TimedUpdate(0.5, self.Update)
- self.Thread.start()
-
-
- def Update(self):
- speed = self.Parent.GetSpeeds()
- self.SetStatusText('Down: %.1f | Up: %.1f' % (speed[0], speed[1]), 1)
-
-
- def Destroy(self):
- self.Thread.Shutdown()
-
-
-