-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformLicense.py
29 lines (23 loc) · 997 Bytes
/
formLicense.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- coding: utf-8 -*-
# @Time : 2022/1/26 10:38 PM
# @File : formLicense.py
# @Author : Zhou Hang
# @Email : [email protected]
# @Software : Python 3.9
# @About : 开源软件协议展示
from uiLicenseForm import Ui_Form
from PySide6 import QtWidgets, QtCore
class LicenseForm(QtWidgets.QWidget, Ui_Form):
def __init__(self):
super(LicenseForm, self).__init__()
self.setupUi(self)
def setupUi(self, Form):
Ui_Form.setupUi(self, Form)
# self.setWindowFlags(QtCore.Qt.FramelessWindowHint | QtCore.Qt.Tool)
self.setWindowFlags(QtCore.Qt.Window | QtCore.Qt.WindowTitleHint |
QtCore.Qt.WindowCloseButtonHint | QtCore.Qt.CustomizeWindowHint)
# self.setWindowFlags(QtCore.Qt.WindowMaximizeButtonHint | QtCore.Qt.MSWindowsFixedSizeDialogHint)
self.setWindowModality(QtCore.Qt.ApplicationModal)
def show(self) -> None:
super(LicenseForm, self).show()
self.raise_()