ibingshan

PySide PyQt 版本基本兼容处理

# -*- coding: utf-8 -*-

try:
    from PySide import QtCore, QtGui
    from PySide import QtGui as QtWidgets
except:
    from PySide2 import QtWidgets, QtCore, QtGui
    
try:
    try:
        import shiboken
    except:
        from PySide import shiboken    
except:
    try:
        import shiboken2 as shiboken
    except:
        from PySide2 import shiboken2 as shiboken

 

分类:

技术点:

相关文章:

  • 2021-11-19
  • 2019-01-18
  • 2021-04-29
  • 2021-11-02
  • 2021-12-24
  • 2021-10-29
  • 2022-12-23
  • 2021-08-15
猜你喜欢
  • 2021-12-24
  • 2021-11-29
  • 2021-12-24
  • 2021-08-24
  • 2021-07-13
  • 2021-05-11
  • 2021-08-15
相关资源
相似解决方案