added modes to config services that allows them to decide sets of configurations

This commit is contained in:
Blake Harnden 2020-01-21 14:00:55 -08:00
parent 1ca3b0e3f4
commit 0ea2f73a80
8 changed files with 64 additions and 18 deletions

View file

@ -184,10 +184,10 @@ class ConfigFrame(ttk.Notebook):
return {x: self.config[x].value for x in self.config}
def set_values(self, config: Dict[str, common_pb2.ConfigOption]) -> None:
for name, option in config.items():
def set_values(self, config: Dict[str, str]) -> None:
for name, data in config.items():
value = self.values[name]
value.set(option.value)
value.set(data)
class ListboxScroll(ttk.Frame):