From 3e43bafa407d1bda4e5e8f0adb24ec6a8a4d196b Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 2 Jun 2019 21:02:56 +0200 Subject: Remote configs configuration frame --- jfr_playoff/gui/frames/network.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'jfr_playoff/gui/frames/network.py') 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'] -- cgit v1.2.3