"""Handle console output. All messages go through the logging submodule. We setup a logging handler to get logged messages and write them to both stdout (unless a log file path is specified, in which case we add another logging handler to write to this file) and the log panel.
...
...
@@ -1675,7 +1675,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
defrecvcb_actions(self,l):
ifl.startswith("!!"):
ifnotself.paused:
self.pause()
wx.CallAfter(self.pause)
msg=l.split(" ",1)[1]
ifnotself.p.loud:
wx.CallAfter(self.addtexttolog,msg+"\n")
...
...
@@ -1688,14 +1688,14 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
command=command[1]
ifcommand=="pause":
ifnotself.paused:
wx.CallAfter(lambda:self.pause())
wx.CallAfter(self.pause)
returnTrue
elifcommand=="resume":
ifself.paused:
wx.CallAfter(lambda:self.pause())
wx.CallAfter(self.pause)
returnTrue
elifcommand=="disconnect":
wx.CallAfter(lambda:self.disconnect())
wx.CallAfter(self.disconnect)
returnTrue
returnFalse
...
...
@@ -1709,7 +1709,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""