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
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.
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