summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/__init__.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-07 18:09:49 +0200
committeremkael <emkael@tlen.pl>2019-06-07 18:10:22 +0200
commitdd422a26175030d66da927f5d97f35012764d56c (patch)
tree8b7e7e0cd1a75a9fee86fea1857bec3322399ce1 /jfr_playoff/gui/frames/__init__.py
parent16d33c6b940c9ee735b1ed937be1818a2782a9c2 (diff)
Making dialogs modal
Diffstat (limited to 'jfr_playoff/gui/frames/__init__.py')
-rw-r--r--jfr_playoff/gui/frames/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/jfr_playoff/gui/frames/__init__.py b/jfr_playoff/gui/frames/__init__.py
index 7573ed4..9665663 100644
--- a/jfr_playoff/gui/frames/__init__.py
+++ b/jfr_playoff/gui/frames/__init__.py
@@ -67,6 +67,8 @@ class WidgetRepeater(tk.Frame):
dialog = tk.Toplevel(self)
dialog.title('Wybór elementu do dodania')
dialog.geometry('%dx%d' % (300, len(self.widgetClass) * 20 + 30))
+ dialog.grab_set()
+ dialog.focus_force()
frame = WidgetSelectionFrame(
dialog, vertical=True,
widgets=self.widgetClass, callback=self._handleWidgetSelection)