def remove_row(self, n_cols, instance, **kwargs):
		childs = self.parent.children
		selected = 0
		for ch in childs:
			for c in reversed(ch.children):
				if c.id != "Header_Label":
					if c.state == "down":
						self.remove_widget(c)
						print str(c.id) + '   -   ' + str(c.state)
						selected += 1
		if selected == 0:
			for ch in childs:
				count_01 = n_cols
				count_02 = 0
				count = 0
				while (count < n_cols):
					if n_cols != len(ch.children):
						for c in ch.children:
							if c.id != "Header_Label":
								print "Length: " + str(len(ch.children))
								print "N_cols: " + str(n_cols + 1)
						
								self.remove_widget(c)
								count += 1
								break
							else:
								break
					else:
						break
dataset/ETHPy150Open pedrodgcouto/kivy.data_grid/data_grid.py/DataGrid.remove_row/original