python - 单击“下一步”按钮时,我的问题不会改变,但我的 Tkinter 测验应用程序中的选项会发生变化
问题描述
def display_options(self,qn):
val = 0
self.opt_selected.set(0)
self.ques = questions[qn] #I think this is where the issue is
for option in options[qn]:
self.opts[val]['text'] = option
val+=1
解决方案
推荐阅读
- html - 完全新手!非常迷失如何通过烧瓶发送 json 数据以显示在 HTML 网页上?
- javascript - 使用 ngx-datatable 在 Angular 中实现 ElasticSearch 滚动 ID?
- java - 如何在模型中包含列表?
- html - 无法使用 flexbox 包装图像
- react-native - 渲染文本将我的菜单图标进一步推到顶部如何稳定其位置?
- mobile-safari - 如何验证 AirPlay 会话
- python - 对 Tensor Flow 中的函数 assign_add() 感到困惑
- php - 如何更改 strtotime 中的时区?
- go - Golang url.Parse 总是返回无效的控制字符 URL
- javascript - 更改网页源代码,使其自动偿还音频