openlp/tests/functional/__init__.py

14 lines
373 B
Python
Raw Normal View History

2013-02-14 17:30:28 +00:00
import sip
sip.setapi(u'QDate', 2)
sip.setapi(u'QDateTime', 2)
sip.setapi(u'QString', 2)
sip.setapi(u'QTextStream', 2)
sip.setapi(u'QTime', 2)
sip.setapi(u'QUrl', 2)
2013-02-16 15:02:19 +00:00
sip.setapi(u'QVariant', 2)
from PyQt4 import QtGui
# Only one QApplication can be created. Use QtGui.QApplication.instance() when you need to "create" a QApplication.
2013-02-17 20:25:42 +00:00
application = QtGui.QApplication([])