Add timer handler.

master
Ilya Kulakov 2012-11-20 16:25:13 +07:00
parent fff570d24b
commit 132e6381ea
1 changed files with 9 additions and 0 deletions

View File

@ -491,6 +491,15 @@ class printWindow(wx.Frame):
self.termInput.SetValue(self.termHistory[self.termHistoryIdx])
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):
if self.machineCom != None and self.machineCom.isPrinting():
return