Reset Print button and status when resetting machine
parent
2421afa48c
commit
9b32c9ae9e
|
@ -1551,11 +1551,11 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
|
||||||
dlg=wx.MessageDialog(self, _("Are you sure you want to reset the printer?"), _("Reset?"), wx.YES|wx.NO)
|
dlg=wx.MessageDialog(self, _("Are you sure you want to reset the printer?"), _("Reset?"), wx.YES|wx.NO)
|
||||||
if dlg.ShowModal()==wx.ID_YES:
|
if dlg.ShowModal()==wx.ID_YES:
|
||||||
self.p.reset()
|
self.p.reset()
|
||||||
|
self.p.printing=0
|
||||||
|
wx.CallAfter(self.printbtn.SetLabel, _("Print"))
|
||||||
if self.paused:
|
if self.paused:
|
||||||
self.p.paused=0
|
self.p.paused=0
|
||||||
self.p.printing=0
|
|
||||||
wx.CallAfter(self.pausebtn.SetLabel, _("Pause"))
|
wx.CallAfter(self.pausebtn.SetLabel, _("Pause"))
|
||||||
wx.CallAfter(self.printbtn.SetLabel, _("Print"))
|
|
||||||
self.paused=0
|
self.paused=0
|
||||||
|
|
||||||
def get_build_dimensions(self,bdim):
|
def get_build_dimensions(self,bdim):
|
||||||
|
|
Loading…
Reference in New Issue