Skip to content

Instantly share code, notes, and snippets.

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()