根据使用记录选择题号功能加入工具面板

This commit is contained in:
weiye.wang 2024-03-27 22:52:45 +08:00
parent 3d262909c3
commit a64a90f0cf
3 changed files with 11 additions and 0 deletions

View File

@ -59,6 +59,7 @@
<string>使用</string> <string>使用</string>
</property> </property>
<addaction name="action_sxth"/> <addaction name="action_sxth"/>
<addaction name="action_xzth"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="action_xtby"/> <addaction name="action_xtby"/>
<addaction name="separator"/> <addaction name="separator"/>
@ -199,6 +200,11 @@
<string>生成直方图代码</string> <string>生成直方图代码</string>
</property> </property>
</action> </action>
<action name="action_xzth">
<property name="text">
<string>根据正确率选择题号</string>
</property>
</action>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>

View File

@ -68,6 +68,8 @@ class Ui_MainWindow(object):
self.action_bjtm.setObjectName(u"action_bjtm") self.action_bjtm.setObjectName(u"action_bjtm")
self.action_hist = QAction(MainWindow) self.action_hist = QAction(MainWindow)
self.action_hist.setObjectName(u"action_hist") self.action_hist.setObjectName(u"action_hist")
self.action_xzth = QAction(MainWindow)
self.action_xzth.setObjectName(u"action_xzth")
self.centralwidget = QWidget(MainWindow) self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget") self.centralwidget.setObjectName(u"centralwidget")
MainWindow.setCentralWidget(self.centralwidget) MainWindow.setCentralWidget(self.centralwidget)
@ -116,6 +118,7 @@ class Ui_MainWindow(object):
self.menu_weihu.addSeparator() self.menu_weihu.addSeparator()
self.menu_weihu.addAction(self.action_tjjc) self.menu_weihu.addAction(self.action_tjjc)
self.menu_shiyong.addAction(self.action_sxth) self.menu_shiyong.addAction(self.action_sxth)
self.menu_shiyong.addAction(self.action_xzth)
self.menu_shiyong.addSeparator() self.menu_shiyong.addSeparator()
self.menu_shiyong.addAction(self.action_xtby) self.menu_shiyong.addAction(self.action_xtby)
self.menu_shiyong.addSeparator() self.menu_shiyong.addSeparator()
@ -158,6 +161,7 @@ class Ui_MainWindow(object):
self.action_wbzh.setText(QCoreApplication.translate("MainWindow", u"\u6587\u672c\u8f6c\u6362\u5904\u7406", None)) self.action_wbzh.setText(QCoreApplication.translate("MainWindow", u"\u6587\u672c\u8f6c\u6362\u5904\u7406", None))
self.action_bjtm.setText(QCoreApplication.translate("MainWindow", u"\u7f16\u8f91\u9898\u76ee", None)) self.action_bjtm.setText(QCoreApplication.translate("MainWindow", u"\u7f16\u8f91\u9898\u76ee", None))
self.action_hist.setText(QCoreApplication.translate("MainWindow", u"\u751f\u6210\u76f4\u65b9\u56fe\u4ee3\u7801", None)) self.action_hist.setText(QCoreApplication.translate("MainWindow", u"\u751f\u6210\u76f4\u65b9\u56fe\u4ee3\u7801", None))
self.action_xzth.setText(QCoreApplication.translate("MainWindow", u"\u6839\u636e\u6b63\u786e\u7387\u9009\u62e9\u9898\u53f7", None))
self.menu_luru.setTitle(QCoreApplication.translate("MainWindow", u"\u5f55\u5165", None)) self.menu_luru.setTitle(QCoreApplication.translate("MainWindow", u"\u5f55\u5165", None))
self.menu_weihu.setTitle(QCoreApplication.translate("MainWindow", u"\u7ef4\u62a4", None)) self.menu_weihu.setTitle(QCoreApplication.translate("MainWindow", u"\u7ef4\u62a4", None))
self.menu_shiyong.setTitle(QCoreApplication.translate("MainWindow", u"\u4f7f\u7528", None)) self.menu_shiyong.setTitle(QCoreApplication.translate("MainWindow", u"\u4f7f\u7528", None))

View File

@ -48,6 +48,7 @@ class MyWindow(QMainWindow,Ui_MainWindow):
self.action_jysc.triggered.connect(lambda: run_command("系列讲义生成",[]))#已完成 self.action_jysc.triggered.connect(lambda: run_command("系列讲义生成",[]))#已完成
self.action_wbzh.triggered.connect(lambda: run_command("文本转换处理",[]))#已完成 self.action_wbzh.triggered.connect(lambda: run_command("文本转换处理",[]))#已完成
self.action_hist.triggered.connect(lambda: run_command("生成直方图代码",[]))#已完成 self.action_hist.triggered.connect(lambda: run_command("生成直方图代码",[]))#已完成
self.action_xzth.triggered.connect(lambda: run_command("根据正确率选择题号",[]))#已完成