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

DOC: Clarify comments about haveGui situation [skip ci]

parent c06d00f1
No related branches found
No related tags found
No related merge requests found
......@@ -176,19 +176,23 @@ class Platform(notifier.Notifier):
# to check that the wx main loop
# was running. But this doesn't
# 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
# IPython).
#
# In c++ wx, there is the
# wx.App.UsesEventLoop method, but
# 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
# (hopefully) temporarily relaxed
# until UsesEventLoop can be called
# from Python.
# until I can think of a better
# solution.
return (self.canHaveGui and
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