Commented preview window suicidal code

This commit is contained in:
HomeWorld
2010-11-19 12:49:44 +02:00
parent 64edeac2ee
commit 3eb12bf03e

View File

@@ -1203,17 +1203,17 @@ class PFNotebookPagePreview(wx.Frame):
self.Refresh()
def OnTimer(self, event):
if event.GetId() == self.timerSleepId:
self.direction = -1
self.timer.Start(10)
return
# if event.GetId() == self.timerSleepId:
# self.direction = -1
# self.timer.Start(10)
# return
self.transp += 20*self.direction
if self.transp > 240:
self.transp = 240
self.timer.Stop()
if not self.timerSleep:
self.timerSleep = wx.Timer(self, self.timerSleepId)
self.timerSleep.Start(5000, True)
# if not self.timerSleep:
# self.timerSleep = wx.Timer(self, self.timerSleepId)
# self.timerSleep.Start(5000, True)
if self.transp < 0:
self.transp = 0