1,860
edits
(Use MediaWiki default "See also".) |
m (Rearrange sections.) |
||
Line 1: | Line 1: | ||
= uicontrols: Build a GUI in GNU Octave = | == uicontrols: Build a GUI in GNU Octave == | ||
You have to use the "qt" graphics toolkit (default since 4.0). For the best results GNU Octave version >= 4.2.x should be used. | You have to use the "qt" graphics toolkit (default since 4.0). For the best results GNU Octave version >= 4.2.x should be used. | ||
=== Example 1: imageViewer === | |||
=== imageViewer === | |||
GUI which opens a file selection dialog when a button is pressed and views the selected image. | GUI which opens a file selection dialog when a button is pressed and views the selected image. | ||
Line 54: | Line 52: | ||
Then run <code>imageViewer()</code> from your terminal: | Then run <code>imageViewer()</code> from your terminal: | ||
=== demo_uicontrol === | === Example 2: demo_uicontrol === | ||
This example tries to show all available uicontrols (needs Octave >= 4.0 and qt): | This example tries to show all available uicontrols (needs Octave >= 4.0 and qt): |