From 7d7bf800242014e3ca25608551bb8bf4c89fa4cd Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 9 Mar 2009 10:21:40 -0400 Subject: [PATCH] Export button is not sensitive until graph is created. --- pyfpdb/GuiGraphViewer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyfpdb/GuiGraphViewer.py b/pyfpdb/GuiGraphViewer.py index 82f6d4fa..9671c1ce 100644 --- a/pyfpdb/GuiGraphViewer.py +++ b/pyfpdb/GuiGraphViewer.py @@ -107,6 +107,7 @@ class GuiGraphViewer (threading.Thread): self.canvas = FigureCanvas(self.fig) # a gtk.DrawingArea self.graphBox.add(self.canvas) self.canvas.show() + self.exportButton.set_sensitive(True) #end of def showClicked def getRingProfitGraph(self, names, sites): @@ -361,6 +362,7 @@ class GuiGraphViewer (threading.Thread): self.exportButton=gtk.Button("Export to File") self.exportButton.connect("clicked", self.exportGraph, "show clicked") + self.exportButton.set_sensitive(False) self.exportButton.show() self.leftPanelBox.add(playerFrame)