def setup_ui(self, MainWidget): self.status = QStatusBar() self.right_widget = RightWidget() self.left_widget = LeftScrollArea() self.top_widget = TopWidget() self.right_layout = QVBoxLayout() self.left_layout = QVBoxLayout() self.top_layout = QHBoxLayout() self.show_container = QHBoxLayout() self.control_container = QHBoxLayout() self.layout = QVBoxLayout(MainWidget) self.set_widgets() self.set_layouts()
def __init__(self, parent=None): super(Center, self).__init__(parent) layout = QVBoxLayout() p = self.palette() p.setColor(QPalette.Background, QColor(192, 192, 192)) self.setPalette(p) self.setAutoFillBackground(True) self.board = BoardWidget(16, 30, 99, parent=self) self.top = TopWidget(99, parent=self) layout.addWidget(self.top) layout.addWidget(self.board) self.setLayout(layout)
def setup_ui(self, MainWidget): self.status = StatusBar() self.right_widget = RightWidget() self.left_widget = LeftScrollArea() self.top_widget = TopWidget() self.progress_info = QProgressBar() self.right_layout = QVBoxLayout() self.left_layout = QVBoxLayout() self.top_layout = QHBoxLayout() self.show_container = QHBoxLayout() self.control_container = QHBoxLayout() self.layout = QVBoxLayout(MainWidget) self.set_widgets() self.set_layouts() self._alias_name()