def postEventWithCallback(self, callback, *args): self.queue.put((callback, args)) QtGui.qApp.postEvent(self, QtCore.QEvent(QtCore.QEvent.User))
def postYotonEvent(self): try: QtGui.qApp.postEvent(self, QtCore.QEvent(QtCore.QEvent.User)) except Exception: pass # If IEP is shutting down, the app may be None