summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/__init__.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-21 18:21:04 +0200
committeremkael <emkael@tlen.pl>2019-06-21 18:21:04 +0200
commit4bc692539d595dec783e6576f1568fbcaa0fef69 (patch)
tree118e80f3ed67c6589c6b2f18cae0c4722f9b4c68 /jfr_playoff/gui/__init__.py
parent07c5f4bb55f17d84319a3d424329a81637d2bafd (diff)
Phase mathes GUI
Diffstat (limited to 'jfr_playoff/gui/__init__.py')
-rw-r--r--jfr_playoff/gui/__init__.py9
1 files changed, 9 insertions, 0 deletions
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