binaryninjax.MainWindow

class binaryninjax.MainWindow(q_main_window)[source]

Main Binary Ninja window.

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

Registers fn to be called each time a new main window is opened.

Parameters:fn (function(MainWindow)) – callback function
closeAll()[source]

Closes all tabs.

closeTab()[source]

Closes the current tab.

classmethod getActiveWindow()[source]
Returns:the active main window
Return type:MainWindow
getCurrentView()[source]
Returns:view frame for the currently active tab
Return type:ViewFrame
navigateBack()[source]

Navigates back in history.

navigateForward()[source]

Navigates forward in history.

newBinary()[source]

Opens a new tab with a new binary file.

newTab()[source]

Opens a new tab.

newWindow()[source]

Opens a new window.

newWindowForTab()[source]

Extracts the current tab into a new window.

nextTab()[source]

Switches to next tab.

open()[source]

Opens the file open dialog.

openFilename(filename)[source]

Opens the given filename in a new tab.

openUrl(url)[source]

Opens the given URL in a new tab.

openUrlDialog()[source]

Opens the URL open dialog.

previousTab()[source]

Switches to previous tab.

classmethod removeInitCallback(fn)[source]

Unregisters fn.

save()[source]

Saves the database.

saveAs()[source]

Opens the binary contents save dialog.

splitToNewTab()[source]

Splits the current view into a new tab.

splitToNewWindow()[source]

Splits the current view into a new window.