Created
May 14, 2020 22:07
-
-
Save nbanmp/b9eb1a57490706e985bdfc75390e5749 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_all_binaryviews(bv): | |
all_binaryviews = [] | |
# NOTE: No edge cases handled | |
dock = DockHandler.getActiveDockHandler() | |
viewFrame = dock.getViewFrame() | |
stackedViewFrames = viewFrame.parent() # QStackedWidget | |
for i in range(stackedViewFrames.count()): | |
viewFrame = stackedViewFrames.widget(i) | |
viewInterface = viewFrame.getCurrentViewInterface() | |
binaryview = viewInterface.getData() | |
all_binaryviews.append(binaryview) | |
print(all_binaryviews) | |
return all_binaryviews |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment