Re: [Tutor] trouble using tkinter CheckButton

2018-01-16 Thread Chris Roy-Smith
On 16/01/18 22:35, Alan Gauld via Tutor wrote: On 16/01/18 04:37, Chris Roy-Smith wrote:   File "./debugString.py", line 7, in SetFin     SetStatus[x] = var.get(x) AttributeError: 'list' object has no attribute 'get' var=[IntVar() for x in range(8)] Here you create a list of IntVar

Re: [Tutor] trouble using tkinter CheckButton

2018-01-16 Thread Alan Gauld via Tutor
On 16/01/18 04:37, Chris Roy-Smith wrote: >   File "./debugString.py", line 7, in SetFin >     SetStatus[x] = var.get(x) > AttributeError: 'list' object has no attribute 'get' > var=[IntVar() for x in range(8)] Here you create a list of IntVar objects. The list has no get() method - just as

[Tutor] trouble using tkinter CheckButton

2018-01-16 Thread Chris Roy-Smith
Hi, I'm a relative newcomer to object oriented programming. Operating system Linux (ubuntu 17.10) Python version 3.6 With the code below, when I click on the "list set & unset" button I get the following error. This code is my attempt at debugging a bigger program. I have broken things down