Commit 4949cc8b authored by Aurelien Dufour's avatar Aurelien Dufour
Browse files

continuer à modifier treeView

parent 3008c4c7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ class TreeView(QGraphicsView):
    class which contains a level of a game and which is used to draw the BinaryTree of the level
    """

    def __init__(self, *args, controller=None, model=False, **kwargs):
    def __init__(self, *args, controller=None, model=False, root=False, **kwargs):
        super(QGraphicsView, self).__init__(*args, **kwargs)
        assert(controller is not None)
        self.controller = controller
@@ -19,6 +19,7 @@ class TreeView(QGraphicsView):
        self.scene().addItem(self.treeItemsGroup)
        self.indexChildButton = 0
        self.buttons = []
        self.root = root
        if model:
            self.tree = controller.level.answer
        else: