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

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: cur.execute() syntax error [RESOLVED]
Дата
Msg-id b0b12711-905-54d5-9221-e2c48360a72e@appl-ecosys.com
обсуждение исходный текст
Ответ на Re: cur.execute() syntax error  (Christophe Pettus <xof@thebuild.com>)
Список psycopg
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_all = "SELECT * from contacttypes"
>       cur.execute(fetch_all)
>       # fetching all rows
>       rows = cur.fetchall()
>       input_class=ttk.Combobox([values = rows])
>       input_var=tk.StringVar()
>       # get selected value and bind it to a method
>       cont_type = self.get() # selected value by mouse click
>       con.close()

Christophe,

Sure looks like it.

Thanks,

Rich



В списке psycopg по дате отправления:

Предыдущее
От: Christophe Pettus
Дата:
Сообщение: Re: cur.execute() syntax error
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Psycopg 3.1 released