summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/network.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-27 13:02:38 +0200
committeremkael <emkael@tlen.pl>2019-06-27 13:02:38 +0200
commit06dbe4b0a0021ab6e96324dfd729f7b4b9c60101 (patch)
tree080ca935a7666c1644711906f8ddbba1a782f94d /jfr_playoff/gui/frames/network.py
parent9d0176306e53934d3f6d1a2082ee82711d16d725 (diff)
Reusable setValue for WidgetRepeater
Diffstat (limited to 'jfr_playoff/gui/frames/network.py')
-rw-r--r--jfr_playoff/gui/frames/network.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/jfr_playoff/gui/frames/network.py b/jfr_playoff/gui/frames/network.py
index 946bdf5..50c77dd 100644
--- a/jfr_playoff/gui/frames/network.py
+++ b/jfr_playoff/gui/frames/network.py
@@ -169,11 +169,6 @@ class RemoteConfigurationFrame(ScrollableFrame):
self.repeater.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
def setValues(self, values):
- for idx, value in enumerate(values):
- if idx >= len(self.repeater.widgets):
- self.repeater._addWidget()
- self.repeater.widgets[idx].setValue(value)
- for idx in range(len(values), len(self.repeater.widgets)):
- self.repeater._removeWidget(idx)
+ self.repeater.setValue(values)
__all__ = ['MySQLConfigurationFrame', 'GoniecConfigurationFrame', 'RemoteConfigurationFrame']