Commit b47e4cec authored by Timothy M. Shead's avatar Timothy M. Shead
Browse files

ENH: Improve the gui.py Tython example so it generates better-looking graphs

parent 8a3cb61e
......@@ -15,6 +15,7 @@ edge_slider = window.findChild(QtGui.QSlider, "edgeCount")
source = vtkRandomGraphSource()
source.SetNumberOfVertices(vertex_slider.value())
source.SetNumberOfEdges(edge_slider.value())
source.SetStartWithTree(True)
# Define event-handlers that update the pipeline in response to widget events ...
def change_vertex_count(count):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment