def toggle_display_plot(self): """ Toggles the data display. """ if self.bpm_plot: print "bpm plot disabled" self.bpm_plot = False destroyWindow(self.plot_title) else: print "bpm plot enabled" self.bpm_plot = True self.make_bpm_plot() moveWindow(self.plot_title, self.w, 0)
def toggle_display_plot(self): """ Toggles the data display. """ if self.bpm_plot: print "bpm plot disabled" self.bpm_plot = False destroyWindow(self.plot_title) else: print "bpm plot enabled" self.bpm_plot = True self.make_bpm_plot() moveWindow(self.plot_title, self.w,0)