signal

Thomas Thiele thiele at muc.das-werk.de
Tue Aug 1 11:11:02 EDT 2000


I want to do this under WinNT (under UNIX it works fine bur NT did know
SIGALRM:

def Loop_Init(self):
  signal.signal(signal.SIGALRM, self.LoopSignalHandler)
  signal.alarm(self.updatetime)

 def LoopSignalHandler(self, signum, frame):
  self.Update()
  signal.alarm(self.updatetime)

I need a functionality to update some things periodically and I don't
want rto use an extra thread for this.
Any ideas?





More information about the Python-list mailing list