Skip to content

Commit e0ec67e

Browse files
Toddpeircej
authored andcommitted
BF: Always use showRunner rather than newRunnerFrame so that stdout is always redirected
1 parent 1bf8a13 commit e0ec67e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

psychopy/app/builder/builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ def runFile(self, event=None):
10581058
ok = self.fileSave(self.filename)
10591059
if not ok:
10601060
return # save file before compiling script
1061-
1061+
self.app.showRunner()
10621062
self.stdoutFrame.addTask(fileName=self.filename)
10631063
self.app.runner.Raise()
10641064
if event:
@@ -1191,7 +1191,7 @@ def stdoutFrame(self):
11911191
Gets Experiment Runner stdout.
11921192
"""
11931193
if not self.app.runner:
1194-
self.app.runner = self.app.newRunnerFrame()
1194+
self.app.runner = self.app.showRunner()
11951195
return self.app.runner
11961196

11971197
def _getHtmlPath(self, filename):

psychopy/app/coder/coder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ def __init__(self, parent, ID, title, files=(), app=None):
13141314

13151315
# Link to Runner output
13161316
if self.app.runner is None:
1317-
self.app.newRunnerFrame()
1317+
self.app.showRunner()
13181318
self.outputWindow = self.app.runner.stdOut
13191319
self.outputWindow.write(_translate('Welcome to PsychoPy3!') + '\n')
13201320
self.outputWindow.write("v%s\n" % self.app.version)

0 commit comments

Comments
 (0)