Python Forum
[Tkinter] tkinter, dropdowns with changing options
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] tkinter, dropdowns with changing options
#5
I know that this is quite old but I am facing a similar issue. Does anyone know the answer? I am trying to create dependent dropdowns, for example something like this:

the drop_down is the main one and the other should change in relation on which choice you make on the main one.

drop_down =['one',
            'two']

dep_drop=['one_1',
          'one_2',
          'one_3']

dep2_drop['two_1','two_2','two_3']
(Oct-15-2018, 11:28 AM)Larz60+ Wrote: This is a guess as I haven't used tkinter in a while, try changing line 29 to:
tkvar.trace('w', lambda: change_dropdown)

This quote gives an error
Error:
TypeError: <lambda>() takes 0 positional arguments but 3 were given
Reply


Messages In This Thread
RE: tkinter, dropdowns with changing options - by jdos - Jul-03-2020, 06:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Trouble changing Font within tkinter frame title AnotherSam 1 4,142 Sep-30-2021, 05:57 PM
Last Post: menator01
  [Tkinter] Tkinter delete values in Entries, when I'm changing the Frame robertoCarlos 11 5,842 Jul-29-2020, 07:13 PM
Last Post: deanhystad
  changing tkinter label from thread nanok66 3 7,374 Jun-07-2020, 01:37 AM
Last Post: nanok66
  [Tkinter] changing title text to bold in tkinter Kumarkv 2 8,769 May-09-2020, 10:41 PM
Last Post: Larz60+
  [Tkinter] Create and remove advanced options PengEng 4 2,376 Apr-09-2020, 11:26 AM
Last Post: PengEng

Forum Jump:

User Panel Messages

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