def on_ButtonStart_clicked(self, checked): global Cache global startTime """ Slot documentation goes here. """ # TODO: not implemented yet self.hide() DlgHolter.show() global startTime global allTime startTime=time.time() # allTime to use here allTime = init_An24.battry(init_An24.sock) DlgHolter.timerCount.start(1000) DlgHolter.timerSound.start(500) #Cache = OpenCsv() data.start_data_thread(init_An24.sock) #!!!!!!!!!!!!!! startTime = int(time.time()) Cache = data.data_cache DlgHolter.timerPaint.start(1000) #!!!!!!!!!!!!!! DlgPregSim.timer.start(250)
def on_ButtonStart_clicked(self, checked): global Cache global startTime """ Slot documentation goes here. """ # TODO: not implemented yet self.hide() DlgHolter.show() global startTime global allTime startTime = time.time() # allTime to use here allTime = init_An24.battry(init_An24.sock) DlgHolter.timerCount.start(1000) DlgHolter.timerSound.start(500) #Cache = OpenCsv() data.start_data_thread(init_An24.sock) #!!!!!!!!!!!!!! startTime = int(time.time()) Cache = data.data_cache DlgHolter.timerPaint.start(1000) #!!!!!!!!!!!!!! DlgPregSim.timer.start(250)
def battry(self): return init_An24.battry(self.sock)
output.write(regbuf.encode('hex')) print '[ok] query data type', chardet.detect(data) str1 = data.decode("ascii") print 'hexbuf:', hexbuf, str1 print '-------------------------------' print 'endpos:', endpos print '-------------------------------' print 'lbuf:',lbuf print 'regbuf:', regbuf print type(data) if __name__ == '__main__': #print 'i can print' #sock = init_An24.conn() init_An24.battry(init_An24.sock) init_An24.checking(init_An24.sock) #print rvalue start_data_thread(init_An24.sock) #print 'there can go' #data_recv_An24(addr) #stream_in_cache() #client_sock.close() #server_sock.close()
for m in pattern.finditer(hexbuf): print m.group() output.write(regbuf.encode('hex')) print '[ok] query data type', chardet.detect(data) str1 = data.decode("ascii") print 'hexbuf:', hexbuf, str1 print '-------------------------------' print 'endpos:', endpos print '-------------------------------' print 'lbuf:', lbuf print 'regbuf:', regbuf print type(data) if __name__ == '__main__': #print 'i can print' #sock = init_An24.conn() init_An24.battry(init_An24.sock) #init_An24.checking(init_An24.sock) #print rvalue #start_data_thread(init_An24.sock) #print 'there can go' #data_recv_An24(addr) #stream_in_cache() #client_sock.close() #server_sock.close()