Ejemplo n.º 1
0
 def disable_bg(self):
     """Disable background."""
     user = User(self._name)
     user._mbg = False
     rooms = set(self._rooms.values())
     for room in rooms:
         room.set_bg_mode(0)
Ejemplo n.º 2
0
 def enable_bg(self):
     """Enable background if available."""
     user = User(self._name)
     user._mbg = True
     rooms = set(self._rooms.values())
     for room in rooms:
         room.set_bg_mode(1)