예제 #1
0
 def __init__(self):
     """Constructor"""
     self.object_path = DBUS_ARMVE_PATH
     self.bus_name = DBUS_BUSNAME_ARMVE
     self._conn = False
     self.buffer = None
     self.printing = False
     self._fan_auto_mode = True
     self.controller = ARMVEController(self)
     self._last_temp = 0
     self._off_counter = 0
     self._last_speed = -1
     self._ac_power_source = True
     self._usa_pir = USAR_PIR
     self._usa_fan = USAR_FAN
     self._autofeed_mode = AUTOFEED_DEFAULT
     self._print_quality = PRINT_DEFAULT
     self._screen_on = None
     self._build = None
     self.device = None
     # Registro eventos a despachar
     self._init_map()
     # Corro el loop de eventos después de inicializar
     MSADbusService.__init__(self, True)
     # Abro el canal e inicializo
     self.precache_data()
     self.connect_and_load()
예제 #2
0
 def __init__(self):
     """Constructor"""
     self.object_path = DBUS_IMPRESORA_PATH
     self.bus_name = DBUS_BUSNAME_PRINTER
     self._conn = False
     MSADbusService.__init__(self, True)
예제 #3
0
 def __init__(self):
     """Constructor"""
     self.object_path = DBUS_IMPRESORA_PATH
     self.bus_name = DBUS_BUSNAME_PRINTER
     self._conn = False
     MSADbusService.__init__(self, True)
예제 #4
0
 def __init__(self):
     """Constructor"""
     self.object_path = DBUS_LECTOR_PATH
     self.bus_name = DBUS_BUSNAME_RFID
     self._connection = False
     MSADbusService.__init__(self, True)