def add_flowchart_node(self, cell, image):
     Logger.debug('Add flowchart node with image %s and cell %s' % (image, cell))
     drag_label = DraggableImage(img=image, app=self, grid=self.root.drag_grid, cell=self.root.drag_grid.cells[0])
     drag = FlowChartNode(app=self, grid=self.root.drag_grid, cell=self.root.drag_grid.cells[0], label=drag_label)
     drag_label.node = drag
     cell.add_widget(drag)
     cell.nodes.append(drag)
     self.root.drag_grid.nodes.append(drag)
 def build(self):
     root = FlowchartExampleWidget()
     
     #Add a flowchart node
     lbl = Label(text='Test')
     drag_label = DraggableImage(img=lbl, app=self, grid=root.drag_grid, cell=root.drag_grid.cells[0])
     drag = FlowChartNode(app=self, grid=root.drag_grid, cell=root.drag_grid.cells[0], label=drag_label)
     drag_label.node = drag
     root.drag_grid.cells[0].add_widget(drag)
     root.drag_grid.cells[0].nodes.append(drag)
     root.drag_grid.nodes.append(drag)
     
     #Add a flowchart node
     lbl2 = Label(text='Test2')
     drag_label2 = DraggableImage(img=lbl2, app=self, grid=root.drag_grid, cell=root.drag_grid.cells[1])
     drag2 = FlowChartNode(app=self, grid=root.drag_grid, cell=root.drag_grid.cells[1], label=drag_label2)
     drag_label2.node = drag2
     root.drag_grid.cells[1].add_widget(drag2)
     root.drag_grid.cells[1].nodes.append(drag2)
     root.drag_grid.nodes.append(drag2)
     
     #Add a draggable list option that can be dragged into the flowchart.
     lbl3 = Label(text='Test')
     drag_option = DraggableOption(img=lbl3, app=self, grid=root.drag_grid, grid_layout=root.grid_layout, float_layout=root.float_layout)
     root.grid_layout.add_widget(drag_option)
     
     #Add a draggable list option that can be dragged into the flowchart.
     lbl4 = Label(text='Test')
     drag_option2 = DraggableOption(img=lbl4, app=self, grid=root.drag_grid, grid_layout=root.grid_layout, float_layout=root.float_layout)
     root.grid_layout.add_widget(drag_option2)
     
     return root