Re: cur.execute() syntax error [RESOLVED]

2022-04-04 Thread Rich Shepard
On Mon, 4 Apr 2022, Christophe Pettus wrote: It looks like the LabelInput constructor includes some code. Did you mean something like: self.inputs['Contact Type'] = LabelInput( ContactDataForm, 'contact_type',) # query to fetch data from contacttypes table fetch_al

Re: cur.execute() syntax error

2022-04-04 Thread Christophe Pettus
It looks like the LabelInput constructor includes some code. Did you mean something like: self.inputs['Contact Type'] = LabelInput( ContactDataForm, 'contact_type',) # query to fetch data from contacttypes table fetch_all = "SELECT * from contacttypes" cur.

cur.execute() syntax error

2022-04-04 Thread Rich Shepard
This MWE (test_combobox.py) produces a syntax error and I'm not seeing why: - import tkinter as tk from tkinter import ttk import psycopg2 class ContactDataForm(tk.Frame): # set up postgres # the connection con = psycopg2.connect(database='bustrac') # the cursor cur = con