Workaround for PyQt import from Qt module bug

This commit is contained in:
Kovid Goyal 2014-06-13 21:38:20 +05:30
parent cb6151e4e1
commit dd677e21cb

View File

@ -4,11 +4,13 @@ __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
import os, sys, Queue, threading, glob import os, sys, Queue, threading, glob
from threading import RLock from threading import RLock
from urllib import unquote from urllib import unquote
import PyQt5.QtWebKitWidgets # This is needed to ensure that import from the Qt shortcut module work
from PyQt5.Qt import ( from PyQt5.Qt import (
QFileInfo, QObject, QBuffer, Qt, QStyle, QByteArray, QTranslator, QFileInfo, QObject, QBuffer, Qt, QStyle, QByteArray, QTranslator,
QCoreApplication, QThread, QEvent, QTimer, pyqtSignal, QDateTime, QCoreApplication, QThread, QEvent, QTimer, pyqtSignal, QDateTime,
QDesktopServices, QFileDialog, QFileIconProvider, QSettings, QIcon, QDesktopServices, QFileDialog, QFileIconProvider, QSettings, QIcon,
QApplication, QDialog, QUrl, QFont, QFontDatabase, QLocale, QFontInfo) QApplication, QDialog, QUrl, QFont, QFontDatabase, QLocale, QFontInfo)
del PyQt5
ORG_NAME = 'KovidsBrain' ORG_NAME = 'KovidsBrain'
APP_UID = 'libprs500' APP_UID = 'libprs500'