Skip to content

Commit

Permalink
Python console: revert to wx.TextCtrl.write function. re nvaccess#7077.
Browse files Browse the repository at this point in the history
Due to request from a tester, wxPython 4 developer has decided to restore wx.TextCtrl.write. This means the AppendText workaround in place is no longer needed.
  • Loading branch information
josephsl committed Oct 29, 2017
1 parent e265976 commit 7e0b466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/pythonConsole.py
Expand Up @@ -197,12 +197,12 @@ def onClose(self, evt):
self.console.removeNamespaceSnapshotVars()

def output(self, data):
self.outputCtrl.AppendText(data)
self.outputCtrl.write(data)
if data and not data.isspace():
queueHandler.queueFunction(queueHandler.eventQueue, speech.speakText, data)

def echo(self, data):
self.outputCtrl.AppendText(data)
self.outputCtrl.write(data)

def setPrompt(self, prompt):
self.promptLabel.SetLabel(prompt)
Expand Down

0 comments on commit 7e0b466

Please sign in to comment.