def popup_unread_curves(self): unread = CurveDB.objects.filter_param('user_has_read', value=False) if unread: for curve in unread: self.search_widget.refresh_one_id(curve.id) curve = unread[0] self.display(curve) if self.plot_popups: win = get_window(curve.params['window']) win.plot(curve) self.popup_timer.start()
def popup_unread_curves(self): unread = CurveDB.objects.filter_param('user_has_read', value=False) if unread: for curve in unread: self.search_widget.refresh_one_id(curve.id) curve = unread[0] self.display(curve) if self.plot_popups: win = get_window(curve.params['window']) win.plot(curve) self.popup_timer.start()
def plot(dummy, curves=curves): curves.reverse() for curve in curves: win = get_window(curve.params["window"]) win.plot(curve) win.show()
def plot(dummy, curves=curves): curves.reverse() for curve in curves: win = get_window(curve.params["window"]) win.plot(curve) win.show()