projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix tri alphabétique des chansons.
[minwii.git]
/
src
/
minwii
/
widgets
/
songfilebrowser.py
diff --git
a/src/minwii/widgets/songfilebrowser.py
b/src/minwii/widgets/songfilebrowser.py
index
6117218
..
08008e3
100755
(executable)
--- a/
src/minwii/widgets/songfilebrowser.py
+++ b/
src/minwii/widgets/songfilebrowser.py
@@
-7,6
+7,7
@@
$URL$
"""
import pygame
"""
import pygame
+from pygame.locals import K_RETURN
from pgu.gui import FileDialog
import pgu.gui.basic as basic
import pgu.gui.input as input
from pgu.gui import FileDialog
import pgu.gui.basic as basic
import pgu.gui.input as input
@@
-265,6
+266,11
@@
class FileOpenDialog(FileDialog):
self._button_okay_clicked_(None)
else :
self._last_time_click = pygame.time.get_ticks()
self._button_okay_clicked_(None)
else :
self._last_time_click = pygame.time.get_ticks()
+
+ def event(self, e) :
+ FileDialog.event(self, e)
+ if e.type == KEYDOWN and e.key == K_RETURN :
+ self._button_okay_clicked_(None)
# utils
# utils
@@
-294,8
+300,8
@@
def _recurseDecomposition(uc):
fullDeco = u''.join(filter(lambda c : isPrintable(c), fullDeco))
return fullDeco
fullDeco = u''.join(filter(lambda c : isPrintable(c), fullDeco))
return fullDeco
-def desacc(s) :
- us = s.decode(
'utf-8'
, 'ignore')
+def desacc(s
, encoding='iso-8859-1'
) :
+ us = s.decode(
encoding
, 'ignore')
ret = []
for uc in us :
ret.append(_recurseDecomposition(uc))
ret = []
for uc in us :
ret.append(_recurseDecomposition(uc))