From 2b5e8216baa1bc85485a282c92e65ed1ee1d0c58 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Fri, 13 Feb 2015 11:23:01 +0100 Subject: [PATCH] new method the get the latest event that has been opened see also [7e3bcef] --- QtPyLoT.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/QtPyLoT.py b/QtPyLoT.py index 7d78bda9..279696ed 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -279,6 +279,9 @@ class MainWindow(QMainWindow): self.fname = fname self.data = Data(evtdata=self.fname) + def getLastEvent(self): + return self.recentEvents[0] + def getWFFnames(self): try: evt = self.getData().getEvtData()