1 # -*- coding: utf-8 -*-
3 formatage des événements
9 from events
import eventNames
11 self
= sys
.modules
[__name__
]
15 return '%s (%s)' % (e
.midi
, e
.nom
)
17 def log_COLSTATECHANGE(e
) :
18 return u
'%5s %s' % (e
.state
, e
.syllabus
)
25 for type, name
in eventNames
.items() :
26 f
= getattr(self
, 'log_%s' % name
, log_default
)
29 __all__
= ('pprinters')