Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
96d12672
Commit
96d12672
authored
Mar 24, 2012
by
Luke Campagnola
Browse files
Added 3D examples to menu
parent
d2d812c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/__main__.py
View file @
96d12672
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment