From 7bbaba0aa012d0387c471e37f399eb3f0851f1e5 Mon Sep 17 00:00:00 2001 From: Alexander Goscinski Date: Fri, 22 Dec 2023 17:59:37 +0100 Subject: [PATCH] change draw_display behavior of CueObject * None objects are note display * strings are printed --- src/scwidgets/cue/_widget_cue_object.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scwidgets/cue/_widget_cue_object.py b/src/scwidgets/cue/_widget_cue_object.py index dc3f01b..8f3cfca 100644 --- a/src/scwidgets/cue/_widget_cue_object.py +++ b/src/scwidgets/cue/_widget_cue_object.py @@ -70,4 +70,7 @@ def clear_display(self, wait=False): def draw_display(self): with self: - display(self._display_object) + if isinstance(self._display_object, str): + print(self._display_object) + elif self._display_object is not None: + display(self._display_object)