(self)
| 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) |
no test coverage detected