sys.stderr.write('Error: Q3Support widgets are not supported by PyQt4.\n')
else:
sys.stderr.write(str(e) + '\n')
def on_Exception(self, e):
if logging.getLogger(self.LOGGER_NAME).level == logging.DEBUG:
import traceback
traceback.print_exception(*sys.exc_info())
else:
QtCore = QtCore
import PyQt4
sys.stderr.write('An unexpected error occurred.\nCheck that you are using the latest version of PyQt and send an error report to\nsupport@riverbankcomputing.com, including the following information:\n\n * your version of PyQt (%s)\n * the UI file that caused this error\n * the debug output of pyuic4 (use the -d flag when calling pyuic4)\n' % QtCore.PYQT_VERSION_STR)