Esempio n. 1
0
 def __init__(self, root, executor, root_directory):
     self.root_directory = root_directory
     self.model = Model(root_directory)
     self.controller = Controller(self.model, root)
     self.view = View(root, self.model, executor, self.controller)
     super(PicCollector, self).__init__()
     self.model.load_model()
     self.model.load_imagedata()
     self.view.setup_view()
Esempio n. 2
0
 def __init__(self, game: Game, black: Agent) -> None:
     self.game: Game = game
     self.black: Agent = black
     self.gui = None
     self.legal_actions: dict = self.game.board.get_legal_actions(
         Color.WHITE)
     self.prev_pass = False
     self.done = False
     self.gui = View()
     self.init_gui()
Esempio n. 3
0
def main():
    event_manager = EventManager()
    game_engine = GameEngine(event_manager)
    view = View(
        event_manager,
        game_engine,
        window_size=(DISPLAY_WIDTH, DISPLAY_HEIGHT),
        window_title="Ultimate Tic Tac Toe",
        fps=30,
    )
    _controller = Controller(event_manager, game_engine, view)
    game_engine.run()
Esempio n. 4
0
    def __init__(self, sGuiStyle=None):

        # QT starten
        app = QApplication(sys.argv)
        #app.setAttribute(QtCore.Qt.AA_DontShowIconsInMenus, True)
        if sGuiStyle is not None:
            app.setStyle(QStyleFactory.create(sGuiStyle))

        # Instanzvariablen
        self.model = Model()  # Model
        self.view = View(self.model)  # View
        observer = Observer(self.view)  # Observer der View
        self.model.addObserver(observer)  # Observer bei Model anmelden
        # QT
        self.view.show()  # Hauptfenster
        # Info
        sys.exit(app.exec_())  # Eventloop starten
Esempio n. 5
0
    def __init__(self):
        self.__root = Tk()
        self.__view = View(self.__root)
        self.__modal = Modal(self.__view.TLog)

        # Set default
        self.__view.VOrigin.set(
            settings['DEFAULT_PATH']['original']
            if settings['DEFAULT_PATH']['original'] else os.getcwd())
        self.__view.VBackup.set(settings['DEFAULT_PATH']['backup'])

        # Set commands
        self.__view.BOrigin.config(
            command=lambda: self.__get_directory(self.__view.VOrigin))
        self.__view.BBackup.config(
            command=lambda: self.__get_directory(self.__view.VBackup))
        self.__view.BStart.config(command=self.__start)

        self.__root.mainloop()
Esempio n. 6
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1200, 900)
        MainWindow.setFocusPolicy(QtCore.Qt.StrongFocus)
        MainWindow.setStyleSheet("")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setStyleSheet("background-color: rgb(50, 50, 50);")
        self.centralwidget.setObjectName("centralwidget")
        self.mainLayout = QtWidgets.QHBoxLayout(self.centralwidget)
        self.mainLayout.setContentsMargins(50, 50, 50, 50)
        self.mainLayout.setSpacing(50)
        self.mainLayout.setObjectName("mainLayout")
        self.view = View(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view.sizePolicy().hasHeightForWidth())
        self.view.setSizePolicy(sizePolicy)
        self.view.setMinimumSize(QtCore.QSize(700, 700))
        self.view.setBaseSize(QtCore.QSize(0, 0))
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(245, 245, 245))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(220, 220, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(145, 145, 145))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 170, 170))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(245, 245, 245))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(220, 220, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(145, 145, 145))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 170, 170))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(145, 145, 145))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(245, 245, 245))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(220, 220, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(145, 145, 145))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 170, 170))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(145, 145, 145))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(145, 145, 145))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        self.view.setPalette(palette)
        self.view.setObjectName("view")
        self.mainLayout.addWidget(self.view)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setSpacing(20)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setMinimumSize(QtCore.QSize(320, 580))
        self.tabWidget.setFocusPolicy(QtCore.Qt.NoFocus)
        self.tabWidget.setStyleSheet(
            "QPushButton {\n"
            "    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,\n"
            "stop: 0 rgb(150, 150, 150), stop: 0.4 rgb(135, 135, 135),\n"
            "stop: 0.5 rgb(125, 125, 125), stop: 1.0 rgb(110, 110, 110));\n"
            "    border: 1px solid rgb(100, 100, 100);\n"
            "    border-radius: 4px;\n"
            "        color: black;\n"
            "        padding: 5px 10px;\n"
            "}\n"
            "QPushButton:hover {\n"
            "        background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(200, 200, 200), stop: 0.4 rgb(185, 185, 185), stop: 0.5 rgb(175, 175, 175), stop: 1.0 rgb(160, 160, 160));\n"
            "}\n"
            "QPushButton:pressed {\n"
            "        background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(220, 220, 220), stop: 0.4 rgb(205, 205, 205), stop: 0.5 rgb(195, 195, 195), stop: 1.0 rgb(180, 180, 180));\n"
            "}\n"
            "QTabWidget::pane {\n"
            "    border-top: 1px solid rgb(150, 150, 150);\n"
            "}\n"
            "QTabWidget::tab-bar {\n"
            "    left: 10px;\n"
            "}\n"
            "QTabBar::tab {\n"
            "    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(180, 180, 180), stop: 0.4 rgb(165, 165, 165), stop: 0.5 rgb(155, 155, 155), stop: 1.0 rgb(140, 140, 140));\n"
            "    border: 1px solid rgb(150, 150, 150);\n"
            "    border-top-left-radius: 4px;\n"
            "    border-top-right-radius: 4px;\n"
            "    min-width: 10ex;\n"
            "    padding: 2px;\n"
            "}\n"
            "QTabBar::tab:selected, QTabBar::tab:hover {\n"
            "    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(220, 220, 220), stop: 0.4 rgb(205, 205, 205), stop: 0.5 rgb(195, 195, 195), stop: 1.0 rgb(180, 180, 180));\n"
            "}\n"
            "QTabBar::tab:!selected {\n"
            "    margin-top: 2px;\n"
            "}\n"
            "QTabBar::tab:selected {\n"
            "    margin-left: -4px;\n"
            "    margin-right: -4px;\n"
            "}\n"
            "QTabBar::tab:first:selected {\n"
            "    margin-left: 0;\n"
            "}\n"
            "QTabBar::tab:last:selected {\n"
            "    margin-right: 0;\n"
            "}\n"
            "QTabBar::tab:only-one {\n"
            "    margin: 0;\n"
            "}")
        self.tabWidget.setObjectName("tabWidget")
        self.moveListTab = QtWidgets.QWidget()
        self.moveListTab.setObjectName("moveListTab")
        self.layoutWidget = QtWidgets.QWidget(self.moveListTab)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 10, 302, 542))
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.commentField = CommentEdit(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.commentField.sizePolicy().hasHeightForWidth())
        self.commentField.setSizePolicy(sizePolicy)
        self.commentField.setMinimumSize(QtCore.QSize(300, 90))
        self.commentField.setMaximumSize(QtCore.QSize(16777215, 90))
        self.commentField.setStyleSheet(
            "background-color: rgb(255, 255, 255);")
        self.commentField.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.commentField.setObjectName("commentField")
        self.verticalLayout_2.addWidget(self.commentField)
        self.moveListWidget = QtWidgets.QListWidget(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.moveListWidget.sizePolicy().hasHeightForWidth())
        self.moveListWidget.setSizePolicy(sizePolicy)
        self.moveListWidget.setMinimumSize(QtCore.QSize(300, 400))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.moveListWidget.setFont(font)
        self.moveListWidget.setFocusPolicy(QtCore.Qt.NoFocus)
        self.moveListWidget.setStyleSheet(
            "background-color: rgb(255, 255, 255);")
        self.moveListWidget.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.moveListWidget.setEditTriggers(
            QtWidgets.QAbstractItemView.NoEditTriggers)
        self.moveListWidget.setProperty("showDropIndicator", False)
        self.moveListWidget.setObjectName("moveListWidget")
        self.verticalLayout_2.addWidget(self.moveListWidget)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSpacing(5)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.firstMoveButton = QtWidgets.QPushButton(self.layoutWidget)
        self.firstMoveButton.setObjectName("firstMoveButton")
        self.horizontalLayout_2.addWidget(self.firstMoveButton)
        self.prevMoveButton = QtWidgets.QPushButton(self.layoutWidget)
        self.prevMoveButton.setObjectName("prevMoveButton")
        self.horizontalLayout_2.addWidget(self.prevMoveButton)
        self.nextMoveButton = QtWidgets.QPushButton(self.layoutWidget)
        self.nextMoveButton.setObjectName("nextMoveButton")
        self.horizontalLayout_2.addWidget(self.nextMoveButton)
        self.lastMoveButton = QtWidgets.QPushButton(self.layoutWidget)
        self.lastMoveButton.setObjectName("lastMoveButton")
        self.horizontalLayout_2.addWidget(self.lastMoveButton)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.tabWidget.addTab(self.moveListTab, "")
        self.pgnTab = QtWidgets.QWidget()
        self.pgnTab.setObjectName("pgnTab")
        self.layoutWidget1 = QtWidgets.QWidget(self.pgnTab)
        self.layoutWidget1.setGeometry(QtCore.QRect(10, 10, 302, 542))
        self.layoutWidget1.setObjectName("layoutWidget1")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.pgnField = QtWidgets.QPlainTextEdit(self.layoutWidget1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pgnField.sizePolicy().hasHeightForWidth())
        self.pgnField.setSizePolicy(sizePolicy)
        self.pgnField.setMinimumSize(QtCore.QSize(300, 500))
        font = QtGui.QFont()
        font.setFamily("Trebuchet MS")
        self.pgnField.setFont(font)
        self.pgnField.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.pgnField.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.pgnField.setObjectName("pgnField")
        self.verticalLayout_4.addWidget(self.pgnField)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setSpacing(5)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.loadPgnButton = QtWidgets.QPushButton(self.layoutWidget1)
        self.loadPgnButton.setObjectName("loadPgnButton")
        self.horizontalLayout_3.addWidget(self.loadPgnButton)
        self.savePgnButton = QtWidgets.QPushButton(self.layoutWidget1)
        self.savePgnButton.setEnabled(True)
        self.savePgnButton.setObjectName("savePgnButton")
        self.horizontalLayout_3.addWidget(self.savePgnButton)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.verticalLayout_4.addLayout(self.horizontalLayout_3)
        self.tabWidget.addTab(self.pgnTab, "")
        self.verticalLayout.addWidget(self.tabWidget)
        self.fenGroupBox = QtWidgets.QGroupBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fenGroupBox.sizePolicy().hasHeightForWidth())
        self.fenGroupBox.setSizePolicy(sizePolicy)
        self.fenGroupBox.setMinimumSize(QtCore.QSize(320, 110))
        self.fenGroupBox.setStyleSheet(
            "QGroupBox {\n"
            "        background: none;\n"
            "    border: none;\n"
            "    color: rgb(255, 255, 255);\n"
            "    font-weight: bold;\n"
            "}\n"
            "QPushButton {\n"
            "    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(150, 150, 150), stop: 0.4 rgb(135, 135, 135), stop: 0.5 rgb(125, 125, 125), stop: 1.0 rgb(110, 110, 110));\n"
            "    border: 1px solid rgb(100, 100, 100);\n"
            "    border-radius: 4px;\n"
            "        color: black;\n"
            "        padding: 5px 10px;\n"
            "}\n"
            "QPushButton:hover {\n"
            "        background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(200, 200, 200), stop: 0.4 rgb(185, 185, 185), stop: 0.5 rgb(175, 175, 175), stop: 1.0 rgb(160, 160, 160));\n"
            "}\n"
            "QPushButton:pressed {\n"
            "        background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(220, 220, 220), stop: 0.4 rgb(205, 205, 205), stop: 0.5 rgb(195, 195, 195), stop: 1.0 rgb(180, 180, 180));\n"
            "}\n"
            "QPushButton#boardResetButton {\n"
            "    font-weight: bold;\n"
            "}")
        self.fenGroupBox.setObjectName("fenGroupBox")
        self.layoutWidget2 = QtWidgets.QWidget(self.fenGroupBox)
        self.layoutWidget2.setGeometry(QtCore.QRect(10, 30, 302, 72))
        self.layoutWidget2.setObjectName("layoutWidget2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.layoutWidget2)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.fenField = QtWidgets.QPlainTextEdit(self.layoutWidget2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fenField.sizePolicy().hasHeightForWidth())
        self.fenField.setSizePolicy(sizePolicy)
        self.fenField.setMinimumSize(QtCore.QSize(300, 0))
        self.fenField.setMaximumSize(QtCore.QSize(16777215, 25))
        font = QtGui.QFont()
        font.setFamily("Trebuchet MS")
        self.fenField.setFont(font)
        self.fenField.setStyleSheet("background-color: rgb(255, 255, 255);\n"
                                    "color: rgb(0, 0, 0);")
        self.fenField.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.fenField.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.fenField.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.fenField.setLineWrapMode(QtWidgets.QPlainTextEdit.NoWrap)
        self.fenField.setObjectName("fenField")
        self.verticalLayout_3.addWidget(self.fenField)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.setFenButton = QtWidgets.QPushButton(self.layoutWidget2)
        self.setFenButton.setObjectName("setFenButton")
        self.horizontalLayout.addWidget(self.setFenButton)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.boardResetButton = QtWidgets.QPushButton(self.layoutWidget2)
        self.boardResetButton.setObjectName("boardResetButton")
        self.horizontalLayout.addWidget(self.boardResetButton)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.verticalLayout.addWidget(self.fenGroupBox)
        self.mainLayout.addLayout(self.verticalLayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1200, 22))
        self.menubar.setNativeMenuBar(False)
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuEdit = QtWidgets.QMenu(self.menubar)
        self.menuEdit.setObjectName("menuEdit")
        self.menuView = QtWidgets.QMenu(self.menubar)
        self.menuView.setObjectName("menuView")
        self.menu4PlayerChess = QtWidgets.QMenu(self.menubar)
        self.menu4PlayerChess.setObjectName("menu4PlayerChess")
        self.menuHelp = QtWidgets.QMenu(self.menubar)
        self.menuHelp.setObjectName("menuHelp")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setStyleSheet("background-color: rgb(50, 50, 50);\n"
                                     "color: grey;")
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionLoad_Game = QtWidgets.QAction(MainWindow)
        self.actionLoad_Game.setObjectName("actionLoad_Game")
        self.actionSave_Game_As = QtWidgets.QAction(MainWindow)
        self.actionSave_Game_As.setObjectName("actionSave_Game_As")
        self.actionQuit = QtWidgets.QAction(MainWindow)
        self.actionQuit.setObjectName("actionQuit")
        self.actionCopy_FEN4 = QtWidgets.QAction(MainWindow)
        self.actionCopy_FEN4.setObjectName("actionCopy_FEN4")
        self.actionPaste_FEN4 = QtWidgets.QAction(MainWindow)
        self.actionPaste_FEN4.setObjectName("actionPaste_FEN4")
        self.actionRotate_Board_Left = QtWidgets.QAction(MainWindow)
        self.actionRotate_Board_Left.setObjectName("actionRotate_Board_Left")
        self.actionRotate_Board_Right = QtWidgets.QAction(MainWindow)
        self.actionRotate_Board_Right.setObjectName("actionRotate_Board_Right")
        self.actionFlip_Board = QtWidgets.QAction(MainWindow)
        self.actionFlip_Board.setObjectName("actionFlip_Board")
        self.actionNew_Game = QtWidgets.QAction(MainWindow)
        self.actionNew_Game.setObjectName("actionNew_Game")
        self.actionPreferences = QtWidgets.QAction(MainWindow)
        self.actionPreferences.setObjectName("actionPreferences")
        self.actionCheck_for_Updates = QtWidgets.QAction(MainWindow)
        self.actionCheck_for_Updates.setObjectName("actionCheck_for_Updates")
        self.actionAbout = QtWidgets.QAction(MainWindow)
        self.actionAbout.setObjectName("actionAbout")
        self.actionQuick_Reference = QtWidgets.QAction(MainWindow)
        self.actionQuick_Reference.setObjectName("actionQuick_Reference")
        self.actionReport_Bug = QtWidgets.QAction(MainWindow)
        self.actionReport_Bug.setObjectName("actionReport_Bug")
        self.actionAbout_PyQt = QtWidgets.QAction(MainWindow)
        self.actionAbout_PyQt.setObjectName("actionAbout_PyQt")
        self.menuFile.addAction(self.actionNew_Game)
        self.menuFile.addAction(self.actionLoad_Game)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionSave_Game_As)
        self.menuEdit.addAction(self.actionCopy_FEN4)
        self.menuEdit.addAction(self.actionPaste_FEN4)
        self.menuView.addAction(self.actionRotate_Board_Left)
        self.menuView.addAction(self.actionRotate_Board_Right)
        self.menuView.addAction(self.actionFlip_Board)
        self.menu4PlayerChess.addAction(self.actionAbout)
        self.menu4PlayerChess.addAction(self.actionCheck_for_Updates)
        self.menu4PlayerChess.addSeparator()
        self.menu4PlayerChess.addAction(self.actionPreferences)
        self.menu4PlayerChess.addSeparator()
        self.menu4PlayerChess.addAction(self.actionQuit)
        self.menuHelp.addAction(self.actionAbout_PyQt)
        self.menuHelp.addSeparator()
        self.menuHelp.addAction(self.actionQuick_Reference)
        self.menuHelp.addAction(self.actionReport_Bug)
        self.menubar.addAction(self.menu4PlayerChess.menuAction())
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuEdit.menuAction())
        self.menubar.addAction(self.menuView.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)