属性错误连接四个

时间:2017-01-03 17:56:37

标签: python-3.x

这是我的连接四游戏的代码。我正在尝试为游戏创建GUI,但错误仍在继续,有人知道如何提供帮助吗?

AttributeError:'str'对象没有属性'font'

    colorAxis: {
        min: 1,
        max: 1000,
        type: 'logarithmic',
        gridLineWidth: 2,
        gridLineColor: 'white',
        minorTickInterval: 0.1,
        minorGridLineColor: 'white',
        tickLength: 0
    },

1 个答案:

答案 0 :(得分:0)

你有一段时间在text =""之后这使得python认为你正在访问字符串""

的字体属性