def load_layout(self, layout, data=None):

		if self.layout:
			self._remove_widget(self.layout)

		if layout:
				self.layout = layout(self, data)
		else:
			self.layout = None
Load a layout and replace any previously loaded layout
dataset/ETHPy150Open Moguri/bgui/bgui/bge_utils.py/System.load_layout