def add_row(self, row_data, row_align, cols_size, instance, **kwargs):
		global counter
		self.rows += 1
		#self.rows = 2
		##########################################################
		def change_on_press(self):
			childs = self.parent.children
			for ch in childs:
				if ch.id == self.id:
					print ch.id
					print len(ch.id)
					row_n = 0
					if len(ch.id) == 11:
						row_n = ch.id[4:5]
					else:
						row_n = ch.id[4:6]
					for c in childs:
						if ('row_'+str(row_n)+'_col_0') == c.id:
							if c.state == "normal":
								c.state="down"
							else:	
								c.state="normal"
						if ('row_'+str(row_n)+'_col_1') == c.id:
							if c.state == "normal":
								c.state="down"
							else:	
								c.state="normal"
						if ('row_'+str(row_n)+'_col_2') == c.id:
							if c.state == "normal":
								c.state="down"
							else:	
								c.state="normal"
						if ('row_'+str(row_n)+'_col_3') == c.id:
							if c.state == "normal":
								c.state="down"
							else:
								c.state="normal"
		def change_on_release(self):
			if self.state == "normal":
				self.state = "down"
			else:
				self.state = "normal"
		##########################################################
		n = 0
		for item in row_data:
			cell = CLabel(text=('[color=000000]' + item + '[/color]'), 
										background_normal="background_normal.png",
										background_down="background_pressed.png",
										halign=row_align[n],
										markup=True,
										on_press=partial(change_on_press),
										on_release=partial(change_on_release),
										text_size=(0, None),
										size_hint_x=cols_size[n], 
										size_hint_y=None,
										height=40,
										id=("row_" + str(counter) + "_col_" + str(n)))
			cell_width = Window.size[0] * cell.size_hint_x
			cell.text_size=(30 - cell_width, None)
			cell.texture_update()
			self.add_widget(cell)
			n+=1
		counter += 1
		#self.rows += 1
dataset/ETHPy150Open pedrodgcouto/kivy.data_grid/data_grid.py/DataGrid.add_row/swapped operands of `-`