MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / updateState

Method updateState

python/examples/hellopane.py:94–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 self.notifications = HelloNotifications(self)
93
94 def updateState(self):
95 # Get the currently active view frame for this group of panes. There can be
96 # multiple view frames in a single window, or the pane could be popped out
97 # into its own window. UIContext.currentViewFrameForWidget will determine
98 # the best view frame to use for context.
99 frame = UIContext.currentViewFrameForWidget(self)
100
101 # Update UI according to the active frame
102 if frame:
103 self.datatype.setText(frame.getCurrentView())
104 view = frame.getCurrentViewInterface()
105 self.data = view.getData()
106 self.offset.setText(hex(view.getCurrentOffset()))
107 else:
108 self.datatype.setText("None")
109 self.data = None
110
111 def contextMenuEvent(self, event):
112 self.m_contextMenuManager.show(self.m_menu, self.actionHandler)

Callers 3

__init__Method · 0.95
OnViewChangeMethod · 0.80
OnAddressChangeMethod · 0.80

Calls 2

getDataMethod · 0.45
getCurrentOffsetMethod · 0.45

Tested by

no test coverage detected