added modes to config services that allows them to decide sets of configurations
This commit is contained in:
parent
1ca3b0e3f4
commit
0ea2f73a80
8 changed files with 64 additions and 18 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue