66 lines
2.8 KiB
Python
66 lines
2.8 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
# Form implementation generated from reading ui file 'D:\QGroup_432987409\WoHowLearn\0.M_I_pyqt\partner_625781186\15_Plugins\main.ui'
|
||
|
#
|
||
|
# Created by: PyQt5 UI code generator 5.10.1
|
||
|
#
|
||
|
# WARNING! All changes made in this file will be lost!
|
||
|
|
||
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||
|
|
||
|
class Ui_MainWindow(object):
|
||
|
def setupUi(self, MainWindow):
|
||
|
MainWindow.setObjectName("MainWindow")
|
||
|
MainWindow.resize(510, 379)
|
||
|
self.centralWidget = QtWidgets.QWidget(MainWindow)
|
||
|
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.tab = QtWidgets.QWidget()
|
||
|
self.tab.setObjectName("tab")
|
||
|
self.tabWidget.addTab(self.tab, "")
|
||
|
self.tab_2 = QtWidgets.QWidget()
|
||
|
self.tab_2.setObjectName("tab_2")
|
||
|
self.tabWidget.addTab(self.tab_2, "")
|
||
|
self.horizontalLayout.addWidget(self.tabWidget)
|
||
|
MainWindow.setCentralWidget(self.centralWidget)
|
||
|
self.menuBar = QtWidgets.QMenuBar(MainWindow)
|
||
|
self.menuBar.setGeometry(QtCore.QRect(0, 0, 510, 22))
|
||
|
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")
|
||
|
MainWindow.setMenuBar(self.menuBar)
|
||
|
self.menuBar.addAction(self.menuFile.menuAction())
|
||
|
self.menuBar.addAction(self.menuEdit.menuAction())
|
||
|
self.menuBar.addAction(self.menuView.menuAction())
|
||
|
|
||
|
self.retranslateUi(MainWindow)
|
||
|
self.tabWidget.setCurrentIndex(0)
|
||
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||
|
|
||
|
def retranslateUi(self, MainWindow):
|
||
|
_translate = QtCore.QCoreApplication.translate
|
||
|
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
|
||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Tab 1"))
|
||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Tab 2"))
|
||
|
self.menuFile.setTitle(_translate("MainWindow", "File"))
|
||
|
self.menuEdit.setTitle(_translate("MainWindow", "Edit"))
|
||
|
self.menuView.setTitle(_translate("MainWindow", "View"))
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
import sys
|
||
|
app = QtWidgets.QApplication(sys.argv)
|
||
|
MainWindow = QtWidgets.QMainWindow()
|
||
|
ui = Ui_MainWindow()
|
||
|
ui.setupUi(MainWindow)
|
||
|
MainWindow.show()
|
||
|
sys.exit(app.exec_())
|
||
|
|