Skip to content
Snippets Groups Projects
Commit b60c125b authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Add button addBox to Python plugin example.

parent 529fef35
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,9 @@ class _NodeCreator (QtGui.QWidget):
# Add mesh
box.addWidget(self.bindFunctionToButton("Add mesh", self.addMesh))
# Add box
box.addWidget(self.bindFunctionToButton("Add box", self.addBox))
self.update()
def update(self):
......@@ -51,6 +54,10 @@ class _NodeCreator (QtGui.QWidget):
self.plugin.client.gui.addMesh(str(self.nodeName.text), str(filename))
self.refreshBodyTree()
def addBox (self):
self.plugin.client.gui.addBox(str(self.nodeName.text), 1, 1, 1, [1, 0, 0, 1])
self.refreshBodyTree()
def createGroup (self):
self.plugin.client.gui.createGroup(str(self.nodeName.text))
self.groupNodes.addItem(self.nodeName.text)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment