From 696bceb406f683e60947d331b589492c83f4b710 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 25 Jul 2015 15:08:27 +0800 Subject: [PATCH] gui: feedback on run deletion --- artiq/frontend/artiq_gui.py | 2 +- artiq/gui/schedule.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/artiq/frontend/artiq_gui.py b/artiq/frontend/artiq_gui.py index ad1a19729..fb6700377 100755 --- a/artiq/frontend/artiq_gui.py +++ b/artiq/frontend/artiq_gui.py @@ -100,7 +100,7 @@ def main(): area.addDock(d_params, "above", d_results) area.addDock(d_explorer, "above", d_params) - d_schedule = ScheduleDock(schedule_ctl) + d_schedule = ScheduleDock(status_bar, schedule_ctl) loop.run_until_complete(d_schedule.sub_connect( args.server, args.port_notify)) atexit.register(lambda: loop.run_until_complete(d_schedule.sub_close())) diff --git a/artiq/gui/schedule.py b/artiq/gui/schedule.py index d023c880b..65bcdc0cb 100644 --- a/artiq/gui/schedule.py +++ b/artiq/gui/schedule.py @@ -46,9 +46,10 @@ class _ScheduleModel(DictSyncModel): class ScheduleDock(dockarea.Dock): - def __init__(self, schedule_ctl): + def __init__(self, status_bar, schedule_ctl): dockarea.Dock.__init__(self, "Schedule", size=(1000, 300)) + self.status_bar = status_bar self.schedule_ctl = schedule_ctl self.table = QtGui.QTableView() @@ -86,4 +87,5 @@ class ScheduleDock(dockarea.Dock): if idx: row = idx[0].row() rid = self.table_model.row_to_key[row] + self.status_bar.showMessage("Deleted RID {}".format(rid)) asyncio.async(self.delete(rid))