Question about basic use of a timer object from timeit module to execute code every so often in a class

Robert Kern rkern at
Fri Jul 15 13:39:39 CEST 2005

42zeros at wrote:
> I would like a function to be executed every x often.
> I was just wondering how to pass the following code correctly.  my
> object t just doesn't know what checkMail is.  How can I tell it that
> checkMail is a member of the class MyApp?

Reread the documentation for timeit. It doesn't do what you think it does.

Look at wxTimer instead.

Robert Kern
rkern at

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter

More information about the Python-list mailing list