def __init__(self, p: Project) -> None: super(MainWindow, self).__init__() self.project: Project = p self.viewArea = BoardViewWidget(self.project) self.installEventFilter(self.viewArea) self.undo_stack = QtWidgets.QUndoStack() self.undo_stack.indexChanged.connect(self.viewArea.update) self.pcbre_actions = MainWindowActions(self) self.debug_actions = DebugActions(self) self.setCentralWidget(self.viewArea) self.createToolbars() self.createMenubar() self.createDockWidgets() self.setWindowTitle("PCB Reversing Suite") self.current_tool: Optional[BaseTool] = None self.current_controller: Optional[BaseToolController] = None
def __init__(self, p): super(MainWindow, self).__init__() self.project = p self.viewArea = BoardViewWidget(self.project) self.installEventFilter(self.viewArea) self.actions = MainWindowActions(self) self.setCentralWidget(self.viewArea) self.createToolbars() self.createMenubar() self.createDockWidgets() self.setWindowTitle("PCB Reversing Suite") self.current_tool = None self.current_controller = None