From 1fe67e7d23b68a1e94281f71f9295559ca3b721d Mon Sep 17 00:00:00 2001 From: Keegi Date: Thu, 27 Oct 2011 16:37:10 +0300 Subject: [PATCH] fixed temperature gauge lagging --- pronterface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pronterface.py b/pronterface.py index e74b41c..992e786 100755 --- a/pronterface.py +++ b/pronterface.py @@ -1070,6 +1070,10 @@ class PronterWindow(wx.Frame,pronsole.pronsole): if "T:" in l: self.tempreport=l wx.CallAfter(self.tempdisp.SetLabel,self.tempreport.strip().replace("ok ","")) + try: + self.tgauge.SetValue(int(filter(lambda x:x.startswith("T:"),self.tempreport.split())[0].split(":")[1])) + except: + pass tstring=l.rstrip() #print tstring if(tstring!="ok"):