# -*- coding: utf-8 -*-
from PySide2 import QtCore, QtGui, QtWidgets
from func_library import frequency_func
class UiMainWindow(QtWidgets.QMainWindow):
def __init__(self):
self.maya_mainwindow = frequency_func.maya_mainwindow()
super(UiMainWindow, self).__init__(self.maya_mainwindow)
self.setupUi()
def setupUi(self):
self.setObjectName("box_window")
self.setWindowTitle('羊神盒子仿制版')
self.resize(500, 800)
self.centralwidget = QtWidgets.QWidget(self)
self.centralwidget.setGeometry(0, 0, 500, 800)
self.centralwidget.setObjectName("centralwidget")
self.window_layout = QtWidgets.QVBoxLayout(self.centralwidget)
self.setLayout(self.window_layout)
# splitter是一个widget,其中的组件之间会生成可调节滑块
bottom = QtWidgets.QFrame()
bottom.setFrameShape(QtWidgets.QFrame.StyledPanel)
textedit = QtWidgets.QTextEdit()
splitter2 = QtWidgets.QSplitter(QtCore.Qt.Vertical)
splitter2.addWidget(bottom)
splitter2.addWidget(textedit)
self.window_layout.addWidget(splitter2)
self.setLayout(self.window_layout)
上一篇
tablewidget单元格插入控件
2024-05-08
下一篇
ui2py.bat
2024-05-08