From a54a36ba92e9b35fde9b183ae146d42789fc4930 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauld.mccarthy@gmail.com> Date: Wed, 11 May 2016 18:15:19 +0100 Subject: [PATCH] Little warning about CallAfter in status module. --- fsl/utils/status.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fsl/utils/status.py b/fsl/utils/status.py index 5a5c1e6f0..5ff7d9cb8 100644 --- a/fsl/utils/status.py +++ b/fsl/utils/status.py @@ -19,7 +19,12 @@ following functions: The :func:`update` function may be used to display a message. By default, the message is simply logged (via the ``logging`` module). However, if a status target has been set via the :func:`setTarget` function, the message is also -passed to this target. +passed to this target. + + +.. warning:: If the status update target is a ``wx`` GUI object, you must + make sure that it is updated asynchronously (e.g. via + ``wx.CallAfter``). """ -- GitLab