parent
6022195008
commit
9d13be3d84
@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
from init import *
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
|
||||||
|
|
||||||
|
print(DataBaseAct.data_path)
|
||||||
|
# conn = sql.connect(DataBaseAct.data_path)
|
||||||
|
|
||||||
|
# 修正,对于数据库操作应当是每次使用的时候进行一次连接
|
||||||
|
|
||||||
|
# 初始化软件,这是必要操作
|
||||||
|
app = QApplication(sys.argv)
|
||||||
|
|
||||||
|
# 创建窗体对象
|
||||||
|
win = MainWindow()
|
||||||
|
win.show()
|
||||||
|
|
||||||
|
# 结束所有逻辑,之前所有循环的逻辑结束
|
||||||
|
# conn.close()
|
||||||
|
sys.exit(app.exec_())
|
Loading…
Reference in new issue