Loading view/treeView.py +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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: Loading Loading
view/treeView.py +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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: Loading