Skip to content

Instantly share code, notes, and snippets.

@nbanmp
Created May 14, 2020 22:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbanmp/b9eb1a57490706e985bdfc75390e5749 to your computer and use it in GitHub Desktop.
Save nbanmp/b9eb1a57490706e985bdfc75390e5749 to your computer and use it in GitHub Desktop.
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