in Python (using Tkinter for GUI) I want to take the selected items (strings) from 2 dropdown menus and concatenate them. (done already) The resulting string will match a dictionary that I have already defined and will contain the pertinent information. ATM referencing the resulting string (which is now the same as an existing dictionary) isn't working. Ex:
sizeschedule = {'1': 'one', '2': 'two'}
# After the dropmenu selection occurs I now have these in StringVars:
firstdropdown = 'size'
seconddropdown = 'schedule'
combined = firstdropdown + seconddropdown # gives 'sizeschedule'
print(combined['1']) # Want that to give me 'one' (from dict value of '1')