Exemple #1
0
 def _configure(self):
     self.apply_props()
     self.sound_effects_enabled = self.config.as_bool("sound_effects_enabled")
     self.style = dirs.get_css_path(self.config.get("skin"))
     for k, v in self.config.get("sound_effects").items():
         path = dirs.get_sound_path(v)
         if path:
             self._sound_effects[k] = path
Exemple #2
0
 def _configure(self):
     self.apply_props()
     self.sound_effects_enabled = self.config.as_bool(
         "sound_effects_enabled")
     self.style = dirs.get_css_path(self.config.get("skin"))
     for k, v in self.config.get("sound_effects").items():
         path = dirs.get_sound_path(v)
         if path:
             self._sound_effects[k] = path
Exemple #3
0
 def __init__(self):
     self.fresh_subgroups = False
     self._subgroups = []
     self._hilited = []
     self._scanned = []
     self._lag_hilited = []
     self._strategy = None
     self._sound = dirs.get_sound_path('scan.wav')
     self.paused = False
     self.killed = False
     self.suppress_collapse_select_on_init = False
     self.parent_group = None
     self.signal_source = None
     self._scanning_hilite = False
     self.user_action_handler = None
     self.input_handler_token = None
     super().__init__()
     self.observer = _GroupObserver(self)
     self.set_layout_manager(Clutter.BinLayout())
     self.apply_props()
Exemple #4
0
 def __init__(self):
     self.fresh_subgroups = False
     self._subgroups = []
     self._hilited = []
     self._scanned = []
     self._lag_hilited = []
     self._strategy = None
     self._sound = dirs.get_sound_path('scan.wav')
     self.paused = False
     self.killed = False
     self.suppress_collapse_select_on_init = False
     self.parent_group = None
     self.signal_source = None
     self._scanning_hilite = False
     self.user_action_handler = None
     self.input_handler_token = None
     super().__init__()
     self.observer = _GroupObserver(self)
     self.set_layout_manager(Clutter.BinLayout())
     self.apply_props()
Exemple #5
0
 def sound(self, name):
     if isinstance(name, str):
         self._sound = dirs.get_sound_path(name + '.wav') or self._sound
Exemple #6
0
 def sound(self, name):
     if isinstance(name, str):
         self._sound = dirs.get_sound_path(name + '.wav') or self._sound