From fef324b854d26457114087d3d16f6b5184ef362a Mon Sep 17 00:00:00 2001 From: steffen123 Date: Wed, 24 Sep 2008 04:01:38 +0100 Subject: [PATCH] p99 - graphing now removes old graph on refresh --- docs/known-bugs-and-planned-features.txt | 2 -- pyfpdb/GuiGraphViewer.py | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/known-bugs-and-planned-features.txt b/docs/known-bugs-and-planned-features.txt index 73b99de6..ea960f3f 100644 --- a/docs/known-bugs-and-planned-features.txt +++ b/docs/known-bugs-and-planned-features.txt @@ -3,8 +3,6 @@ Please also see db-todo.txt alpha4 (release 25Sep-2Oct) ====== -graph: doesnt remove old graph on refresh -print a "press any key" thing after we print the traceback. That way it is easy for them to see the error message. pgsql recreate doesnt work, and it may not store version field on creation if using sql file with pgadmin. reading small blind wrong for PS 25/50ct check we're reading mucked cards from PS diff --git a/pyfpdb/GuiGraphViewer.py b/pyfpdb/GuiGraphViewer.py index 58d79945..e2f62fae 100644 --- a/pyfpdb/GuiGraphViewer.py +++ b/pyfpdb/GuiGraphViewer.py @@ -39,6 +39,9 @@ class GuiGraphViewer (threading.Thread): #end def get_vbox def showClicked(self, widget, data): + try: self.canvas.destroy() + except AttributeError: pass + name=self.nameTBuffer.get_text(self.nameTBuffer.get_start_iter(), self.nameTBuffer.get_end_iter()) site=self.siteTBuffer.get_text(self.siteTBuffer.get_start_iter(), self.siteTBuffer.get_end_iter())