Python Forum
Can't get tkinter database aware cascading comboboxes to update properly
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't get tkinter database aware cascading comboboxes to update properly
#2
I'm trying this right now, based on something I saw in another discussion on this group, but don't know the syntax for that last line. It doesn't like just "row" in the append. The fetchall is returning a tuple.

cboTaskStep.delete(0,'end')
thiscur=cnxn.cursor()
sql2="Select StepDescription, TaskStepID from TaskSteps where TaskID = " +str(mydict[cboTask.get()])
thiscur.execute(sql2)
cnxn.commit()
    for row in thiscur.fetchall():
        cboTaskStep.append(row)
Reply


Messages In This Thread
RE: Can't get tkinter database aware cascading comboboxes to update properly - by dford - Jan-11-2022, 05:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  tkinter - update/refresh treeview snakes 5 21,047 Dec-02-2023, 07:05 PM
Last Post: aynous19
  Auto update database view jnik 0 457 Oct-31-2023, 04:26 PM
Last Post: jnik
  [Tkinter] TKINTER quiz using sqlite3 database hezza_23 45 21,617 Nov-29-2021, 09:42 PM
Last Post: Hilal
  [Tkinter] Update variable using tkinter entry methon drSlump 6 5,251 Oct-15-2021, 08:01 AM
Last Post: drSlump
  Linking Comboboxes MrP 24 7,236 Feb-03-2021, 10:59 PM
Last Post: MrP
  Print Values from a Sequence of Entries / ComboBoxes MC2020 4 2,827 Mar-28-2020, 10:05 PM
Last Post: MC2020
  Want to dynamically update numbers using tkinter in pygame script k0gane 0 2,089 Feb-09-2020, 09:01 AM
Last Post: k0gane
  Unable to update or refresh label text in tkinter jenkins43 3 6,647 Jul-24-2019, 02:09 PM
Last Post: Friend
  [PyQt] making dependant comboBoxes Hitsugaya 3 5,040 May-23-2019, 06:05 PM
Last Post: Alfalfa
  Tkinter - Make changes to graph and update it adriancovaci 0 6,620 Apr-08-2019, 09:02 AM
Last Post: adriancovaci

Forum Jump:

User Panel Messages

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