Create Python bidings
Added Cmake files Ported examples
This commit is contained in:
14
python/PyKDDockWidgets/__init__.py
Normal file
14
python/PyKDDockWidgets/__init__.py
Normal file
@@ -0,0 +1,14 @@
|
||||
__all__ = ['KDDockWidgets']
|
||||
|
||||
# Preload PySide2 libraries to avoid missing libraries while loading KDDockWidgets
|
||||
try:
|
||||
from PySide2 import QtCore
|
||||
except Exception:
|
||||
print("Failed to lod PySide")
|
||||
raise
|
||||
|
||||
# avoid duplicate namespace, due the PYSIDE-1325 bug I will have my package like this
|
||||
# PyKDDockWidgets.KDDockWidgets.KDDockWidgets.MainWindow
|
||||
# To avoid this I add a WORKAROUND to reduce it
|
||||
from .KDDockWidgets import KDDockWidgets as _priv
|
||||
KDDockWidgets = _priv
|
||||
Reference in New Issue
Block a user