Skip to content
Snippets Groups Projects
Commit 758a7a70 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Merge branch 'doc/platform_haveGui' into 'master'

DOC: Clarify comments about haveGui situation [skip ci]

See merge request fsl/fslpy!173
parents c06d00f1 adcce947
No related branches found
No related tags found
No related merge requests found
...@@ -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 Python. # solution.
return (self.canHaveGui and return (self.canHaveGui and
app is not None) app is not None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment