print_("Printer is not online.");self.webInterface.AddLog("Printer is not online.")
else:
print_("You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0.")
print_("You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0.");self.webInterface.AddLog("You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0.")
except:
print_("You must enter a temperature.")
print_("You must enter a temperature.");self.webInterface.AddLog("You must enter a temperature.")
defend_macro(self):
pronsole.pronsole.end_macro(self)
...
...
@@ -336,7 +338,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
@@ -355,6 +357,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.capture_skip_newline=True
return
wx.CallAfter(self.logbox.AppendText,l)
self.webInterface.AppendLog(l)
defscanserial(self):
"""scan for available ports. return a list of device names."""
...
...
@@ -375,7 +378,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
if(self.p.online):
projectlayer.setframe(self,self.p).Show()
else:
print_("Printer is not online.")
print_("Printer is not online.");self.webInterface.AddLog("Printer is not online.")
defpopmenu(self):
self.menustrip=wx.MenuBar()
...
...
@@ -449,7 +452,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
print_("Name '%s' is being used by built-in command")%macro
return
eliflen([cforcinmacroifnotc.isalnum()andc!="_"]):
print_("Macro name may contain only alphanumeric symbols and underscores")
print_("Macro name may contain only alphanumeric symbols and underscores");self.webInterface.AddLog("Macro name may contain only alphanumeric symbols and underscores")
return
else:
old_def=""
...
...
@@ -866,7 +869,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
printpronsole.totalelength(self.f),_("mm of filament used in this print\n")
print_("the print goes from %f mm to %f mm in X\nand is %f mm wide\n")%(Xmin,Xmax,Xtot)
print_("the print goes from %f mm to %f mm in X\nand is %f mm wide\n")%(Xmin,Xmax,Xtot);self.webInterface.AddLog("the print goes from %f mm to %f mm in X\nand is %f mm wide\n")%(Xmin,Xmax,Xtot)
print_("the print goes from %f mm to %f mm in Y\nand is %f mm wide\n")%(Ymin,Ymax,Ytot)
print_("the print goes from %f mm to %f mm in Z\nand is %f mm high\n")%(Zmin,Zmax,Ztot)