Merge branch 'master' of git://git.assembla.com/fpdboz

This commit is contained in:
Ray 2009-07-16 00:32:29 -04:00
commit 88d4f2ee05

View File

@ -126,11 +126,12 @@ class GuiGraphViewer (threading.Thread):
#end def get_vbox #end def get_vbox
def clearGraphData(self): def clearGraphData(self):
self.fig.clf() self.fig.clear()
if self.canvas is not None: if self.canvas is not None:
self.canvas.destroy() self.canvas.destroy()
self.canvas = FigureCanvas(self.fig) # a gtk.DrawingArea if self.canvas == None:
self.canvas = FigureCanvas(self.fig) # a gtk.DrawingArea
def generateGraph(self, widget, data): def generateGraph(self, widget, data):
self.clearGraphData() self.clearGraphData()
@ -197,6 +198,7 @@ class GuiGraphViewer (threading.Thread):
self.graphBox.add(self.canvas) self.graphBox.add(self.canvas)
self.canvas.show() self.canvas.show()
self.canvas.draw()
#self.exportButton.set_sensitive(True) #self.exportButton.set_sensitive(True)
#end of def showClicked #end of def showClicked