From b0238ee03c3cb9420dbfabb1ab6ac8e10c53dda9 Mon Sep 17 00:00:00 2001 From: Peng_Lx Date: Mon, 20 Mar 2023 20:27:15 +0800 Subject: [PATCH] Environment build Environment build and test --- .gitignore | 1 + data/lib_manager.db | 0 src/educoder/main.py | 18 ++++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 data/lib_manager.db create mode 100644 src/educoder/main.py diff --git a/.gitignore b/.gitignore index f8b73e7..7ae802f 100644 --- a/.gitignore +++ b/.gitignore @@ -138,3 +138,4 @@ dmypy.json # Cython debug symbols cython_debug/ +.idea \ No newline at end of file diff --git a/data/lib_manager.db b/data/lib_manager.db new file mode 100644 index 0000000..e69de29 diff --git a/src/educoder/main.py b/src/educoder/main.py new file mode 100644 index 0000000..cb639c7 --- /dev/null +++ b/src/educoder/main.py @@ -0,0 +1,18 @@ +from PySide6.QtWidgets import * +import sqlite3 + +class Window: + def __init__(self): + # 初始化窗口 + self.win = QMainWindow() + self.win.resize(500, 400) + self.win.move(700, 210) + self.win.setWindowTitle("测试窗口") + +if __name__ == '__main__': + conn = sqlite3.connect('../../data/lib_manager.db') + + app = QApplication([]) + w = Window() + w.win.show() + app.exec() \ No newline at end of file