Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
jodaguth committed May 5, 2020
1 parent 94e64e6 commit f317355
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions Command.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,33 +162,22 @@ def updateSubSpinner(self,text):
ii = i[0]
d = d[self.ids.spinner_2.text]
tmp,hum,press = d[0]
if self.ids.spinner_2.text in flg.keys():
flg[self.ids.spinner_2.text].append(ii)
else:
flg[self.ids.spinner_2.text] = []
flg[self.ids.spinner_2.text].append(ii)

self.ids.label_tempd.text = str(round(tmp,2))
self.ids.label_humd.text = str(round(hum,2))
self.ids.label_pressd.text = str(round(press,2))
if self.ids.spinner_3.text == '':
self.updateNewSpinner(self.ids.spinner_2.text)
else:
dd = flg[self.ids.spinner_2.text]
if len(dd) == 2:
flg[self.ids.spinner_2.text] = []
if dd[0] != dd[1]:
self.updateNewSpinner(self.ids.spinner_2.text)
flg[self.ids.spinner_2.text] = []


self.updateNewSpinner(self.ids.spinner_2.text)


def send_mesg(txt,txt1,txt2,*args):
tx = str(txt1)
tx1 = str(txt2)
txt4 = [tx,tx1]
send_data(txt4,0)
dataIN[1][tx][0] = tx1

def onExit(self):
BoxProjectApp().stop()
Master = False
Expand Down

0 comments on commit f317355

Please sign in to comment.