1. try:
  2. from PySide2.QtCore import *
  3. from PySide2.QtGui import *
  4. from PySide2.QtWidgets import *
  5. from PySide2 import __version__
  6. from shiboken2 import wrapInstance
  7. except ImportError:
  8. from PySide.QtCore import *
  9. from PySide.QtGui import *
  10. from PySide import __version__
  11. from shiboken import wrapInstance
  12. font_standard_size = 7
  13. font_standard = QFont()
  14. font_standard.setPointSize(font_standard_size)
文档更新时间: 2018-06-19 01:25   作者:刘电