def widgetUpdate(self,timestamp,method,method_args,masterSync=True): #logging.getLogger().debug("widgetUpdate %s %r %r", timestamp, method, method_args) if self.instanceServer.isServer(): BlissWidget.addEventToCache(timestamp,method,*method_args) if not masterSync or BlissWidget.shouldRunEvent(): try: try: if not masterSync: try: method.__self__.blockSignals(True) except AttributeError: pass method(*method_args) except: pass finally: try: method.__self__.blockSignals(False) except AttributeError: pass else: if not masterSync or BlissWidget.shouldRunEvent(): try: try: if not masterSync: try: method.__self__.blockSignals(True) except AttributeError: pass method(*method_args) except: pass finally: try: method.__self__.blockSignals(False) except AttributeError: pass else: BlissWidget.addEventToCache(timestamp,method,*method_args)
def widgetUpdate(self, timestamp, method, method_args, masterSync=True): #logging.getLogger().debug("widgetUpdate %s %r %r", timestamp, method, method_args) if self.instanceServer.isServer(): BlissWidget.addEventToCache(timestamp, method, *method_args) if not masterSync or BlissWidget.shouldRunEvent(): try: try: if not masterSync: try: method.__self__.blockSignals(True) except AttributeError: pass method(*method_args) except: pass finally: try: method.__self__.blockSignals(False) except AttributeError: pass else: if not masterSync or BlissWidget.shouldRunEvent(): try: try: if not masterSync: try: method.__self__.blockSignals(True) except AttributeError: pass method(*method_args) except: pass finally: try: method.__self__.blockSignals(False) except AttributeError: pass else: BlissWidget.addEventToCache(timestamp, method, *method_args)