"""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.
"""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/>."""
...
@@ -1675,7 +1675,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
defrecvcb_actions(self,l):
defrecvcb_actions(self,l):
ifl.startswith("!!"):
ifl.startswith("!!"):
ifnotself.paused:
ifnotself.paused:
self.pause()
wx.CallAfter(self.pause)
msg=l.split(" ",1)[1]
msg=l.split(" ",1)[1]
ifnotself.p.loud:
ifnotself.p.loud:
wx.CallAfter(self.addtexttolog,msg+"\n")
wx.CallAfter(self.addtexttolog,msg+"\n")
...
@@ -1688,14 +1688,14 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
...
@@ -1688,14 +1688,14 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
command=command[1]
command=command[1]
ifcommand=="pause":
ifcommand=="pause":
ifnotself.paused:
ifnotself.paused:
wx.CallAfter(lambda:self.pause())
wx.CallAfter(self.pause)
returnTrue
returnTrue
elifcommand=="resume":
elifcommand=="resume":
ifself.paused:
ifself.paused:
wx.CallAfter(lambda:self.pause())
wx.CallAfter(self.pause)
returnTrue
returnTrue
elifcommand=="disconnect":
elifcommand=="disconnect":
wx.CallAfter(lambda:self.disconnect())
wx.CallAfter(self.disconnect)
returnTrue
returnTrue
returnFalse
returnFalse
...
@@ -1709,7 +1709,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
...
@@ -1709,7 +1709,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""