diff options
Diffstat (limited to 'jfr_playoff/gui/frames/network.py')
-rw-r--r-- | jfr_playoff/gui/frames/network.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jfr_playoff/gui/frames/network.py b/jfr_playoff/gui/frames/network.py index d44ff49..fc00575 100644 --- a/jfr_playoff/gui/frames/network.py +++ b/jfr_playoff/gui/frames/network.py @@ -166,6 +166,15 @@ class GoniecConfigurationFrame(GuiFrame): values['port'] if 'port' in values else self.DEFAULT_PORT) self.enable.set(values['enabled'] if 'enabled' in values else 0) + def getValues(self): + config = { + 'enabled': self.enable.get() + } + if self.enable.get(): + config['host'] = self.host.get() + config['port'] = self.port.get() + return config + class RemoteConfigurationFrame(ScrollableFrame): def renderContent(self, container): frame = ttk.LabelFrame(container, text='Zdalne pliki konfiguracyjne:') @@ -178,4 +187,7 @@ class RemoteConfigurationFrame(ScrollableFrame): def setValues(self, values): self.repeater.setValue(values) + def getValues(self): + return self.repeater.getValue() + __all__ = ['MySQLConfigurationFrame', 'GoniecConfigurationFrame', 'RemoteConfigurationFrame'] |