Beispiel #1
0
 def __init__(self, *args, **kwargs):
     ControllerVoto.__init__(self, *args, **kwargs)
     global _audio_player
     if _audio_player is None or not _audio_player.is_alive():
         _audio_player = WavPlayer()
         _audio_player.start()
         _audio_player.set_volume(VOLUMEN_GENERAL)
Beispiel #2
0
 def __init__(self, *args, **kwargs):
     ControllerVoto.__init__(self, *args, **kwargs)
     global _audio_player
     if _audio_player is None or not _audio_player.is_alive():
         _audio_player = WavPlayer()
         _audio_player.start()
         _audio_player.set_volume(VOLUMEN_GENERAL)
Beispiel #3
0
    def __init__(self, parent):
        global _audio_player
        super(ControllerRecuento, self).__init__()
        self.sesion = get_sesion()
        self.parent = parent
        self.partido = None
        self.add_processor("recuento", Actions(self))

        self.callback_aceptar = None
        self.callback_cancelar = None

        self.msjs_panel = {
            RECUENTO_OK: (_("lectura_ok"),
                          os.path.join(PATH_SONIDOS_VOTO, 'ok.wav')),
            RECUENTO_ERROR: (_("error_lectura"),
                             os.path.join(PATH_SONIDOS_VOTO, 'error.wav')),
            RECUENTO_ERROR_REPETIDO: (_("boleta_repetida"),
                                      os.path.join(PATH_SONIDOS_VOTO,
                                                   'warning.wav')),
            RECUENTO_NO_TAG: (_("listo_para_leer"), None),
            RECUENTO_VER_RESULTADOS: (None, None),
            RECUENTO_RECUENTO_OK: (_("guardado_correc"), None),
            RECUENTO_RECUENTO_ERROR: (_("error_escribir_rec"), None),
            RECUENTO_IMPRIMIENDO: (_("mensaje_imprimiendo"), None),
            RECUENTO_GENERANDO: (_("mensaje_generando"), None)
        }

        if not _audio_player or not _audio_player.is_alive():
            _audio_player = WavPlayer()
            _audio_player.start()
            _audio_player.set_volume(VOLUMEN_GENERAL)
        self._player = _audio_player
Beispiel #4
0
    def __init__(self, parent):
        global _audio_player
        super(ControllerRecuento, self).__init__()
        self.sesion = get_sesion()
        self.parent = parent
        self.partido = None
        self.add_processor("recuento", Actions(self))

        self.callback_aceptar = None
        self.callback_cancelar = None

        self.msjs_panel = {
            RECUENTO_OK:
            (_("lectura_ok"), os.path.join(PATH_SONIDOS_VOTO, 'ok.wav')),
            RECUENTO_ERROR:
            (_("error_lectura"), os.path.join(PATH_SONIDOS_VOTO, 'error.wav')),
            RECUENTO_ERROR_REPETIDO: (_("boleta_repetida"),
                                      os.path.join(PATH_SONIDOS_VOTO,
                                                   'warning.wav')),
            RECUENTO_NO_TAG: (_("listo_para_leer"), None),
            RECUENTO_VER_RESULTADOS: (None, None),
            RECUENTO_RECUENTO_OK: (_("guardado_correc"), None),
            RECUENTO_RECUENTO_ERROR: (_("error_escribir_rec"), None),
            RECUENTO_IMPRIMIENDO: (_("mensaje_imprimiendo"), None),
            RECUENTO_GENERANDO: (_("mensaje_generando"), None)
        }

        if not _audio_player or not _audio_player.is_alive():
            _audio_player = WavPlayer()
            _audio_player.start()
            _audio_player.set_volume(VOLUMEN_GENERAL)
        self._player = _audio_player
Beispiel #5
0
 def __init__(self):
     Thread.__init__(self)
     global _audio_player
     if _audio_player is None or not _audio_player.is_alive():
         _audio_player = WavPlayer()
         _audio_player.start()
         _audio_player.set_volume(VOLUMEN_GENERAL)
     self.reset()
     self.setDaemon(True)
Beispiel #6
0
    def __init__(self, parent):
        global _audio_player
        super(ControllerAdmin, self).__init__()
        self.sesion = get_sesion()
        self.parent = parent
        self.interna = None
        self.add_processor("admin", Actions(self))

        if not _audio_player or not _audio_player.is_alive():
            _audio_player = WavPlayer()
            _audio_player.start()
            _audio_player.set_volume(VOLUMEN_GENERAL)
        self._player = _audio_player