Example #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()
Example #2
0
 def __init__(self):
     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
     # Registro eventos a despachar
     self._init_map()
     # Abro el canal e inicializo
     self.precache_data()
     self._locations = []
     self.connect_and_load()