Compare commits

...

3 Commits

Author SHA1 Message Date
Renato Araujo
b7b1d6d4e9 Fixed unit test for PySide6 2021-09-30 06:04:52 -07:00
Allen Winter
a90417de55 python/examples-qt6/main.py - uncomment rc_assets
commented by mistake
2021-09-29 17:17:54 -04:00
Allen Winter
73f08df224 Merge pull request #247 from KDAB/python38
Fixed module import for python 3.8
2021-09-29 16:41:26 -04:00
3 changed files with 8 additions and 5 deletions

View File

@@ -18,10 +18,13 @@ def setupLibraryPath():
if sys.platform != 'win32':
return
from shiboken2 import shiboken2
from PySide@PYSIDE_MAJOR_VERSION@ import QtCore
if "@PYSIDE_MAJOR_VERSION@" == "6":
from shiboken@PYSIDE_MAJOR_VERSION@ import Shiboken
else:
from shiboken@PYSIDE_MAJOR_VERSION@ import shiboken@PYSIDE_MAJOR_VERSION@ as Shiboken
extra_dll_dirs = [ os.path.abspath(os.path.dirname(shiboken2.__file__)),
from PySide@PYSIDE_MAJOR_VERSION@ import QtCore
extra_dll_dirs = [ os.path.abspath(os.path.dirname(Shiboken.__file__)),
os.path.abspath(os.path.dirname(QtCore.__file__)),
os.path.abspath(os.path.dirname(__file__)) ]

View File

@@ -15,7 +15,7 @@ from MyMainWindow import MyMainWindow
from PySide6 import QtWidgets, QtCore
import sys
#import rc_assets
import rc_assets
if __name__ == "__main__":
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)

View File

@@ -12,7 +12,7 @@ import os
import sys
class TstConfig(object):
bindingsNamespace = "@PYTHON_BINDING_NAMESPACE@"
bindingsNamespace = "PyKDDockWidgets"
def initLibraryPath():
if sys.platform == 'win32' and sys.version_info[0] == 3 and sys.version_info[1] >= 8: