#1274 recommends that leoQt.py should return None for everything when in g.in_bridge is true.
That can easily be done by setting fail = g.in_bridge at the start of leoQt.py. However, the code presently is:
fail = False
# New for TravisCI tests: allow imports from the Leo Bridge.
so I suspect the proposed change would cause TravisCI to barf.
Thinking out loud
So now we have a dilemma. #1274 arises because it's actually not reasonable, in general, to attempt Qt imports from the bridge. But it appears we must do so in order to support TravisCI.
Could we just ignore this issue and leave leoQt as it is? I can only get the failure in the specific case of calling PyzoInterface.patch_pyzo from inside pyzo.start.
Summary
I would rather live with the present code than tolerate these hacks.
Any comments or suggestions?
Edward