"""
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
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
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))