From 4bc692539d595dec783e6576f1568fbcaa0fef69 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 21 Jun 2019 18:21:04 +0200 Subject: Phase mathes GUI --- jfr_playoff/gui/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'jfr_playoff/gui/__init__.py') diff --git a/jfr_playoff/gui/__init__.py b/jfr_playoff/gui/__init__.py index 1ac43b1..df437d2 100644 --- a/jfr_playoff/gui/__init__.py +++ b/jfr_playoff/gui/__init__.py @@ -26,3 +26,12 @@ class PlayoffGUI(tk.Tk): def getDBs(self): return self.tabs['NetworkTab'].getDBList() + + def getMatches(self): + return self.tabs['MatchesTab'].getMatches() + + def getNewMatchID(self, match): + matches = self.tabs['MatchesTab'].getMatches() + if len(matches) > 0: + return max([m.getMatchID() for m in matches]) + 1 + return 1 -- cgit v1.2.3