Example #1
0
 def _option_subattr_changed():
     options = get_options()
     replace_options(self.option_menu, options)
     self.tk_variable.set(
         self.pack(get_attribute_by_name(owner, select_attr))
     )
Example #2
0
 def _options_changed():
     options = get_options()
     replace_options(self.option_menu, options)
     if self.tk_variable.get() not in options:
         self.tk_variable.set('')