Closed RubendeBruin closed 8 months ago
It seems that SideBarLocation is not imported from _ads. The following does work:
dock_manager.addAutoHideDockWidget(PySide6QtAds._ads.SideBarLocation.SideBarRight, dock)
it can be solved by adding
SideBarLocation = _ads.SideBarLocation
to __init__.py
are PRs accepted?
First of all thanks for making ADS this available in PySide6.
I'm trying to use the
addAutoHideDockWidget
function but can not get it to work. From the examples it seems that it expects a first argument of typeSideBarLocation
, for exampleSideBarRight
However I can not find that enum inPySide6QtAds
.It is defined in ads_globals.sip. The other enum values from that file do seems to be present in PySide6QtAds.
Reproduce:
Running Python 3.11 on Windows