def _define_qt_base(self):
"""
This will be called at initialisation time and will allow
a user to control various aspects of how QT is being used
by Toolkit. The method should return a dictionary with a number
of specific keys, outlined below.
* qt_core - the QtCore module to use
* qt_gui - the QtGui module to use
* dialog_base - base class for to use for Toolkit's dialog factory
:returns: dict
"""
base = {}
from PySide import QtCore, QtGui
base["qt_core"] = QtCore
base["qt_gui"] = QtGui
base["dialog_base"] = QtGui.QDialog
# tell QT to handle text strings as utf-8 by default
utf8 = QtCore.QTextCodec.codecForName("utf-8")
QtCore.QTextCodec.setCodecForCStrings(utf8)
self._override_qmessagebox()
return base
评论列表
文章目录