Add timer handler.
parent
fff570d24b
commit
132e6381ea
|
@ -491,6 +491,15 @@ class printWindow(wx.Frame):
|
||||||
self.termInput.SetValue(self.termHistory[self.termHistoryIdx])
|
self.termInput.SetValue(self.termHistory[self.termHistoryIdx])
|
||||||
e.Skip()
|
e.Skip()
|
||||||
|
|
||||||
|
def OnPowerWarningChange(self, e):
|
||||||
|
type = self.powerManagement.get_providing_power_source_type()
|
||||||
|
if type == power.POWER_TYPE_AC and self.powerWarningText.IsShown():
|
||||||
|
self.powerWarningText.Hide()
|
||||||
|
self.Layout()
|
||||||
|
elif type != power.POWER_TYPE_AC and not self.powerWarningText.IsShown():
|
||||||
|
self.powerWarningText.Show()
|
||||||
|
self.Layout()
|
||||||
|
|
||||||
def LoadGCodeFile(self, filename):
|
def LoadGCodeFile(self, filename):
|
||||||
if self.machineCom != None and self.machineCom.isPrinting():
|
if self.machineCom != None and self.machineCom.isPrinting():
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue