From c7ba32c755e23733ae479333d33125da58afb556 Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 14 Oct 2008 22:35:05 +0800 Subject: [PATCH] Fix graph message to include site and player name --- pyfpdb/GuiGraphViewer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyfpdb/GuiGraphViewer.py b/pyfpdb/GuiGraphViewer.py index 5b3fa081..58c0cc31 100644 --- a/pyfpdb/GuiGraphViewer.py +++ b/pyfpdb/GuiGraphViewer.py @@ -51,8 +51,10 @@ class GuiGraphViewer (threading.Thread): if site=="PS": site=2 + sitename="PokerStars: " elif site=="FTP": site=1 + sitename="Full Tilt: " else: print "invalid text in site selection in graph, defaulting to PS" site=2 @@ -69,7 +71,9 @@ class GuiGraphViewer (threading.Thread): self.ax.set_xlabel("Hands", fontsize = 12) self.ax.set_ylabel("$", fontsize = 12) self.ax.grid(color='g', linestyle=':', linewidth=0.2) - self.ax.annotate ("All Hands, Site %s", (61,25), xytext =(0.1, 0.9) , textcoords ="axes fraction" ,) + text = "All Hands, " + sitename + str(name) + + self.ax.annotate (text, (61,25), xytext =(0.1, 0.9) , textcoords ="axes fraction" ,) #Get graph data from DB line = self.getRingProfitGraph(name, site)