这是我的连接四游戏的代码。我正在尝试为游戏创建GUI,但错误仍在继续,有人知道如何提供帮助吗?
AttributeError:'str'对象没有属性'font'
colorAxis: {
min: 1,
max: 1000,
type: 'logarithmic',
gridLineWidth: 2,
gridLineColor: 'white',
minorTickInterval: 0.1,
minorGridLineColor: 'white',
tickLength: 0
},
答案 0 :(得分:0)
你有一段时间在text =""之后这使得python认为你正在访问字符串""
的字体属性