diff options
author | emkael <emkael@tlen.pl> | 2019-06-02 21:02:56 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-06-02 21:02:56 +0200 |
commit | 3e43bafa407d1bda4e5e8f0adb24ec6a8a4d196b (patch) | |
tree | dba39aa5d40935209d16093e1052c98b004cc74a /jfr_playoff/gui/frames/network.py | |
parent | 82fb45bac50bd740ed4118621027ec63582a51fe (diff) |
Remote configs configuration frame
Diffstat (limited to 'jfr_playoff/gui/frames/network.py')
-rw-r--r-- | jfr_playoff/gui/frames/network.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/jfr_playoff/gui/frames/network.py b/jfr_playoff/gui/frames/network.py index 14deaa0..567f597 100644 --- a/jfr_playoff/gui/frames/network.py +++ b/jfr_playoff/gui/frames/network.py @@ -5,7 +5,8 @@ from tkinter import ttk import tkMessageBox as tkmb from ...db import PlayoffDB -from ..frames import getIntVal +from ..frames import RepeatableEntry, WidgetRepeater +from ..frames import ScrollableFrame, getIntVal class MySQLConfigurationFrame(tk.Frame): def __init__(self, *args, **kwargs): @@ -73,4 +74,12 @@ class MySQLConfigurationFrame(tk.Frame): (ttk.Entry(container, textvariable=self.pass_, show='*')).grid( row=3, column=1, sticky=tk.E+tk.W) -__all__ = ['MySQLConfigurationFrame'] +class RemoteConfigurationFrame(ScrollableFrame): + def renderContent(self, container): + (ttk.Label(container, text='Zdalne pliki konfiguracyjne:')).pack( + side=tk.TOP, fill=tk.BOTH, expand=True) + self.repeater = WidgetRepeater( + container, RepeatableEntry, classParams={'width':100}) + self.repeater.pack(side=tk.TOP, fill=tk.BOTH, expand=True) + +__all__ = ['MySQLConfigurationFrame', 'RemoteConfigurationFrame'] |