my problem is the following: I have several files and I have made a drop down menu with the names,the next thing I need is an option menu which can be changed whenever a fil
As the OptionMenu gives a command option, i would suggest to keep reference to the command already given (if any) and pass it to the new options this way:
attendion, variables based on the previous answer
def __init__(self, *args, **kwargs):
...
self.command=kwargs['command']
...
def _reset_option_menu(options, index=None):
...
menu.add_command(label=string,
command=lambda:self.command(),
value=self.om_variable.set(string))
...
Hope its of any use Btw, really usefull the answer given by Bryan Oakley,