From cf0a97e6fca3155000772d961bba89c215e1b457 Mon Sep 17 00:00:00 2001 From: pin Date: Tue, 20 Apr 2010 09:32:23 +0000 Subject: [PATCH 1/1] impression de la version du fichier de log. git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@156 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/app/log.py | 1 + src/app/minwii.py | 3 ++- src/app/synth.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/log.py b/src/app/log.py index 00c371b..e3a2182 100755 --- a/src/app/log.py +++ b/src/app/log.py @@ -13,6 +13,7 @@ import pygame import logging import os import datetime +LOG_FORMAT_VERSION='1.0-alpha' hiddenEvents = {pygame.MOUSEMOTION:True, pygame.MOUSEBUTTONDOWN:True, diff --git a/src/app/minwii.py b/src/app/minwii.py index 31bee79..a0a9161 100755 --- a/src/app/minwii.py +++ b/src/app/minwii.py @@ -18,12 +18,13 @@ from eventutils import EventDispatcher from musicxml import musicXml2Song from config import SONG_FILE_PATH from globals import PLAYING_MODES_DICT -from log import console +from log import console, LOG_FORMAT_VERSION class MinWii(object): def __init__(self, wiimoteSupport=True) : + console.info('winwii log format version : %s', LOG_FORMAT_VERSION) self.wiimoteSupport = wiimoteSupport LaunchScreen() self.app = Desktop() diff --git a/src/app/synth.py b/src/app/synth.py index f94358d..1910643 100755 --- a/src/app/synth.py +++ b/src/app/synth.py @@ -39,7 +39,7 @@ class Synth(FSynth) : console.info('soundfont : %s', sfPath) def __del__(self) : - console.info('arrêt du synthétiseur.') + console.info('arrêt du synthétiseur') self.delete() def adjust_octave(self, chan, octave) : -- 2.20.1