summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/network.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-07-22 11:39:02 +0200
committeremkael <emkael@tlen.pl>2019-07-22 11:39:02 +0200
commit8bf96412b75689c578f5690dd0974304265d7fea (patch)
tree00927af4c406028b437a1890840ea7168267f1f9 /jfr_playoff/gui/frames/network.py
parent37a2b34d2dd68092196e391b8ccc08c092f9912a (diff)
Collecting and saving config file
Diffstat (limited to 'jfr_playoff/gui/frames/network.py')
-rw-r--r--jfr_playoff/gui/frames/network.py12
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']