示例#1
0
 def _setup_background(self):
     self._background = BackgroundComponent()
     self._background.layer = Layer(priority=1,
                                    pads=self._pad_matrix,
                                    buttons=self._button_matrix,
                                    keys=self._key_matrix,
                                    dials=self._dial_matrix,
                                    sliders=self._slider_matrix)
     self._background.set_enabled(False)
示例#2
0
 def _setup_background(self):
     self._background = BackgroundComponent()
     self._background.layer = Layer(
         priority=3,
         matrix=self._matrix.submatrix[:, :],
         side_buttons=self._side_button_matrix,
         top_buttons=self._top_button_matrix.submatrix[:, :],
         bottom_button=self._bottom_button)
     self._background.set_enabled(False)
示例#3
0
	def _create_background(self):
		self._background = BackgroundComponent(name = 'Background')
		self._background.layer = Layer(priority = 5, matrix = self._matrix, side_buttons = self._side_matrix, top_buttons = self._top_matrix)
		self._background.set_enabled(True)