From 134704b72169cae3e75bb529b852a4bc62110057 Mon Sep 17 00:00:00 2001 From: Guillaume Seguin Date: Tue, 28 Feb 2012 03:08:56 +0100 Subject: [PATCH] Reset Print button and status when resetting machine --- pronterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pronterface.py b/pronterface.py index f1aac82..c29c79e 100755 --- a/pronterface.py +++ b/pronterface.py @@ -1557,11 +1557,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) if dlg.ShowModal()==wx.ID_YES: self.p.reset() + self.p.printing=0 + wx.CallAfter(self.printbtn.SetLabel, _("Print")) if self.paused: self.p.paused=0 - self.p.printing=0 wx.CallAfter(self.pausebtn.SetLabel, _("Pause")) - wx.CallAfter(self.printbtn.SetLabel, _("Print")) self.paused=0 def get_build_dimensions(self,bdim):