Python Forum
[Tkinter] Link text field to separate python file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Link text field to separate python file
#3
.close is a method.  You need parenthases to call it.  c.close() and conn.close().

And please, don't write sql queries like that.  Use the string formatting the db engine provides, so the values are escaped properly (otherwise a "well written" text snippet could "accidentally" delete your entire database).  So maybe
user = "%{}%".format(name)
c.execute("select users from results where users like ?", user)
Reply


Messages In This Thread
Link text field to separate python file - by SMA - Mar-13-2017, 04:26 PM
RE: Link text field to separate python file - by nilamo - Mar-20-2017, 08:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] field in db as text rwahdan 6 2,927 Jul-16-2021, 07:07 AM
Last Post: rwahdan
  [Tkinter] Override the paste function(copy from excel file - paste in separate tkinter entryes) AndreiV 3 4,663 Jun-05-2020, 04:46 PM
Last Post: AndreiV
  [Tkinter] Unable to get current contents of the entry field where the content is the file path pmpinaki 1 2,235 Apr-18-2020, 06:45 PM
Last Post: deanhystad
  [Kivy] Can't link .kw file with main.py Allpha 2 3,446 Aug-14-2017, 08:05 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020