Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqiangwang committed Mar 15, 2017
1 parent b4102a6 commit 0fc72e8
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions epicsQt/epicsPoll.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
import ca
import time, threading

#threading version doesnt work
#class epicsPoll(threading.Thread):
# def __init__(self):
# threading.Thread.__init__(self)
# self._stop=False
#
# def run(self):
# while not self._stop:
# time.sleep(1)
# print 'hehe'
# ca.poll()
#
# def stop(self):
# self._stop=True
import PyQt4.Qt as Qt

#Qt version

import PyQt4.Qt as Qt
class epicsPoll(Qt.QObject):
def __init__(self):
Qt.QObject.__init__(self)
self.startTimer(100)

def timerEvent(self, event):
ca.poll()

0 comments on commit 0fc72e8

Please sign in to comment.