Update of /cvsroot/pythoncard/PythonCard/samples/fpop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12811/samples/fpop
Modified Files:
fpop.py
Log Message:
fixed refreshTimer in on_close, switched to timer.Timer
Index: fpop.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/fpop/fpop.py,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** fpop.py 15 Aug 2004 17:55:36 -0000 1.47
--- fpop.py 30 Aug 2004 14:42:47 -0000 1.48
***************
*** 92,96 ****
import wx
! from PythonCard import configuration, dialog, log, model
import dlg_config
from preview import Preview
--- 92,96 ----
import wx
! from PythonCard import configuration, dialog, log, model, timer
import dlg_config
from preview import Preview
***************
*** 171,176 ****
self.doGetNewHeaders()
if self.AutoCheck :
! self.refreshTimer = wx.Timer(self.components.btnGetHeaders, -1)
! self.refreshTimer.Start(self.AutoCheckInterval * 60 * 1000)
# so how much to wrap and how much to leave raw wxPython?
--- 171,176 ----
self.doGetNewHeaders()
if self.AutoCheck :
! self.refreshTimer = timer.Timer(self.components.btnGetHeaders, -1)
! self.refreshTimer.start(self.AutoCheckInterval * 60 * 1000)
# so how much to wrap and how much to leave raw wxPython?
***************
*** 733,737 ****
def on_close(self, event):
! self.refreshTimer.Stop()
self.popup.Destroy()
fpoputil.saveList(os.path.join(self.configPath, WHITELIST_FILENAME), self.whitelist)
--- 733,738 ----
def on_close(self, event):
! if hasattr(self, 'refreshTimer'):
! self.refreshTimer.stop()
self.popup.Destroy()
fpoputil.saveList(os.path.join(self.configPath, WHITELIST_FILENAME), self.whitelist)
|