2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

artiq_gui: check due date upon date selection

This commit is contained in:
Yann Sionneau 2015-06-18 18:34:38 +02:00
parent 1ad5165cc7
commit b05972059e

View File

@ -41,6 +41,7 @@ class ExplorerDock(dockarea.Dock):
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 @@ class ExplorerDock(dockarea.Dock):
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",