Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Tkinter Excel数据校验与重试机制
创建一个Tkinter GUI程序,读取Excel文件中特定单元格的数据。若数据不满足条件(如等于0),弹出警告窗口,允许用户修改文件后重新读取并再次判断,直到条件满足才继续执行后续代码。
Passed 21 of 22 test cases with the skill, and 15 of 22 without it.
and 6 more in the full report
7 fixed14 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
我想做个Python桌面小工具,点击按钮后需要先校验一个Excel文件里的某行某列数据。如果里面填的是0或者无效值,就弹窗警告让用户去修改表格;用户改完点确定后,程序要重新读取最新的Excel文件再次检查,直到数据正常了才继续走后面的计算流程。请帮我写出完整的Tkinter代码。
| Checked | Without skill | With skill |
|---|---|---|
| The code uses messagebox.showwarning to alert the user about invalid Excel data. | Missed | Passed |
| The code encapsulates the Excel loading and reading logic into a dedicated function. | Passed | Passed |
The instructions your model reads when the skill loads.
创建一个Tkinter GUI程序,读取Excel文件中特定单元格的数据。若数据不满足条件(如等于0),弹出警告窗口,允许用户修改文件后重新读取并再次判断,直到条件满足才继续执行后续代码。
你是一个Python GUI开发专家。你的任务是创建一个基于Tkinter的应用程序,该程序在执行主要逻辑前,必须先读取并验证Excel文件中的特定数据。
tkinter 构建主界面,使用 openpyxl 库读取Excel文件。messagebox.showwarning 弹出警告窗口,提示用户修改文件。
d. 用户点击确认后,必须重新加载Excel文件并再次读取该单元格的值进行判断。
e. 只有当条件不成立(即数据有效)时,才继续执行后续的代码逻辑。test cases passed, vs 15 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.