#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Franek Łazarewicz-Muradyan" __copyright__ = "Copyright 2021, Franek Łazarewicz-Muradyan" __version__ = "0.1" __status__ = "Beta" __email__ = "uinarf@autistici.org" # Form implementation generated from reading ui file 'RPGH_minimal_scaling_gui.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # 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(847, 526) self.centralwidget = QtWidgets.QWidget(MainWindow) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth()) self.centralwidget.setSizePolicy(sizePolicy) self.centralwidget.setObjectName("centralwidget") self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget) self.horizontalLayout.setObjectName("horizontalLayout") self.tabWidget = QtWidgets.QTabWidget(self.centralwidget) self.tabWidget.setObjectName("tabWidget") self.mpl_tab = QtWidgets.QWidget() self.mpl_tab.setObjectName("mpl_tab") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.mpl_tab) self.verticalLayout_2.setObjectName("verticalLayout_2") self.mpl = MplWidget(self.mpl_tab) self.mpl.setObjectName("mpl") self.verticalLayout_2.addWidget(self.mpl) self.tabWidget.addTab(self.mpl_tab, "") self.mpl1_tab = QtWidgets.QWidget() sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mpl1_tab.sizePolicy().hasHeightForWidth()) self.mpl1_tab.setSizePolicy(sizePolicy) self.mpl1_tab.setObjectName("mpl1_tab") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.mpl1_tab) self.verticalLayout_3.setObjectName("verticalLayout_3") self.mpl1 = MplWidget(self.mpl1_tab) self.mpl1.setObjectName("mpl1") self.verticalLayout_3.addWidget(self.mpl1) self.tabWidget.addTab(self.mpl1_tab, "") self.horizontalLayout.addWidget(self.tabWidget) MainWindow.setCentralWidget(self.centralwidget) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "RPGH")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.mpl_tab), _translate("MainWindow", "Greenhouse")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.mpl1_tab), _translate("MainWindow", "Weather")) from mplwidget import MplWidget