Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Evan Edmond
fslpy
Commits
6b4781db
Commit
6b4781db
authored
Feb 17, 2021
by
Paul McCarthy
🚵
Browse files
MNT: style
parent
b02e1bcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/idle.py
View file @
6b4781db
...
...
@@ -89,7 +89,6 @@ except ImportError: import Queue as queue
log
=
logging
.
getLogger
(
__name__
)
class
IdleTask
(
object
):
@
functools
.
lru_cache
()
def
_canHaveGui
():
"""Return ``True`` if wxPython is installed, and a display is available,
...
...
@@ -118,6 +117,7 @@ def _haveGui():
return
False
class
IdleTask
:
"""Container object used by the :class:`IdleLoop` class.
Used to encapsulate information about a queued task.
"""
...
...
@@ -139,7 +139,7 @@ def _haveGui():
self
.
kwargs
=
kwargs
class
IdleLoop
(
object
)
:
class
IdleLoop
:
"""This class contains logic for running tasks via ``wx.EVT_IDLE`` events.
A single ``IdleLoop`` instance is created when this module is first
...
...
@@ -775,7 +775,7 @@ def wait(threads, task, *args, **kwargs):
return
None
class
Task
(
object
)
:
class
Task
:
"""Container object which encapsulates a task that is run by a
:class:`TaskThread`.
"""
...
...
@@ -795,7 +795,6 @@ class TaskThreadVeto(Exception):
handler (if one has been specified). See the :meth:`TaskThread.enqueue`
method for more details.
"""
pass
class
TaskThread
(
threading
.
Thread
):
...
...
@@ -1025,7 +1024,7 @@ def mutex(*args, **kwargs):
return
MutexFactory
(
*
args
,
**
kwargs
)
class
MutexFactory
(
object
)
:
class
MutexFactory
:
"""The ``MutexFactory`` is a placeholder for methods which have been
decorated with the :func:`mutex` decorator. When the method of a class
is decorated with ``@mutex``, a ``MutexFactory`` is created.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment