kivy - 警告在下一帧之前完成了太多迭代
问题描述
为什么当我将 screen2 中的按钮更改为 MDRaisedButton 时,我会不停地收到此警告,而当我删除 size_hint 时却没有警告?
Blockquote [CRITICAL] [Clock ] 警告,在下一帧之前完成了太多迭代。检查您的代码,或增加 Clock.max_iteration 属性
当我移动到 screen2 时,警告停止。
MDBottomNavigation:
MDBottomNavigationItem:
name: 'screen1'
MDBoxLayout:
size: self.size
pos: self.pos
orientation: 'vertical'
MDGridLayout:
cols: 2
rows: 4
MDLabel:
text: '1'
size_hint: 0.2, 0.1
MDRaisedButton:
size_hint: 0.2, 0.1
MDBottomNavigationItem:
name: 'screen2'
MDBoxLayout:
size: self.size
pos: self.pos
orientation: 'vertical'
MDGridLayout:
cols: 2
rows: 4
MDLabel:
text: '2'
size_hint: 0.2, 0.1
MDRaisedButton:
size_hint: 0.2, 0.1
解决方案
推荐阅读
- python - 将训练有素的 Spacy 2 管道迁移到 Spacy 3
- time - AttributeError:模块'时间'在jupyter笔记本中没有属性'时钟
- android - 使包含的布局占据屏幕的前 30%
- python - 如何在python中将列表解码回chrs
- facebook - FB graph API 获取给定用户的评论
- xml - 访问包含 XML 的 Powershell 字符串中的字段
- javascript - 单击按钮以呈现下一页
- python - Python smtplib.poplib:如何检测新收到的电子邮件?
- eclipse - Eclipse 运行配置文件 (.launch) 架构 (.xsd)
- r - 错误:shinyjs:extendShinyjs:必须提供`functions`参数