Skip to content

Commit

Permalink
artiq_gui: check due date upon date selection
Browse files Browse the repository at this point in the history
fallen committed Jun 18, 2015
1 parent 1ad5165 commit b059720
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions artiq/gui/explorer.py
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@ def __init__(self, status_bar, schedule_ctl):
self.datetime.setDisplayFormat("MMM d yyyy hh:mm:ss")
self.datetime.setCalendarPopup(True)
self.datetime.setDate(QtCore.QDate.currentDate())
self.datetime.dateTimeChanged.connect(self.enable_duedate)
self.datetime_en = QtGui.QCheckBox("Due date:")
grid.addWidget(self.datetime_en, 1, 0)
grid.addWidget(self.datetime, 1, 1)
@@ -65,6 +66,9 @@ def __init__(self, status_bar, schedule_ctl):
placeholder = QtGui.QWidget()
splitter.addWidget(placeholder)

def enable_duedate(self):
self.datetime_en.setChecked(True)

@asyncio.coroutine
def sub_connect(self, host, port):
self.explist_subscriber = Subscriber("explist",

0 comments on commit b059720

Please sign in to comment.