From c870d94e9614f0d02b5eed0c891b109493d53384 Mon Sep 17 00:00:00 2001 From: ChouHor Date: Sun, 4 Apr 2021 03:29:09 +0800 Subject: [PATCH] First setup. --- .idea/inspectionProfiles/Project_Default.xml | 12 ++++++++++++ .idea/misc.xml | 2 +- .idea/pyqt5.iml | 3 +-- .idea/watcherTasks.xml | 8 ++++++++ requirements.txt | 5 +++++ src/basic/First.py | 10 +++++----- 6 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/watcherTasks.xml create mode 100644 requirements.txt diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..0e22533 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 65531ca..d1e22ec 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/.idea/pyqt5.iml b/.idea/pyqt5.iml index 92b3937..599dbfe 100644 --- a/.idea/pyqt5.iml +++ b/.idea/pyqt5.iml @@ -17,11 +17,10 @@ - + - \ No newline at end of file diff --git a/.idea/watcherTasks.xml b/.idea/watcherTasks.xml new file mode 100644 index 0000000..bd83d37 --- /dev/null +++ b/.idea/watcherTasks.xml @@ -0,0 +1,8 @@ + + + + + + + \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..da9e47f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +PyQt5~=5.15.4 +numpy~=1.19.2 +requests~=2.24.0 +QDarkStyle~=2.8.1 +setuptools~=50.3.1.post20201107 \ No newline at end of file diff --git a/src/basic/First.py b/src/basic/First.py index a537a3c..dc79b58 100644 --- a/src/basic/First.py +++ b/src/basic/First.py @@ -1,19 +1,19 @@ import sys -from PyQt5.QtWidgets import QApplication,QWidget +from PyQt5.QtWidgets import QApplication, QWidget -if __name__ == '__main__': +if __name__ == "__main__": # 创建QApplication类的实例 app = QApplication(sys.argv) # 创建一个窗口 w = QWidget() # 设置窗口的尺寸 - w.resize(400,200) + w.resize(400, 200) # 移动窗口 - w.move(300,300) + w.move(300, 300) # 设置窗口的标题 - w.setWindowTitle('第一个基于PyQt5的桌面应用') + w.setWindowTitle("第一个基于PyQt5的桌面应用") # 显示窗口 w.show()