Apr-03-2018, 12:46 AM
I have declared a DoubleVar() as I need to use the variable as a textvariable for a tkinter label. However; when I try to add to it I get the error
And dailyTotal is decalred as a DoubleVar():
Output:unsupported operand type(s) for +: 'DoubleVar' and 'float'
This code is part of a function:1 2 |
global dailyTotal dailyTotal = dailyTotal + 3.0 |
1 2 |
dailyTotal = DoubleVar() dailyTotalLabel = Label(root, textvariable = dailyTotal) |