def CallRepeatingWXSafe( self, window, period, delay, func, *args, **kwargs ): call = HydrusData.Call( func, *args, **kwargs ) job = ClientThreading.WXAwareRepeatingJob( self, self._job_scheduler, window, call, period, initial_delay = delay ) self._job_scheduler.AddJob( job ) return job
def CallRepeatingWXSafe(self, window, initial_delay, period, func, *args, **kwargs): job_scheduler = self._GetAppropriateJobScheduler(period) call = HydrusData.Call(func, *args, **kwargs) job = ClientThreading.WXAwareRepeatingJob(self, job_scheduler, window, initial_delay, period, call) job_scheduler.AddJob(job) return job