Added 3D examples to menu
This commit is contained in:
parent
d2d812c86e
commit
96d1267223
@ -10,17 +10,23 @@ from collections import OrderedDict
|
||||
examples = OrderedDict([
|
||||
('Command-line usage', 'CLIexample.py'),
|
||||
('Basic Plotting', 'Plotting.py'),
|
||||
('ImageView', 'ImageView.py'),
|
||||
('ParameterTree', '../parametertree'),
|
||||
('GraphicsItems', OrderedDict([
|
||||
('Scatter Plot', 'ScatterPlot.py'),
|
||||
#('PlotItem', 'PlotItem.py'),
|
||||
('ImageItem - video', 'ImageItem.py'),
|
||||
('ImageItem - draw', 'Draw.py'),
|
||||
('Region-of-Interest', 'ROItypes.py'),
|
||||
('GraphicsLayout', 'GraphicsLayout.py'),
|
||||
('Scatter Plot', 'ScatterPlot.py'),
|
||||
('Text Item', 'text.py'),
|
||||
('ViewBox', 'ViewBox.py'),
|
||||
('Linked Views', 'linkedViews.py'),
|
||||
('Arrow', 'Arrow.py'),
|
||||
('ViewBox', 'ViewBox.py'),
|
||||
])),
|
||||
('3D Graphics', OrderedDict([
|
||||
('Volumetric', 'GLVolumeItem.py'),
|
||||
('Isosurface', 'GLMeshItem.py'),
|
||||
])),
|
||||
('Widgets', OrderedDict([
|
||||
('PlotWidget', 'PlotWidget.py'),
|
||||
@ -34,10 +40,9 @@ examples = OrderedDict([
|
||||
#('VerticalLabel', '../widgets/VerticalLabel.py'),
|
||||
('JoystickButton', '../widgets/JoystickButton.py'),
|
||||
])),
|
||||
('ImageView', 'ImageView.py'),
|
||||
|
||||
('GraphicsScene', 'GraphicsScene.py'),
|
||||
('Flowcharts', 'Flowchart.py'),
|
||||
('ParameterTree', '../parametertree'),
|
||||
#('Canvas', '../canvas'),
|
||||
#('MultiPlotWidget', 'MultiPlotWidget.py'),
|
||||
])
|
||||
@ -93,6 +98,8 @@ class ExampleLoader(QtGui.QMainWindow):
|
||||
if fn is None:
|
||||
self.ui.codeView.clear()
|
||||
return
|
||||
if os.path.isdir(fn):
|
||||
fn = os.path.join(fn, '__main__.py')
|
||||
text = open(fn).read()
|
||||
self.ui.codeView.setPlainText(text)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user