Exemple #1
0
 def __init__(self, queue, exceptions_in_main, fn, *args, **kwargs):
     QEvent.__init__(self, self.EVENT_TYPE)
     self.fn = fn
     self.args = args
     self.kwargs = kwargs
     self._returnval = queue
     # Whether to raise exceptions in the main thread or store them
     # for raising in the calling thread:
     self._exceptions_in_main = exceptions_in_main
Exemple #2
0
 def __init__(self, fn, *args, **kwargs):
     QEvent.__init__(self, InvokeEvent.EVENT_TYPE)
     self.fn = fn
     self.args = args
     self.kwargs = kwargs
Exemple #3
0
 def __init__(self, result):
     QEvent.__init__(self, self.EVENT_TYPE)
     self.result = result