def connection_add(self, col1, row1, col2, row2): # print ("CONNECTION", col1, row1, col2, row2) if col1 == col2: # a stright line l = Edje(self.evas, file=self.themef, size_hint_align=FILL_BOTH, group='egitu/graph/connection/vert', color=self.color_for_column(col1)) self.pack(l, col1, row1, col2 - col1 + 1, row2 - row1 + 1) elif col1 > col2: # a "fork" l = Edje(self.evas, file=self.themef, size_hint_align=FILL_BOTH, group='egitu/graph/connection/vert_fork', color=self.color_for_column(col1)) self.pack(l, col2, row1, col1 - col2 + 1, row2 - row1 + 1) else: # a "merge" l = Edje(self.evas, file=self.themef, size_hint_align=FILL_BOTH, group='egitu/graph/connection/vert_merge', color=self.color_for_column(col2)) self.pack(l, col1, row1, col2 - col1 + 1, row2 - row1 + 1) l.lower() l.show() return l