Exemplo n.º 1
0
 def CallRepeatingWXSafe( self, window, initial_delay, period, func, *args, **kwargs ):
     
     call = HydrusData.Call( func, *args, **kwargs )
     
     job = ClientThreading.WXAwareRepeatingJob( self, self._job_scheduler, window, initial_delay, period, call )
     
     self._job_scheduler.AddJob( job )
     
     return job
Exemplo n.º 2
0
 def CallLater( self, initial_delay, func, *args, **kwargs ):
     
     call = HydrusData.Call( func, *args, **kwargs )
     
     job = HydrusThreading.SchedulableJob( self, self._job_scheduler, initial_delay, call )
     
     self._job_scheduler.AddJob( job )
     
     return job
Exemplo n.º 3
0
 def CallRepeating( self, initial_delay, period, func, *args, **kwargs ):
     
     call = HydrusData.Call( func, *args, **kwargs )
     
     job = HydrusThreading.RepeatingJob( self, self._job_scheduler, initial_delay, period, call )
     
     self._job_scheduler.AddJob( job )
     
     return job
Exemplo n.º 4
0
 def CallLaterWXSafe( self, window, delay, func, *args, **kwargs ):
     
     call = HydrusData.Call( func, *args, **kwargs )
     
     job = ClientThreading.WXAwareJob( self, self._job_scheduler, window, call, initial_delay = delay )
     
     self._job_scheduler.AddJob( job )
     
     return job