forked from openlp/openlp
20 lines
520 B
Python
20 lines
520 B
Python
import sip
|
|
sip.setapi('QDate', 2)
|
|
sip.setapi('QDateTime', 2)
|
|
sip.setapi('QString', 2)
|
|
sip.setapi('QTextStream', 2)
|
|
sip.setapi('QTime', 2)
|
|
sip.setapi('QUrl', 2)
|
|
sip.setapi('QVariant', 2)
|
|
|
|
import sys
|
|
from PyQt4 import QtGui
|
|
|
|
if sys.version_info[1] >= 3:
|
|
from unittest.mock import MagicMock, patch, mock_open
|
|
else:
|
|
from mock import MagicMock, patch, mock_open
|
|
|
|
# Only one QApplication can be created. Use QtGui.QApplication.instance() when you need to "create" a QApplication.
|
|
application = QtGui.QApplication([])
|