更新时间:2022-06-24 22:31:30
None
不是 wrap 选项的有效值.您需要使用字符串 "none"
或 tkinter 变量 NONE
.通过指定 python 值 None
,您实际上是在请求默认值,即 "char"
None
is not a valid value for the wrap option. You need to use the string "none"
or the tkinter variable NONE
. By specifying the python value None
you are actually requesting the default value, which is "char"
chtext = Text(af, width=45, wrap="none", font=("Arial",12))