Added loading animation for shipbrowser stage 2

This commit is contained in:
HomeWorld
2011-01-16 15:19:00 +02:00
parent 6bbcd84574
commit 07d70c2cc7
2 changed files with 32 additions and 0 deletions

View File

@@ -23,6 +23,16 @@ class LoadAnimation(wx.Window):
self.animTimer.Start(self.animTimerPeriod)
def Play(self):
if self.animTimer.IsRunning():
self.animTimer.Stop()
self.animCount = 0
self.animTimer.Start(self.animTimerPeriod)
def Stop(self):
if self.animTimer.IsRunning():
self.animTimer.Stop()
def OnTimer(self, event):
self.animCount += self.animDir