# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'bard.ui' # # Created by: PyQt5 UI code generator 5.15.9 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1280, 960) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.stackedWidget = QtWidgets.QStackedWidget(self.centralwidget) self.stackedWidget.setGeometry(QtCore.QRect(0, 0, 1280, 960)) font = QtGui.QFont() font.setFamily("Cascadia Mono SemiBold") self.stackedWidget.setFont(font) self.stackedWidget.setObjectName("stackedWidget") self.start = QtWidgets.QWidget() self.start.setObjectName("start") self.myo = QtWidgets.QPushButton(self.start) self.myo.setGeometry(QtCore.QRect(300, 560, 680, 280)) font = QtGui.QFont() font.setPointSize(22) self.myo.setFont(font) self.myo.setObjectName("myo") self.pt = QtWidgets.QPushButton(self.start) self.pt.setGeometry(QtCore.QRect(300, 180, 680, 280)) font = QtGui.QFont() font.setPointSize(22) self.pt.setFont(font) self.pt.setObjectName("pt") self.drink = QtWidgets.QLabel(self.start) self.drink.setGeometry(QtCore.QRect(300, 40, 680, 60)) font = QtGui.QFont() font.setPointSize(22) self.drink.setFont(font) self.drink.setAlignment(QtCore.Qt.AlignCenter) self.drink.setObjectName("drink") self.stackedWidget.addWidget(self.start) self.preset_page = QtWidgets.QWidget() self.preset_page.setObjectName("preset_page") self.drink_set = QtWidgets.QComboBox(self.preset_page) self.drink_set.setGeometry(QtCore.QRect(240, 300, 720, 200)) font = QtGui.QFont() font.setPointSize(30) self.drink_set.setFont(font) self.drink_set.setObjectName("drink_set") self.drink_set.addItem("") self.drink_set.addItem("") self.drink_set.addItem("") self.back_preset = QtWidgets.QPushButton(self.preset_page) self.back_preset.setGeometry(QtCore.QRect(20, 40, 200, 80)) font = QtGui.QFont() font.setPointSize(16) self.back_preset.setFont(font) self.back_preset.setObjectName("back_preset") self.submit_preset = QtWidgets.QPushButton(self.preset_page) self.submit_preset.setGeometry(QtCore.QRect(700, 750, 540, 160)) font = QtGui.QFont() font.setPointSize(22) self.submit_preset.setFont(font) self.submit_preset.setObjectName("submit_preset") self.cup_error_preset = QtWidgets.QLabel(self.preset_page) self.cup_error_preset.setGeometry(QtCore.QRect(820, 670, 300, 80)) font = QtGui.QFont() font.setPointSize(14) self.cup_error_preset.setFont(font) self.cup_error_preset.setAlignment(QtCore.Qt.AlignCenter) self.cup_error_preset.setObjectName("cup_error_preset") self.drink_preset = QtWidgets.QLabel(self.preset_page) self.drink_preset.setGeometry(QtCore.QRect(300, 40, 680, 60)) font = QtGui.QFont() font.setPointSize(22) self.drink_preset.setFont(font) self.drink_preset.setAlignment(QtCore.Qt.AlignCenter) self.drink_preset.setObjectName("drink_preset") self.stackedWidget.addWidget(self.preset_page) self.myo_page = QtWidgets.QWidget() self.myo_page.setObjectName("myo_page") self.submit_myo = QtWidgets.QPushButton(self.myo_page) self.submit_myo.setGeometry(QtCore.QRect(700, 750, 540, 160)) font = QtGui.QFont() font.setPointSize(22) self.submit_myo.setFont(font) self.submit_myo.setObjectName("submit_myo") self.back_myo = QtWidgets.QPushButton(self.myo_page) self.back_myo.setGeometry(QtCore.QRect(20, 40, 200, 80)) font = QtGui.QFont() font.setPointSize(16) self.back_myo.setFont(font) self.back_myo.setObjectName("back_myo") self.stir_check = QtWidgets.QCheckBox(self.myo_page) self.samedrink_check_myo = QtWidgets.QCheckBox(self.myo_page) self.samedrink_check_preset = QtWidgets.QCheckBox(self.preset_page) self.samedrink_check_myo.setGeometry(QtCore.QRect(300, 770, 520, 120)) self.samedrink_check_preset.setGeometry(QtCore.QRect(300, 770, 520, 120)) self.stir_check.setGeometry(QtCore.QRect(80, 770, 300, 120)) font = QtGui.QFont() font.setPointSize(22) self.stir_check.setFont(font) self.stir_check.setIconSize(QtCore.QSize(40, 40)) self.stir_check.setObjectName("stir_check") self.samedrink_check_preset.setFont(font) self.samedrink_check_preset.setIconSize(QtCore.QSize(40, 40)) self.samedrink_check_preset.setObjectName("samedrink_check_preset") self.samedrink_check_myo.setFont(font) self.samedrink_check_myo.setIconSize(QtCore.QSize(40, 40)) self.samedrink_check_myo.setObjectName("samedrink_check_myo") self.cup_error_myo = QtWidgets.QLabel(self.myo_page) self.cup_error_myo.setGeometry(QtCore.QRect(820, 670, 300, 80)) font = QtGui.QFont() font.setPointSize(14) self.cup_error_myo.setFont(font) self.cup_error_myo.setAlignment(QtCore.Qt.AlignCenter) self.cup_error_myo.setObjectName("cup_error_myo") self.liquid1 = QtWidgets.QSlider(self.myo_page) self.liquid1.setGeometry(QtCore.QRect(60, 200, 860, 60)) self.liquid1.setMaximum(100) self.liquid1.setOrientation(QtCore.Qt.Horizontal) self.liquid1.setObjectName("liquid1") self.liquid2 = QtWidgets.QSlider(self.myo_page) self.liquid2.setGeometry(QtCore.QRect(60, 300, 860, 60)) self.liquid2.setMaximum(100) self.liquid2.setOrientation(QtCore.Qt.Horizontal) self.liquid2.setObjectName("liquid2") self.liquid3 = QtWidgets.QSlider(self.myo_page) self.liquid3.setGeometry(QtCore.QRect(60, 400, 860, 60)) self.liquid3.setMaximum(100) self.liquid3.setOrientation(QtCore.Qt.Horizontal) self.liquid3.setObjectName("liquid3") self.liquid4 = QtWidgets.QSlider(self.myo_page) self.liquid4.setGeometry(QtCore.QRect(60, 500, 860, 60)) self.liquid4.setMaximum(100) self.liquid4.setOrientation(QtCore.Qt.Horizontal) self.liquid4.setTickPosition(QtWidgets.QSlider.NoTicks) self.liquid4.setObjectName("liquid4") self.L1_label = QtWidgets.QLabel(self.myo_page) self.L1_label.setGeometry(QtCore.QRect(940, 200, 300, 60)) font = QtGui.QFont() font.setPointSize(30) self.L1_label.setFont(font) self.L1_label.setAlignment(QtCore.Qt.AlignCenter) self.L1_label.setObjectName("L1_label") self.L2_label = QtWidgets.QLabel(self.myo_page) self.L2_label.setGeometry(QtCore.QRect(940, 300, 300, 60)) font = QtGui.QFont() font.setPointSize(30) self.L2_label.setFont(font) self.L2_label.setAlignment(QtCore.Qt.AlignCenter) self.L2_label.setObjectName("L2_label") self.L3_label = QtWidgets.QLabel(self.myo_page) self.L3_label.setGeometry(QtCore.QRect(940, 400, 300, 60)) font = QtGui.QFont() font.setPointSize(30) self.L3_label.setFont(font) self.L3_label.setAlignment(QtCore.Qt.AlignCenter) self.L3_label.setObjectName("L3_label") self.L4_label = QtWidgets.QLabel(self.myo_page) self.L4_label.setGeometry(QtCore.QRect(940, 500, 300, 60)) font = QtGui.QFont() font.setPointSize(30) self.L4_label.setFont(font) self.L4_label.setAlignment(QtCore.Qt.AlignCenter) self.L4_label.setObjectName("L4_label") self.drink_myo = QtWidgets.QLabel(self.myo_page) self.drink_myo.setGeometry(QtCore.QRect(300, 40, 680, 60)) font = QtGui.QFont() font.setPointSize(22) self.drink_myo.setFont(font) self.drink_myo.setAlignment(QtCore.Qt.AlignCenter) self.drink_myo.setObjectName("drink_myo") self.liquid5 = QtWidgets.QSlider(self.myo_page) self.liquid5.setGeometry(QtCore.QRect(60, 600, 860, 60)) self.liquid5.setMaximum(100) self.liquid5.setOrientation(QtCore.Qt.Horizontal) self.liquid5.setTickPosition(QtWidgets.QSlider.NoTicks) self.liquid5.setObjectName("liquid5") self.L5_label = QtWidgets.QLabel(self.myo_page) self.L5_label.setGeometry(QtCore.QRect(940, 600, 300, 60)) font = QtGui.QFont() font.setPointSize(30) self.L5_label.setFont(font) self.L5_label.setAlignment(QtCore.Qt.AlignCenter) self.L5_label.setObjectName("L5_label") self.stackedWidget.addWidget(self.myo_page) self.start_order_page = QtWidgets.QWidget() self.start_order_page.setObjectName("start_order_page") self.label = QtWidgets.QLabel(self.start_order_page) self.label.setGeometry(QtCore.QRect(20, 250, 1240, 140)) font = QtGui.QFont() font.setFamily("Cascadia Mono SemiBold") font.setPointSize(24) self.label.setFont(font) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.drink_num = QtWidgets.QSpinBox(self.start_order_page) self.drink_num.setGeometry(QtCore.QRect(640, 410, 340, 120)) font = QtGui.QFont() font.setFamily("Cascadia Mono SemiBold") font.setPointSize(20) self.drink_num.setFont(font) self.drink_num.setAlignment(QtCore.Qt.AlignCenter) self.drink_num.setMinimum(1) self.drink_num.setMaximum(6) self.drink_num.setObjectName("drink_num") self.drinks_confirm = QtWidgets.QPushButton(self.start_order_page) self.drinks_confirm.setGeometry(QtCore.QRect(340, 620, 580, 160)) font = QtGui.QFont() font.setFamily("Cascadia Mono SemiBold") font.setPointSize(24) self.drinks_confirm.setFont(font) self.drinks_confirm.setObjectName("drinks_confirm") self.label_3 = QtWidgets.QLabel(self.start_order_page) self.label_3.setGeometry(QtCore.QRect(240, 410, 400, 120)) font = QtGui.QFont() font.setFamily("Cascadia Mono SemiBold") font.setPointSize(20) self.label_3.setFont(font) self.label_3.setAlignment(QtCore.Qt.AlignCenter) self.label_3.setObjectName("label_3") self.label_5 = QtWidgets.QLabel(self.start_order_page) self.label_5.setGeometry(QtCore.QRect(530, 50, 210, 180)) font = QtGui.QFont() font.setFamily("Cascadia Mono SemiBold") self.label_5.setFont(font) self.label_5.setAlignment(QtCore.Qt.AlignCenter) self.label_5.setObjectName("label_5") self.stackedWidget.addWidget(self.start_order_page) self.send_order_page = QtWidgets.QWidget() self.send_order_page.setObjectName("send_order_page") self.label_2 = QtWidgets.QLabel(self.send_order_page) self.label_2.setGeometry(QtCore.QRect(260, 220, 760, 200)) font = QtGui.QFont() font.setPointSize(22) self.label_2.setFont(font) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.confirm_order = QtWidgets.QPushButton(self.send_order_page) self.confirm_order.setGeometry(QtCore.QRect(260, 520, 340, 180)) font = QtGui.QFont() font.setPointSize(16) self.confirm_order.setFont(font) self.confirm_order.setObjectName("confirm_order") self.cancel = QtWidgets.QPushButton(self.send_order_page) self.cancel.setGeometry(QtCore.QRect(680, 520, 340, 180)) font = QtGui.QFont() font.setPointSize(16) self.cancel.setFont(font) self.cancel.setObjectName("cancel") self.stackedWidget.addWidget(self.send_order_page) self.order_submitted = QtWidgets.QWidget() self.order_submitted.setObjectName("order_submitted") self.label_4 = QtWidgets.QLabel(self.order_submitted) self.label_4.setGeometry(QtCore.QRect(20, 20, 1240, 160)) font = QtGui.QFont() font.setPointSize(22) self.label_4.setFont(font) self.label_4.setAlignment(QtCore.Qt.AlignCenter) self.label_4.setObjectName("label_4") self.avatar = QtWidgets.QLabel(self.order_submitted) self.avatar.setGeometry(QtCore.QRect(340, 160, 600, 410)) self.avatar.setText("") self.avatar.setAlignment(QtCore.Qt.AlignCenter) self.avatar.setObjectName("avatar") self.next_order = QtWidgets.QPushButton(self.order_submitted) self.next_order.setGeometry(QtCore.QRect(420, 620, 440, 180)) font = QtGui.QFont() font.setPointSize(16) self.next_order.setFont(font) self.next_order.setObjectName("next_order") self.stackedWidget.addWidget(self.order_submitted) self.load_cups = QtWidgets.QWidget() self.load_cups.setObjectName("load_cups") self.cup_error_load = QtWidgets.QLabel(self.load_cups) self.cup_error_load.setGeometry(QtCore.QRect(490, 230, 300, 80)) font = QtGui.QFont() font.setPointSize(14) self.cup_error_load.setFont(font) self.cup_error_load.setAlignment(QtCore.Qt.AlignCenter) self.cup_error_load.setObjectName("cup_error_load") self.finish_loading = QtWidgets.QPushButton(self.load_cups) self.finish_loading.setGeometry(QtCore.QRect(470, 709, 340, 131)) font = QtGui.QFont() font.setPointSize(16) self.finish_loading.setFont(font) self.finish_loading.setObjectName("finish_loading") self.max_cups = QtWidgets.QLabel(self.load_cups) self.max_cups.setGeometry(QtCore.QRect(370, 590, 541, 80)) font = QtGui.QFont() font.setPointSize(14) self.max_cups.setFont(font) self.max_cups.setAlignment(QtCore.Qt.AlignCenter) self.max_cups.setObjectName("max_cups") self.loaded_cup_number = QtWidgets.QLabel(self.load_cups) self.loaded_cup_number.setGeometry(QtCore.QRect(20, 70, 1240, 121)) font = QtGui.QFont() font.setPointSize(22) self.loaded_cup_number.setFont(font) self.loaded_cup_number.setAlignment(QtCore.Qt.AlignCenter) self.loaded_cup_number.setObjectName("loaded_cup_number") self.confirm_cup = QtWidgets.QPushButton(self.load_cups) self.confirm_cup.setGeometry(QtCore.QRect(300, 310, 680, 280)) font = QtGui.QFont() font.setPointSize(22) self.confirm_cup.setFont(font) self.confirm_cup.setObjectName("confirm_cup") self.back_loading = QtWidgets.QPushButton(self.load_cups) self.back_loading.setGeometry(QtCore.QRect(20, 40, 200, 80)) font = QtGui.QFont() font.setPointSize(16) self.back_loading.setFont(font) self.back_loading.setObjectName("back_loading") self.stackedWidget.addWidget(self.load_cups) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1280, 18)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) self.stackedWidget.setCurrentIndex(3) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.myo.setText(_translate("MainWindow", "Make Your Own")) self.pt.setText(_translate("MainWindow", "Select a Drink")) self.drink.setText(_translate("MainWindow", "Drink: 1")) self.drink_set.setCurrentText(_translate("MainWindow", "DEMO")) self.drink_set.setItemText(0, _translate("MainWindow", "DEMO")) self.drink_set.setItemText(1, _translate("MainWindow", "DEMO2")) self.drink_set.setItemText(2, _translate("MainWindow", "DEMO3")) self.back_preset.setText(_translate("MainWindow", "Back")) self.submit_preset.setText(_translate("MainWindow", "Confirm")) self.cup_error_preset.setText(_translate("MainWindow", "Cup not detected!")) self.drink_preset.setText(_translate("MainWindow", "Drink: 1")) self.submit_myo.setText(_translate("MainWindow", "Confirm")) self.back_myo.setText(_translate("MainWindow", "Back")) self.stir_check.setText(_translate("MainWindow", "Stirring")) self.samedrink_check_myo.setText(_translate("MainWindow", "Same for All Remaining Drinks")) self.samedrink_check_preset.setText(_translate("MainWindow", "Same for All Remaining Drinks")) self.cup_error_myo.setText(_translate("MainWindow", "Cup not detected!")) self.L1_label.setText(_translate("MainWindow", "L1")) self.L2_label.setText(_translate("MainWindow", "L2")) self.L3_label.setText(_translate("MainWindow", "L3")) self.L4_label.setText(_translate("MainWindow", "L4")) self.drink_myo.setText(_translate("MainWindow", "Drink: 1")) self.L5_label.setText(_translate("MainWindow", "L5")) self.label.setText(_translate("MainWindow", "Welcome!")) self.drinks_confirm.setText(_translate("MainWindow", "Confirm")) self.label_3.setText(_translate("MainWindow", "How many drinks?")) self.label_5.setText(_translate("MainWindow", "

")) self.label_2.setText(_translate("MainWindow", "All drinks set. Begin?")) self.confirm_order.setText(_translate("MainWindow", "Yes")) self.cancel.setText(_translate("MainWindow", "Cancel")) self.label_4.setText(_translate("MainWindow", "Making drinks! Check back in a bit.")) self.next_order.setText(_translate("MainWindow", "Next Order")) self.cup_error_load.setText(_translate("MainWindow", "Cup not detected!")) self.finish_loading.setText(_translate("MainWindow", "Finish")) self.max_cups.setText(_translate("MainWindow", "All cups loaded.")) self.loaded_cup_number.setText(_translate("MainWindow", "Cups loaded: 0")) self.confirm_cup.setText(_translate("MainWindow", "Load Cup")) self.back_loading.setText(_translate("MainWindow", "Back")) import bard_resource_rc