X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/123c0c0e4a4a52a10565a37c5951f4d5608da39f..eec2dd4ea183465c2c95546402447303ee6320e4:/src/minwii/logfilereader.py diff --git a/src/minwii/logfilereader.py b/src/minwii/logfilereader.py index 64711c1..29425f7 100755 --- a/src/minwii/logfilereader.py +++ b/src/minwii/logfilereader.py @@ -94,6 +94,18 @@ class LogFileReader(object) : f.seek(pos) return screenResolution + def getMode(self) : + "retourne le niveau de difficulté" + f = self.logfile + pos = f.tell() + for l in self : + if l.startswith('APP mode :') : + break + + mode = l.split(':', 1)[1].strip() + f.geek(pos) + return mode + def getFirstEventTicks(self) : "retourne le timecode du premier événement (entier)" f = self.logfile