binaryninjax.ViewFrame

class binaryninjax.ViewFrame(q)[source]

A view frame, that is, the info panel and the main view bound to a particular binary view.

Variables:q – underlying Qt widget proxy
classmethod addInitCallback(fn)[source]

Registers fn to be called each time a new view frame (i.e. a tab) is opened.

Parameters:fn (function(ViewFrame)) – callback function
back()[source]

Navigates back in history.

forward()[source]

Navigates forward in history.

getInfoPanel()[source]
Returns:the info panel of this view frame
Return type:InfoPanel
getView()[source]
Returns:the main view widget of this view frame
Return type:HexEditor, DisassemblyView, StringsView, LinearView, TypeView, or an user-defined subclass.
classmethod removeInitCallback(fn)[source]

Unregisters fn.

setViewType(binary_view_type, disasm_view_type)[source]

Sets the type of binary view and type of disassembly view.

Parameters:
  • binary_view_type – registered binary view type, e.g. "ELF"
  • disasm_view_type – pre-existing types are "Hex", "Graph", "Linear", "Strings", and "Types"
Returns:

True if successful, False otherwise