From a0890e5adff19425512b9f790cda4e2abbcc6d04 Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Thu, 29 Feb 2024 13:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=94=AE=E5=AD=97=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E9=A2=98=E5=8F=B7=E9=9D=A2=E6=9D=BF=E4=B8=8A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=A4=8D=E9=80=89=E6=A1=86,=20=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=BC=96=E8=AF=91=E8=AF=A6=E7=BB=86=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E8=BF=98=E6=98=AF=E4=BB=85=E7=BC=96=E8=AF=91=E9=A2=98=E7=9B=AE?= =?UTF-8?q?=E5=8F=8A=E7=AD=94=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/Ui_题号筛选器.py | 6 +++++- 工具v2/关键字筛选题号.py | 23 ++++++++++++++++++++++- 工具v2/批量收录题目.py | 2 +- 工具v2/题号筛选器.ui | 17 +++++++++++++++-- 4 files changed, 43 insertions(+), 5 deletions(-) diff --git a/工具v2/Ui_题号筛选器.py b/工具v2/Ui_题号筛选器.py index 16fb83b0..17b303db 100644 --- a/工具v2/Ui_题号筛选器.py +++ b/工具v2/Ui_题号筛选器.py @@ -98,8 +98,11 @@ class Ui_Form(object): self.lcdNumber_resCount.setProperty("value", 0.000000000000000) self.pushButton_savebuild = QPushButton(Form) self.pushButton_savebuild.setObjectName(u"pushButton_savebuild") - self.pushButton_savebuild.setGeometry(QRect(300, 440, 81, 71)) + self.pushButton_savebuild.setGeometry(QRect(300, 460, 81, 51)) self.pushButton_savebuild.setFont(font) + self.checkBox_Detailed = QCheckBox(Form) + self.checkBox_Detailed.setObjectName(u"checkBox_Detailed") + self.checkBox_Detailed.setGeometry(QRect(310, 440, 79, 20)) self.retranslateUi(Form) @@ -128,5 +131,6 @@ class Ui_Form(object): self.label_2.setText(QCoreApplication.translate("Form", u"\u8f93\u5165\u6761\u4ef6, \u7528\",\"\u5206\u9694\u8868\u793a\"\u6216\"", None)) self.label_3.setText(QCoreApplication.translate("Form", u"\u7b5b\u9009\u7ed3\u679c\u6570\u76ee:", None)) self.pushButton_savebuild.setText(QCoreApplication.translate("Form", u"\u4fdd\u5b58\u548c\u7f16\u8bd1", None)) + self.checkBox_Detailed.setText(QCoreApplication.translate("Form", u"\u8be6\u7ec6\u4fe1\u606f", None)) # retranslateUi diff --git a/工具v2/关键字筛选题号.py b/工具v2/关键字筛选题号.py index f964c7a7..625eecd9 100644 --- a/工具v2/关键字筛选题号.py +++ b/工具v2/关键字筛选题号.py @@ -60,7 +60,7 @@ class MyWindow(QWidget,Ui_Form): prodictpath = "../题库0.3/problems.json" objdictpath = "../题库0.3/lessonobj.json" raw_pro_dict = load_dict(prodictpath) - configjson = { + configjson_detailed = { "pdf标题": "筛选题目编译", "教师版": True, "字段显示设置": { @@ -76,6 +76,27 @@ class MyWindow(QWidget,Ui_Form): "届别": [] } } + configjson_simple = { + "pdf标题": "筛选题目编译", + "教师版": False, + "字段显示设置": { + "题后空间": True, + "课时目标": True, + "题目标签": True, + "答案": True, + "解答与提示": True, + "使用记录": [3,-1], + "使用记录说明": "[a,b]表示显示最好的a个和最差b个, 有-2表示不显示, 无-2但有-1表示全部显示", + "来源": True, + "备注": True, + "届别": [] + } + } + + if self.checkBox_Detailed.isChecked(): + configjson = configjson_detailed + else: + configjson = configjson_simple grades = configjson["字段显示设置"]["届别"] pro_dict = select_grade_from_pro_dict(raw_pro_dict,grades) diff --git a/工具v2/批量收录题目.py b/工具v2/批量收录题目.py index d7dd9ba1..52c5334d 100644 --- a/工具v2/批量收录题目.py +++ b/工具v2/批量收录题目.py @@ -1,5 +1,5 @@ #修改起始id,出处,文件名 -starting_id = 1 #起始id设置, 从这一个题号后的第一个空闲题号开始添加 20040124修改 +starting_id = 30001 #起始id设置, 从这一个题号后的第一个空闲题号开始添加 20040124修改 raworigin = "自拟题目" #题目来源的前缀(中缀在.tex文件中) filename = r"临时文件\新题比对.tex" #题目的来源.tex文件 editor = "毛培菁" #编辑者姓名 diff --git a/工具v2/题号筛选器.ui b/工具v2/题号筛选器.ui index 226969e0..a50c10c3 100644 --- a/工具v2/题号筛选器.ui +++ b/工具v2/题号筛选器.ui @@ -307,9 +307,9 @@ 300 - 440 + 460 81 - 71 + 51 @@ -321,6 +321,19 @@ 保存和编译 + + + + 310 + 440 + 79 + 20 + + + + 详细信息 + +