From f1b2a099336f6e1da7715bf00cd89d7f5465d40c Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Thu, 19 Oct 2017 14:37:00 +0100
Subject: [PATCH] Deprecate isWidgetAlive function

---
 fsl/utils/platform.py | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/fsl/utils/platform.py b/fsl/utils/platform.py
index 0bd260a34..972790abd 100644
--- a/fsl/utils/platform.py
+++ b/fsl/utils/platform.py
@@ -8,14 +8,6 @@
 of information about the current platform we are running on. A single
 ``Platform`` instance is created when this module is first imported, and
 is available as a module attribute called :attr:`platform`.
-
-This module is also home to the following utility functions which abstract
-away various platform differences:
-
-.. autosummary::
-   :nosignatures:
-
-   isWidgetAlive
 """
 
 
@@ -25,6 +17,7 @@ import os
 import os.path as op
 import sys
 import importlib
+import deprecation
 
 import fsl.utils.notifier as notifier
 
@@ -80,6 +73,9 @@ are running the Linux/GTK wx build.
 """
 
 
+@deprecation.deprecated(deprecated_in='1.2.2',
+                        removed_in='2.0.0',
+                        details='Use fsleyes_widgets.isalive instead')
 def isWidgetAlive(widget):
     """Returns ``True`` if the given ``wx.Window`` object is "alive" (i.e.
     has not been destroyed), ``False`` otherwise. Works in both wxPython
-- 
GitLab