修改 系列讲义生成 的一个bug, 并且设置为编译完成后在资源管理器中打开文件夹

This commit is contained in:
weiye.wang 2024-02-29 22:53:35 +08:00
parent 5a4f00c243
commit c92a6fdee6
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ class MyWindow(QWidget,Ui_Form):
self.radioButton_student.clicked.connect(self.studentlayout)
self.checkBox_usages.clicked.connect(self.toggleusagessetting)
self.radioButton_student.clicked.connect(self.toggleusagessetting)
self.radioButton_teacher.clicked.connect(self.toggleusagessetting)
self.pushButton_exec.clicked.connect(self.saveandbuild)
self.pushButton_SelectPath.clicked.connect(self.selectpath)
@ -139,7 +140,7 @@ class MyWindow(QWidget,Ui_Form):
tocompile = input("需要编译合集吗?(Y/[N]):")
if configjson["编译合集"] == True or tocompile[0].upper() == "Y":
XeLaTeXCompile(self.outputpath,f"合集{GetDate()}.tex")
os.startfile(self.outputpath)