Le 9 nov. 2009 à 20:20, Frank Niessink a écrit :

> 2009/11/9 Jérôme Laheurte <[email protected]>:
> > It seems the reminders don't work anymore. After some digging, I  
> found
> > out that the clock.time event is fired a few milliseconds too early;
> > so when rounding it to get the event type, it falls one second  
> short.
> > The obvious but not so clean way to "fix" this would be to change
> > domain/date/clock.py and put
> >
> >         super(OnceTimer, self).Start(timeDelta.milliseconds() + 100)
> >
> > instead of
> >
> >         super(OnceTimer, self).Start(timeDelta.milliseconds())
> >
> > but it seems like a hack :( Seems to work though. What do you  
> think ?
>
> How about having OnceTimer remember at which time it should fire and
> then pass that time to the callback so the callback can use the
> requested time instead of the actual time?

Much better, didn't think of that :)

Reply via email to