From fbe8dbc0033f2938c944f6a41c505f2c9760fc72 Mon Sep 17 00:00:00 2001 From: Aviation Engineer <109074663+YBCA7@users.noreply.github.com> Date: Wed, 20 Mar 2024 23:11:49 +0800 Subject: [PATCH] Optimize. --- ui.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui.py b/ui.py index 0805748..e58c1e6 100644 --- a/ui.py +++ b/ui.py @@ -2,7 +2,7 @@ from PyQt5.QtWidgets import QWidget, QHBoxLayout, QLabel, QVBoxLayout from PyQt5.QtGui import QFont from qfluentwidgets import FluentIcon -from qfluentwidgets import (TextEdit, RadioButton, PrimaryPushButton, +from qfluentwidgets import (TextEdit, RadioButton, PrimaryPushButton, LineEdit, MessageBox, HyperlinkButton, ScrollBar) from calculate import sss, sas, aas, asa, hl @@ -59,8 +59,10 @@ def __init__(self): self.e_ac = LineEdit(self) self.pb = PrimaryPushButton('Process', self) - self.lb = HyperlinkButton(url='https://github.com/Unqualified-Developers/Triangles', - text='Source Code Repository', icon=FluentIcon.GITHUB) + self.lb = HyperlinkButton( + url='https://github.com/Unqualified-Developers/Triangles', + text='Source Code Repository', icon=FluentIcon.GITHUB + ) self.r_sss.clicked.connect(self.sss_c) self.r_sas.clicked.connect(self.sas_c)