Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
adcce947
Commit
adcce947
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Clarify comments about haveGui situation [skip ci]
parent
c06d00f1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/utils/platform.py
+8
-4
8 additions, 4 deletions
fsl/utils/platform.py
with
8 additions
and
4 deletions
fsl/utils/platform.py
+
8
−
4
View file @
adcce947
...
@@ -176,19 +176,23 @@ class Platform(notifier.Notifier):
...
@@ -176,19 +176,23 @@ class Platform(notifier.Notifier):
# to check that the wx main loop
# to check that the wx main loop
# was running. But this doesn't
# was running. But this doesn't
# suit situations where a non-main
# suit situations where a non-main
# event loop is running (e.g. when
# event loop is running, or where
# the mainloop is periodically
# started and stopped (e.g. when
# the event loop is being run by
# the event loop is being run by
# IPython).
# IPython).
#
#
# In c++ wx, there is the
# In c++ wx, there is the
# wx.App.UsesEventLoop method, but
# wx.App.UsesEventLoop method, but
# this is not presently exposed to
# this is not presently exposed to
# Python code.
# Python code (and wouldn't help
# to detect the loop start/stop
# scenario).
#
#
# So this constraint has been
# So this constraint has been
# (hopefully) temporarily relaxed
# (hopefully) temporarily relaxed
# until
UsesEventLoop can be called
# until
I can think of a better
#
from Pyth
on.
#
soluti
on.
return
(
self
.
canHaveGui
and
return
(
self
.
canHaveGui
and
app
is
not
None
)
app
is
not
None
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment