示例#1
0
 def _setup_translations(self):
     controls = []
     for control in self.controls:
         controls.append(control)
     self._translations = TranslationComponent(controls, 10)
     self._translations.name = 'TranslationComponent'
     self._translations.set_enabled(False)
示例#2
0
	def _setup_translations(self):
		controls = []
		for array in self._grid:
			for button in array:
				controls.append(button)
		if FADER_BANKING:
			controls = controls + self._dial
		if DIAL_BANKING:
			controls = controls + self._dial
		self._translations = TranslationComponent(controls, USER_CHANNEL)
		self._translations.layer = Layer(priority = 7, channel_selector_buttons = self._menu_matrix)