Greetings, I am having trouble with a script I am writing. I have a TK window that has several optionmenus. When the user selects one of the options from the optionmenu, I have a subroutine that runs and does something based on the value selected from the option menu. The problem is this: In my script I have two optionmenu buttons that are identical except for their values, which call two subroutines that are nearly identical using the -command => \&subroutine option. When my script first displays the window that holds the two optionmenu widgets, it runs ONE of the subroutines before the window displays. After the window displays, both subroutines work correctly when the value of the optionmenu is changed. I obviously don't want the subroutine to run until after the window is displayed and the value of the optionmenu changed by the user. But I don't understand why one of them keeps running while the script builds the window. If I remove the -command option from the corresponding optionmenu, the subroutine will not run while the window is built, but obviously is no longer linked to the widget so can't be invoked at all. I am unable to provide the code for this script due to company policy, but I was wondering if anyone had any general suggestions for things to look at. Perhaps I'm overlooking something obvious and just need a little nudge in the right direction. Any help will be appreciated.
Regards, Rz .-. --.. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]