Pyguy62 is correct about the button call back. To send arguments to a function from a Tkinter callback you use partial.
from functools import partial
for item in options :
Button(self.wdw, text= item, command= parital(self.escolha, item=item)).pack()
My problem is that when I launch the second window with the options my main application continues to run with default options
How are you accessing/passing the values from the second window to the first window's program?
Also you probably want to include "takefocus=True" when creating the Toplevel GUI.
woooee
Posting Maven
2,707 posts since Dec 2006
Reputation Points: 827
Solved Threads: 780
Skill Endorsements: 9