May-13-2020, 09:34 AM
(May-12-2020, 04:04 PM)Yoriz Wrote: The line
Display1.insert(END, DropVal)passes a reference toDropVal
as it is not called with()
If the functionDropVal
was called, it does not return anything soNone
would be returned.
Thanks heaps for your comment
I have changed the if statement to be:
if Drop==options[1]: weightlist = [0] Display1.set(weightlist[0]) # Lists options=[ "Please Select a Destination", "Destinationone", "Destinationtwo", "Destinationthree", "Destinationfour", "Destinationfive", "Destinationsix", "Destiinationseven", "Destinationeight" ] weightlist=[ 0.3, 0.9, 0.16, 0.3, 0.18, 0.13, 0.14, 0.12, ]I am trying to work out if a user selects 'Destinationone' how to display the number in weightlist 0.3.
Would you have any ideas on how i can do this?