def METHOD_NAME(self, BusViewerWindow):
    if not BusViewerWindow.objectName():
        BusViewerWindow.setObjectName(u"BusViewerWindow")
    BusViewerWindow.resize(898, 571)
    self.actiondraw = QAction(BusViewerWindow)
    self.actiondraw.setObjectName(u"actiondraw")
    icon = QIcon()
    icon.addFile(u":/Icons/icons/automatic_layout.svg", QSize(), QIcon.Normal, QIcon.Off)
    self.actiondraw.setIcon(icon)
    self.actionExpand_nodes = QAction(BusViewerWindow)
    self.actionExpand_nodes.setObjectName(u"actionExpand_nodes")
    icon1 = QIcon()
    icon1.addFile(u":/Icons/icons/plus (gray).svg", QSize(), QIcon.Normal, QIcon.Off)
    self.actionExpand_nodes.setIcon(icon1)
    self.actionScrink_nodes = QAction(BusViewerWindow)
    self.actionScrink_nodes.setObjectName(u"actionScrink_nodes")
    icon2 = QIcon()
    icon2.addFile(u":/Icons/icons/minus (gray).svg", QSize(), QIcon.Normal, QIcon.Off)
    self.actionScrink_nodes.setIcon(icon2)
    self.actionAdjust_to_window_size = QAction(BusViewerWindow)
    self.actionAdjust_to_window_size.setObjectName(u"actionAdjust_to_window_size")
    icon3 = QIcon()
    icon3.addFile(u":/Icons/icons/resize.svg", QSize(), QIcon.Normal, QIcon.Off)
    self.actionAdjust_to_window_size.setIcon(icon3)
    self.centralwidget = QWidget(BusViewerWindow)
    self.centralwidget.setObjectName(u"centralwidget")
    self.verticalLayout = QVBoxLayout(self.centralwidget)
    self.verticalLayout.setObjectName(u"verticalLayout")
    self.toolsFrame = QFrame(self.centralwidget)
    self.toolsFrame.setObjectName(u"toolsFrame")
    self.toolsFrame.setMaximumSize(QSize(16777215, 40))
    self.toolsFrame.setFrameShape(QFrame.NoFrame)
    self.toolsFrame.setFrameShadow(QFrame.Raised)
    self.gridLayout = QGridLayout(self.toolsFrame)
    self.gridLayout.setObjectName(u"gridLayout")
    self.gridLayout.setContentsMargins(8, 0, 8, 0)
    self.drawButton = QPushButton(self.toolsFrame)
    self.drawButton.setObjectName(u"drawButton")
    self.drawButton.setIcon(icon)
    self.gridLayout.addWidget(self.drawButton, 0, 3, 1, 1)
    self.label_2 = QLabel(self.toolsFrame)
    self.label_2.setObjectName(u"label_2")
    self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
    self.horizontalSpacer = QSpacerItem(621, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
    self.gridLayout.addItem(self.horizontalSpacer, 0, 4, 1, 1)
    self.busNameLabel = QLabel(self.toolsFrame)
    self.busNameLabel.setObjectName(u"busNameLabel")
    self.gridLayout.addWidget(self.busNameLabel, 0, 5, 1, 1)
    self.levelSpinBox = QSpinBox(self.toolsFrame)
    self.levelSpinBox.setObjectName(u"levelSpinBox")
    self.levelSpinBox.setMinimum(1)
    self.gridLayout.addWidget(self.levelSpinBox, 0, 2, 1, 1)
    self.verticalLayout.addWidget(self.toolsFrame)
    self.editorFrame = QFrame(self.centralwidget)
    self.editorFrame.setObjectName(u"editorFrame")
    self.editorFrame.setFrameShape(QFrame.NoFrame)
    self.editorFrame.setFrameShadow(QFrame.Raised)
    self.verticalLayout_2 = QVBoxLayout(self.editorFrame)
    self.verticalLayout_2.setObjectName(u"verticalLayout_2")
    self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
    self.editorLayout = QVBoxLayout()
    self.editorLayout.setObjectName(u"editorLayout")
    self.verticalLayout_2.addLayout(self.editorLayout)
    self.verticalLayout.addWidget(self.editorFrame)
    BusViewerWindow.setCentralWidget(self.centralwidget)
    self.statusbar = QStatusBar(BusViewerWindow)
    self.statusbar.setObjectName(u"statusbar")
    BusViewerWindow.setStatusBar(self.statusbar)
    self.toolBar = QToolBar(BusViewerWindow)
    self.toolBar.setObjectName(u"toolBar")
    self.toolBar.setMovable(False)
    BusViewerWindow.addToolBar(Qt.TopToolBarArea, self.toolBar)
    self.toolBar.addAction(self.actiondraw)
    self.toolBar.addSeparator()
    self.toolBar.addAction(self.actionAdjust_to_window_size)
    self.toolBar.addAction(self.actionScrink_nodes)
    self.toolBar.addAction(self.actionExpand_nodes)
    self.retranslateUi(BusViewerWindow)
    QMetaObject.connectSlotsByName(BusViewerWindow)