title: How do I get values of an individual row?
body: <p>I'm making a program that uses a list and has 2 rows and 5 columns. Every element is an entry. I want to be able to access all the columns of an entire row in the list.</p>
  
  <p>When I access all the elements across all rows at once, it works. But when I try to get the values of a single row it doesn't work</p>
  
  <p>This is the code that works:</p>
  
  <pre><code>#Build the grid and append to the listCounter list.
  for i in range(2):
      for x in range(5):
          entry = Entry(frame, text="", width=5)
          entry.grid(row=i, column=x)
          listCounter.append(entry)
  
  #Get the value of every row
  def btnClick():
      sum = 0
      for puntuation in listCounter:           
          sum += int(puntuation.get())
      print(sum)
  </code></pre>
  
  <p>But when I try to get all entries of a single row using <code>listCounter[0]</code>, it doesn't work:</p>
  
  <pre><code>def btnClick():
      sum = 0
      for puntuation in listCounter[0]:           
          sum += int(puntuation.get())
      print(sum)
  </code></pre>
  
  <p>And I get the following error:</p>
  
  <pre><code>Exception in Tkinter callback
  Traceback (most recent call last):
  File "C:\Users\Rober\AppData\Local\Programs\Python\Python37- 
  32\lib\tkinter\__init__.py", line 1705, in __call__
  return self.func(*args)
  File "D:/PyProjects/TestCanvas/Connect4.py", line 25, in btnClick
  for puntuation in listCounter[0]:
  File "C:\Users\Rober\AppData\Local\Programs\Python\Python37- 
  32\lib\tkinter\__init__.py", line 1489, in cget
  return self.tk.call(self._w, 'cget', '-' + key)
  TypeError: can only concatenate str (not "int") to str
  </code></pre>
  
  <p>So I've tried to get info about the <code>listCounter</code>:</p>
  
  <pre><code>print(type(listCounter))   --&gt; &lt;class 'list'&gt;
  print(type(listCounter[0]) --&gt; &lt;class 'tkinter.Entry'&gt;
  </code></pre>
  
  <p>What exactly is the problem here and how do I solve it?</p>