print_("Printer is not online.");self.webInterface.AddLog("Printer is not online.")
print_("Printer is not online.");
ifwebavail:
self.webInterface.AddLog("Printer is not online.")
else:
else:
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.")
print_("You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0.");
ifwebavail:
self.webInterface.AddLog("You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0.")
except:
except:
print_("You must enter a temperature.");self.webInterface.AddLog("You must enter a temperature.")
print_("You must enter a temperature.");
ifwebavail:
self.webInterface.AddLog("You must enter a temperature.")
defend_macro(self):
defend_macro(self):
pronsole.pronsole.end_macro(self)
pronsole.pronsole.end_macro(self)
...
@@ -337,7 +352,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -337,7 +352,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
@@ -356,6 +373,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -356,6 +373,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.capture_skip_newline=True
self.capture_skip_newline=True
return
return
wx.CallAfter(self.logbox.AppendText,l)
wx.CallAfter(self.logbox.AppendText,l)
ifwebavail:
self.webInterface.AppendLog(l)
self.webInterface.AppendLog(l)
defscanserial(self):
defscanserial(self):
...
@@ -377,7 +395,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -377,7 +395,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
if(self.p.online):
if(self.p.online):
projectlayer.setframe(self,self.p).Show()
projectlayer.setframe(self,self.p).Show()
else:
else:
print_("Printer is not online.");self.webInterface.AddLog("Printer is not online.")
print_("Printer is not online.");
ifwebavail:
self.webInterface.AddLog("Printer is not online.")
defpopmenu(self):
defpopmenu(self):
self.menustrip=wx.MenuBar()
self.menustrip=wx.MenuBar()
...
@@ -451,7 +471,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -451,7 +471,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
print_("Name '%s' is being used by built-in command")%macro
print_("Name '%s' is being used by built-in command")%macro
return
return
eliflen([cforcinmacroifnotc.isalnum()andc!="_"]):
eliflen([cforcinmacroifnotc.isalnum()andc!="_"]):
print_("Macro name may contain only alphanumeric symbols and underscores");self.webInterface.AddLog("Macro name may contain only alphanumeric symbols and underscores")
print_("Macro name may contain only alphanumeric symbols and underscores");
ifwebavail:
self.webInterface.AddLog("Macro name may contain only alphanumeric symbols and underscores")
return
return
else:
else:
old_def=""
old_def=""
...
@@ -867,7 +889,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -867,7 +889,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
printpronsole.totalelength(self.f),_("mm of filament used in this print\n")
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);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 X\nand is %f mm wide\n")%(Xmin,Xmax,Xtot);
ifwebavail:
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 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)
print_("the print goes from %f mm to %f mm in Z\nand is %f mm high\n")%(Zmin,Zmax,Ztot)