Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
Update register.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hongvin authored Feb 7, 2019
1 parent 3afdd69 commit 6ab5643
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions register.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ def __init__(self):
self.pushButton.clicked.connect(self.startengine)

def startengine(self):
print('oooooo')
self.listWidget.addItem('['+str(datetime.datetime.now().time())+']: List refreshed')
self.listWidget.scrollToBottom()
self.lineEdit.setEnabled(False)
timeout=float(self.lineEdit.text())
threading.Timer(timeout,self.startengine).start()
t=threading.Timer(timeout,self.startengine)
t.daemon=True
t.start()

e1=self.lineEdit_2.text()
e2=self.lineEdit_3.text()
Expand Down Expand Up @@ -226,8 +226,10 @@ def startengine(self):
self.tableWidget.resizeColumnsToContents()
self.tableWidget_2.resizeColumnsToContents()
self.listWidget.scrollToBottom()
self.listWidget.addItem('['+str(datetime.datetime.now().time())+']: List refreshed')
if e1b==True or e2b==True or k1b==True:
w.ShowWindow("Matching course found!","Course Code: {0} {1} {2}".format(*courses))




Expand Down

0 comments on commit 6ab5643

Please sign in to comment.