title: How can I fix This 'str' object is not callable; perhaps you missed a comma?
body: <p>I would like to ask an question like this It makes me Struggle. Please Help</p>
  <p>How Can I Fix This error While Updating the Table</p>
  <p>Here's The code</p>
  <p>Heres The Update Code</p>
  <pre><code>def update():
          databases = mysql.connector.connect(
          host =&quot;localhost&quot;,
          user = &quot;userdata&quot;,
          password = &quot;&quot;,
          database = &quot;facerecog&quot;
          )
          conn = databases.cursor()
          conn.execute(&quot;UPDATE record set names=%s, course_year=%s, position=%s&quot;(t4.get(),t5.get(),t6.get()))
          databases.commit
          databases.close
          messagebox.showinfo(&quot;NOTICE&quot;, &quot;UPDATED SUCCESSFULLY&quot;)
  </code></pre>
  <p>And here The data show Selected Shows on my text box</p>
  <pre><code>    def showtable(tree):
          viewinfo = tree.focus()
          data = tree.item(viewinfo)
          row = data['values']
          t4.set(row[0])
          t5.set(row[1])
          t6.set(row[2])
  </code></pre>
  <p>And Here's The button</p>
  <pre><code>    updatebutton = tk.Button(t, text = &quot;Update Data&quot;, command =update)
      updatebutton.configure(font = ('Cooper', 13, 'bold'), bg = 'sky blue', fg = 'black')
      updatebutton.place(x=560, y=360)
      t.bind(&quot;&lt;ButtonRelease-1&gt;&quot;,showtable)
  </code></pre>
  <p>And then It Appears error Like this</p>
  <pre><code>py:347: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
    conn.execute(&quot;UPDATE record set names=%s, course_year=%s, position=%s&quot;(t4.get(),t5.get(),t6.get()))
  </code></pre>