<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Amandeeps</id>
		<title>Script | Spoken-Tutorial - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Amandeeps"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Special:Contributions/Amandeeps"/>
		<updated>2026-04-09T07:43:25Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-09-24T01:29:17Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Building '''GUI''' to graph a Linear Equation&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes,''' plot the response of a '''Linear Equation, strtod''' command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a Linear Equation’ in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
&lt;br /&gt;
*How to plot the linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
*'''Windows 10''' '''OS'''&lt;br /&gt;
*'''Scilab 6.1.0'''&lt;br /&gt;
*'''GUI Builder Toolbox 4.2.1'''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
*The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox'''.&lt;br /&gt;
&lt;br /&gt;
*For pre-requisite '''Scilab''' tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
*The files used in this tutorial are provided in the '''Code files''' link.&lt;br /&gt;
*Please download and extract the files.&lt;br /&gt;
*Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
*The linear equation of a line has the general form of Ax + By = C&lt;br /&gt;
*It’s slope intercept form is y = mx + c'''.''' Where,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m is slope and&lt;br /&gt;
&lt;br /&gt;
c is y-intercept.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
*After comparing these two forms we get,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will use these two equations to plot a graph of a Linear Equation of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
'''Axes''' is a '''GUI''' object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing Linear equation&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
&lt;br /&gt;
*Three '''Edit''' boxes to take user input for '''A, B''' and '''C'''.&lt;br /&gt;
*Two '''Text''' boxes to display the answer of slope and y-intercept.&lt;br /&gt;
*One '''Pushbutton''' to calculate and plot.&lt;br /&gt;
*One '''Axes''' for displaying the graph.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
| I have already opened the '''linearequation.sce''' file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
It opens the '''GUI''' with the three '''Edit''' boxes''',''' a '''Pushbutton''' and two '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Edit''' box has the '''string''' '''“Enter the value of A”''' with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Edit''' box has the '''string''' '''“Enter the value of B”''' with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
| The third '''Edit''' box has the '''string''' '''“Enter the value of C”''' with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Text''' box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Text''' box has the '''string “UnName5”''' with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with '''String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present.&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot''' as '''tag''' and '''Plot''' as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Only narration &lt;br /&gt;
&lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot''' as '''Tag,'''&lt;br /&gt;
&lt;br /&gt;
type '''Plot''' as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot''' as '''Tag,''' and '''Plot''' as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes''' in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Only narration &lt;br /&gt;
&lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code''' has been generated.&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', notice the '''handles''' of the seven&lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A''' is the '''handle''' for taking user input for '''A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B''' is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C''' is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope''' is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int''' is the '''handle''' for displaying the '''y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot''' is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot''' is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback''' function.&lt;br /&gt;
| Now let us write a '''function''' definition for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same syntax.&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit''' boxes.&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the slope and y-intercept.&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables '''slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
| At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle''' command, we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid''' command is used'''.'''&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To run the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over slope and '''y''' intercept Text boxes.&lt;br /&gt;
| These are the slope and '''y''' intercept values for the linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it.&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
*How to plot a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI''' to,&lt;br /&gt;
&lt;br /&gt;
*Plot an equation of y = e^(Ax).&lt;br /&gt;
*Take '''‘A’''' as '''input''' from the user.&lt;br /&gt;
*Consider, x varies from 0 to 2*pi.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-09-24T01:28:26Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Building '''GUI''' to graph a Linear Equation&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes,''' plot the response of a '''Linear Equation, strtod''' command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a Linear Equation’ in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
&lt;br /&gt;
*How to plot the linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
*'''Windows 10''' '''OS'''&lt;br /&gt;
*'''Scilab 6.1.0'''&lt;br /&gt;
*'''GUI Builder Toolbox 4.2.1'''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
*The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox'''.&lt;br /&gt;
&lt;br /&gt;
*For pre-requisite '''Scilab''' tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
*The files used in this tutorial are provided in the '''Code files''' link.&lt;br /&gt;
*Please download and extract the files.&lt;br /&gt;
*Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
*The linear equation of a line has the general form of Ax + By = C&lt;br /&gt;
*It’s slope intercept form is y = mx + c'''.''' Where,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m is slope and&lt;br /&gt;
&lt;br /&gt;
c is '''y-intercept'''.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
*After comparing these two forms we get,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will use these two equations to plot a graph of a Linear Equation of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
'''Axes''' is a '''GUI''' object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing Linear equation&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
&lt;br /&gt;
*Three '''Edit''' boxes to take user input for '''A, B''' and '''C'''.&lt;br /&gt;
*Two '''Text''' boxes to display the answer of slope and y-intercept.&lt;br /&gt;
*One '''Pushbutton''' to calculate and plot.&lt;br /&gt;
*One '''Axes''' for displaying the graph.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
| I have already opened the '''linearequation.sce''' file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
It opens the '''GUI''' with the three '''Edit''' boxes''',''' a '''Pushbutton''' and two '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Edit''' box has the '''string''' '''“Enter the value of A”''' with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Edit''' box has the '''string''' '''“Enter the value of B”''' with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
| The third '''Edit''' box has the '''string''' '''“Enter the value of C”''' with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Text''' box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Text''' box has the '''string “UnName5”''' with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with '''String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present.&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot''' as '''tag''' and '''Plot''' as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Only narration &lt;br /&gt;
&lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot''' as '''Tag,'''&lt;br /&gt;
&lt;br /&gt;
type '''Plot''' as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot''' as '''Tag,''' and '''Plot''' as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes''' in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Only narration &lt;br /&gt;
&lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code''' has been generated.&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', notice the '''handles''' of the seven&lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A''' is the '''handle''' for taking user input for '''A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B''' is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C''' is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope''' is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int''' is the '''handle''' for displaying the '''y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot''' is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot''' is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback''' function.&lt;br /&gt;
| Now let us write a '''function''' definition for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same syntax.&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit''' boxes.&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the slope and '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables '''slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
| At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle''' command, we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid''' command is used'''.'''&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To run the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over slope and '''y''' intercept Text boxes.&lt;br /&gt;
| These are the slope and '''y''' intercept values for the linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it.&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
*How to plot a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI''' to,&lt;br /&gt;
&lt;br /&gt;
*Plot an equation of y = e^(Ax).&lt;br /&gt;
*Take '''‘A’''' as '''input''' from the user.&lt;br /&gt;
*Consider, x varies from 0 to 2*pi.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-09-24T01:27:19Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Building '''GUI''' to graph a Linear Equation&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes,''' plot the response of a '''Linear Equation, strtod''' command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a Linear Equation’ in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
&lt;br /&gt;
*How to plot the linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
*'''Windows 10''' '''OS'''&lt;br /&gt;
*'''Scilab 6.1.0'''&lt;br /&gt;
*'''GUI Builder Toolbox 4.2.1'''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
*The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox'''.&lt;br /&gt;
&lt;br /&gt;
*For pre-requisite '''Scilab''' tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
*The files used in this tutorial are provided in the '''Code files''' link.&lt;br /&gt;
*Please download and extract the files.&lt;br /&gt;
*Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
*The linear equation of a line has the general form of Ax + By = C&lt;br /&gt;
*It’s '''slope intercept''' form is y = mx + c'''.''' Where,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m is slope and&lt;br /&gt;
&lt;br /&gt;
c is '''y-intercept'''.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
*After comparing these two forms we get,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will use these two equations to plot a graph of a Linear Equation of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
'''Axes''' is a '''GUI''' object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing Linear equation&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
&lt;br /&gt;
*Three '''Edit''' boxes to take user input for '''A, B''' and '''C'''.&lt;br /&gt;
*Two '''Text''' boxes to display the answer of slope and '''y-intercept'''.&lt;br /&gt;
*One '''Pushbutton''' to calculate and plot.&lt;br /&gt;
*One '''Axes''' for displaying the graph.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
| I have already opened the '''linearequation.sce''' file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
It opens the '''GUI''' with the three '''Edit''' boxes''',''' a '''Pushbutton''' and two '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Edit''' box has the '''string''' '''“Enter the value of A”''' with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Edit''' box has the '''string''' '''“Enter the value of B”''' with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
| The third '''Edit''' box has the '''string''' '''“Enter the value of C”''' with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Text''' box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Text''' box has the '''string “UnName5”''' with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with '''String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present.&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot''' as '''tag''' and '''Plot''' as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Only narration &lt;br /&gt;
&lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot''' as '''Tag,'''&lt;br /&gt;
&lt;br /&gt;
type '''Plot''' as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot''' as '''Tag,''' and '''Plot''' as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes''' in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Only narration &lt;br /&gt;
&lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code''' has been generated.&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', notice the '''handles''' of the seven&lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A''' is the '''handle''' for taking user input for '''A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B''' is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C''' is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope''' is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int''' is the '''handle''' for displaying the '''y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot''' is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot''' is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback''' function.&lt;br /&gt;
| Now let us write a '''function''' definition for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same syntax.&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit''' boxes.&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the slope and '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables '''slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
| At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle''' command, we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid''' command is used'''.'''&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To run the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over slope and '''y''' intercept Text boxes.&lt;br /&gt;
| These are the slope and '''y''' intercept values for the linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it.&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
*How to plot a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI''' to,&lt;br /&gt;
&lt;br /&gt;
*Plot an equation of y = e^(Ax).&lt;br /&gt;
*Take '''‘A’''' as '''input''' from the user.&lt;br /&gt;
*Consider, x varies from 0 to 2*pi.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-09-24T01:26:39Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Building '''GUI''' to graph a Linear Equation&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes,''' plot the response of a '''Linear Equation, strtod''' command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a Linear Equation’ in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
&lt;br /&gt;
*How to plot the linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
*'''Windows 10''' '''OS'''&lt;br /&gt;
*'''Scilab 6.1.0'''&lt;br /&gt;
*'''GUI Builder Toolbox 4.2.1'''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
*The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox'''.&lt;br /&gt;
&lt;br /&gt;
*For pre-requisite '''Scilab''' tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
*The files used in this tutorial are provided in the '''Code files''' link.&lt;br /&gt;
*Please download and extract the files.&lt;br /&gt;
*Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
*The linear equation of a line has the general form of Ax + By = C&lt;br /&gt;
*It’s '''slope intercept''' form is y = mx + c'''.''' Where,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m is slope and&lt;br /&gt;
&lt;br /&gt;
c is '''y-intercept'''.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
*After comparing these two forms we get,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will use these two equations to plot a graph of a Linear Equation of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
'''Axes''' is a '''GUI''' object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing Linear equation&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
&lt;br /&gt;
*Three '''Edit''' boxes to take user input for '''A, B''' and '''C'''.&lt;br /&gt;
*Two '''Text''' boxes to display the answer of slope and '''y-intercept'''.&lt;br /&gt;
*One '''Pushbutton''' to calculate and plot.&lt;br /&gt;
*One '''Axes''' for displaying the graph.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
| I have already opened the '''linearequation.sce''' file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
It opens the '''GUI''' with the three '''Edit''' boxes''',''' a '''Pushbutton''' and two '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Edit''' box has the '''string''' '''“Enter the value of A”''' with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Edit''' box has the '''string''' '''“Enter the value of B”''' with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
| The third '''Edit''' box has the '''string''' '''“Enter the value of C”''' with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Text''' box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Text''' box has the '''string “UnName5”''' with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with '''String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present.&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot''' as '''tag''' and '''Plot''' as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Only narration &lt;br /&gt;
&lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot''' as '''Tag,'''&lt;br /&gt;
&lt;br /&gt;
type '''Plot''' as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot''' as '''Tag,''' and '''Plot''' as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes''' in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code''' has been generated.&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', notice the '''handles''' of the seven&lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A''' is the '''handle''' for taking user input for '''A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B''' is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C''' is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope''' is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int''' is the '''handle''' for displaying the '''y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot''' is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot''' is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback''' function.&lt;br /&gt;
| Now let us write a '''function''' definition for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same syntax.&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit''' boxes.&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the slope and '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables '''slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
| At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle''' command, we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid''' command is used'''.'''&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To run the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over slope and '''y''' intercept Text boxes.&lt;br /&gt;
| These are the slope and '''y''' intercept values for the linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it.&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
*How to plot a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI''' to,&lt;br /&gt;
&lt;br /&gt;
*Plot an equation of y = e^(Ax).&lt;br /&gt;
*Take '''‘A’''' as '''input''' from the user.&lt;br /&gt;
*Consider, x varies from 0 to 2*pi.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</id>
		<title>GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English"/>
				<updated>2021-09-24T01:19:08Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Creating a '''GUI''' to Print the User Input&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Edit''' box, '''Text''' box, '''.string''' command, Creating a '''GUI,''' Print the User Input, '''GUI Builder Toolbox, Tag, String, callback function, Pushbutton'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Creating a '''GUI''' to Print User Input in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add an '''Edit''' box to prompt for user input.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add a '''Text''' box to display the output.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We’ll also learn about the '''string command'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI Builder Toolbox 4.2.1'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in Linux OS also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://www.spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The files used in this tutorial are provided in the '''Code files''' link.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Please download and extract the files.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Make a copy and then use them while practising.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
|&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box is an editable '''string''' which takes input from a user.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
|&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
&lt;br /&gt;
A '''Text''' box is a non-editable '''string''' used to display text or numbers.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Scilab Console Window.'''&lt;br /&gt;
|&lt;br /&gt;
Let us switch to the '''Scilab console''' window.&lt;br /&gt;
&lt;br /&gt;
Notice that I already have the '''GUI Builder Toolbox''' loaded in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console Window,'''&lt;br /&gt;
&lt;br /&gt;
type '''guibuilder,''' press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now type '''guibuilder''' and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',&lt;br /&gt;
&lt;br /&gt;
click on '''Open.'''&lt;br /&gt;
| On the '''GUIBuilder Palette,''' click on '''Open''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Open an existing GUI''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
|&lt;br /&gt;
A prompt named '''Open an existing GUI''' appears.&lt;br /&gt;
&lt;br /&gt;
Click on '''Yes''' to proceed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uigetfile''' window,&lt;br /&gt;
&lt;br /&gt;
locate '''printpushbutton.sce.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|&lt;br /&gt;
This opens another window named '''uigetfile'''.&lt;br /&gt;
&lt;br /&gt;
Locate the file '''printpushbutton.sce''' and click on it.&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1'''.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 1''' opens.&lt;br /&gt;
&lt;br /&gt;
It shows the '''GUI''' with a '''pushbutton''' named '''Print'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Let us add an '''Edit''' box and a '''Text''' box in this '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',&lt;br /&gt;
&lt;br /&gt;
click on '''Edit.'''&lt;br /&gt;
| Go to '''GUI Builder Palette''' and click on '''Edit.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ed_input, '''&lt;br /&gt;
&lt;br /&gt;
type '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
Click '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A dialog box named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
Type ‘'''ed_input’''' as '''Tag''' and ‘'''Enter the input message’''' as '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''OK''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Edit''' box in the top left side.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over an '''Edit''' Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
Switch to '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
Place the '''Edit''' box above the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box with the '''string “Enter the input message”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' ,&lt;br /&gt;
&lt;br /&gt;
click on '''Text.'''&lt;br /&gt;
|&lt;br /&gt;
Now, let us take a '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
On '''GUI Builder Palette''', click on '''Text'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''txt_output.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''txt_output''' for '''Tag''' field'''.'''&lt;br /&gt;
&lt;br /&gt;
Do not type anything in the '''String''' field.&lt;br /&gt;
&lt;br /&gt;
We will not display any messages until we receive an input from the user.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Text''' box in the bottom center.&lt;br /&gt;
|&lt;br /&gt;
We’ll place this just below the '''Print''' '''pushbutton''' in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
Click and place the '''Text''' box below the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
A '''Text''' box with the '''string “UnName3”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Text''' Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
A default '''string''' value “'''UnName3”''' is assigned to the '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
This is because the '''String''' field was kept empty.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the interface.&lt;br /&gt;
|&lt;br /&gt;
Now the '''GUI''' part is completed.&lt;br /&gt;
&lt;br /&gt;
Let us proceed to generate an equivalent '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate,''' and then click on '''Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''GUIBuilder Palette'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' on the top '''menubar''' and then on the '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uiputfile''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
We will save this file as '''printuserinput.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Save''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays GUI '''created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window,&lt;br /&gt;
| The corresponding '''sce file''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
highlight line with '''handles.ed_input.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
Notice the '''handle''' for the '''Edit''' box is '''handles.ed_input'''.&lt;br /&gt;
&lt;br /&gt;
The properties of the '''Edit''' box are defined in its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight '''handles.txt_output.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
The '''handle''' for the '''Text''' box is '''handles.txt_output'''.&lt;br /&gt;
&lt;br /&gt;
Its properties are defined within its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Scroll down to the end.&lt;br /&gt;
&lt;br /&gt;
Place the cursor within the '''h1_callback function.'''&lt;br /&gt;
|&lt;br /&gt;
Now, scroll down to the end of the code file.&lt;br /&gt;
&lt;br /&gt;
Let us make the '''pushbutton''' interactive.&lt;br /&gt;
&lt;br /&gt;
For that, we will write the '''code''' within the '''h1_callback function.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
within '''h1_callback''',&lt;br /&gt;
&lt;br /&gt;
type,&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip)'''&lt;br /&gt;
| Type the code as seen here with the same syntax.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
| The first line will assign the user input from an '''Edit box''' to the variable '''ip.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight''','''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip) '''&lt;br /&gt;
| The next line will pass the value of variable '''ip''' to a '''Text box'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''.string''' after '''Edit''' and '''Text''' box '''handle'''.&lt;br /&gt;
|&lt;br /&gt;
'''GUI''' supports '''string''' format while taking and passing the values.&lt;br /&gt;
&lt;br /&gt;
Hence, I have added it after the '''Edit''' and '''Text''' box '''handle'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''string(ip)'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the variable '''‘ip’''' while passing the value back to the '''Text''' box handle.&lt;br /&gt;
&lt;br /&gt;
It is put within the parentheses of the '''string command.'''&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save the file by pressing '''Control''' and '''S''' key together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
Click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
| To execute, click on '''Execute''' on the top '''menubar''' and then on '''file with echo'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
This shows the '''GUI''' which we just created with the '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
Let us now test the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Delete '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
Type '''Welcome to Scilab!'''&lt;br /&gt;
|&lt;br /&gt;
Delete the '''string “Enter the input message”''' from the '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then type “'''Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Welcome to Scilab!'''”&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box displays the '''string “Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Delete '''Welcome to Scilab!'''&lt;br /&gt;
&lt;br /&gt;
Type 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us test this using numbers now.&lt;br /&gt;
&lt;br /&gt;
Delete the '''string “Welcome to Scilab!”''' from the '''Edit''' box and type '''258.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print Pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over number 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box shows the number '''258''' which we typed just now.&lt;br /&gt;
&lt;br /&gt;
Likewise, you can try some more inputs for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Added an '''Edit''' box to prompt for user input.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Added a '''Text''' box to display the output'''.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about the '''String command'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add one more '''pushbutton''' and '''Edit''' box to the current '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Type in the '''String''' fields of the two '''Edit''' boxes -&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''“Enter the input message 1”,'''and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''“Enter the input message 2”.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Name the '''String''' fields of the two '''pushbuttons''' as '''“Print 1”''' and '''“Print 2”.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Modify the '''callback function''' to get the output of both the '''Edit''' boxes in a single '''Text''' box.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| For any general or technical questions on '''Scilab''', visit the '''FOSSEE forum''' and post your question.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a FOSSEE intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</id>
		<title>GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English"/>
				<updated>2021-09-24T01:13:00Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Installation of '''GUI Builder Toolbox'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: GUI Builder Toolbox, Main categories - ATOMS, Tag, String, callback function, Pushbutton, static response.'''&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Installation of '''GUI Builder Toolbox''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Install '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;About '''GUIBuilder Palette.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Create a '''Graphical User Interface''' using '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add '''Tag''' and '''String''' for the object.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Generate a static response on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS''' and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is identical in '''Linux''' '''OS''' also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Installation Requirements'''&lt;br /&gt;
| For the installation of '''GUI Builder Toolbox''', a working Internet connection is required.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
|&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
&lt;br /&gt;
'''GUI Builder''' '''Toolbox''' in '''Scilab:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Is one of the ways to create a '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI''' is the abbreviation for '''Graphical User Interface.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
Advantages of using '''GUI Builder Toolbox'''&lt;br /&gt;
|&lt;br /&gt;
Now let us look at the advantages of the '''Toolbox'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The t'''oolbox''' auto-generates a '''Scilab''' code for a '''GUI''' with object handle properties.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;This allows the user to build the '''GUI''' with ease.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;In the absence of this '''toolbox,''' users must write code from scratch to build the '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Let’s first learn to '''install''' the '''GUI Builder toolbox. '''&lt;br /&gt;
&lt;br /&gt;
This can be done in a number of ways. We will look at one of them.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab console.'''&lt;br /&gt;
&lt;br /&gt;
Type '''atomsGui'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Open '''Scilab.'''&lt;br /&gt;
&lt;br /&gt;
In the '''Scilab console''' window, type '''atomsGui.'''&lt;br /&gt;
&lt;br /&gt;
The commands are case sensitive. Hence, please retain the '''syntax''' as shown here.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
|&lt;br /&gt;
The '''Main categories - ATOMS''' window opens.&lt;br /&gt;
&lt;br /&gt;
This window has two panels.&lt;br /&gt;
&lt;br /&gt;
The left panel displays a list of '''toolbox''' categories.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the blank right panel.&lt;br /&gt;
|&lt;br /&gt;
Notice that the right panel is blank since I have not '''installed''' the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
It will display the details of the '''toolbox''' after '''installation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Click once on the '''GUI.'''&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI''' seen on the left panel'''.'''&lt;br /&gt;
&lt;br /&gt;
This will show the list of '''toolboxes''' available in the '''GUI''' category.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Click once on '''GUI Builder''' .&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI Builder.'''&lt;br /&gt;
&lt;br /&gt;
This will show the details of this '''toolbox''' on the right side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories -'''&lt;br /&gt;
&lt;br /&gt;
'''ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Highlight the '''version.'''&lt;br /&gt;
|&lt;br /&gt;
Scroll up and notice the '''Version''' of the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
At the time of recording this video, the current version of the '''toolbox''' is '''4.2.1.'''&lt;br /&gt;
&lt;br /&gt;
It could be different when you are watching this tutorial at a later date.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window, Click '''Install.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Installation Done”''' message.&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Install''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
If successful, the '''Installation Done''' message appears at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
| Close and reopen '''Scilab'''.&lt;br /&gt;
|&lt;br /&gt;
After this, we need to restart '''Scilab''' for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
Let’s close and then reopen '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab''' '''console.'''&lt;br /&gt;
| Notice that the '''GUI Builder Toolbox''' gets loaded upon starting '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab''' '''console. '''&lt;br /&gt;
&lt;br /&gt;
Type '''guibuilder''' and&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now, type '''guibuilder''' in the '''Scilab console''', and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window and '''Graphic Window Number 1.'''&lt;br /&gt;
|&lt;br /&gt;
The '''GUIBuilder Palette''' window is located on the left side.&lt;br /&gt;
&lt;br /&gt;
The '''Graphic Window Number 1''' is located on the right side.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window, Hover cursor over the '''Pushbutton, Radiobutton, Checkbox, Edit, Text box''' .&lt;br /&gt;
|&lt;br /&gt;
Let us look at the '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
It has objects such as,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Pushbutton, '''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Radiobutton,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Checkbox,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;An '''Edit box,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Text box''', and many more.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''Left, Right, Up,''' and '''Down.'''&lt;br /&gt;
|&lt;br /&gt;
On the right, the direction keys '''Up, Down, Left,''' and '''Right''' are provided.&lt;br /&gt;
&lt;br /&gt;
They are used to shift the selected objects in the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''W-, W+.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''H-, H+.'''&lt;br /&gt;
|&lt;br /&gt;
Below the direction keys, notice '''W- (W minus)''' and '''W+ (W plus)''' keys.&lt;br /&gt;
&lt;br /&gt;
They enable the user to adjust the width of the selected object.&lt;br /&gt;
&lt;br /&gt;
'''H- (H minus)''' and '''H+ (H plus)''' are given to adjust the height of the selected object.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1.'''&lt;br /&gt;
| Objects are placed in '''Graphic window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on the '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Let us create a '''GUI''' by placing objects in '''Graphic Windows number 1'''.&lt;br /&gt;
&lt;br /&gt;
Go to the '''GUI Builder Palette''' and click on the '''Pushbutton'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Tag.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
Notice the '''Tag''' field. It is a unique identifier for each '''GUI''' object.&lt;br /&gt;
&lt;br /&gt;
It allows you to give a name to the object.&lt;br /&gt;
&lt;br /&gt;
A '''Tag''' can be a number or an alphabet or its combination.&lt;br /&gt;
&lt;br /&gt;
Users can assign any value as a '''Tag'''.&lt;br /&gt;
|-&lt;br /&gt;
| Type '''h1''' in the '''Tag''' field'''.'''&lt;br /&gt;
| I will type '''h1''' in the '''Tag''' field'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''String.'''&lt;br /&gt;
| Below '''Tag''', we see the '''String''' field.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
Type '''Print''' in the '''String''' field'''.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
The text in the '''String''' field is the display name for the object in the '''Graphic''' '''window.'''&lt;br /&gt;
&lt;br /&gt;
I will type '''Print''' in the '''String''' field and then, click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click once in the middle left side.&lt;br /&gt;
&lt;br /&gt;
Drag the cursor to draw a line box'''.'''&lt;br /&gt;
|&lt;br /&gt;
In the '''Graphic Window number 1,''' click once near the middle left side of the window.&lt;br /&gt;
&lt;br /&gt;
Then drag the mouse diagonally downwards to draw a rectangle.&lt;br /&gt;
&lt;br /&gt;
Notice a line box.&lt;br /&gt;
&lt;br /&gt;
The size of this can be varied by moving the cursor on the window.&lt;br /&gt;
|-&lt;br /&gt;
| Click again on the window.&lt;br /&gt;
| Click again on the '''Graphic Window''' to place the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Print pushbutton. '''&lt;br /&gt;
|&lt;br /&gt;
Notice that a '''pushbutton''' named '''Print''' appears on '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
The '''Graphical User Interface''' is now ready.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI code . '''&lt;br /&gt;
|&lt;br /&gt;
To generate the '''Scilab''' '''code,''' go to the '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Generate''' menu seen on the top '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''printpushbuttongui &amp;amp;gt;&amp;amp;gt;''' click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
| I will save this file as '''printpushbuttongui''' and click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A confirmation message is displayed which says, “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
Immediately, the corresponding '''Scilab file''' opens'''.'''&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', all the '''properties''' of the figure and '''object''' are provided.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight '''handles.h1,'''&lt;br /&gt;
&lt;br /&gt;
highlight the part inside '''uicontrol''' parentheses.&lt;br /&gt;
|&lt;br /&gt;
'''handles.h1''' is the '''handle''' for the '''pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Inside the '''uicontrol''' parentheses the properties of the '''pushbutton''' are given.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''h1_callback''' function.&lt;br /&gt;
|&lt;br /&gt;
The '''callback function h1_callback''' is defined at the bottom'''.'''&lt;br /&gt;
&lt;br /&gt;
Code written within this '''function''' will get executed on pressing the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window.&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''disp(“Hello World!”).'''&lt;br /&gt;
|&lt;br /&gt;
Let us now write a code within '''h1_callback'''.&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
This '''command''' will display “'''Hello World!”''' on the '''Scilab console''' when executed.&lt;br /&gt;
&lt;br /&gt;
The '''program''' is now complete.&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save it by pressing the '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute.'''&lt;br /&gt;
| Click on '''Execute''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
| Click on '''File with echo'''&lt;br /&gt;
| Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
The '''pushbutton''' named '''Print''' appears in the graphic window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Print.'''&lt;br /&gt;
|&lt;br /&gt;
Next, let us test our '''GUI.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The code gets executed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the message '''Hello World!'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''Scilab Console''' to see the output.&lt;br /&gt;
&lt;br /&gt;
The '''console''' shows the message “'''Hello World!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print pushbutton''' three times'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now again click the '''Print pushbutton''' three times.&lt;br /&gt;
&lt;br /&gt;
Notice that on the '''Scilab Console,''' the static response is generated three times.&lt;br /&gt;
&lt;br /&gt;
So, for each click on the '''pushbutton,''' a static response is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Installed the '''GUI Builder''' '''Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about the '''GUIBuilder Palette.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Created a '''Graphical User Interface''' using '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about '''Tag''' and '''String''' for the object.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Generated a static response on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Add one more '''pushbutton''' to the current '''GUI''' as described below,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add '''String''' name as ''''Press here'''' for the '''Pushbutton'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Write a '''callback function''' to display the message ''''Good day!'''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| The '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-09-23T10:19:58Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Building '''GUI''' to graph a Linear Equation&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes,''' plot the response of a '''Linear Equation, strtod''' command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a Linear Equation’ in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
&lt;br /&gt;
*How to plot the linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
*'''Windows 10''' '''OS'''&lt;br /&gt;
*'''Scilab 6.1.0'''&lt;br /&gt;
*'''GUI Builder Toolbox 4.2.1'''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
*The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox'''.&lt;br /&gt;
&lt;br /&gt;
*For pre-requisite '''Scilab''' tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
*The files used in this tutorial are provided in the '''Code files''' link.&lt;br /&gt;
*Please download and extract the files.&lt;br /&gt;
*Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
*The linear equation of a line has the general form of Ax + By = C&lt;br /&gt;
*It’s '''slope intercept''' form is y = mx + c'''.''' Where,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m is slope and&lt;br /&gt;
&lt;br /&gt;
c is '''y-intercept'''.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
*After comparing these two forms we get,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will use these two equations to plot a graph of a Linear Equation of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
'''Axes''' is a '''GUI''' object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing Linear equation&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
&lt;br /&gt;
*Three '''Edit''' boxes to take user input for '''A, B''' and '''C'''.&lt;br /&gt;
*Two '''Text''' boxes to display the answer of slope and '''y-intercept'''.&lt;br /&gt;
*One '''Pushbutton''' to calculate and plot.&lt;br /&gt;
*One '''Axes''' for displaying the graph.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
| I have already opened the '''linearequation.sce''' file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
It opens the '''GUI''' with the three '''Edit''' boxes''',''' a '''Pushbutton''' and two '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Edit''' box has the '''string''' '''“Enter the value of A”''' with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Edit''' box has the '''string''' '''“Enter the value of B”''' with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
| The third '''Edit''' box has the '''string''' '''“Enter the value of C”''' with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Text''' box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Text''' box has the '''string “UnName5”''' with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with '''String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present.&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot''' as '''tag''' and '''Plot''' as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot''' as '''Tag,'''&lt;br /&gt;
&lt;br /&gt;
type '''Plot''' as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot''' as '''Tag,''' and '''Plot''' as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes''' in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code''' has been generated.&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', notice the '''handles''' of the seven&lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A''' is the '''handle''' for taking user input for '''A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B''' is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C''' is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope''' is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int''' is the '''handle''' for displaying the '''y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot''' is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot''' is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback''' function.&lt;br /&gt;
| Now let us write a '''function''' definition for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same syntax.&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit''' boxes.&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the slope and '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables '''slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
| At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle''' command, we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid''' command is used'''.'''&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To run the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over slope and '''y''' intercept Text boxes.&lt;br /&gt;
| These are the slope and '''y''' intercept values for the linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it.&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
*How to plot a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI''' to,&lt;br /&gt;
&lt;br /&gt;
*Plot an equation of y = e^(Ax).&lt;br /&gt;
*Take '''‘A’''' as '''input''' from the user.&lt;br /&gt;
*Consider, x varies from 0 to 2*pi.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-09-23T10:19:29Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Building '''GUI''' to graph a Linear Equation&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes,''' plot the response of a '''Linear Equation, strtod''' command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a Linear Equation’ in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
&lt;br /&gt;
*How to plot the linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
*'''Windows 10''' '''OS'''&lt;br /&gt;
*'''Scilab 6.1.0'''&lt;br /&gt;
*'''GUI Builder Toolbox 4.2.1'''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
*The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox'''.&lt;br /&gt;
&lt;br /&gt;
*For pre-requisite '''Scilab''' tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
*The files used in this tutorial are provided in the '''Code files''' link.&lt;br /&gt;
*Please download and extract the files.&lt;br /&gt;
*Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
*The linear equation of a line has the general form of Ax + By = C&lt;br /&gt;
*It’s '''slope intercept''' form is y = mx + c'''.''' Where,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m is slope and&lt;br /&gt;
&lt;br /&gt;
c is '''y-intercept'''.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
*After comparing these two forms we get,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will use these two equations to plot a graph of a Linear Equation of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
'''Axes''' is a '''GUI''' object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing Linear equation&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
&lt;br /&gt;
*Three '''Edit''' boxes to take user input for '''A, B''' and '''C'''.&lt;br /&gt;
*Two '''Text''' boxes to display the answer of slope and '''y-intercept'''.&lt;br /&gt;
*One '''Pushbutton''' to calculate and plot.&lt;br /&gt;
*One '''Axes''' for displaying the graph.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
| I have already opened the '''linearequation.sce''' file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
It opens the '''GUI''' with the three '''Edit''' boxes''',''' a '''Pushbutton''' and two '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Edit''' box has the '''string''' '''“Enter the value of A”''' with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Edit''' box has the '''string''' '''“Enter the value of B”''' with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
| The third '''Edit''' box has the '''string''' '''“Enter the value of C”''' with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Text''' box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Text''' box has the '''string “UnName5”''' with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with '''String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present.&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot''' as '''tag''' and '''Plot''' as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot''' as '''Tag,'''&lt;br /&gt;
&lt;br /&gt;
type '''Plot''' as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot''' as '''Tag,''' and '''Plot''' as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes''' in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code''' has been generated.&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', notice the '''handles''' of the seven&lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A''' is the '''handle''' for taking user input for '''A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B''' is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C''' is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope''' is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int''' is the '''handle''' for displaying the '''y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot''' is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot''' is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback''' function.&lt;br /&gt;
| Now let us write a '''function''' definition for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same syntax.&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit''' boxes.&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the slope and '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables '''slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
| At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle''' command, we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid''' command is used'''.'''&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To run the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over slope and '''y''' intercept Text boxes.&lt;br /&gt;
| These are the slope and '''y''' intercept values for the linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it.&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
*How to plot a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI''' to,&lt;br /&gt;
&lt;br /&gt;
*Plot an equation of y = e^(Ax).&lt;br /&gt;
*Take '''‘A’''' as '''input''' from the user.&lt;br /&gt;
*Consider, x varies from 0 to 2*pi.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-09-23T10:18:50Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Building '''GUI''' to graph a Linear Equation&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes,''' plot the response of a '''Linear Equation, strtod''' command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a Linear Equation’ in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
&lt;br /&gt;
*How to plot the linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
*'''Windows 10''' '''OS'''&lt;br /&gt;
*'''Scilab 6.1.0'''&lt;br /&gt;
*'''GUI Builder Toolbox 4.2.1'''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
*The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox'''.&lt;br /&gt;
&lt;br /&gt;
*For pre-requisite '''Scilab''' tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
*The files used in this tutorial are provided in the '''Code files''' link.&lt;br /&gt;
*Please download and extract the files.&lt;br /&gt;
*Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
*The linear equation of a line has the general form of Ax + By = C&lt;br /&gt;
*It’s '''slope intercept''' form is y = mx + c'''.''' Where,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m is slope and&lt;br /&gt;
&lt;br /&gt;
c is '''y-intercept'''.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
*After comparing these two forms we get,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will use these two equations to plot a graph of a Linear Equation of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
'''Axes''' is a '''GUI''' object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing Linear equation&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
&lt;br /&gt;
*Three '''Edit''' boxes to take user input for '''A, B''' and '''C'''.&lt;br /&gt;
*Two '''Text''' boxes to display the answer of slope and '''y-intercept'''.&lt;br /&gt;
*One '''Pushbutton''' to calculate and plot.&lt;br /&gt;
*One '''Axes''' for displaying the graph.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
| I have already opened the '''linearequation.sce''' file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
over cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
It opens the '''GUI''' with the three '''Edit''' boxes''',''' a '''Pushbutton''' and two '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Edit''' box has the '''string''' '''“Enter the value of A”''' with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Edit''' box has the '''string''' '''“Enter the value of B”''' with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
| The third '''Edit''' box has the '''string''' '''“Enter the value of C”''' with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Text''' box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Text''' box has the '''string “UnName5”''' with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with '''String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present.&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot''' as '''tag''' and '''Plot''' as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot''' as '''Tag,'''&lt;br /&gt;
&lt;br /&gt;
type '''Plot''' as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot''' as '''Tag,''' and '''Plot''' as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes''' in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code''' has been generated.&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', notice the '''handles''' of the seven&lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A''' is the '''handle''' for taking user input for '''A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B''' is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C''' is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope''' is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int''' is the '''handle''' for displaying the '''y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot''' is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot''' is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback''' function.&lt;br /&gt;
| Now let us write a '''function''' definition for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same syntax.&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit''' boxes.&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the slope and '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables '''slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
| At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle''' command, we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid''' command is used'''.'''&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To run the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over slope and '''y''' intercept Text boxes.&lt;br /&gt;
| These are the slope and '''y''' intercept values for the linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it.&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
*How to plot a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI''' to,&lt;br /&gt;
&lt;br /&gt;
*Plot an equation of y = e^(Ax).&lt;br /&gt;
*Take '''‘A’''' as '''input''' from the user.&lt;br /&gt;
*Consider, x varies from 0 to 2*pi.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-09-23T10:16:15Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Building '''GUI''' to graph a Linear Equation&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes,''' plot the response of a '''Linear Equation, strtod''' command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a Linear Equation’ in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
&lt;br /&gt;
*How to plot the linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
*'''Windows 10''' '''OS'''&lt;br /&gt;
*'''Scilab 6.1.0'''&lt;br /&gt;
*'''GUI Builder Toolbox 4.2.1'''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
*The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox'''.&lt;br /&gt;
&lt;br /&gt;
*For pre-requisite '''Scilab''' tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
*The files used in this tutorial are provided in the '''Code files''' link.&lt;br /&gt;
*Please download and extract the files.&lt;br /&gt;
*Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the Linear Equation of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
*The linear equation of a line has the general form of Ax + By = C&lt;br /&gt;
*It’s '''slope intercept''' form is y = mx + c'''.''' Where,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m is slope and&lt;br /&gt;
&lt;br /&gt;
c is '''y-intercept'''.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
*After comparing these two forms we get,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will use these two equations to plot a graph of a Linear Equation of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
'''Axes''' is a '''GUI''' object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing Linear equation&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
&lt;br /&gt;
*Three '''Edit''' boxes to take user input for '''A, B''' and '''C'''.&lt;br /&gt;
*Two '''Text''' boxes to display the answer of slope and '''y-intercept'''.&lt;br /&gt;
*One '''Pushbutton''' to calculate and plot.&lt;br /&gt;
*One '''Axes''' for displaying the graph.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
| I have already opened the '''linearequation.sce''' file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
over cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
It opens the '''GUI''' with the three '''Edit''' boxes''',''' a '''Pushbutton''' and two '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Edit''' box has the '''string''' '''“Enter the value of A”''' with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Edit''' box has the '''string''' '''“Enter the value of B”''' with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
| The third '''Edit''' box has the '''string''' '''“Enter the value of C”''' with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Text''' box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Text''' box has the '''string “UnName5”''' with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with '''String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present.&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot''' as '''tag''' and '''Plot''' as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot''' as '''Tag,'''&lt;br /&gt;
&lt;br /&gt;
type '''Plot''' as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot''' as '''Tag,''' and '''Plot''' as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes''' in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code''' has been generated.&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', notice the '''handles''' of the seven&lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A''' is the '''handle''' for taking user input for '''A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B''' is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C''' is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope''' is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int''' is the '''handle''' for displaying the '''y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot''' is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot''' is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback''' function.&lt;br /&gt;
| Now let us write a '''function definition''' for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same '''syntax'''.&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit''' boxes.&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the slope and '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables '''slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
| At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle command''', we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid command''' is used'''.'''&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To '''run''' the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over slope and '''y''' intercept Text boxes.&lt;br /&gt;
| These are the slope and '''y''' intercept values for the linear equation.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it.&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we have learnt:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
*How to plot a linear equation of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI''' to,&lt;br /&gt;
&lt;br /&gt;
*Plot an equation of y = e^(Ax).&lt;br /&gt;
*Take '''‘A’''' as '''input''' from the user.&lt;br /&gt;
*Consider, x varies from 0 to 2*pi.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-09-23T10:11:28Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Building '''GUI''' to graph a '''Linear Equation'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes,''' plot the response of a '''Linear Equation, strtod''' command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a '''Linear Equation’''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
&lt;br /&gt;
*How to plot the '''linear equation''' of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
*'''Windows 10''' '''OS'''&lt;br /&gt;
*'''Scilab 6.1.0'''&lt;br /&gt;
*'''GUI Builder Toolbox 4.2.1'''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
*The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox'''.&lt;br /&gt;
&lt;br /&gt;
*For pre-requisite '''Scilab''' tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
*The files used in this tutorial are provided in the '''Code files''' link.&lt;br /&gt;
*Please download and extract the files.&lt;br /&gt;
*Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the '''Linear Equation''' of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the '''Linear Equation''' of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
*The '''linear equation''' of a line has the general form of Ax + By = C&lt;br /&gt;
*It’s '''slope intercept''' form is y = mx + c'''.''' Where,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m is '''slope''' and&lt;br /&gt;
&lt;br /&gt;
c is '''y-intercept'''.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
*After comparing these two forms we get,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will use these two equations to plot a graph of a '''Linear Equation''' of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
'''Axes''' is a '''GUI''' object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing '''Linear equation'''&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
&lt;br /&gt;
*Three '''Edit''' boxes to take user input for '''A, B''' and '''C'''.&lt;br /&gt;
*Two '''Text''' boxes to display the answer of '''slope''' and '''y-intercept'''.&lt;br /&gt;
*One '''Pushbutton''' to calculate and plot.&lt;br /&gt;
*One '''Axes''' for displaying the graph.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
| I have already opened the '''linearequation.sce''' file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
over cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
It opens the '''GUI''' with the three '''Edit''' boxes''',''' a '''Pushbutton''' and two '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Edit''' box has the '''string''' '''“Enter the value of A”''' with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Edit''' box has the '''string''' '''“Enter the value of B”''' with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
| The third '''Edit''' box has the '''string''' '''“Enter the value of C”''' with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
| The first '''Text''' box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
| The second '''Text''' box has the '''string “UnName5”''' with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with '''String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present.&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot''' as '''tag''' and '''Plot''' as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a '''linear equation. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot''' as '''Tag,'''&lt;br /&gt;
&lt;br /&gt;
type '''Plot''' as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot''' as '''Tag,''' and '''Plot''' as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes''' in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code''' has been generated.&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', notice the '''handles''' of the seven&lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A''' is the '''handle''' for taking user input for '''A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B''' is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C''' is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope''' is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int''' is the '''handle''' for displaying the '''y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot''' is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot''' is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback''' function.&lt;br /&gt;
| Now let us write a '''function definition''' for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same '''syntax'''.&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit''' boxes.&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the '''slope''' and '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables '''slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
| At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle command''', we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid command''' is used'''.'''&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To '''run''' the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''slope''' and '''y intercept''' Text boxes.&lt;br /&gt;
| These are the '''slope''' and '''y intercept''' values for the '''linear equation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it.&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a '''linear equation''' of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we have learnt:&lt;br /&gt;
&lt;br /&gt;
*About the '''Axes'''.&lt;br /&gt;
*How to plot a '''linear equation''' of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI''' to,&lt;br /&gt;
&lt;br /&gt;
*Plot an equation of y = e^(Ax).&lt;br /&gt;
*Take '''‘A’''' as '''input''' from the user.&lt;br /&gt;
*Consider, x varies from 0 to 2*pi.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</id>
		<title>GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English"/>
				<updated>2021-09-23T10:02:41Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Creating a '''GUI''' to Print the User Input&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Edit''' box, '''Text''' box, '''.string''' command, Creating a '''GUI,''' Print the User Input, '''GUI Builder Toolbox, Tag, String, callback function, Pushbutton'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Creating a '''GUI''' to Print User Input in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add an '''Edit''' box to '''prompt''' for user input.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add a '''Text''' box to display the output.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We’ll also learn about the '''string command'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI Builder Toolbox 4.2.1'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in Linux OS also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://www.spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The files used in this tutorial are provided in the '''Code files''' link.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Please download and extract the files.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Make a copy and then use them while practising.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
|&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box is an editable '''string''' which takes input from a user.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
|&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
&lt;br /&gt;
A '''Text''' box is a non-editable '''string''' used to display text or numbers.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Scilab Console Window.'''&lt;br /&gt;
|&lt;br /&gt;
Let us switch to the '''Scilab console''' window.&lt;br /&gt;
&lt;br /&gt;
Notice that I already have the '''GUI Builder Toolbox''' loaded in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console Window,'''&lt;br /&gt;
&lt;br /&gt;
type '''guibuilder,''' press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now type '''guibuilder''' and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',&lt;br /&gt;
&lt;br /&gt;
click on '''Open.'''&lt;br /&gt;
| On the '''GUIBuilder Palette,''' click on '''Open''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Open an existing GUI''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
|&lt;br /&gt;
A prompt named '''Open an existing GUI''' appears.&lt;br /&gt;
&lt;br /&gt;
Click on '''Yes''' to proceed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uigetfile''' window,&lt;br /&gt;
&lt;br /&gt;
locate '''printpushbutton.sce.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|&lt;br /&gt;
This opens another window named '''uigetfile'''.&lt;br /&gt;
&lt;br /&gt;
Locate the file '''printpushbutton.sce''' and click on it.&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1'''.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 1''' opens.&lt;br /&gt;
&lt;br /&gt;
It shows the '''GUI''' with a '''pushbutton''' named '''Print'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Let us add an '''Edit''' box and a '''Text''' box in this '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',&lt;br /&gt;
&lt;br /&gt;
click on '''Edit.'''&lt;br /&gt;
| Go to '''GUI Builder Palette''' and click on '''Edit.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ed_input, '''&lt;br /&gt;
&lt;br /&gt;
type '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
Click '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A dialog box named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
Type ‘'''ed_input’''' as '''Tag''' and ‘'''Enter the input message’''' as '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''OK''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Edit''' box in the top left side.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over an '''Edit''' Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
Switch to '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
Place the '''Edit''' box above the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box with the '''string “Enter the input message”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' ,&lt;br /&gt;
&lt;br /&gt;
click on '''Text.'''&lt;br /&gt;
|&lt;br /&gt;
Now, let us take a '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
On '''GUI Builder Palette''', click on '''Text'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''txt_output.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''txt_output''' for '''Tag''' field'''.'''&lt;br /&gt;
&lt;br /&gt;
Do not type anything in the '''String''' field.&lt;br /&gt;
&lt;br /&gt;
We will not display any messages until we receive an input from the user.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Text''' box in the bottom center.&lt;br /&gt;
|&lt;br /&gt;
We’ll place this just below the '''Print''' '''pushbutton''' in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
Click and place the '''Text''' box below the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
A '''Text''' box with the '''string “UnName3”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Text''' Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
A default '''string''' value “'''UnName3”''' is assigned to the '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
This is because the '''String''' field was kept empty.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the interface.&lt;br /&gt;
|&lt;br /&gt;
Now the '''GUI''' part is completed.&lt;br /&gt;
&lt;br /&gt;
Let us proceed to generate an equivalent '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate,''' and then click on '''Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''GUIBuilder Palette'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' on the top '''menubar''' and then on the '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uiputfile''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
We will save this file as '''printuserinput.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Save''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays GUI '''created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window,&lt;br /&gt;
| The corresponding '''sce file''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
highlight line with '''handles.ed_input.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
Notice the '''handle''' for the '''Edit''' box is '''handles.ed_input'''.&lt;br /&gt;
&lt;br /&gt;
The properties of the '''Edit''' box are defined in its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight '''handles.txt_output.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
The '''handle''' for the '''Text''' box is '''handles.txt_output'''.&lt;br /&gt;
&lt;br /&gt;
Its properties are defined within its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Scroll down to the end.&lt;br /&gt;
&lt;br /&gt;
Place the cursor within the '''h1_callback function.'''&lt;br /&gt;
|&lt;br /&gt;
Now, scroll down to the end of the code file.&lt;br /&gt;
&lt;br /&gt;
Let us make the '''pushbutton''' interactive.&lt;br /&gt;
&lt;br /&gt;
For that, we will write the '''code''' within the '''h1_callback function.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
within '''h1_callback''',&lt;br /&gt;
&lt;br /&gt;
type,&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip)'''&lt;br /&gt;
| Type the code as seen here with the same syntax.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
| The first line will assign the user input from an '''Edit box''' to the variable '''ip.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight''','''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip) '''&lt;br /&gt;
| The next line will pass the value of variable '''ip''' to a '''Text box'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''.string''' after '''Edit''' and '''Text''' box '''handle'''.&lt;br /&gt;
|&lt;br /&gt;
'''GUI''' supports '''string''' format while taking and passing the values.&lt;br /&gt;
&lt;br /&gt;
Hence, I have added it after the '''Edit''' and '''Text''' box '''handle'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''string(ip)'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the variable '''‘ip’''' while passing the value back to the '''Text''' box handle.&lt;br /&gt;
&lt;br /&gt;
It is put within the parentheses of the '''string command.'''&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save the file by pressing '''Control''' and '''S''' key together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
Click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
| To execute, click on '''Execute''' on the top '''menubar''' and then on '''file with echo'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
This shows the '''GUI''' which we just created with the '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
Let us now test the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Delete '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
Type '''Welcome to Scilab!'''&lt;br /&gt;
|&lt;br /&gt;
Delete the '''string “Enter the input message”''' from the '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then type “'''Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Welcome to Scilab!'''”&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box displays the '''string “Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Delete '''Welcome to Scilab!'''&lt;br /&gt;
&lt;br /&gt;
Type 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us test this using numbers now.&lt;br /&gt;
&lt;br /&gt;
Delete the '''string “Welcome to Scilab!”''' from the '''Edit''' box and type '''258.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print Pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over number 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box shows the number '''258''' which we typed just now.&lt;br /&gt;
&lt;br /&gt;
Likewise, you can try some more inputs for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Added an '''Edit''' box to '''prompt''' for user input.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Added a '''Text''' box to display the output'''.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about the '''String command'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add one more '''pushbutton''' and '''Edit''' box to the current '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Type in the '''String''' fields of the two '''Edit''' boxes -&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''“Enter the input message 1”,'''and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''“Enter the input message 2”.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Name the '''String''' fields of the two '''pushbuttons''' as '''“Print 1”''' and '''“Print 2”.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Modify the '''callback function''' to get the output of both the '''Edit''' boxes in a single '''Text''' box.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| For any general or technical questions on '''Scilab''', visit the '''FOSSEE forum''' and post your question.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a FOSSEE intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</id>
		<title>GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English"/>
				<updated>2021-09-23T09:58:28Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Creating a '''GUI''' to Print the User Input&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Edit''' box, '''Text''' box, '''.string''' command, Creating a '''GUI,''' Print the User Input, '''GUI Builder Toolbox, Tag, String, callback function, Pushbutton'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Creating a '''GUI''' to Print User Input in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add an '''Edit''' box to '''prompt''' for user input.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add a '''Text''' box to display the output.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We’ll also learn about the '''string command'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI Builder Toolbox 4.2.1'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in Linux OS also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://www.spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The files used in this tutorial are provided in the '''Code files''' link.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Please download and extract the files.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Make a copy and then use them while practising.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
|&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box is an editable '''string''' which takes input from a user.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
|&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
&lt;br /&gt;
A '''Text''' box is a non-editable '''string''' used to display text or numbers.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Scilab Console Window.'''&lt;br /&gt;
|&lt;br /&gt;
Let us switch to the '''Scilab console''' window.&lt;br /&gt;
&lt;br /&gt;
Notice that I already have the '''GUI Builder Toolbox''' loaded in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console Window,'''&lt;br /&gt;
&lt;br /&gt;
type '''guibuilder,''' press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now type '''guibuilder''' and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',&lt;br /&gt;
&lt;br /&gt;
click on '''Open.'''&lt;br /&gt;
| On the '''GUIBuilder Palette,''' click on '''Open''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Open an existing GUI''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
|&lt;br /&gt;
A prompt named '''Open an existing GUI''' appears.&lt;br /&gt;
&lt;br /&gt;
Click on '''Yes''' to proceed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uigetfile''' window,&lt;br /&gt;
&lt;br /&gt;
locate '''printpushbutton.sce.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|&lt;br /&gt;
This opens another window named '''uigetfile'''.&lt;br /&gt;
&lt;br /&gt;
Locate the file '''printpushbutton.sce''' and click on it.&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1'''.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 1''' opens.&lt;br /&gt;
&lt;br /&gt;
It shows the '''GUI''' with a '''pushbutton''' named '''Print'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Let us add an '''Edit''' box and a '''Text''' box in this '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',&lt;br /&gt;
&lt;br /&gt;
click on '''Edit.'''&lt;br /&gt;
| Go to '''GUI Builder Palette''' and click on '''Edit.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ed_input, '''&lt;br /&gt;
&lt;br /&gt;
type '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
Click '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A dialog box named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
Type ‘'''ed_input’''' as '''Tag''' and ‘'''Enter the input message’''' as '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''OK''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Edit''' box in the top left side.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over an '''Edit''' Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
Switch to '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
Place the '''Edit''' box above the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box with the '''string “Enter the input message”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' ,&lt;br /&gt;
&lt;br /&gt;
click on '''Text.'''&lt;br /&gt;
|&lt;br /&gt;
Now, let us take a '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
On '''GUI Builder Palette''', click on '''Text'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''txt_output.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''txt_output''' for '''Tag''' field'''.'''&lt;br /&gt;
&lt;br /&gt;
Do not type anything in the '''String''' field.&lt;br /&gt;
&lt;br /&gt;
We will not display any messages until we receive an input from the user.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Text''' box in the bottom center.&lt;br /&gt;
|&lt;br /&gt;
We’ll place this just below the '''Print''' '''pushbutton''' in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
Click and place the '''Text''' box below the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
A '''Text''' box with the '''string “UnName3”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Text''' Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
A default '''string''' value “'''UnName3”''' is assigned to the '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
This is because the '''String''' field was kept empty.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the interface.&lt;br /&gt;
|&lt;br /&gt;
Now the '''GUI''' part is completed.&lt;br /&gt;
&lt;br /&gt;
Let us proceed to generate an equivalent '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate,''' and then click on '''Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''GUIBuilder Palette'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' on the top '''menubar''' and then on the '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uiputfile''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
|&lt;br /&gt;
We will save this file as '''printuserinput.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Save''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays GUI '''created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window,&lt;br /&gt;
| The corresponding '''sce file''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
highlight line with '''handles.ed_input.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
Notice the '''handle''' for the '''Edit''' box is '''handles.ed_input'''.&lt;br /&gt;
&lt;br /&gt;
The properties of the '''Edit''' box are defined in its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight '''handles.txt_output.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
The '''handle''' for the '''Text''' box is '''handles.txt_output'''.&lt;br /&gt;
&lt;br /&gt;
Its properties are defined within its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Scroll down to the end.&lt;br /&gt;
&lt;br /&gt;
Place the cursor within the '''h1_callback function.'''&lt;br /&gt;
|&lt;br /&gt;
Now, scroll down to the end of the code file.&lt;br /&gt;
&lt;br /&gt;
Let us make the '''pushbutton''' interactive.&lt;br /&gt;
&lt;br /&gt;
For that, we will write the '''code''' within the '''h1_callback function.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
within '''h1_callback''',&lt;br /&gt;
&lt;br /&gt;
type,&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip)'''&lt;br /&gt;
| Type the code as seen here with the same '''syntax'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
| The first line will '''assign''' the user input from an '''Edit box''' to the '''variable ip.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight''','''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip) '''&lt;br /&gt;
| The next line will '''pass''' the value of '''variable ip''' to a '''Text box'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''.string''' after '''Edit''' and '''Text''' box '''handle'''.&lt;br /&gt;
|&lt;br /&gt;
'''GUI''' supports '''string''' format while taking and '''passing''' the values.&lt;br /&gt;
&lt;br /&gt;
Hence, I have added it after the '''Edit''' and '''Text''' box '''handle'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''string(ip)'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''variable ‘ip’''' while passing the value back to the '''Text''' box handle.&lt;br /&gt;
&lt;br /&gt;
It is put within the parentheses of the '''string command.'''&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save the file by pressing '''Control''' and '''S''' key together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
Click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
| To execute, click on '''Execute''' on the top '''menubar''' and then on '''file with echo'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
This shows the '''GUI''' which we just created with the '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
Let us now test the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Delete '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
Type '''Welcome to Scilab!'''&lt;br /&gt;
|&lt;br /&gt;
Delete the '''string “Enter the input message”''' from the '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then type “'''Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Welcome to Scilab!'''”&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box displays the '''string “Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Delete '''Welcome to Scilab!'''&lt;br /&gt;
&lt;br /&gt;
Type 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us test this using numbers now.&lt;br /&gt;
&lt;br /&gt;
Delete the '''string “Welcome to Scilab!”''' from the '''Edit''' box and type '''258.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print Pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over number 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box shows the number '''258''' which we typed just now.&lt;br /&gt;
&lt;br /&gt;
Likewise, you can try some more inputs for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Added an '''Edit''' box to '''prompt''' for user input.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Added a '''Text''' box to display the output'''.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about the '''String command'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add one more '''pushbutton''' and '''Edit''' box to the current '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Type in the '''String''' fields of the two '''Edit''' boxes -&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''“Enter the input message 1”,'''and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''“Enter the input message 2”.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Name the '''String''' fields of the two '''pushbuttons''' as '''“Print 1”''' and '''“Print 2”.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Modify the '''callback function''' to get the output of both the '''Edit''' boxes in a single '''Text''' box.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| For any general or technical questions on '''Scilab''', visit the '''FOSSEE forum''' and post your question.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a FOSSEE intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</id>
		<title>GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English"/>
				<updated>2021-09-23T09:57:27Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Creating a '''GUI''' to Print the User Input&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Edit''' box, '''Text''' box, '''.string''' command, Creating a '''GUI,''' Print the User Input, '''GUI Builder Toolbox, Tag, String, callback function, Pushbutton'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Creating a '''GUI''' to Print User Input in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add an '''Edit''' box to '''prompt''' for user input.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add a '''Text''' box to display the output.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We’ll also learn about the '''string command'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI Builder Toolbox 4.2.1'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in Linux OS also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://www.spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The files used in this tutorial are provided in the '''Code files''' link.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Please download and extract the files.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Make a copy and then use them while practising.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
|&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box is an editable '''string''' which takes input from a user.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
|&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
&lt;br /&gt;
A '''Text''' box is a non-editable '''string''' used to display text or numbers.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Scilab Console Window.'''&lt;br /&gt;
|&lt;br /&gt;
Let us switch to the '''Scilab console''' window.&lt;br /&gt;
&lt;br /&gt;
Notice that I already have the '''GUI Builder Toolbox''' loaded in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console Window,'''&lt;br /&gt;
&lt;br /&gt;
type '''guibuilder,''' press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now type '''guibuilder''' and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',&lt;br /&gt;
&lt;br /&gt;
click on '''Open.'''&lt;br /&gt;
| On the '''GUIBuilder Palette,''' click on '''Open''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Open an existing GUI''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
|&lt;br /&gt;
A '''prompt''' named '''Open an existing GUI''' appears.&lt;br /&gt;
&lt;br /&gt;
Click on '''Yes''' to proceed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uigetfile''' window,&lt;br /&gt;
&lt;br /&gt;
locate '''printpushbutton.sce.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|&lt;br /&gt;
This opens another window named '''uigetfile'''.&lt;br /&gt;
&lt;br /&gt;
Locate the file '''printpushbutton.sce''' and click on it.&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1'''.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 1''' opens.&lt;br /&gt;
&lt;br /&gt;
It shows the '''GUI''' with a '''pushbutton''' named '''Print'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Let us add an '''Edit''' box and a '''Text''' box in this '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',&lt;br /&gt;
&lt;br /&gt;
click on '''Edit.'''&lt;br /&gt;
| Go to '''GUI Builder Palette''' and click on '''Edit.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ed_input, '''&lt;br /&gt;
&lt;br /&gt;
type '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
Click '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A dialog box named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
Type ‘'''ed_input’''' as '''Tag''' and ‘'''Enter the input message’''' as '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''OK''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Edit''' box in the top left side.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over an '''Edit''' Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
Switch to '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
Place the '''Edit''' box above the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box with the '''string “Enter the input message”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' ,&lt;br /&gt;
&lt;br /&gt;
click on '''Text.'''&lt;br /&gt;
|&lt;br /&gt;
Now, let us take a '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
On '''GUI Builder Palette''', click on '''Text'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''txt_output.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''txt_output''' for '''Tag''' field'''.'''&lt;br /&gt;
&lt;br /&gt;
Do not type anything in the '''String''' field.&lt;br /&gt;
&lt;br /&gt;
We will not display any messages until we receive an input from the user.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Text''' box in the bottom center.&lt;br /&gt;
|&lt;br /&gt;
We’ll place this just below the '''Print''' '''pushbutton''' in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
Click and place the '''Text''' box below the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
A '''Text''' box with the '''string “UnName3”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Text''' Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
A default '''string''' value “'''UnName3”''' is assigned to the '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
This is because the '''String''' field was kept empty.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the interface.&lt;br /&gt;
|&lt;br /&gt;
Now the '''GUI''' part is completed.&lt;br /&gt;
&lt;br /&gt;
Let us proceed to generate an equivalent '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate,''' and then click on '''Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''GUIBuilder Palette'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' on the top '''menubar''' and then on the '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uiputfile''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
|&lt;br /&gt;
We will save this file as '''printuserinput.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Save''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays GUI '''created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window,&lt;br /&gt;
| The corresponding '''sce file''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
highlight line with '''handles.ed_input.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
Notice the '''handle''' for the '''Edit''' box is '''handles.ed_input'''.&lt;br /&gt;
&lt;br /&gt;
The properties of the '''Edit''' box are defined in its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight '''handles.txt_output.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
The '''handle''' for the '''Text''' box is '''handles.txt_output'''.&lt;br /&gt;
&lt;br /&gt;
Its properties are defined within its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Scroll down to the end.&lt;br /&gt;
&lt;br /&gt;
Place the cursor within the '''h1_callback function.'''&lt;br /&gt;
|&lt;br /&gt;
Now, scroll down to the end of the code file.&lt;br /&gt;
&lt;br /&gt;
Let us make the '''pushbutton''' interactive.&lt;br /&gt;
&lt;br /&gt;
For that, we will write the '''code''' within the '''h1_callback function.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
within '''h1_callback''',&lt;br /&gt;
&lt;br /&gt;
type,&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip)'''&lt;br /&gt;
| Type the code as seen here with the same '''syntax'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
| The first line will '''assign''' the user input from an '''Edit box''' to the '''variable ip.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight''','''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip) '''&lt;br /&gt;
| The next line will '''pass''' the value of '''variable ip''' to a '''Text box'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''.string''' after '''Edit''' and '''Text''' box '''handle'''.&lt;br /&gt;
|&lt;br /&gt;
'''GUI''' supports '''string''' format while taking and '''passing''' the values.&lt;br /&gt;
&lt;br /&gt;
Hence, I have added it after the '''Edit''' and '''Text''' box '''handle'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''string(ip)'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''variable ‘ip’''' while passing the value back to the '''Text''' box handle.&lt;br /&gt;
&lt;br /&gt;
It is put within the parentheses of the '''string command.'''&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save the file by pressing '''Control''' and '''S''' key together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
Click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
| To execute, click on '''Execute''' on the top '''menubar''' and then on '''file with echo'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
This shows the '''GUI''' which we just created with the '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
Let us now test the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Delete '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
Type '''Welcome to Scilab!'''&lt;br /&gt;
|&lt;br /&gt;
Delete the '''string “Enter the input message”''' from the '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then type “'''Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Welcome to Scilab!'''”&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box displays the '''string “Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Delete '''Welcome to Scilab!'''&lt;br /&gt;
&lt;br /&gt;
Type 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us test this using numbers now.&lt;br /&gt;
&lt;br /&gt;
Delete the '''string “Welcome to Scilab!”''' from the '''Edit''' box and type '''258.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print Pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over number 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box shows the number '''258''' which we typed just now.&lt;br /&gt;
&lt;br /&gt;
Likewise, you can try some more inputs for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Added an '''Edit''' box to '''prompt''' for user input.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Added a '''Text''' box to display the output'''.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about the '''String command'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add one more '''pushbutton''' and '''Edit''' box to the current '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Type in the '''String''' fields of the two '''Edit''' boxes -&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''“Enter the input message 1”,'''and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''“Enter the input message 2”.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Name the '''String''' fields of the two '''pushbuttons''' as '''“Print 1”''' and '''“Print 2”.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Modify the '''callback function''' to get the output of both the '''Edit''' boxes in a single '''Text''' box.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| For any general or technical questions on '''Scilab''', visit the '''FOSSEE forum''' and post your question.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a FOSSEE intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</id>
		<title>GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English"/>
				<updated>2021-09-23T09:51:39Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Installation of '''GUI Builder Toolbox'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: GUI Builder Toolbox, Main categories - ATOMS, Tag, String, callback function, Pushbutton, static response.'''&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Installation of '''GUI Builder Toolbox''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Install '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;About '''GUIBuilder Palette.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Create a '''Graphical User Interface''' using '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add '''Tag''' and '''String''' for the object.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Generate a '''static response''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS''' and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is identical in '''Linux''' '''OS''' also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Installation Requirements'''&lt;br /&gt;
| For the installation of '''GUI Builder Toolbox''', a working Internet connection is required.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
|&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
&lt;br /&gt;
'''GUI Builder''' '''Toolbox''' in '''Scilab:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Is one of the ways to create a '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI''' is the abbreviation for '''Graphical User Interface.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
Advantages of using '''GUI Builder Toolbox'''&lt;br /&gt;
|&lt;br /&gt;
Now let us look at the advantages of the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The t'''oolbox''' auto-generates a '''Scilab''' code for a '''GUI''' with object handle properties.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;This allows the user to build the '''GUI''' with ease.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;In the absence of this '''toolbox,''' users must write code from scratch to build the '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Let’s first learn to '''install''' the '''GUI Builder toolbox. '''&lt;br /&gt;
&lt;br /&gt;
This can be done in a number of ways. We will look at one of them.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab console.'''&lt;br /&gt;
&lt;br /&gt;
Type '''atomsGui'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Open '''Scilab.'''&lt;br /&gt;
&lt;br /&gt;
In the '''Scilab console''' window, type '''atomsGui.'''&lt;br /&gt;
&lt;br /&gt;
The '''commands''' are case sensitive. Hence, please retain the '''syntax''' as shown here.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
|&lt;br /&gt;
The '''Main categories - ATOMS''' window opens.&lt;br /&gt;
&lt;br /&gt;
This window has two panels.&lt;br /&gt;
&lt;br /&gt;
The left panel displays a list of '''toolbox categories'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the blank right panel.&lt;br /&gt;
|&lt;br /&gt;
Notice that the right panel is blank since I have not '''installed''' the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
It will display the details of the '''toolbox''' after '''installation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Click once on the '''GUI.'''&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI''' seen on the left panel'''.'''&lt;br /&gt;
&lt;br /&gt;
This will show the list of '''toolboxes''' available in the '''GUI''' category.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Click once on '''GUI Builder''' .&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI Builder.'''&lt;br /&gt;
&lt;br /&gt;
This will show the details of this '''toolbox''' on the right side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories -'''&lt;br /&gt;
&lt;br /&gt;
'''ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Highlight the '''version.'''&lt;br /&gt;
|&lt;br /&gt;
Scroll up and notice the '''Version''' of the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
At the time of recording this video, the current version of the '''toolbox''' is '''4.2.1.'''&lt;br /&gt;
&lt;br /&gt;
It could be different when you are watching this tutorial at a later date.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window, Click '''Install.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Installation Done”''' message.&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Install''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
If successful, the '''Installation Done''' message appears at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
| Close and reopen '''Scilab'''.&lt;br /&gt;
|&lt;br /&gt;
After this, we need to restart '''Scilab''' for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
Let’s close and then reopen '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab''' '''console.'''&lt;br /&gt;
| Notice that the '''GUI Builder Toolbox''' gets loaded upon starting '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab''' '''console. '''&lt;br /&gt;
&lt;br /&gt;
Type '''guibuilder''' and&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now, type '''guibuilder''' in the '''Scilab console''', and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window and '''Graphic Window Number 1.'''&lt;br /&gt;
|&lt;br /&gt;
The '''GUIBuilder Palette''' window is located on the left side.&lt;br /&gt;
&lt;br /&gt;
The '''Graphic Window Number 1''' is located on the right side.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window, Hover cursor over the '''Pushbutton, Radiobutton, Checkbox, Edit, Text box''' .&lt;br /&gt;
|&lt;br /&gt;
Let us look at the '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
It has objects such as,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Pushbutton, '''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Radiobutton,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Checkbox,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;An '''Edit box,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Text box''', and many more.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''Left, Right, Up,''' and '''Down.'''&lt;br /&gt;
|&lt;br /&gt;
On the right, the direction keys '''Up, Down, Left,''' and '''Right''' are provided.&lt;br /&gt;
&lt;br /&gt;
They are used to shift the selected objects in the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''W-, W+.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''H-, H+.'''&lt;br /&gt;
|&lt;br /&gt;
Below the direction keys, notice '''W- (W minus)''' and '''W+ (W plus)''' keys.&lt;br /&gt;
&lt;br /&gt;
They enable the user to adjust the width of the selected object.&lt;br /&gt;
&lt;br /&gt;
'''H- (H minus)''' and '''H+ (H plus)''' are given to adjust the height of the selected object.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1.'''&lt;br /&gt;
| Objects are placed in '''Graphic window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on the '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Let us create a '''GUI''' by placing objects in '''Graphic Windows number 1'''.&lt;br /&gt;
&lt;br /&gt;
Go to the '''GUI Builder Palette''' and click on the '''Pushbutton'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Tag.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
Notice the '''Tag''' field. It is a unique identifier for each '''GUI''' object.&lt;br /&gt;
&lt;br /&gt;
It allows you to give a name to the object.&lt;br /&gt;
&lt;br /&gt;
A '''Tag''' can be a number or an alphabet or its combination.&lt;br /&gt;
&lt;br /&gt;
Users can assign any value as a '''Tag'''.&lt;br /&gt;
|-&lt;br /&gt;
| Type '''h1''' in the '''Tag''' field'''.'''&lt;br /&gt;
| I will type '''h1''' in the '''Tag''' field'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''String.'''&lt;br /&gt;
| Below '''Tag''', we see the '''String''' field.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
Type '''Print''' in the '''String''' field'''.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
The text in the '''String''' field is the display name for the object in the '''Graphic''' '''window.'''&lt;br /&gt;
&lt;br /&gt;
I will type '''Print''' in the '''String''' field and then, click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click once in the middle left side.&lt;br /&gt;
&lt;br /&gt;
Drag the cursor to draw a line box'''.'''&lt;br /&gt;
|&lt;br /&gt;
In the '''Graphic Window number 1,''' click once near the middle left side of the window.&lt;br /&gt;
&lt;br /&gt;
Then drag the mouse diagonally downwards to draw a rectangle.&lt;br /&gt;
&lt;br /&gt;
Notice a line box.&lt;br /&gt;
&lt;br /&gt;
The size of this can be varied by moving the cursor on the window.&lt;br /&gt;
|-&lt;br /&gt;
| Click again on the window.&lt;br /&gt;
| Click again on the '''Graphic Window''' to place the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Print pushbutton. '''&lt;br /&gt;
|&lt;br /&gt;
Notice that a '''pushbutton''' named '''Print''' appears on '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
The '''Graphical User Interface''' is now ready.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI code . '''&lt;br /&gt;
|&lt;br /&gt;
To generate the '''Scilab''' '''code,''' go to the '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Generate''' menu seen on the top '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''printpushbuttongui &amp;amp;gt;&amp;amp;gt;''' click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
| I will save this file as '''printpushbuttongui''' and click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A confirmation message is displayed which says, “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
Immediately, the corresponding '''Scilab file''' opens'''.'''&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', all the '''properties''' of the figure and '''object''' are provided.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight '''handles.h1,'''&lt;br /&gt;
&lt;br /&gt;
highlight the part inside '''uicontrol''' parentheses.&lt;br /&gt;
|&lt;br /&gt;
'''handles.h1''' is the '''handle''' for the '''pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Inside the '''uicontrol''' parentheses the properties of the '''pushbutton''' are given.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''h1_callback''' function.&lt;br /&gt;
|&lt;br /&gt;
The '''callback function h1_callback''' is defined at the bottom'''.'''&lt;br /&gt;
&lt;br /&gt;
Code written within this '''function''' will get executed on pressing the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window.&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''disp(“Hello World!”).'''&lt;br /&gt;
|&lt;br /&gt;
Let us now write a code within '''h1_callback'''.&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
This '''command''' will display “'''Hello World!”''' on the '''Scilab console''' when executed.&lt;br /&gt;
&lt;br /&gt;
The '''program''' is now complete.&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save it by pressing the '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute.'''&lt;br /&gt;
| Click on '''Execute''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
| Click on '''File with echo'''&lt;br /&gt;
| Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
The '''pushbutton''' named '''Print''' appears in the graphic window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Print.'''&lt;br /&gt;
|&lt;br /&gt;
Next, let us test our '''GUI.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The code gets executed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the message '''Hello World!'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''Scilab Console''' to see the output.&lt;br /&gt;
&lt;br /&gt;
The '''console''' shows the message “'''Hello World!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print pushbutton''' three times'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now again click the '''Print pushbutton''' three times.&lt;br /&gt;
&lt;br /&gt;
Notice that on the '''Scilab Console,''' the static response is generated three times.&lt;br /&gt;
&lt;br /&gt;
So, for each click on the '''pushbutton,''' a '''static response''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Installed the '''GUI Builder''' '''Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about the '''GUIBuilder Palette.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Created a '''Graphical User Interface''' using '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about '''Tag''' and '''String''' for the object.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Generated a '''static response''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Add one more '''pushbutton''' to the current '''GUI''' as described below,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add '''String''' name as ''''Press here'''' for the '''Pushbutton'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Write a '''callback function''' to display the message ''''Good day!'''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| The '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</id>
		<title>GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English"/>
				<updated>2021-09-23T09:50:47Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Installation of '''GUI Builder Toolbox'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: GUI Builder Toolbox, Main categories - ATOMS, Tag, String, callback function, Pushbutton, static response.'''&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Installation of '''GUI Builder Toolbox''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Install '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;About '''GUIBuilder Palette.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Create a '''Graphical User Interface''' using '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add '''Tag''' and '''String''' for the object.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Generate a '''static response''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
Only Narration&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS''' and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is identical in '''Linux''' '''OS''' also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Installation Requirements'''&lt;br /&gt;
| For the installation of '''GUI Builder Toolbox''', a working Internet connection is required.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
|&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
&lt;br /&gt;
'''GUI Builder''' '''Toolbox''' in '''Scilab:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Is one of the ways to create a '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI''' is the abbreviation for '''Graphical User Interface.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
Advantages of using '''GUI Builder Toolbox'''&lt;br /&gt;
|&lt;br /&gt;
Now let us look at the advantages of the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The t'''oolbox''' auto-generates a '''Scilab''' code for a '''GUI''' with object handle properties.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;This allows the user to build the '''GUI''' with ease.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;In the absence of this '''toolbox,''' users must write code from scratch to build the '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Let’s first learn to '''install''' the '''GUI Builder toolbox. '''&lt;br /&gt;
&lt;br /&gt;
This can be done in a number of ways. We will look at one of them.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab console.'''&lt;br /&gt;
&lt;br /&gt;
Type '''atomsGui'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Open '''Scilab.'''&lt;br /&gt;
&lt;br /&gt;
In the '''Scilab console''' window, type '''atomsGui.'''&lt;br /&gt;
&lt;br /&gt;
The '''commands''' are case sensitive. Hence, please retain the '''syntax''' as shown here.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
|&lt;br /&gt;
The '''Main categories - ATOMS''' window opens.&lt;br /&gt;
&lt;br /&gt;
This window has two panels.&lt;br /&gt;
&lt;br /&gt;
The left panel displays a list of '''toolbox categories'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the blank right panel.&lt;br /&gt;
|&lt;br /&gt;
Notice that the right panel is blank since I have not '''installed''' the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
It will display the details of the '''toolbox''' after '''installation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Click once on the '''GUI.'''&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI''' seen on the left panel'''.'''&lt;br /&gt;
&lt;br /&gt;
This will show the list of '''toolboxes''' available in the '''GUI''' category.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Click once on '''GUI Builder''' .&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI Builder.'''&lt;br /&gt;
&lt;br /&gt;
This will show the details of this '''toolbox''' on the right side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories -'''&lt;br /&gt;
&lt;br /&gt;
'''ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Highlight the '''version.'''&lt;br /&gt;
|&lt;br /&gt;
Scroll up and notice the '''Version''' of the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
At the time of recording this video, the current version of the '''toolbox''' is '''4.2.1.'''&lt;br /&gt;
&lt;br /&gt;
It could be different when you are watching this tutorial at a later date.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window, Click '''Install.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Installation Done”''' message.&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Install''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
If successful, the '''Installation Done''' message appears at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
| Close and reopen '''Scilab'''.&lt;br /&gt;
|&lt;br /&gt;
After this, we need to restart '''Scilab''' for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
Let’s close and then reopen '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab''' '''console.'''&lt;br /&gt;
| Notice that the '''GUI Builder Toolbox''' gets loaded upon starting '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab''' '''console. '''&lt;br /&gt;
&lt;br /&gt;
Type '''guibuilder''' and&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now, type '''guibuilder''' in the '''Scilab console''', and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window and '''Graphic Window Number 1.'''&lt;br /&gt;
|&lt;br /&gt;
The '''GUIBuilder Palette''' window is located on the left side.&lt;br /&gt;
&lt;br /&gt;
The '''Graphic Window Number 1''' is located on the right side.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window, Hover cursor over the '''Pushbutton, Radiobutton, Checkbox, Edit, Text box''' .&lt;br /&gt;
|&lt;br /&gt;
Let us look at the '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
It has objects such as,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Pushbutton, '''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Radiobutton,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Checkbox,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;An '''Edit box,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Text box''', and many more.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''Left, Right, Up,''' and '''Down.'''&lt;br /&gt;
|&lt;br /&gt;
On the right, the direction keys '''Up, Down, Left,''' and '''Right''' are provided.&lt;br /&gt;
&lt;br /&gt;
They are used to shift the selected objects in the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''W-, W+.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''H-, H+.'''&lt;br /&gt;
|&lt;br /&gt;
Below the direction keys, notice '''W- (W minus)''' and '''W+ (W plus)''' keys.&lt;br /&gt;
&lt;br /&gt;
They enable the user to adjust the width of the selected object.&lt;br /&gt;
&lt;br /&gt;
'''H- (H minus)''' and '''H+ (H plus)''' are given to adjust the height of the selected object.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1.'''&lt;br /&gt;
| Objects are placed in '''Graphic window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on the '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Let us create a '''GUI''' by placing objects in '''Graphic Windows number 1'''.&lt;br /&gt;
&lt;br /&gt;
Go to the '''GUI Builder Palette''' and click on the '''Pushbutton'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Tag.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
Notice the '''Tag''' field. It is a unique identifier for each '''GUI''' object.&lt;br /&gt;
&lt;br /&gt;
It allows you to give a name to the object.&lt;br /&gt;
&lt;br /&gt;
A '''Tag''' can be a number or an alphabet or its combination.&lt;br /&gt;
&lt;br /&gt;
Users can assign any value as a '''Tag'''.&lt;br /&gt;
|-&lt;br /&gt;
| Type '''h1''' in the '''Tag''' field'''.'''&lt;br /&gt;
| I will type '''h1''' in the '''Tag''' field'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''String.'''&lt;br /&gt;
| Below '''Tag''', we see the '''String''' field.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
Type '''Print''' in the '''String''' field'''.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
The text in the '''String''' field is the display name for the object in the '''Graphic''' '''window.'''&lt;br /&gt;
&lt;br /&gt;
I will type '''Print''' in the '''String''' field and then, click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click once in the middle left side.&lt;br /&gt;
&lt;br /&gt;
Drag the cursor to draw a line box'''.'''&lt;br /&gt;
|&lt;br /&gt;
In the '''Graphic Window number 1,''' click once near the middle left side of the window.&lt;br /&gt;
&lt;br /&gt;
Then drag the mouse diagonally downwards to draw a rectangle.&lt;br /&gt;
&lt;br /&gt;
Notice a line box.&lt;br /&gt;
&lt;br /&gt;
The size of this can be varied by moving the cursor on the window.&lt;br /&gt;
|-&lt;br /&gt;
| Click again on the window.&lt;br /&gt;
| Click again on the '''Graphic Window''' to place the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Print pushbutton. '''&lt;br /&gt;
|&lt;br /&gt;
Notice that a '''pushbutton''' named '''Print''' appears on '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
The '''Graphical User Interface''' is now ready.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI code . '''&lt;br /&gt;
|&lt;br /&gt;
To generate the '''Scilab''' '''code,''' go to the '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Generate''' menu seen on the top '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''printpushbuttongui &amp;amp;gt;&amp;amp;gt;''' click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
| I will save this file as '''printpushbuttongui''' and click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A confirmation message is displayed which says, “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
Immediately, the corresponding '''Scilab file''' opens'''.'''&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', all the '''properties''' of the figure and '''object''' are provided.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight '''handles.h1,'''&lt;br /&gt;
&lt;br /&gt;
highlight the part inside '''uicontrol''' parentheses.&lt;br /&gt;
|&lt;br /&gt;
'''handles.h1''' is the '''handle''' for the '''pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Inside the '''uicontrol''' parentheses the properties of the '''pushbutton''' are given.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''h1_callback''' function.&lt;br /&gt;
|&lt;br /&gt;
The '''callback function h1_callback''' is defined at the bottom'''.'''&lt;br /&gt;
&lt;br /&gt;
Code written within this '''function''' will get executed on pressing the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window.&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''disp(“Hello World!”).'''&lt;br /&gt;
|&lt;br /&gt;
Let us now write a code within '''h1_callback'''.&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
This '''command''' will display “'''Hello World!”''' on the '''Scilab console''' when executed.&lt;br /&gt;
&lt;br /&gt;
The '''program''' is now complete.&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save it by pressing the '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute.'''&lt;br /&gt;
| Click on '''Execute''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
| Click on '''File with echo'''&lt;br /&gt;
| Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
The '''pushbutton''' named '''Print''' appears in the graphic window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Print.'''&lt;br /&gt;
|&lt;br /&gt;
Next, let us test our '''GUI.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The code gets executed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the message '''Hello World!'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''Scilab Console''' to see the output.&lt;br /&gt;
&lt;br /&gt;
The '''console''' shows the message “'''Hello World!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print pushbutton''' three times'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now again click the '''Print pushbutton''' three times.&lt;br /&gt;
&lt;br /&gt;
Notice that on the '''Scilab Console,''' the static response is generated three times.&lt;br /&gt;
&lt;br /&gt;
So, for each click on the '''pushbutton,''' a '''static response''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Installed the '''GUI Builder''' '''Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about the '''GUIBuilder Palette.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Created a '''Graphical User Interface''' using '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about '''Tag''' and '''String''' for the object.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Generated a '''static response''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Add one more '''pushbutton''' to the current '''GUI''' as described below,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add '''String''' name as ''''Press here'''' for the '''Pushbutton'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Write a '''callback function''' to display the message ''''Good day!'''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| The '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</id>
		<title>GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English"/>
				<updated>2021-09-23T09:47:24Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Installation of '''GUI Builder Toolbox'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: GUI Builder Toolbox, Main categories - ATOMS, Tag, String, callback function, Pushbutton, static response.'''&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Installation of '''GUI Builder Toolbox''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Install '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;About '''GUIBuilder Palette.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Create a '''Graphical User Interface''' using '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add '''Tag''' and '''String''' for the object.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Generate a '''static response''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
Only Narration&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS''' and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is identical in '''Linux''' '''OS''' also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Installation Requirements'''&lt;br /&gt;
| For the installation of '''GUI Builder Toolbox''', a working Internet connection is required.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
|&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
&lt;br /&gt;
'''GUI Builder''' '''Toolbox''' in '''Scilab:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Is one of the ways to create a '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI''' is the abbreviation for '''Graphical User Interface.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
Advantages of using '''GUI Builder Toolbox'''&lt;br /&gt;
|&lt;br /&gt;
Now let us look at the advantages of the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The t'''oolbox''' auto-generates a '''Scilab''' code for a '''GUI''' with object handle properties.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;This allows the user to build the '''GUI''' with ease.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;In the absence of this '''toolbox,''' users must write code from scratch to build the '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Let’s first learn to '''install''' the '''GUI Builder toolbox. '''&lt;br /&gt;
&lt;br /&gt;
This can be done in a number of ways. We will look at one of them.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab console.'''&lt;br /&gt;
&lt;br /&gt;
Type '''atomsGui'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Open '''Scilab.'''&lt;br /&gt;
&lt;br /&gt;
In the '''Scilab console''' window, type '''atomsGui.'''&lt;br /&gt;
&lt;br /&gt;
The '''commands''' are case sensitive. Hence, please retain the '''syntax''' as shown here.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
|&lt;br /&gt;
The '''Main categories - ATOMS''' window opens.&lt;br /&gt;
&lt;br /&gt;
This window has two panels.&lt;br /&gt;
&lt;br /&gt;
The left panel displays a list of '''toolbox categories'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the blank right panel.&lt;br /&gt;
|&lt;br /&gt;
Notice that the right panel is blank since I have not '''installed''' the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
It will display the details of the '''toolbox''' after '''installation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Click once on the '''GUI.'''&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI''' seen on the left panel'''.'''&lt;br /&gt;
&lt;br /&gt;
This will show the list of '''toolboxes''' available in the '''GUI''' category.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Click once on '''GUI Builder''' .&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI Builder.'''&lt;br /&gt;
&lt;br /&gt;
This will show the details of this '''toolbox''' on the right side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories -'''&lt;br /&gt;
&lt;br /&gt;
'''ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Highlight the '''version.'''&lt;br /&gt;
|&lt;br /&gt;
Scroll up and notice the '''Version''' of the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
At the time of recording this video, the current version of the '''toolbox''' is '''4.2.1.'''&lt;br /&gt;
&lt;br /&gt;
It could be different when you are watching this tutorial at a later date.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window, Click '''Install.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Installation Done”''' message.&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Install''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
If successful, the '''Installation Done''' message appears at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
| Close and reopen Scilab.&lt;br /&gt;
|&lt;br /&gt;
After this, we need to restart '''Scilab''' for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
Let’s close and then reopen '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab''' '''console.'''&lt;br /&gt;
| Notice that the '''GUI Builder Toolbox''' gets loaded upon starting '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab''' '''console. '''&lt;br /&gt;
&lt;br /&gt;
Type '''guibuilder''' and&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now, type '''guibuilder''' in the '''Scilab console''', and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window and '''Graphic Window Number 1.'''&lt;br /&gt;
|&lt;br /&gt;
The '''GUIBuilder Palette''' window is located on the left side.&lt;br /&gt;
&lt;br /&gt;
The '''Graphic Window Number 1''' is located on the right side.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window, Hover cursor over the '''Pushbutton, Radiobutton, Checkbox, Edit, Text box''' .&lt;br /&gt;
|&lt;br /&gt;
Let us look at the '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
It has objects such as,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Pushbutton, '''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Radiobutton,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Checkbox,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;An '''Edit box,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Text box''', and many more.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''Left, Right, Up,''' and '''Down.'''&lt;br /&gt;
|&lt;br /&gt;
On the right, the direction keys '''Up, Down, Left,''' and '''Right''' are provided.&lt;br /&gt;
&lt;br /&gt;
They are used to shift the selected objects in the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''W-, W+.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''H-, H+.'''&lt;br /&gt;
|&lt;br /&gt;
Below the direction keys, notice '''W- (W minus)''' and '''W+ (W plus)''' keys.&lt;br /&gt;
&lt;br /&gt;
They enable the user to adjust the width of the selected object.&lt;br /&gt;
&lt;br /&gt;
'''H- (H minus)''' and '''H+ (H plus)''' are given to adjust the height of the selected object.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1.'''&lt;br /&gt;
| Objects are placed in '''Graphic window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on the '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Let us create a '''GUI''' by placing objects in '''Graphic Windows number 1'''.&lt;br /&gt;
&lt;br /&gt;
Go to the '''GUI Builder Palette''' and click on the '''Pushbutton'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Tag.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
Notice the '''Tag''' field. It is a unique '''identifier''' for each '''GUI''' object.&lt;br /&gt;
&lt;br /&gt;
It allows you to give a name to the object.&lt;br /&gt;
&lt;br /&gt;
A '''Tag''' can be a number or an alphabet or its combination.&lt;br /&gt;
&lt;br /&gt;
Users can assign any value as a '''Tag'''.&lt;br /&gt;
|-&lt;br /&gt;
| Type '''h1''' in the '''Tag''' field'''.'''&lt;br /&gt;
| I will type '''h1''' in the '''Tag''' field'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''String.'''&lt;br /&gt;
| Below '''Tag''', we see the '''String''' field.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
Type '''Print''' in the '''String''' field'''.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
The text in the '''String''' field is the display name for the object in the '''Graphic''' '''window.'''&lt;br /&gt;
&lt;br /&gt;
I will type '''Print''' in the '''String''' field and then, click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click once in the middle left side.&lt;br /&gt;
&lt;br /&gt;
Drag the cursor to draw a line box'''.'''&lt;br /&gt;
|&lt;br /&gt;
In the '''Graphic Window number 1,''' click once near the middle left side of the window.&lt;br /&gt;
&lt;br /&gt;
Then drag the mouse diagonally downwards to draw a rectangle.&lt;br /&gt;
&lt;br /&gt;
Notice a line box.&lt;br /&gt;
&lt;br /&gt;
The size of this can be varied by moving the cursor on the window.&lt;br /&gt;
|-&lt;br /&gt;
| Click again on the window.&lt;br /&gt;
| Click again on the '''Graphic Window''' to place the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Print pushbutton. '''&lt;br /&gt;
|&lt;br /&gt;
Notice that a '''pushbutton''' named '''Print''' appears on '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
The '''Graphical User Interface''' is now ready.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI code . '''&lt;br /&gt;
|&lt;br /&gt;
To generate the '''Scilab''' '''code,''' go to the '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Generate''' menu seen on the top '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''printpushbuttongui &amp;amp;gt;&amp;amp;gt;''' click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
| I will save this file as '''printpushbuttongui''' and click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A confirmation message is displayed which says, “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
Immediately, the corresponding '''Scilab file''' opens'''.'''&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', all the '''properties''' of the figure and '''object''' are provided.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight '''handles.h1,'''&lt;br /&gt;
&lt;br /&gt;
highlight the part inside '''uicontrol''' parentheses.&lt;br /&gt;
|&lt;br /&gt;
'''handles.h1''' is the '''handle''' for the '''pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Inside the '''uicontrol''' parentheses the properties of the '''pushbutton''' are given.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''h1_callback''' function.&lt;br /&gt;
|&lt;br /&gt;
The '''callback function h1_callback''' is defined at the bottom'''.'''&lt;br /&gt;
&lt;br /&gt;
Code written within this '''function''' will get executed on pressing the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window.&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''disp(“Hello World!”).'''&lt;br /&gt;
|&lt;br /&gt;
Let us now write a code within '''h1_callback'''.&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
This '''command''' will display “'''Hello World!”''' on the '''Scilab console''' when executed.&lt;br /&gt;
&lt;br /&gt;
The '''program''' is now complete.&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save it by pressing the '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute.'''&lt;br /&gt;
| Click on '''Execute''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
| Click on '''File with echo'''&lt;br /&gt;
| Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
The '''pushbutton''' named '''Print''' appears in the graphic window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Print.'''&lt;br /&gt;
|&lt;br /&gt;
Next, let us test our '''GUI.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The code gets executed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the message '''Hello World!'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''Scilab Console''' to see the output.&lt;br /&gt;
&lt;br /&gt;
The '''console''' shows the message “'''Hello World!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print pushbutton''' three times'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now again click the '''Print pushbutton''' three times.&lt;br /&gt;
&lt;br /&gt;
Notice that on the '''Scilab Console,''' the '''static response''' is generated three times.&lt;br /&gt;
&lt;br /&gt;
So, for each click on the '''pushbutton,''' a '''static response''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Installed the '''GUI Builder''' '''Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about the '''GUIBuilder Palette.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Created a '''Graphical User Interface''' using '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about '''Tag''' and '''String''' for the object.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Generated a '''static response''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Add one more '''pushbutton''' to the current '''GUI''' as described below,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add '''String''' name as ''''Press here'''' for the '''Pushbutton'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Write a '''callback function''' to display the message ''''Good day!'''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| The '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</id>
		<title>GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English"/>
				<updated>2021-09-22T17:07:57Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Installation of '''GUI Builder Toolbox'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: GUI Builder Toolbox, Main categories - ATOMS, Tag, String, callback function, Pushbutton, static response.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Installation of '''GUI Builder Toolbox''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
| In this tutorial, we will learn to:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only Narration&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is identical in '''Linux''' '''OS '''also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Installation Requirements'''&lt;br /&gt;
| For the installation of '''GUI Builder Toolbox''', a working Internet connection is required.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
|&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GUI Builder''' '''Toolbox''' in '''Scilab:'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
Advantages of using '''GUI Builder Toolbox'''&lt;br /&gt;
|&lt;br /&gt;
Now let us look at the advantages of the Toolbox.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
Let’s first learn to '''install''' the '''GUI Builder toolbox. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This can be done in a number of ways. We will look at one of them.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''atomsGui'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Open '''Scilab.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the '''Scilab console '''window, type '''atomsGui.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''commands''' are case sensitive. Hence, please retain the '''syntax''' as shown here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
|&lt;br /&gt;
The '''Main categories - ATOMS '''window opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This window has two panels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The left panel displays a list of '''toolbox categories'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the blank right panel.&lt;br /&gt;
|&lt;br /&gt;
Notice that the right panel is blank since I have not '''installed''' the '''toolbox'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It will display the details of the '''toolbox '''after''' installation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
Click once on the '''GUI.'''&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI '''seen on the left panel'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will show the list of''' toolboxes '''available in the '''GUI '''category.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click once on '''GUI Builder''' .&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI Builder.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will show the details of this '''toolbox''' on the right side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories -'''&lt;br /&gt;
&lt;br /&gt;
'''ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
Highlight the''' version.'''&lt;br /&gt;
|&lt;br /&gt;
Scroll up and notice the '''Version''' of the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the time of recording this video, the current version of the '''toolbox''' is '''4.2.1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It could be different when you are watching this tutorial at a later date.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window, Click '''Install.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Installation Done” '''message.&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Install''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If successful, the '''Installation Done''' message appears at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
| Close and reopen''' Scilab'''.&lt;br /&gt;
|&lt;br /&gt;
After this, we need to restart '''Scilab''' for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s close and then reopen '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab''' '''console.'''&lt;br /&gt;
| Notice that the '''GUI Builder Toolbox''' gets loaded upon starting '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab''' '''console. '''&lt;br /&gt;
&lt;br /&gt;
Type''' guibuilder '''and''' '''&lt;br /&gt;
&lt;br /&gt;
Press''' Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now, type '''guibuilder''' in the '''Scilab console''', and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette '''window and '''Graphic Window Number 1.'''&lt;br /&gt;
|&lt;br /&gt;
The '''GUIBuilder Palette '''window is located on the left side. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Graphic Window Number 1 '''is located on the right side.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window, Hover cursor over the '''Pushbutton, Radiobutton, Checkbox, Edit, Text box''' .&lt;br /&gt;
|&lt;br /&gt;
Let us look at the '''GUIBuilder Palette '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It has objects such as,&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
hover cursor over '''Left, Right, Up, '''and '''Down.'''&lt;br /&gt;
|&lt;br /&gt;
On the right, the direction keys '''Up, Down, Left,''' and '''Right''' are provided.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They are used to shift the selected objects in the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
hover cursor over '''W-, W+.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''H-, H+.'''&lt;br /&gt;
|&lt;br /&gt;
Below the direction keys,''' '''notice '''W- (W minus) '''and''' W+ (W plus) '''keys.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They enable the user to adjust the width of the selected object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''H- (H minus) '''and''' H+ (H plus) '''are given to adjust the height of the selected object.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1.'''&lt;br /&gt;
| Objects are placed in '''Graphic window number 1. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on the '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Let us create a '''GUI '''by placing objects in '''Graphic Windows number 1'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to the '''GUI Builder Palette''' and click on the '''Pushbutton'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Tag.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the '''Tag '''field. It is a unique identifier for each '''GUI '''object. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It allows you to give a name to the object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''Tag '''can be a number or an alphabet or its combination.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users can assign any value as a '''Tag'''.&lt;br /&gt;
|-&lt;br /&gt;
| Type''' h1 '''in the '''Tag '''field'''.'''&lt;br /&gt;
| I will type '''h1''' in the '''Tag '''field'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''String.'''&lt;br /&gt;
| Below '''Tag''', we see the '''String '''field.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type''' Print '''in the''' String '''field'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
The text in the '''String''' field is the display name for the object in the '''Graphic''' '''window.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will type '''Print''' in the '''String''' field and then, click on''' OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click once in the middle left side.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag the''' '''cursor''' '''to draw a line box'''.'''&lt;br /&gt;
|&lt;br /&gt;
In the '''Graphic Window number 1, '''click once near the middle left side of the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then drag the mouse diagonally downwards to draw a rectangle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice a line box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The size of this can be varied by moving the cursor on the window.&lt;br /&gt;
|-&lt;br /&gt;
| Click again on the window.&lt;br /&gt;
| Click again on the '''Graphic Window '''to place the '''pushbutton. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on''' Print pushbutton. '''&lt;br /&gt;
|&lt;br /&gt;
Notice that a '''pushbutton''' named '''Print''' appears on '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Graphical User Interface '''is now ready.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,''' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on''' Generate GUI code .   '''&lt;br /&gt;
|&lt;br /&gt;
To generate the '''Scilab''' '''code,''' go to the '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Generate''' menu seen on the top '''menubar'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type''' printpushbuttongui &amp;amp;gt;&amp;amp;gt; '''click''' Save.'''&lt;br /&gt;
| I will save this file as '''printpushbuttongui '''and click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on''' OK.'''&lt;br /&gt;
|&lt;br /&gt;
A confirmation message is displayed which says, “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
Immediately, the corresponding '''Scilab file '''opens'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside this''' file''', all the '''properties''' of the figure and '''object''' are provided.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight '''handles.h1,'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
highlight the part inside '''uicontrol '''parentheses.&lt;br /&gt;
|&lt;br /&gt;
'''handles.h1''' is the''' handle '''for the '''pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside the '''uicontrol''' parentheses the properties of the '''pushbutton''' are given.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''h1_callback '''function.&lt;br /&gt;
|&lt;br /&gt;
The '''callback function h1_callback '''is defined at the bottom'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Code written within this '''function''' will get executed on pressing the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''disp(“Hello World!”).'''&lt;br /&gt;
|&lt;br /&gt;
Let us now write a code within '''h1_callback'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' will display “'''Hello World!”''' on the '''Scilab console '''when executed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''program''' is now complete.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Press '''CTRL + S.'''&lt;br /&gt;
| Let us save it by pressing the '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
click on''' Execute.'''&lt;br /&gt;
| Click on '''Execute''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
| Click on '''File with echo'''&lt;br /&gt;
| Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''pushbutton '''named '''Print''' appears in the graphic window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Print.'''&lt;br /&gt;
|&lt;br /&gt;
Next, let us test our '''GUI.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The code gets executed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the message''' Hello World!'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''Scilab Console '''to see the output. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''console''' shows the message “'''Hello World!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print pushbutton '''three times'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now again click the '''Print pushbutton''' three times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that on the '''Scilab Console, '''the static response is generated three times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, for each click on the '''pushbutton,''' a static response is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add one more '''pushbutton''' to the current '''GUI''' as described below,&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| The '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-08-06T14:03:44Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Building '''GUI''' to graph a '''Linear Equation'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes,''' plot the response of a '''Linear Equation, strtod''' command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a '''Linear Equation’''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;About the '''Axes'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;How to plot the '''linear equation''' of a line using '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI Builder Toolbox 4.2.1'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The files used in this tutorial are provided in the '''Code files''' link.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Please download and extract the files.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Make a copy and then use them while practising.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the '''Linear Equation''' of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the '''Linear Equation''' of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The '''linear equation''' of a line has the general form of Ax + By = C&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;It’s '''slope intercept''' form is y = mx + c'''.''' Where,&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m is '''slope''' and&lt;br /&gt;
&lt;br /&gt;
c is '''y-intercept'''.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;After comparing these two forms we get,&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
We will use these two equations to plot a graph of a '''Linear Equation''' of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
'''Axes''' is a '''GUI''' object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing '''Linear equation'''&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Three '''Edit''' boxes to take user input for '''A, B''' and '''C'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Two '''Text''' boxes to display the answer of '''slope''' and '''y-intercept'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;One '''Pushbutton''' to calculate and plot.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;One '''Axes''' for displaying the graph.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “linearequation.sce”.&lt;br /&gt;
| I have already opened the '''linearequation.sce''' file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
over cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
It opens the '''GUI''' with the three '''Edit''' boxes''',''' a '''Pushbutton''' and two '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: ed_A, String: Enter the value of A”&lt;br /&gt;
| The first '''Edit''' box has the '''string''' '''“Enter the value of A”''' with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: ed_B, String: Enter the value of B”&lt;br /&gt;
| The second '''Edit''' box has the '''string''' '''“Enter the value of B”''' with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit''' box with '''String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: ed_C, String: Enter the value of C”&lt;br /&gt;
| The third '''Edit''' box has the '''string''' '''“Enter the value of C”''' with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: txt_slope, String: UnName4”&lt;br /&gt;
| The first '''Text''' box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box with '''String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: txt_y_int, String: UnName5”&lt;br /&gt;
| The second '''Text''' box has the '''string “UnName5”''' with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with '''String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: pb_plot, String: Plot”&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present.&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot''' as '''tag''' and '''Plot''' as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a '''linear equation. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot''' as '''Tag,'''&lt;br /&gt;
&lt;br /&gt;
type '''Plot''' as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot''' as '''Tag,''' and '''Plot''' as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes''' in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code''' has been generated.&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', notice the '''handles''' of the seven&lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A''' is the '''handle''' for taking user input for '''A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B''' is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C''' is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope''' is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int''' is the '''handle''' for displaying the '''y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot''' is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot''' is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback''' function.&lt;br /&gt;
| Now let us write a '''function definition''' for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same '''syntax'''.&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit''' boxes.&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the '''slope''' and '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables '''slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text''' boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
| At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle command''', we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid command''' is used'''.'''&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To '''run''' the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''slope''' and '''y intercept''' Text boxes.&lt;br /&gt;
| These are the '''slope''' and '''y intercept''' values for the '''linear equation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it.&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a '''linear equation''' of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we have learnt:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;About the '''Axes'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;How to plot a '''linear equation''' of a line using '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI''' to,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Plot an equation of y = e^(Ax).&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Take '''‘A’''' as '''input''' from the user.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Consider, x varies from 0 to 2*pi.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Object-properties-and-alignment-in-GUI/English</id>
		<title>GUI-in-Scilab/C2/Object-properties-and-alignment-in-GUI/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Object-properties-and-alignment-in-GUI/English"/>
				<updated>2021-08-06T14:02:23Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' '''Object''' properties and alignment in '''GUI'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' Properties of an '''object,''' size of an '''object,''' alignment of '''objects, delete''' an '''object, objects''' of same size, '''objects''' equally spaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on '''Object''' properties and alignment in '''GUI''' in Scilab.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Change the properties of an '''object'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Change the size of an '''object''' and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Change the alignment of '''objects''' in the '''GUI window'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI Builder Toolbox 4.2.1'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS''' also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab''' and '''Graphical User Interface.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The files used in this tutorial are provided in the '''Code files''' link.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Please download and extract the files.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Make a copy and then use them while practising.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window'''.'''&lt;br /&gt;
|&lt;br /&gt;
I have opened the '''GUIBuilder toolbox''' in my system.&lt;br /&gt;
&lt;br /&gt;
Please do so in your system, also.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Open.'''&lt;br /&gt;
| On the '''GUIBuilder Palette window,''' click on '''Open''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Open an existing GUI''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a '''dialog''' box that displays '''Open an existing GUI.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Yes.'''&lt;br /&gt;
|-&lt;br /&gt;
| Open the file named '''printuserinput.sce'''&lt;br /&gt;
| Locate the folder where '''printuserinput.sce''' file is saved and open it.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over the three '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
It opens the '''GUI''' which has,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;An '''Edit''' box with the '''string “Enter the input message”,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Pushbutton''' with the '''string “Print”''', and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Text''' box with the '''string “UnName3”'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us see how to change some of the '''object''' properties of the '''Text''' box'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the right panel.&lt;br /&gt;
|&lt;br /&gt;
For this, go to the '''GUIBuilder Palette.'''&lt;br /&gt;
&lt;br /&gt;
Notice the right side panel.&lt;br /&gt;
&lt;br /&gt;
It shows a list of '''Tag''' names for the '''objects''' on the '''Graphic window'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''txt_output.'''&lt;br /&gt;
| Click on '''txt_output'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''Text''' box in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
It has a red border indicating that it is selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
Click on '''ObjectProperties.'''&lt;br /&gt;
| Then click on '''ObjectProperties''' at the bottom right of the '''GUIBuilder Palette''' window'''.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab Multiple Values Request''' window.&lt;br /&gt;
|&lt;br /&gt;
A '''Scilab Multiple Values Request''' window opens.&lt;br /&gt;
&lt;br /&gt;
We see that the '''object''' properties are displayed on the left side.&lt;br /&gt;
&lt;br /&gt;
Respective property values are seen on the right side with some default values.&lt;br /&gt;
&lt;br /&gt;
These values are assigned to the properties that are not predefined.&lt;br /&gt;
&lt;br /&gt;
However, not all of the properties apply to all the '''objects'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''help uicontrol_properties'''&lt;br /&gt;
&lt;br /&gt;
'''help uicontrol_properties'''&lt;br /&gt;
|&lt;br /&gt;
To learn more about it, users need to type a '''command''' in the '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
Type '''help space uicontrol underscore properties''' to see the detailed help.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab Multiple Values Request''' window.&lt;br /&gt;
| Let us now change the properties that are applicable to the '''Text''' box.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
|&lt;br /&gt;
First we’ll change the '''Background''' color of the '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
We see a vector with the default values [-1,-1,-1].&lt;br /&gt;
&lt;br /&gt;
They specify '''Red, Green, Blue''' color values respectively.&lt;br /&gt;
&lt;br /&gt;
Selecting the values between 0 and 1, will change the color.&lt;br /&gt;
&lt;br /&gt;
Let’s change it to [0.5,0.6,0.7].&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
&lt;br /&gt;
Type '''italic.'''&lt;br /&gt;
|&lt;br /&gt;
Next, we will change the '''Font angle.'''&lt;br /&gt;
&lt;br /&gt;
We see '''normal''' as the default value'''.'''&lt;br /&gt;
&lt;br /&gt;
We will change it to '''italic.'''&lt;br /&gt;
&lt;br /&gt;
This property will set the slant of the '''font'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple ValuesRequest''' window,&lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
&lt;br /&gt;
Type '''25.'''&lt;br /&gt;
|&lt;br /&gt;
We see '''[12]''' as the default '''FontSize''' value'''.'''&lt;br /&gt;
&lt;br /&gt;
We will change it to '''[25].'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple ValuesRequest''' window,&lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
&lt;br /&gt;
Type '''bold.'''&lt;br /&gt;
|&lt;br /&gt;
Next, the default '''FontWeight''' value is set as '''normal.'''&lt;br /&gt;
&lt;br /&gt;
Let’s change it to '''bold.'''&lt;br /&gt;
&lt;br /&gt;
This will make the '''string''' value '''bold.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple ValuesRequest''' window,&lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
|&lt;br /&gt;
Set the '''ForegroundColor''' default value [-1,-1,-1] to [0.7,0.8,0.9].&lt;br /&gt;
&lt;br /&gt;
The color of the '''string''' value will change as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request''' window, as per narration.&lt;br /&gt;
&lt;br /&gt;
Type '''center.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now change the alignment of the '''string''' value.&lt;br /&gt;
&lt;br /&gt;
We see '''left''' as the default '''HorizontalAlignment.'''&lt;br /&gt;
&lt;br /&gt;
Let’s change this to '''center.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
|&lt;br /&gt;
Lastly, we will change the '''String''' property.&lt;br /&gt;
&lt;br /&gt;
The default value is '''UnName3'''.&lt;br /&gt;
&lt;br /&gt;
This property represents the text appearing on an '''object'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
delete '''UnName3.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Delete '''UnName3''', and we'll keep it empty.&lt;br /&gt;
&lt;br /&gt;
We have now changed enough properties of the '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
Explore the remaining properties later on your own, for better understanding.&lt;br /&gt;
&lt;br /&gt;
Click on '''Ok'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now let us change the location of the '''Text''' box'''.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
| We will return to the '''GUIBuilder Palette''' window and click on '''txt_output''' once.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
|&lt;br /&gt;
We see the four direction buttons in the right panel, namely '''Up, Down, Right,''' and '''Left'''.&lt;br /&gt;
&lt;br /&gt;
I will click once on the '''Left''' button.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
Notice that the '''Text''' box has moved slightly to the left.&lt;br /&gt;
&lt;br /&gt;
It can be shifted to any side by using the respective direction buttons.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Move''' button'''.'''&lt;br /&gt;
|&lt;br /&gt;
Another way to move the '''Text''' box is by using the '''Move''' button'''.'''&lt;br /&gt;
&lt;br /&gt;
It is located below the direction buttons'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''txt_output.'''&lt;br /&gt;
&lt;br /&gt;
click on '''Move.'''&lt;br /&gt;
|&lt;br /&gt;
Make sure that the '''txt_output''' is still selected'''.'''&lt;br /&gt;
&lt;br /&gt;
Then click on '''Move'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
move the cursor across the window'''.'''&lt;br /&gt;
|&lt;br /&gt;
Now move the cursor across the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
A box with a black border and the same size as the '''Text''' box appears.&lt;br /&gt;
&lt;br /&gt;
Notice that it appears wherever the cursor is moved.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
click in the bottom left side of the window'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us place the '''Text''' box in the bottom left side by clicking on the window.&lt;br /&gt;
&lt;br /&gt;
This is how we can move the '''Text''' box with the help of the '''Move''' button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Text''' box.&lt;br /&gt;
|&lt;br /&gt;
Next, let us change the height and width of the '''Text''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Make sure the '''Text''' box still has a red border indicating it’s selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''W+, W-''' buttons'''.'''&lt;br /&gt;
|&lt;br /&gt;
I will now click on '''W+ (W plus)''' button'''.'''&lt;br /&gt;
&lt;br /&gt;
Notice that this action increases the width of the '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
Similarly, clicking '''W- (W minus)''' will decrease its width.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''H+, H-''' buttons'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now increase the height of the '''Text''' box by clicking the '''H+ (H plus)''' button.&lt;br /&gt;
&lt;br /&gt;
Likewise, we can use the '''H- (H minus)''' button to decrease its height.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
|&lt;br /&gt;
Below this, we have a '''Delete''' button.&lt;br /&gt;
&lt;br /&gt;
This is used to delete the selected object from the '''Graphic Window.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Alignments''' button present in the right panel.&lt;br /&gt;
| Next, let us learn how to use the '''Alignments''' button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
press and Hold '''Ctrl''', and click on the '''Tag''' value of each object in the right panel.&lt;br /&gt;
|&lt;br /&gt;
Press and hold the '''Ctrl''' key on your keyboard.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Tag''' value of each '''object''' in the right panel.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
| All selected '''objects''' now have a red border indicating they are selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Alignments.'''&lt;br /&gt;
| On the bottom right of the '''GUIBuilder Palette''' window, click the '''Alignments''' button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignment''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over the three '''Alignment''' sections.&lt;br /&gt;
|&lt;br /&gt;
A '''GUI Alignment''' window pops up.&lt;br /&gt;
&lt;br /&gt;
This has&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Vertical''' '''Alignment''' buttons on the left panel and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Horizontal Alignment''' buttons on the bottom panel.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The buttons for changing the size are on the right panel.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window,&lt;br /&gt;
&lt;br /&gt;
click on the '''Same Width''' and '''Same Height''' button.&lt;br /&gt;
| Click once on the '''Same Width''' and '''Same Height''' buttons.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the selected '''objects''' in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
They now have the same width and height.&lt;br /&gt;
&lt;br /&gt;
We can see that the '''objects''' are currently placed one below the other.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUI Alignments''' window.&lt;br /&gt;
| So, we will use the buttons under '''Vertical''' '''Alignment''' heading'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Equally Spaced. '''&lt;br /&gt;
| Click once on the '''Equally Spaced''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
The '''objects''' are now arranged such that they are equally spaced.&lt;br /&gt;
&lt;br /&gt;
Now, let us arrange all the objects to the center of the window.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on GUI Alignments window.&lt;br /&gt;
| To do so, we will use the buttons under '''Horizontal Alignment''' heading.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Center.'''&lt;br /&gt;
| Click once on the '''Center''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
| The '''objects''' are now arranged in the center.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Learners may pause this video and explore all these options further for better understanding.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUI Alignments''' window.&lt;br /&gt;
| Close the '''GUI Alignments''' window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Let us test our '''GUI''' now.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,''' and click on '''Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' given on the top '''menubar''' and then on '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uiputfile''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''printuserinput.sce'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on OK button.”&lt;br /&gt;
|&lt;br /&gt;
The '''uiputfile''' window will pop up.&lt;br /&gt;
&lt;br /&gt;
I will select the file '''printuserinput.sce''' that was previously saved.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Save''' button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''File already exists''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
| On the '''File already exists''' window, click on '''Yes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' Window,&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a '''dialog''' box that displays the message “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
| Video-editor: Pls put a textbox on screen. “If Replace File? Window pops up, click on Reload.”&lt;br /&gt;
| If the '''Replace File?''' window pops up, then click on '''Reload. '''&lt;br /&gt;
|-&lt;br /&gt;
| Close '''Graphic Window number 1.'''&lt;br /&gt;
| Close the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
| Minimize the '''GUIBuilder Palette''' window.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
| The corresponding updated '''sce file''' is displayed. &amp;amp;lt;&amp;amp;lt;PAUSE&amp;amp;gt;&amp;amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
There is another way to change the '''object''' properties using the '''sce''' file.&lt;br /&gt;
&lt;br /&gt;
We know that each '''object''' has its unique '''handle''' and '''uicontrol function'''.&lt;br /&gt;
&lt;br /&gt;
So, the properties can be changed by modifying the '''object's uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
within '''h1 uicontrol''' function,&lt;br /&gt;
&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''‘Fontsize’ ,[12].'''&lt;br /&gt;
&lt;br /&gt;
Change '''FontSize''' 12 to 20.&lt;br /&gt;
|&lt;br /&gt;
By using this method, let us change the '''Fontsize''' of a '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
I'll make changes in '''uicontrol''' parentheses of '''h1''' which is a '''pushbutton's handle'''.&lt;br /&gt;
&lt;br /&gt;
Change the '''FontSize''' 12 to 20.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute,''' and then click on '''File with echo'''&lt;br /&gt;
|&lt;br /&gt;
Now let us execute the code.&lt;br /&gt;
&lt;br /&gt;
Click on '''Execute''' on the top '''menubar''' and then on '''File with echo'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
replace the '''String''' on '''Edit''' box with '''Hello.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 1''' opens.&lt;br /&gt;
&lt;br /&gt;
Let us test the '''GUI'''.&lt;br /&gt;
&lt;br /&gt;
Replace the '''String''' on the '''Edit''' box with “'''Hello”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print''' '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''Print''' '''Pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The message “'''Hello'''” appears in the '''Text''' box.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on the '''Text''' box'''.'''&lt;br /&gt;
|&lt;br /&gt;
Notice that the '''String''' value in the '''Text''' box is now&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Aligned to the center,&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The '''font''' is bigger, '''italic''' and '''bold''', and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The '''Background''' color and the '''Foreground''' color have changed.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on the '''Print Pushbutton.'''&lt;br /&gt;
| The string “'''Print'''” on the '''pushbutton''' now has a larger font size.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we have:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Changed the properties of an '''object'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Changed the size of an '''object''' and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Changed the alignment of '''objects''' in the '''GUI window'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following modifications to the current '''GUI'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Change the '''Background color''' of the '''Edit''' box to [1,0,0]. Observe the color.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Change the '''FontSize''' to 18 units for the '''Edit''' box'''.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
Rearrange the '''objects''' as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Edit''' box to the left of '''Print Pushbutton'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Text''' box to the right of '''Print Pushbutton'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, place the objects with equal spacing.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| For any general or technical questions on '''Scilab''', visit the '''FOSSEE forum''' and post your question.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a FOSSEE intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</id>
		<title>GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English"/>
				<updated>2021-08-06T14:00:57Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Creating a '''GUI''' to Print the User Input&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Edit''' box, '''Text''' box, '''.string''' command, Creating a '''GUI,''' Print the User Input, '''GUI Builder Toolbox, Tag, String, callback function, Pushbutton'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Creating a '''GUI''' to Print User Input in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add an '''Edit''' box to '''prompt''' for user input.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add a '''Text''' box to display the output.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We’ll also learn about the '''string command'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI Builder Toolbox 4.2.1'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in Linux OS also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://www.spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The files used in this tutorial are provided in the '''Code files''' link.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Please download and extract the files.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Make a copy and then use them while practising.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
|&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box is an editable '''string''' which takes input from a user.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
|&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
&lt;br /&gt;
A '''Text''' box is a non-editable '''string''' used to display text or numbers.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Scilab Console Window.'''&lt;br /&gt;
|&lt;br /&gt;
Let us switch to the '''Scilab console''' window.&lt;br /&gt;
&lt;br /&gt;
Notice that I already have the '''GUI Builder Toolbox''' loaded in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console Window,'''&lt;br /&gt;
&lt;br /&gt;
type '''guibuilder,''' press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now type '''guibuilder''' and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',&lt;br /&gt;
&lt;br /&gt;
click on '''Open.'''&lt;br /&gt;
| On the '''GUIBuilder Palette,''' click on '''Open''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Open an existing GUI''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
|&lt;br /&gt;
A '''prompt''' named '''Open an existing GUI''' appears.&lt;br /&gt;
&lt;br /&gt;
Click on '''Yes''' to proceed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uigetfile''' window,&lt;br /&gt;
&lt;br /&gt;
locate '''printpushbutton.sce.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|&lt;br /&gt;
This opens another window named '''uigetfile'''.&lt;br /&gt;
&lt;br /&gt;
Locate the file '''printpushbutton.sce''' and click on it.&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic window number 1'''.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 1''' opens.&lt;br /&gt;
&lt;br /&gt;
It shows the '''GUI''' with a '''pushbutton''' named '''Print'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Let us add an '''Edit''' box and a '''Text''' box in this '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',&lt;br /&gt;
&lt;br /&gt;
click on '''Edit.'''&lt;br /&gt;
| Go to '''GUI Builder Palette''' and click on '''Edit.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''ed_input, '''&lt;br /&gt;
&lt;br /&gt;
type '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
Click '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A dialog box named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
Type ‘'''ed_input’''' as '''Tag''' and ‘'''Enter the input message’''' as '''String. '''&lt;br /&gt;
&lt;br /&gt;
Then click on the '''OK''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Edit''' box in the top left side.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over an '''Edit''' Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
Switch to '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
Place the '''Edit''' box above the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box with the '''string “Enter the input message”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' ,&lt;br /&gt;
&lt;br /&gt;
click on '''Text.'''&lt;br /&gt;
|&lt;br /&gt;
Now, let us take a '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
On '''GUI Builder Palette''', click on '''Text'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''txt_output.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''txt_output''' for '''Tag''' field'''.'''&lt;br /&gt;
&lt;br /&gt;
Do not type anything in the '''String''' field.&lt;br /&gt;
&lt;br /&gt;
We will not display any messages until we receive an input from the user.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Text''' box in the bottom center.&lt;br /&gt;
|&lt;br /&gt;
We’ll place this just below the '''Print''' '''pushbutton''' in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
Click and place the '''Text''' box below the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
A '''Text''' box with the '''string “UnName3”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Text''' Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
A default '''string''' value “'''UnName3”''' is assigned to the '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
This is because the '''String''' field was kept empty.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the interface.&lt;br /&gt;
|&lt;br /&gt;
Now the '''GUI''' part is completed.&lt;br /&gt;
&lt;br /&gt;
Let us proceed to generate an equivalent '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate,''' and then click on '''Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''GUIBuilder Palette'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' on the top '''menubar''' and then on the '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uiputfile''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
|&lt;br /&gt;
We will save this file as '''printuserinput.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Save''' button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays GUI '''created successfully!'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window,&lt;br /&gt;
| The corresponding '''sce file''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
highlight line with '''handles.ed_input.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
Notice the '''handle''' for the '''Edit''' box is '''handles.ed_input'''.&lt;br /&gt;
&lt;br /&gt;
The properties of the '''Edit''' box are defined in its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight '''handles.txt_output.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
The '''handle''' for the '''Text''' box is '''handles.txt_output'''.&lt;br /&gt;
&lt;br /&gt;
Its properties are defined within its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Scroll down to the end.&lt;br /&gt;
&lt;br /&gt;
Place the cursor within the '''h1_callback function.'''&lt;br /&gt;
|&lt;br /&gt;
Now, scroll down to the end of the code file.&lt;br /&gt;
&lt;br /&gt;
Let us make the '''pushbutton''' interactive.&lt;br /&gt;
&lt;br /&gt;
For that, we will write the '''code''' within the '''h1_callback function.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
within '''h1_callback''',&lt;br /&gt;
&lt;br /&gt;
type,&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip)'''&lt;br /&gt;
| Type the code as seen here with the same '''syntax'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
| The first line will '''assign''' the user input from an '''Edit box''' to the '''variable ip.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight''','''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip) '''&lt;br /&gt;
| The next line will '''pass''' the value of '''variable ip''' to a '''Text box'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''.string''' after '''Edit''' and '''Text''' box '''handle'''.&lt;br /&gt;
|&lt;br /&gt;
'''GUI''' supports '''string''' format while taking and '''passing''' the values.&lt;br /&gt;
&lt;br /&gt;
Hence, I have added it after the '''Edit''' and '''Text''' box '''handle'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''string(ip)'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''variable ‘ip’''' while passing the value back to the '''Text''' box handle.&lt;br /&gt;
&lt;br /&gt;
It is put within the parentheses of the '''string command.'''&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save the file by pressing '''Control''' and '''S''' key together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
Click on '''Execute,''' and then click on '''File with echo.'''&lt;br /&gt;
| To execute, click on '''Execute''' on the top '''menubar''' and then on '''file with echo'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
This shows the '''GUI''' which we just created with the '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
Let us now test the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Delete '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
Type '''Welcome to Scilab!'''&lt;br /&gt;
|&lt;br /&gt;
Delete the '''string “Enter the input message”''' from the '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
Then type “'''Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Welcome to Scilab!'''”&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box displays the '''string “Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Delete '''Welcome to Scilab!'''&lt;br /&gt;
&lt;br /&gt;
Type 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us test this using numbers now.&lt;br /&gt;
&lt;br /&gt;
Delete the '''string “Welcome to Scilab!”''' from the '''Edit''' box and type '''258.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print Pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over number 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box shows the number '''258''' which we typed just now.&lt;br /&gt;
&lt;br /&gt;
Likewise, you can try some more inputs for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Added an '''Edit''' box to '''prompt''' for user input.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Added a '''Text''' box to display the output'''.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about the '''String command'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add one more '''pushbutton''' and '''Edit''' box to the current '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Type in the '''String''' fields of the two '''Edit''' boxes -&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''“Enter the input message 1”,'''and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''“Enter the input message 2”.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Name the '''String''' fields of the two '''pushbuttons''' as '''“Print 1”''' and '''“Print 2”.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Modify the '''callback function''' to get the output of both the '''Edit''' boxes in a single '''Text''' box.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| For any general or technical questions on '''Scilab''', visit the '''FOSSEE forum''' and post your question.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a FOSSEE intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</id>
		<title>GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English"/>
				<updated>2021-08-06T13:33:59Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Installation of '''GUI Builder Toolbox'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: GUI Builder Toolbox, Main categories - ATOMS, Tag, String, callback function, Pushbutton, static response.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Installation of '''GUI Builder Toolbox''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Install '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;About '''GUIBuilder Palette.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Create a '''Graphical User Interface''' using '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add '''Tag''' and '''String''' for the object.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Generate a '''static response''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
Only Narration&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS''' and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is identical in '''Linux''' '''OS''' also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Installation Requirements'''&lt;br /&gt;
| For the installation of '''GUI Builder Toolbox''', a working '''Internet''' connection is required.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
|&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
&lt;br /&gt;
'''GUI Builder''' '''Toolbox''' in '''Scilab:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Is one of the ways to create a '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI''' is the abbreviation for '''Graphical User Interface.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
Advantages of using '''GUI Builder Toolbox'''&lt;br /&gt;
|&lt;br /&gt;
Now let us look at the advantages of the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The t'''oolbox''' auto-generates a '''Scilab''' code for a '''GUI''' with object handle properties.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;This allows the user to build the '''GUI''' with ease.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;In the absence of this '''toolbox,''' users must write code from scratch to build the '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Let’s first learn to '''install''' the '''GUI Builder toolbox. '''&lt;br /&gt;
&lt;br /&gt;
This can be done in a number of ways. We will look at one of them.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab console.'''&lt;br /&gt;
&lt;br /&gt;
Type '''atomsGui'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Open '''Scilab.'''&lt;br /&gt;
&lt;br /&gt;
In the '''Scilab console''' window, type '''atomsGui.'''&lt;br /&gt;
&lt;br /&gt;
The '''commands''' are case sensitive. Hence, please retain the '''syntax''' as shown here.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
|&lt;br /&gt;
The '''Main categories - ATOMS''' window opens.&lt;br /&gt;
&lt;br /&gt;
This window has two panels.&lt;br /&gt;
&lt;br /&gt;
The left panel displays a list of '''toolbox categories'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the blank right panel.&lt;br /&gt;
|&lt;br /&gt;
Notice that the right panel is blank since I have not '''installed''' the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
It will display the details of the '''toolbox''' after '''installation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Click once on the '''GUI.'''&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI''' seen on the left panel'''.'''&lt;br /&gt;
&lt;br /&gt;
This will show the list of '''toolboxes''' available in the '''GUI''' category.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Click once on '''GUI Builder''' .&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI Builder.'''&lt;br /&gt;
&lt;br /&gt;
This will show the details of this '''toolbox''' on the right side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories -'''&lt;br /&gt;
&lt;br /&gt;
'''ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Highlight the '''version.'''&lt;br /&gt;
|&lt;br /&gt;
Scroll up and notice the '''Version''' of the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
At the time of recording this video, the current version of the '''toolbox''' is '''4.2.1.'''&lt;br /&gt;
&lt;br /&gt;
It could be different when you are watching this tutorial at a later date.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window, Click '''Install.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Installation Done”''' message.&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Install''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
If successful, the '''Installation Done''' message appears at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
| Close and reopen Scilab.&lt;br /&gt;
|&lt;br /&gt;
After this, we need to restart '''Scilab''' for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
Let’s close and then reopen '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab''' '''console.'''&lt;br /&gt;
| Notice that the '''GUI Builder Toolbox''' gets loaded upon starting '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab''' '''console. '''&lt;br /&gt;
&lt;br /&gt;
Type '''guibuilder''' and&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now, type '''guibuilder''' in the '''Scilab console''', and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window and '''Graphic Window Number 1.'''&lt;br /&gt;
|&lt;br /&gt;
The '''GUIBuilder Palette''' window is located on the left side.&lt;br /&gt;
&lt;br /&gt;
The '''Graphic Window Number 1''' is located on the right side.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window, Hover cursor over the '''Pushbutton, Radiobutton, Checkbox, Edit, Text box''' .&lt;br /&gt;
|&lt;br /&gt;
Let us look at the '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
It has objects such as,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Pushbutton, '''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Radiobutton,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Checkbox,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;An '''Edit box,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Text box''', and many more.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''Left, Right, Up,''' and '''Down.'''&lt;br /&gt;
|&lt;br /&gt;
On the right, the direction keys '''Up, Down, Left,''' and '''Right''' are provided.&lt;br /&gt;
&lt;br /&gt;
They are used to shift the selected objects in the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''W-, W+.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''H-, H+.'''&lt;br /&gt;
|&lt;br /&gt;
Below the direction keys, notice '''W- (W minus)''' and '''W+ (W plus)''' keys.&lt;br /&gt;
&lt;br /&gt;
They enable the user to adjust the width of the selected object.&lt;br /&gt;
&lt;br /&gt;
'''H- (H minus)''' and '''H+ (H plus)''' are given to adjust the height of the selected object.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1.'''&lt;br /&gt;
| Objects are placed in '''Graphic window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on the '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Let us create a '''GUI''' by placing objects in '''Graphic Windows number 1'''.&lt;br /&gt;
&lt;br /&gt;
Go to the '''GUI Builder Palette''' and click on the '''Pushbutton'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Tag.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
Notice the '''Tag''' field. It is a unique '''identifier''' for each '''GUI''' object.&lt;br /&gt;
&lt;br /&gt;
It allows you to give a name to the object.&lt;br /&gt;
&lt;br /&gt;
A '''Tag''' can be a number or an alphabet or its combination.&lt;br /&gt;
&lt;br /&gt;
Users can assign any value as a '''Tag'''.&lt;br /&gt;
|-&lt;br /&gt;
| Type '''h1''' in the '''Tag''' field'''.'''&lt;br /&gt;
| I will type '''h1''' in the '''Tag''' field'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''String.'''&lt;br /&gt;
| Below '''Tag''', we see the '''String''' field.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
Type '''Print''' in the '''String''' field'''.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
The text in the '''String''' field is the display name for the object in the '''Graphic''' '''window.'''&lt;br /&gt;
&lt;br /&gt;
I will type '''Print''' in the '''String''' field and then, click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click once in the middle left side.&lt;br /&gt;
&lt;br /&gt;
Drag the cursor to draw a line box'''.'''&lt;br /&gt;
|&lt;br /&gt;
In the '''Graphic Window number 1,''' click once near the middle left side of the window.&lt;br /&gt;
&lt;br /&gt;
Then drag the mouse diagonally downwards to draw a rectangle.&lt;br /&gt;
&lt;br /&gt;
Notice a line box.&lt;br /&gt;
&lt;br /&gt;
The size of this can be varied by moving the cursor on the window.&lt;br /&gt;
|-&lt;br /&gt;
| Click again on the window.&lt;br /&gt;
| Click again on the '''Graphic Window''' to place the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Print pushbutton. '''&lt;br /&gt;
|&lt;br /&gt;
Notice that a '''pushbutton''' named '''Print''' appears on '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
The '''Graphical User Interface''' is now ready.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI code . '''&lt;br /&gt;
|&lt;br /&gt;
To generate the '''Scilab''' '''code,''' go to the '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Generate''' menu seen on the top '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''printpushbuttongui &amp;amp;gt;&amp;amp;gt;''' click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
| I will save this file as '''printpushbuttongui''' and click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A confirmation message is displayed which says, “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
Immediately, the corresponding '''Scilab file''' opens'''.'''&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', all the '''properties''' of the figure and '''object''' are provided.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight '''handles.h1,'''&lt;br /&gt;
&lt;br /&gt;
highlight the part inside '''uicontrol''' parentheses.&lt;br /&gt;
|&lt;br /&gt;
'''handles.h1''' is the '''handle''' for the '''pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Inside the '''uicontrol''' parentheses the properties of the '''pushbutton''' are given.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''h1_callback''' function.&lt;br /&gt;
|&lt;br /&gt;
The '''callback function h1_callback''' is defined at the bottom'''.'''&lt;br /&gt;
&lt;br /&gt;
Code written within this '''function''' will get executed on pressing the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window.&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''disp(“Hello World!”).'''&lt;br /&gt;
|&lt;br /&gt;
Let us now write a code within '''h1_callback'''.&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
This '''command''' will display “'''Hello World!”''' on the '''Scilab console''' when executed.&lt;br /&gt;
&lt;br /&gt;
The '''program''' is now complete.&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save it by pressing the '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute.'''&lt;br /&gt;
| Click on '''Execute''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
| Click on '''File with echo'''&lt;br /&gt;
| Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
The '''pushbutton''' named '''Print''' appears in the graphic window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Print.'''&lt;br /&gt;
|&lt;br /&gt;
Next, let us test our '''GUI.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The code gets executed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the message '''Hello World!'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''Scilab Console''' to see the output.&lt;br /&gt;
&lt;br /&gt;
The '''console''' shows the message “'''Hello World!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print pushbutton''' three times'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now again click the '''Print pushbutton''' three times.&lt;br /&gt;
&lt;br /&gt;
Notice that on the '''Scilab Console,''' the '''static response''' is generated three times.&lt;br /&gt;
&lt;br /&gt;
So, for each click on the '''pushbutton,''' a '''static response''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Installed the '''GUI Builder''' '''Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about the '''GUIBuilder Palette.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Created a '''Graphical User Interface''' using '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about '''Tag''' and '''String''' for the object.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Generated a '''static response''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Add one more '''pushbutton''' to the current '''GUI''' as described below,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add '''String''' name as ''''Press here'''' for the '''Pushbutton'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Write a '''callback function''' to display the message ''''Good day!'''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| The '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</id>
		<title>GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English"/>
				<updated>2021-08-06T13:32:59Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script:''' Installation of '''GUI Builder Toolbox'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: GUI Builder Toolbox, Main categories - ATOMS, Tag, String, callback function, Pushbutton, static response.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Installation of '''GUI Builder Toolbox''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Install '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;About '''GUIBuilder Palette.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Create a '''Graphical User Interface''' using '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add '''Tag''' and '''String''' for the object.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Generate a '''static response''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
Only Narration&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10''' '''OS''' and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is identical in '''Linux''' '''OS''' also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Installation Requirements'''&lt;br /&gt;
| For the installation of '''GUI Builder Toolbox''', a working '''Internet''' connection is required.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
|&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
&lt;br /&gt;
'''GUI Builder''' '''Toolbox''' in '''Scilab:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Is one of the ways to create a '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI''' is the abbreviation for '''Graphical User Interface.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
Advantages of using '''GUI Builder Toolbox'''&lt;br /&gt;
|&lt;br /&gt;
Now let us look at the advantages of the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The t'''oolbox''' auto-generates a '''Scilab''' code for a '''GUI''' with object handle properties.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;This allows the user to build the '''GUI''' with ease.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;In the absence of this '''toolbox,''' users must write code from scratch to build the '''GUI'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Let’s first learn to '''install''' the '''GUI Builder toolbox. '''&lt;br /&gt;
&lt;br /&gt;
This can be done in a number of ways. We will look at one of them.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab console.'''&lt;br /&gt;
&lt;br /&gt;
Type '''atomsGui'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Open '''Scilab.'''&lt;br /&gt;
&lt;br /&gt;
In the '''Scilab console''' window, type '''atomsGui.'''&lt;br /&gt;
&lt;br /&gt;
The '''commands''' are case sensitive. Hence, please retain the '''syntax''' as shown here.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
|&lt;br /&gt;
The '''Main categories - ATOMS''' window opens.&lt;br /&gt;
&lt;br /&gt;
This window has two panels.&lt;br /&gt;
&lt;br /&gt;
The left panel displays a list of '''toolbox categories'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the blank right panel.&lt;br /&gt;
|&lt;br /&gt;
Notice that the right panel is blank since I have not '''installed''' the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
It will display the details of the '''toolbox''' after '''installation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Click once on the '''GUI.'''&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI''' seen on the left panel'''.'''&lt;br /&gt;
&lt;br /&gt;
This will show the list of '''toolboxes''' available in the '''GUI''' category.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Click once on '''GUI Builder''' .&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI Builder.'''&lt;br /&gt;
&lt;br /&gt;
This will show the details of this '''toolbox''' on the right side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories -'''&lt;br /&gt;
&lt;br /&gt;
'''ATOMS''' window.&lt;br /&gt;
&lt;br /&gt;
Highlight the '''version.'''&lt;br /&gt;
|&lt;br /&gt;
Scroll up and notice the '''Version''' of the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
At the time of recording this video, the current version of the '''toolbox''' is '''4.2.1.'''&lt;br /&gt;
&lt;br /&gt;
It could be different when you are watching this tutorial at a later date.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS''' window, Click '''Install.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Installation Done”''' message.&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Install''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
If successful, the '''Installation Done''' message appears at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
| Close and reopen Scilab.&lt;br /&gt;
|&lt;br /&gt;
After this, we need to restart '''Scilab''' for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
Let’s close and then reopen '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab''' '''console.'''&lt;br /&gt;
| Notice that the '''GUI Builder Toolbox''' gets loaded upon starting '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab''' '''console. '''&lt;br /&gt;
&lt;br /&gt;
Type '''guibuilder''' and&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now, type '''guibuilder''' in the '''Scilab console''', and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window and '''Graphic Window Number 1.'''&lt;br /&gt;
|&lt;br /&gt;
The '''GUIBuilder Palette''' window is located on the left side.&lt;br /&gt;
&lt;br /&gt;
The '''Graphic Window Number 1''' is located on the right side.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window, Hover cursor over the '''Pushbutton, Radiobutton, Checkbox, Edit, Text box''' .&lt;br /&gt;
|&lt;br /&gt;
Let us look at the '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
It has objects such as,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Pushbutton, '''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Radiobutton,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Checkbox,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;An '''Edit box,'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Text box''', and many more.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''Left, Right, Up,''' and '''Down.'''&lt;br /&gt;
|&lt;br /&gt;
On the right, the direction keys '''Up, Down, Left,''' and '''Right''' are provided.&lt;br /&gt;
&lt;br /&gt;
They are used to shift the selected objects in the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''W-, W+.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''H-, H+.'''&lt;br /&gt;
|&lt;br /&gt;
Below the direction keys, notice '''W- (W minus)''' and '''W+ (W plus)''' keys.&lt;br /&gt;
&lt;br /&gt;
They enable the user to adjust the width of the selected object.&lt;br /&gt;
&lt;br /&gt;
'''H- (H minus)''' and '''H+ (H plus)''' are given to adjust the height of the selected object.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1.'''&lt;br /&gt;
| Objects are placed in '''Graphic window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on the '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Let us create a '''GUI''' by placing objects in '''Graphic Windows number 1'''.&lt;br /&gt;
&lt;br /&gt;
Go to the '''GUI Builder Palette''' and click on the '''Pushbutton'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Tag.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
Notice the '''Tag''' field. It is a unique '''identifier''' for each '''GUI''' object.&lt;br /&gt;
&lt;br /&gt;
It allows you to give a name to the object.&lt;br /&gt;
&lt;br /&gt;
A '''Tag''' can be a number or an alphabet or its combination.&lt;br /&gt;
&lt;br /&gt;
Users can assign any value as a '''Tag'''.&lt;br /&gt;
|-&lt;br /&gt;
| Type '''h1''' in the '''Tag''' field'''.'''&lt;br /&gt;
| I will type '''h1''' in the '''Tag''' field'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''String.'''&lt;br /&gt;
| Below '''Tag''', we see the '''String''' field.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
Type '''Print''' in the '''String''' field'''.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
The text in the '''String''' field is the display name for the object in the '''Graphic''' '''window.'''&lt;br /&gt;
&lt;br /&gt;
I will type '''Print''' in the '''String''' field and then, click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click once in the middle left side.&lt;br /&gt;
&lt;br /&gt;
Drag the cursor to draw a line box'''.'''&lt;br /&gt;
|&lt;br /&gt;
In the '''Graphic Window number 1,''' click once near the middle left side of the window.&lt;br /&gt;
&lt;br /&gt;
Then drag the mouse diagonally downwards to draw a rectangle.&lt;br /&gt;
&lt;br /&gt;
Notice a line box.&lt;br /&gt;
&lt;br /&gt;
The size of this can be varied by moving the cursor on the window.&lt;br /&gt;
|-&lt;br /&gt;
| Click again on the window.&lt;br /&gt;
| Click again on the '''Graphic Window''' to place the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Print pushbutton. '''&lt;br /&gt;
|&lt;br /&gt;
Notice that a '''pushbutton''' named '''Print''' appears on '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
The '''Graphical User Interface''' is now ready.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Generate GUI code . '''&lt;br /&gt;
|&lt;br /&gt;
To generate the '''Scilab''' '''code,''' go to the '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Generate''' menu seen on the top '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type '''printpushbuttongui &amp;amp;gt;&amp;amp;gt;''' click '''Save.'''&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
| I will save this file as '''printpushbuttongui''' and click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created''' window.&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A confirmation message is displayed which says, “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
Immediately, the corresponding '''Scilab file''' opens'''.'''&lt;br /&gt;
&lt;br /&gt;
Inside this '''file''', all the '''properties''' of the figure and '''object''' are provided.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight '''handles.h1,'''&lt;br /&gt;
&lt;br /&gt;
highlight the part inside '''uicontrol''' parentheses.&lt;br /&gt;
|&lt;br /&gt;
'''handles.h1''' is the '''handle''' for the '''pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Inside the '''uicontrol''' parentheses the properties of the '''pushbutton''' are given.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''h1_callback''' function.&lt;br /&gt;
|&lt;br /&gt;
The '''callback function h1_callback''' is defined at the bottom'''.'''&lt;br /&gt;
&lt;br /&gt;
Code written within this '''function''' will get executed on pressing the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window.&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''disp(“Hello World!”).'''&lt;br /&gt;
|&lt;br /&gt;
Let us now write a code within '''h1_callback'''.&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
This '''command''' will display “'''Hello World!”''' on the '''Scilab console''' when executed.&lt;br /&gt;
&lt;br /&gt;
The '''program''' is now complete.&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save it by pressing the '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute.'''&lt;br /&gt;
| Click on '''Execute''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
| Click on '''File with echo'''&lt;br /&gt;
| Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
The '''pushbutton''' named '''Print''' appears in the graphic window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Print.'''&lt;br /&gt;
|&lt;br /&gt;
Next, let us test our '''GUI.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
The code gets executed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the message '''Hello World!'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''Scilab Console''' to see the output.&lt;br /&gt;
&lt;br /&gt;
The '''console''' shows the message “'''Hello World!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print pushbutton''' three times'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now again click the '''Print pushbutton''' three times.&lt;br /&gt;
&lt;br /&gt;
Notice that on the '''Scilab Console,''' the '''static response''' is generated three times.&lt;br /&gt;
&lt;br /&gt;
So, for each click on the '''pushbutton,''' a '''static response''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Installed the '''GUI Builder''' '''Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about the '''GUIBuilder Palette.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Created a '''Graphical User Interface''' using '''GUI Builder Toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about '''Tag''' and '''String''' for the object.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Generated a '''static response''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Add one more '''pushbutton''' to the current '''GUI''' as described below,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Add '''String''' name as ''''Press here'''' for the '''Pushbutton'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Write a '''callback function''' to display the message ''''Good day!'''' on the '''Scilab console'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| The '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-08-06T13:11:13Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''                   Title of the script: '''Building '''GUI''' to graph a '''Linear Equation'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes, '''plot the response of a '''Linear Equation, strtod '''command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a '''Linear Equation’''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''        '''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the''' Linear Equation '''of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the''' Linear Equation '''of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
m is '''slope''' and&lt;br /&gt;
&lt;br /&gt;
c is '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will use these two equations to plot a graph of a '''Linear Equation''' of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Axes '''is a '''GUI '''object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing '''Linear equation'''&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “linearequation.sce”.&lt;br /&gt;
| I have already opened the '''linearequation.sce '''file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
over cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It''' '''opens the '''GUI''' with the three '''Edit '''boxes''',''' a '''Pushbutton''' and two '''Text '''boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit '''box with''' String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: ed_A, String: Enter the value of A”&lt;br /&gt;
| The first '''Edit '''box has the '''string''' '''“Enter the value of A” '''with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit '''box with''' String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: ed_B, String: Enter the value of B”&lt;br /&gt;
| The second '''Edit '''box has the '''string''' '''“Enter the value of B” '''with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit '''box with''' String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: ed_C, String: Enter the value of C”&lt;br /&gt;
| The third '''Edit '''box has the '''string''' '''“Enter the value of C” '''with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text '''box with''' String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: txt_slope, String: UnName4”&lt;br /&gt;
| The first '''Text '''box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text '''box with''' String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: txt_y_int, String: UnName5”&lt;br /&gt;
| The second '''Text '''box has the '''string “UnName5” '''with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with''' String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: pb_plot, String: Plot”&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot '''as '''tag''' and '''Plot '''as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a''' linear equation. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot '''as '''Tag, '''&lt;br /&gt;
&lt;br /&gt;
type '''Plot '''as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot '''as '''Tag, '''and '''Plot '''as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes '''in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on''' Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type''' axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click''' Save.'''&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on''' OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code '''has been generated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside this''' file''', notice the '''handles '''of the seven &lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A '''is the '''handle''' for taking user input for''' A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B '''is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C '''is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope '''is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int '''is the '''handle '''for displaying the''' y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot '''is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot '''is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback '''function.&lt;br /&gt;
| Now let us write a '''function definition''' for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same '''syntax'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit '''boxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the '''slope''' and '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables''' slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,''' '''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text '''boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
|&lt;br /&gt;
At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle command''', we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid command''' is used'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute, '''and then click on''' File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To '''run''' the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, &lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, &lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''slope''' and '''y intercept''' Text boxes.&lt;br /&gt;
|&lt;br /&gt;
These are the '''slope''' and '''y intercept''' values for the''' linear equation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a '''linear equation''' of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we have learnt:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI '''to,&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Object-properties-and-alignment-in-GUI/English</id>
		<title>GUI-in-Scilab/C2/Object-properties-and-alignment-in-GUI/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Object-properties-and-alignment-in-GUI/English"/>
				<updated>2021-08-06T13:10:47Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: ''' '''Object''' properties and alignment in '''GUI'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Properties of an '''object, '''size of an '''object, '''alignment of '''objects, delete '''an '''object, objects''' of same size, '''objects''' equally spaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1 &lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on '''Object''' properties and alignment in '''GUI''' in Scilab.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
| In this tutorial, we will learn to:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''        '''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS '''also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window'''.'''&lt;br /&gt;
|&lt;br /&gt;
I have opened the '''GUIBuilder toolbox''' in my system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please do so in your system, also.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
click on '''Open.'''&lt;br /&gt;
| On the '''GUIBuilder Palette window, '''click on '''Open '''in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Open an existing GUI '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a '''dialog '''box''' '''that displays '''Open an existing GUI.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Yes.'''&lt;br /&gt;
|-&lt;br /&gt;
| Open the file named '''printuserinput.sce'''&lt;br /&gt;
| Locate the folder where '''printuserinput.sce '''file is saved and open it.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over the three '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It''' '''opens the '''GUI''' which has,&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Now let us see how to change some of the '''object''' properties of the '''Text '''box'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the right panel.&lt;br /&gt;
|&lt;br /&gt;
For this, go to the '''GUIBuilder Palette.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the right side panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It shows a list of '''Tag''' names for the '''objects''' on the '''Graphic window'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette '''window, &lt;br /&gt;
&lt;br /&gt;
click on '''txt_output. '''&lt;br /&gt;
|&lt;br /&gt;
Click on '''txt_output'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''Text''' box in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It has a red border indicating that it is selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette '''window, &lt;br /&gt;
&lt;br /&gt;
Click on '''ObjectProperties.'''&lt;br /&gt;
| Then click on '''ObjectProperties '''at the bottom right of the '''GUIBuilder Palette '''window'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window.&lt;br /&gt;
|&lt;br /&gt;
A '''Scilab Multiple Values Request '''window opens. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We see that the '''object''' properties are displayed on the left side.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Respective property values are seen on the right side with some default values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are assigned to the properties that are not predefined.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, not all of the properties apply to all the '''objects'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''help uicontrol_properties'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''help uicontrol_properties'''&lt;br /&gt;
|&lt;br /&gt;
To learn more about it, users need to type''' '''a '''command''' in the '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type''' help space uicontrol underscore properties '''to see the detailed help.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab Multiple Values Request '''window.&lt;br /&gt;
| Let us now change the properties that are applicable to the '''Text''' box.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, &lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
|&lt;br /&gt;
First we’ll change the '''Background '''color of the '''Text '''box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We see a vector with the default values [-1,-1,-1].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They specify''' Red, Green, Blue''' color values respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Selecting the values between 0 and 1, will change the color.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s change it to [0.5,0.6,0.7].&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, &lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''italic.'''&lt;br /&gt;
|&lt;br /&gt;
Next, we will change the '''Font angle.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We see '''normal '''as the default value'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will change it to '''italic.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This property will set the slant of the '''font'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple ValuesRequest '''window, &lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
&lt;br /&gt;
Type '''25.'''&lt;br /&gt;
|&lt;br /&gt;
We see '''[12]''' as the default '''FontSize '''value'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will change it to '''[25].'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple ValuesRequest '''window,&lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
&lt;br /&gt;
Type '''bold.'''&lt;br /&gt;
|&lt;br /&gt;
Next, the default '''FontWeight '''value is set as '''normal.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s change it to '''bold.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will make the '''string''' value '''bold.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple ValuesRequest '''window,&lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
|&lt;br /&gt;
Set the '''ForegroundColor '''default value''' '''[-1,-1,-1] to [0.7,0.8,0.9]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The color of the '''string''' value will change as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, as per narration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''center.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now change the alignment of the '''string''' value. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We see '''left''' as the default '''HorizontalAlignment.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s change this to '''center.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, &lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
|&lt;br /&gt;
Lastly, we will change the '''String''' property. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default value is '''UnName3'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This property represents the text appearing on an''' object'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, &lt;br /&gt;
&lt;br /&gt;
delete '''UnName3.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Delete '''UnName3''', and we'll keep it empty.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have now changed enough properties of the '''Text''' box. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explore the remaining properties later on your own, for better understanding.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Ok'''.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Now let us change the location of the '''Text '''box'''.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on''' GUIBuilder Palette '''window.&lt;br /&gt;
| We will return to the '''GUIBuilder Palette '''window and click on '''txt_output '''once.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on''' GUIBuilder Palette '''window.&lt;br /&gt;
|&lt;br /&gt;
We see the four direction buttons in the right panel, namely '''Up, Down, Right,''' and '''Left'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will click once on the '''Left''' button.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
Notice that the '''Text '''box has moved slightly to the left.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It can be shifted to any side by using the respective direction buttons.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Move '''button'''.'''&lt;br /&gt;
|&lt;br /&gt;
Another way to move the '''Text '''box is by using the '''Move '''button'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is''' '''located below the direction buttons'''. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''txt_output.'''&lt;br /&gt;
&lt;br /&gt;
click on '''Move.'''&lt;br /&gt;
|&lt;br /&gt;
Make sure that the '''txt_output '''is still selected'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''Move'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''', &lt;br /&gt;
&lt;br /&gt;
move''' '''the cursor across the window'''.'''&lt;br /&gt;
|&lt;br /&gt;
Now move the cursor across the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A box with a black border and the same size as the '''Text''' box appears.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that it appears wherever the cursor is moved.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
click in the bottom left side of the window'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us place the '''Text''' box in the bottom left side by clicking on the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is how we can move the '''Text''' box with the help of the '''Move''' button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Text''' box.&lt;br /&gt;
|&lt;br /&gt;
Next, let us change the height and width of the '''Text '''box'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Make sure the''' Text''' box still has a red border indicating it’s selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''W+, W- '''buttons'''.'''&lt;br /&gt;
|&lt;br /&gt;
I will now click on '''W+ (W plus) '''button'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that this action increases the width of the '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, clicking '''W- (W minus) '''will decrease its width.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''H+, H- '''buttons'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now increase the height of the '''Text''' box by clicking the '''H+ (H plus) '''button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Likewise, we can use the '''H- (H minus) '''button to decrease its height.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
|&lt;br /&gt;
Below this, we have a '''Delete '''button. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is used to delete the selected object from the '''Graphic Window.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Alignments''' button present in the right panel.&lt;br /&gt;
| Next, let us learn how to use the '''Alignments''' button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
press and Hold '''Ctrl''', and click on the '''Tag''' value of each object in the right panel.&lt;br /&gt;
|&lt;br /&gt;
Press and hold the '''Ctrl '''key on your keyboard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Tag''' value of each''' object''' in the right panel.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
| All selected '''objects''' now have a red border indicating they are selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''Alignments.'''&lt;br /&gt;
|&lt;br /&gt;
On the bottom right of the '''GUIBuilder Palette '''window, click the '''Alignments '''button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignment''' window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
hover cursor over the three '''Alignment '''sections.&lt;br /&gt;
|&lt;br /&gt;
A '''GUI Alignment''' window pops up. &lt;br /&gt;
&lt;br /&gt;
This has&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window,&lt;br /&gt;
&lt;br /&gt;
click on the '''Same Width '''and''' Same Height '''button.&lt;br /&gt;
| Click once on the '''Same Width '''and''' Same Height '''buttons.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the selected '''objects''' in the''' Graphic window'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They now have the same width and height.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can see that the '''objects''' are currently placed one below the other.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window.&lt;br /&gt;
| So, we will use the buttons under '''Vertical''' '''Alignment '''heading'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Equally Spaced. '''&lt;br /&gt;
| Click once on the '''Equally Spaced '''button'''. '''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
The '''objects''' are now arranged such that they are equally spaced. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, let us arrange all the objects to the center of the window.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on GUI Alignments window.&lt;br /&gt;
| To do so, we will use the buttons under '''Horizontal Alignment''' heading.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Center. '''&lt;br /&gt;
| Click once on the '''Center '''button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
The '''objects''' are now arranged in the center.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Learners may pause this video and explore all these options further for better understanding.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUI Alignments''' window.&lt;br /&gt;
| Close the '''GUI Alignments''' window.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Let us test our '''GUI''' now.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Builder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate, '''and click on''' Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''GUI Builder Palette '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' given on the top '''menubar''' and then on '''Generate GUI code. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uiputfile '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''printuserinput.sce'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on OK button.”&lt;br /&gt;
|&lt;br /&gt;
The '''uiputfile '''window will pop up. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will select the file '''printuserinput.sce''' that was previously saved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Save '''button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''File already exists '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
| On the '''File already exists '''window, click on '''Yes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''Window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a '''dialog '''box''' '''that displays the message “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
| Video-editor: Pls put a textbox on screen. “If Replace File? Window pops up, click on Reload.”&lt;br /&gt;
| If the '''Replace File? '''window pops up, then click on '''Reload. '''&lt;br /&gt;
|-&lt;br /&gt;
| Close '''Graphic Window number 1.'''&lt;br /&gt;
| Close the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette '''window.&lt;br /&gt;
| Minimize the '''GUIBuilder Palette '''window.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
| The corresponding updated '''sce file '''is displayed. &amp;amp;lt;&amp;amp;lt;PAUSE&amp;amp;gt;&amp;amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
There is another way to change the '''object''' properties using the '''sce '''file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We know that each '''object''' has its unique '''handle''' and''' uicontrol function'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, the properties can be changed by modifying the '''object's uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
within '''h1 uicontrol''' function,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''‘Fontsize’ ,[12].'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change '''FontSize '''12 to 20.&lt;br /&gt;
|&lt;br /&gt;
By using this method, let us change the '''Fontsize''' of a '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'll make changes in '''uicontrol''' parentheses of '''h1''' which is a '''pushbutton's handle'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the '''FontSize '''12 to 20.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on''' Execute, '''and then click on''' File with echo'''&lt;br /&gt;
|&lt;br /&gt;
Now let us execute the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Execute''' on the top '''menubar''' and then on '''File with echo'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
replace the '''String '''on '''Edit''' box with '''Hello.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 1''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us test the '''GUI'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the '''String '''on the '''Edit''' box with “'''Hello”. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print''' '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''Print''' '''Pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The message “'''Hello'''” appears in the '''Text '''box.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on the '''Text '''box'''.'''&lt;br /&gt;
| Notice that the '''String '''value in the''' Text''' box is now&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on the '''Print Pushbutton.'''&lt;br /&gt;
| The string “'''Print'''” on the '''pushbutton''' now has a larger font size.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we have:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following modifications to the current '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
Rearrange the '''objects''' as follows: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, place the objects with equal spacing.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| For any general or technical questions on '''Scilab''', visit the '''FOSSEE forum''' and post your question.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a FOSSEE intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</id>
		<title>GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English"/>
				<updated>2021-08-06T13:06:42Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: ''' Creating a '''GUI''' to Print the User Input&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Edit '''box, '''Text '''box, '''.string '''command, Creating a '''GUI, '''Print the User Input&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Creating a '''GUI''' to Print User Input in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We’ll also learn about the '''string command'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in Linux OS also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://www.spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
|&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box is an editable '''string''' which takes input from a user.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
|&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''Text '''box is a non-editable '''string''' used to display text or numbers.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Scilab Console Window.'''&lt;br /&gt;
|&lt;br /&gt;
Let us switch to the '''Scilab console''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that I already have the '''GUI Builder Toolbox''' loaded in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console Window,'''&lt;br /&gt;
&lt;br /&gt;
type '''guibuilder, '''press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now type '''guibuilder '''and''' '''press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''', &lt;br /&gt;
&lt;br /&gt;
click on '''Open.'''&lt;br /&gt;
| On the '''GUIBuilder Palette, '''click on '''Open '''in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Open an existing GUI '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
|&lt;br /&gt;
A '''prompt''' named '''Open an existing GUI '''appears.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on''' Yes''' to proceed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uigetfile '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
locate '''printpushbutton.sce.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|&lt;br /&gt;
This opens another window named '''uigetfile'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Locate the file '''printpushbutton.sce '''and click on it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Open. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1'''.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 1''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It shows the '''GUI''' with a '''pushbutton''' named '''Print'''.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Let us add an '''Edit '''box and a '''Text '''box''' '''in this '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',''' '''&lt;br /&gt;
&lt;br /&gt;
click on '''Edit.'''&lt;br /&gt;
| Go to '''GUI Builder Palette''' and click on '''Edit. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
type '''ed_input, '''&lt;br /&gt;
&lt;br /&gt;
type '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A dialog box named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type ‘'''ed_input’ '''as '''Tag '''and ‘'''Enter the input message’ '''as '''String. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on the '''OK '''button'''. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Edit''' box in the top left side.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over an '''Edit '''Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
Switch to '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place the '''Edit''' box above the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An '''Edit '''box with the '''string “Enter the input message”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' ,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Text.'''&lt;br /&gt;
|&lt;br /&gt;
Now, let us take a '''Text '''box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On '''GUI Builder Palette''', click on '''Text'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
type '''txt_output.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''txt_output '''for '''Tag '''field'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Do not type anything in the '''String '''field. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will not display any messages until we receive an input from the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK '''button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Text''' box in the bottom center.&lt;br /&gt;
|&lt;br /&gt;
We’ll place this just below the '''Print''' '''pushbutton''' in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click and place the '''Text''' box below the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''Text '''box with the '''string “UnName3”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Text '''Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
A default '''string''' value “'''UnName3”''' is assigned to the '''Text '''box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is because the '''String''' field was kept empty.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the interface.&lt;br /&gt;
|&lt;br /&gt;
Now the '''GUI''' part is completed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us proceed to generate an equivalent '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Builder Palette '''window.&lt;br /&gt;
&lt;br /&gt;
Click on''' Generate, '''and then click on '''Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''GUIBuilder Palette'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' on the top '''menubar''' and then on the '''Generate GUI code. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uiputfile '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
|&lt;br /&gt;
We will save this file as''' printuserinput.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Save '''button'''. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays GUI''' created successfully!'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window,&lt;br /&gt;
| The corresponding '''sce file '''is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
highlight line with '''handles.ed_input.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
Notice the '''handle '''for the '''Edit '''box''' '''is''' handles.ed_input'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The properties of the '''Edit '''box are defined in its respective''' uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight '''handles.txt_output.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
The '''handle '''for the '''Text '''box''' '''is''' handles.txt_output'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Its properties are defined within its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Scroll down to the end.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place the cursor within the '''h1_callback function.'''&lt;br /&gt;
|&lt;br /&gt;
Now, scroll down to the end of the code file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us make the''' pushbutton '''interactive.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For that, we will write the '''code''' within the '''h1_callback function.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
within '''h1_callback''',&lt;br /&gt;
&lt;br /&gt;
type, &lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
&lt;br /&gt;
Press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip)'''&lt;br /&gt;
| Type the code as seen here with the same '''syntax'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,''' '''&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
|&lt;br /&gt;
The first line will '''assign''' the user input from an '''Edit box''' to the '''variable ip.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight''','''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip) '''&lt;br /&gt;
| The next line will '''pass''' the value of '''variable ip''' to a '''Text box'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight '''.string '''after''' Edit '''and '''Text''' box''' handle'''.&lt;br /&gt;
|&lt;br /&gt;
'''GUI''' supports '''string''' format while taking and '''passing''' the values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence, I have added it after the''' Edit '''and '''Text''' box''' handle'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''string(ip)'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''variable ‘ip’''' while passing the value back to the '''Text''' box handle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is put within the parentheses of the '''string command.'''&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save the file by pressing '''Control''' and '''S''' key together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
Click on '''Execute, '''and then click on''' File with echo.'''&lt;br /&gt;
| To execute, click on '''Execute''' on the top '''menubar''' and then on '''file with echo'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This shows the '''GUI '''which we just created with the '''pushbutton'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us now test the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Delete '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''Welcome to Scilab!'''&lt;br /&gt;
|&lt;br /&gt;
Delete the '''string “Enter the input message” '''from the '''Edit '''box'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then type “'''Welcome to Scilab!” '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Welcome to Scilab!'''”&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box''' '''displays the '''string “Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Delete '''Welcome to Scilab!'''&lt;br /&gt;
&lt;br /&gt;
Type 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us test this using numbers now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Delete the '''string “Welcome to Scilab!” '''from the''' Edit '''box and type '''258. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print Pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over number 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box shows the number '''258''' which we typed just now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Likewise, you can try some more inputs for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| For any general or technical questions on '''Scilab''', visit the '''FOSSEE forum''' and post your question.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a FOSSEE intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</id>
		<title>GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English"/>
				<updated>2021-08-06T13:06:06Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Installation of '''GUI Builder Toolbox'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: GUI Builder Toolbox, Main categories - ATOMS, Tag, String, callback function, Pushbutton, static response.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Installation of '''GUI Builder Toolbox''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
| In this tutorial, we will learn to:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only Narration&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is identical in '''Linux''' '''OS '''also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Installation Requirements'''&lt;br /&gt;
| For the installation of '''GUI Builder Toolbox''', a working '''Internet''' connection is required.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
|&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GUI Builder''' '''Toolbox''' in '''Scilab:'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
Advantages of using '''GUI Builder Toolbox'''&lt;br /&gt;
|&lt;br /&gt;
Now let us look at the advantages of the Toolbox.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
Let’s first learn to '''install''' the '''GUI Builder toolbox. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This can be done in a number of ways. We will look at one of them.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''atomsGui'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Open '''Scilab.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the '''Scilab console '''window, type '''atomsGui.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''commands''' are case sensitive. Hence, please retain the '''syntax''' as shown here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
|&lt;br /&gt;
The '''Main categories - ATOMS '''window opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This window has two panels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The left panel displays a list of '''toolbox categories'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the blank right panel.&lt;br /&gt;
|&lt;br /&gt;
Notice that the right panel is blank since I have not '''installed''' the '''toolbox'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It will display the details of the '''toolbox '''after''' installation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
Click once on the '''GUI.'''&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI '''seen on the left panel'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will show the list of''' toolboxes '''available in the '''GUI '''category.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click once on '''GUI Builder''' .&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI Builder.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will show the details of this '''toolbox''' on the right side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories -'''&lt;br /&gt;
&lt;br /&gt;
'''ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
Highlight the''' version.'''&lt;br /&gt;
|&lt;br /&gt;
Scroll up and notice the '''Version''' of the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the time of recording this video, the current version of the '''toolbox''' is '''4.2.1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It could be different when you are watching this tutorial at a later date.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window, Click '''Install.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Installation Done” '''message.&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Install''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If successful, the '''Installation Done''' message appears at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
| Close and reopen Scilab.&lt;br /&gt;
|&lt;br /&gt;
After this, we need to restart '''Scilab''' for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s close and then reopen '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab''' '''console.'''&lt;br /&gt;
| Notice that the '''GUI Builder Toolbox''' gets loaded upon starting '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab''' '''console. '''&lt;br /&gt;
&lt;br /&gt;
Type''' guibuilder '''and''' '''&lt;br /&gt;
&lt;br /&gt;
Press''' Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now, type '''guibuilder''' in the '''Scilab console''', and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette '''window and '''Graphic Window Number 1.'''&lt;br /&gt;
|&lt;br /&gt;
The '''GUIBuilder Palette '''window is located on the left side. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Graphic Window Number 1 '''is located on the right side.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window, Hover cursor over the '''Pushbutton, Radiobutton, Checkbox, Edit, Text box''' .&lt;br /&gt;
|&lt;br /&gt;
Let us look at the '''GUIBuilder Palette '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It has objects such as,&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
hover cursor over '''Left, Right, Up, '''and '''Down.'''&lt;br /&gt;
|&lt;br /&gt;
On the right, the direction keys '''Up, Down, Left,''' and '''Right''' are provided.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They are used to shift the selected objects in the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
hover cursor over '''W-, W+.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''H-, H+.'''&lt;br /&gt;
|&lt;br /&gt;
Below the direction keys,''' '''notice '''W- (W minus) '''and''' W+ (W plus) '''keys.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They enable the user to adjust the width of the selected object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''H- (H minus) '''and''' H+ (H plus) '''are given to adjust the height of the selected object.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1.'''&lt;br /&gt;
| Objects are placed in '''Graphic window number 1. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on the '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Let us create a '''GUI '''by placing objects in '''Graphic Windows number 1'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to the '''GUI Builder Palette''' and click on the '''Pushbutton'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Tag.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the '''Tag '''field. It is a unique '''identifier''' for each '''GUI '''object. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It allows you to give a name to the object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''Tag '''can be a number or an alphabet or its combination.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users can assign any value as a '''Tag'''.&lt;br /&gt;
|-&lt;br /&gt;
| Type''' h1 '''in the '''Tag '''field'''.'''&lt;br /&gt;
| I will type '''h1''' in the '''Tag '''field'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''String.'''&lt;br /&gt;
| Below '''Tag''', we see the '''String '''field.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type''' Print '''in the''' String '''field'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
The text in the '''String''' field is the display name for the object in the '''Graphic''' '''window.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will type '''Print''' in the '''String''' field and then, click on''' OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click once in the middle left side.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag the''' '''cursor''' '''to draw a line box'''.'''&lt;br /&gt;
|&lt;br /&gt;
In the '''Graphic Window number 1, '''click once near the middle left side of the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then drag the mouse diagonally downwards to draw a rectangle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice a line box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The size of this can be varied by moving the cursor on the window.&lt;br /&gt;
|-&lt;br /&gt;
| Click again on the window.&lt;br /&gt;
| Click again on the '''Graphic Window '''to place the '''pushbutton. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on''' Print pushbutton. '''&lt;br /&gt;
|&lt;br /&gt;
Notice that a '''pushbutton''' named '''Print''' appears on '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Graphical User Interface '''is now ready.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,''' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on''' Generate GUI code .   '''&lt;br /&gt;
|&lt;br /&gt;
To generate the '''Scilab''' '''code,''' go to the '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Generate''' menu seen on the top '''menubar'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type''' printpushbuttongui &amp;amp;gt;&amp;amp;gt; '''click''' Save.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
| I will save this file as '''printpushbuttongui '''and click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on''' OK.'''&lt;br /&gt;
|&lt;br /&gt;
A confirmation message is displayed which says, “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
Immediately, the corresponding '''Scilab file '''opens'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside this''' file''', all the '''properties''' of the figure and '''object''' are provided.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight '''handles.h1,'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
highlight the part inside '''uicontrol '''parentheses.&lt;br /&gt;
|&lt;br /&gt;
'''handles.h1''' is the''' handle '''for the '''pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside the '''uicontrol''' parentheses the properties of the '''pushbutton''' are given.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''h1_callback '''function.&lt;br /&gt;
|&lt;br /&gt;
The '''callback function h1_callback '''is defined at the bottom'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Code written within this '''function''' will get executed on pressing the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''disp(“Hello World!”).'''&lt;br /&gt;
|&lt;br /&gt;
Let us now write a code within '''h1_callback'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' will display “'''Hello World!”''' on the '''Scilab console '''when executed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''program''' is now complete.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Press '''CTRL + S.'''&lt;br /&gt;
| Let us save it by pressing the '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
click on''' Execute.'''&lt;br /&gt;
| Click on '''Execute''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
| Click on '''File with echo'''&lt;br /&gt;
| Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''pushbutton '''named '''Print''' appears in the graphic window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Print.'''&lt;br /&gt;
|&lt;br /&gt;
Next, let us test our '''GUI.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The code gets executed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the message''' Hello World!'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''Scilab Console '''to see the output. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''console''' shows the message “'''Hello World!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print pushbutton '''three times'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now again click the '''Print pushbutton''' three times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that on the '''Scilab Console, '''the '''static response''' is generated three times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, for each click on the '''pushbutton,''' a '''static response''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add one more '''pushbutton''' to the current '''GUI''' as described below,&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| The '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-08-06T12:23:32Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''                   Title of the script: '''Building '''GUI''' to graph a '''Linear Equation'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes, '''plot the response of a '''Linear Equation, strtod '''command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a '''Linear Equation’''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''        '''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the''' Linear Equation '''of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the''' Linear Equation '''of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
m is '''slope''' and&lt;br /&gt;
&lt;br /&gt;
c is '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will use these two equations to plot a graph of a '''Linear Equation''' of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Axes '''is a '''GUI '''object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing '''Linear equation'''&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “linearequation.sce”.&lt;br /&gt;
| I have already opened the '''linearequation.sce '''file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
over cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It''' '''opens the '''GUI''' with the three '''Edit '''boxes''',''' a '''Pushbutton''' and two '''Text '''boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit '''box with''' String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: ed_A, String: Enter the value of A”&lt;br /&gt;
| The first '''Edit '''box has the '''string''' '''“Enter the value of A” '''with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit '''box with''' String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: ed_B, String: Enter the value of B”&lt;br /&gt;
| The second '''Edit '''box has the '''string''' '''“Enter the value of B” '''with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit '''box with''' String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: ed_C, String: Enter the value of C”&lt;br /&gt;
| The third '''Edit '''box has the '''string''' '''“Enter the value of C” '''with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text '''box with''' String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: txt_slope, String: UnName4”&lt;br /&gt;
| The first '''Text '''box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text '''box with''' String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: txt_y_int, String: UnName5”&lt;br /&gt;
| The second '''Text '''box has the '''string “UnName5” '''with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with''' String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: pb_plot, String: Plot”&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot '''as '''tag''' and '''Plot '''as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a''' linear equation. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot '''as '''Tag, '''&lt;br /&gt;
&lt;br /&gt;
type '''Plot '''as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot '''as '''Tag, '''and '''Plot '''as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes '''in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on''' Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type''' axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click''' Save.'''&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on''' OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code '''has been generated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside this''' file''', notice the '''handles '''of the seven &lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A '''is the '''handle''' for taking user input for''' A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B '''is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C '''is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope '''is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int '''is the '''handle '''for displaying the''' y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot '''is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot '''is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback '''function.&lt;br /&gt;
| Now let us write a '''function definition''' for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same '''syntax'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit '''boxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the '''slope''' and '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables''' slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,''' '''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text '''boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
|&lt;br /&gt;
At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle command''', we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid command''' is used'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute, '''and then click on''' File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To '''run''' the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, &lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, &lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''slope''' and '''y intercept''' Text boxes.&lt;br /&gt;
|&lt;br /&gt;
These are the '''slope''' and '''y intercept''' values for the''' linear equation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a '''linear equation''' of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we have learnt:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI '''to,&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Object-properties-and-alignment-in-GUI/English</id>
		<title>GUI-in-Scilab/C2/Object-properties-and-alignment-in-GUI/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Object-properties-and-alignment-in-GUI/English"/>
				<updated>2021-08-06T12:22:55Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: ''' '''Object''' properties and alignment in '''GUI'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Properties of an '''object, '''size of an '''object, '''alignment of '''objects, delete '''an '''object, objects''' of same size, '''objects''' equally spaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on '''Object''' properties and alignment in '''GUI''' in Scilab.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
| In this tutorial, we will learn to:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''        '''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS '''also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window'''.'''&lt;br /&gt;
|&lt;br /&gt;
I have opened the '''GUIBuilder toolbox''' in my system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please do so in your system, also.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
click on '''Open.'''&lt;br /&gt;
| On the '''GUIBuilder Palette window, '''click on '''Open '''in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Open an existing GUI '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a '''dialog '''box''' '''that displays '''Open an existing GUI.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Yes.'''&lt;br /&gt;
|-&lt;br /&gt;
| Open the file named '''printuserinput.sce'''&lt;br /&gt;
| Locate the folder where '''printuserinput.sce '''file is saved and open it.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over the three '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It''' '''opens the '''GUI''' which has,&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Now let us see how to change some of the '''object''' properties of the '''Text '''box'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the right panel.&lt;br /&gt;
|&lt;br /&gt;
For this, go to the '''GUIBuilder Palette.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the right side panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It shows a list of '''Tag''' names for the '''objects''' on the '''Graphic window'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette '''window, &lt;br /&gt;
&lt;br /&gt;
click on '''txt_output. '''&lt;br /&gt;
|&lt;br /&gt;
Click on '''txt_output'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''Text''' box in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It has a red border indicating that it is selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette '''window, &lt;br /&gt;
&lt;br /&gt;
Click on '''ObjectProperties.'''&lt;br /&gt;
| Then click on '''ObjectProperties '''at the bottom right of the '''GUIBuilder Palette '''window'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window.&lt;br /&gt;
|&lt;br /&gt;
A '''Scilab Multiple Values Request '''window opens. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We see that the '''object''' properties are displayed on the left side.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Respective property values are seen on the right side with some default values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are assigned to the properties that are not predefined.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, not all of the properties apply to all the '''objects'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''help uicontrol_properties'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''help uicontrol_properties'''&lt;br /&gt;
|&lt;br /&gt;
To learn more about it, users need to type''' '''a '''command''' in the '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type''' help space uicontrol underscore properties '''to see the detailed help.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab Multiple Values Request '''window.&lt;br /&gt;
| Let us now change the properties that are applicable to the '''Text''' box.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, &lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
|&lt;br /&gt;
First we’ll change the '''Background '''color of the '''Text '''box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We see a vector with the default values [-1,-1,-1].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They specify''' Red, Green, Blue''' color values respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Selecting the values between 0 and 1, will change the color.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s change it to [0.5,0.6,0.7].&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, &lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''italic.'''&lt;br /&gt;
|&lt;br /&gt;
Next, we will change the '''Font angle.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We see '''normal '''as the default value'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will change it to '''italic.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This property will set the slant of the '''font'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple ValuesRequest '''window, &lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
&lt;br /&gt;
Type '''25.'''&lt;br /&gt;
|&lt;br /&gt;
We see '''[12]''' as the default '''FontSize '''value'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will change it to '''[25].'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple ValuesRequest '''window,&lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
&lt;br /&gt;
Type '''bold.'''&lt;br /&gt;
|&lt;br /&gt;
Next, the default '''FontWeight '''value is set as '''normal.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s change it to '''bold.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will make the '''string''' value '''bold.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple ValuesRequest '''window,&lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
|&lt;br /&gt;
Set the '''ForegroundColor '''default value''' '''[-1,-1,-1] to [0.7,0.8,0.9]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The color of the '''string''' value will change as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, as per narration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''center.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now change the alignment of the '''string''' value. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We see '''left''' as the default '''HorizontalAlignment.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s change this to '''center.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, &lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
|&lt;br /&gt;
Lastly, we will change the '''String''' property. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default value is '''UnName3'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This property represents the text appearing on an''' object'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, &lt;br /&gt;
&lt;br /&gt;
delete '''UnName3.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Delete '''UnName3''', and we'll keep it empty.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have now changed enough properties of the '''Text''' box. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explore the remaining properties later on your own, for better understanding.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Ok'''.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Now let us change the location of the '''Text '''box'''.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on''' GUIBuilder Palette '''window.&lt;br /&gt;
| We will return to the '''GUIBuilder Palette '''window and click on '''txt_output '''once.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on''' GUIBuilder Palette '''window.&lt;br /&gt;
|&lt;br /&gt;
We see the four direction buttons in the right panel, namely '''Up, Down, Right,''' and '''Left'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will click once on the '''Left''' button.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
Notice that the '''Text '''box has moved slightly to the left.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It can be shifted to any side by using the respective direction buttons.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Move '''button'''.'''&lt;br /&gt;
|&lt;br /&gt;
Another way to move the '''Text '''box is by using the '''Move '''button'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is''' '''located below the direction buttons'''. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''txt_output.'''&lt;br /&gt;
&lt;br /&gt;
click on '''Move.'''&lt;br /&gt;
|&lt;br /&gt;
Make sure that the '''txt_output '''is still selected'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''Move'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''', &lt;br /&gt;
&lt;br /&gt;
move''' '''the cursor across the window'''.'''&lt;br /&gt;
|&lt;br /&gt;
Now move the cursor across the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A box with a black border and the same size as the '''Text''' box appears.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that it appears wherever the cursor is moved.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
click in the bottom left side of the window'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us place the '''Text''' box in the bottom left side by clicking on the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is how we can move the '''Text''' box with the help of the '''Move''' button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Text''' box.&lt;br /&gt;
|&lt;br /&gt;
Next, let us change the height and width of the '''Text '''box'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Make sure the''' Text''' box still has a red border indicating it’s selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''W+, W- '''buttons'''.'''&lt;br /&gt;
|&lt;br /&gt;
I will now click on '''W+ (W plus) '''button'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that this action increases the width of the '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, clicking '''W- (W minus) '''will decrease its width.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''H+, H- '''buttons'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now increase the height of the '''Text''' box by clicking the '''H+ (H plus) '''button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Likewise, we can use the '''H- (H minus) '''button to decrease its height.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
|&lt;br /&gt;
Below this, we have a '''Delete '''button. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is used to delete the selected object from the '''Graphic Window.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Alignments''' button present in the right panel.&lt;br /&gt;
| Next, let us learn how to use the '''Alignments''' button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
press and Hold '''Ctrl''', and click on the '''Tag''' value of each object in the right panel.&lt;br /&gt;
|&lt;br /&gt;
Press and hold the '''Ctrl '''key on your keyboard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Tag''' value of each''' object''' in the right panel.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
| All selected '''objects''' now have a red border indicating they are selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''Alignments.'''&lt;br /&gt;
|&lt;br /&gt;
On the bottom right of the '''GUIBuilder Palette '''window, click the '''Alignments '''button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignment''' window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
hover cursor over the three '''Alignment '''sections.&lt;br /&gt;
|&lt;br /&gt;
A '''GUI Alignment''' window pops up. &lt;br /&gt;
&lt;br /&gt;
This has&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window,&lt;br /&gt;
&lt;br /&gt;
click on the '''Same Width '''and''' Same Height '''button.&lt;br /&gt;
| Click once on the '''Same Width '''and''' Same Height '''buttons.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the selected '''objects''' in the''' Graphic window'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They now have the same width and height.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can see that the '''objects''' are currently placed one below the other.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window.&lt;br /&gt;
| So, we will use the buttons under '''Vertical''' '''Alignment '''heading'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Equally Spaced. '''&lt;br /&gt;
| Click once on the '''Equally Spaced '''button'''. '''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
The '''objects''' are now arranged such that they are equally spaced. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, let us arrange all the objects to the center of the window.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on GUI Alignments window.&lt;br /&gt;
| To do so, we will use the buttons under '''Horizontal Alignment''' heading.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Center. '''&lt;br /&gt;
| Click once on the '''Center '''button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
The '''objects''' are now arranged in the center.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Learners may pause this video and explore all these options further for better understanding.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUI Alignments''' window.&lt;br /&gt;
| Close the '''GUI Alignments''' window.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Let us test our '''GUI''' now.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Builder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate, '''and click on''' Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''GUI Builder Palette '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' given on the top '''menubar''' and then on '''Generate GUI code. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uiputfile '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''printuserinput.sce'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on OK button.”&lt;br /&gt;
|&lt;br /&gt;
The '''uiputfile '''window will pop up. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will select the file '''printuserinput.sce''' that was previously saved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Save '''button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''File already exists '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
| On the '''File already exists '''window, click on '''Yes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''Window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a '''dialog '''box''' '''that displays the message “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
| Video-editor: Pls put a textbox on screen. “If Replace File? Window pops up, click on Reload.”&lt;br /&gt;
| If the '''Replace File? '''window pops up, then click on '''Reload. '''&lt;br /&gt;
|-&lt;br /&gt;
| Close '''Graphic Window number 1.'''&lt;br /&gt;
| Close the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette '''window.&lt;br /&gt;
| Minimize the '''GUIBuilder Palette '''window.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
| The corresponding updated '''sce file '''is displayed. &amp;amp;lt;&amp;amp;lt;PAUSE&amp;amp;gt;&amp;amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
There is another way to change the '''object''' properties using the '''sce '''file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We know that each '''object''' has its unique '''handle''' and''' uicontrol function'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, the properties can be changed by modifying the '''object's uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
within '''h1 uicontrol''' function,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''‘Fontsize’ ,[12].'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change '''FontSize '''12 to 20.&lt;br /&gt;
|&lt;br /&gt;
By using this method, let us change the '''Fontsize''' of a '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'll make changes in '''uicontrol''' parentheses of '''h1''' which is a '''pushbutton's handle'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the '''FontSize '''12 to 20.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on''' Execute, '''and then click on''' File with echo'''&lt;br /&gt;
|&lt;br /&gt;
Now let us execute the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Execute''' on the top '''menubar''' and then on '''File with echo'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
replace the '''String '''on '''Edit''' box with '''Hello.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 1''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us test the '''GUI'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the '''String '''on the '''Edit''' box with “'''Hello”. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print''' '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''Print''' '''Pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The message “'''Hello'''” appears in the '''Text '''box.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on the '''Text '''box'''.'''&lt;br /&gt;
| Notice that the '''String '''value in the''' Text''' box is now&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on the '''Print Pushbutton.'''&lt;br /&gt;
| The string “'''Print'''” on the '''pushbutton''' now has a larger font size.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we have:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following modifications to the current '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
Rearrange the '''objects''' as follows: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, place the objects with equal spacing.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| For any general or technical questions on '''Scilab''', visit the '''FOSSEE forum''' and post your question.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a FOSSEE intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</id>
		<title>GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English"/>
				<updated>2021-08-06T12:22:13Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: ''' Creating a '''GUI''' to Print the User Input&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Edit '''box, '''Text '''box, '''.string '''command, Creating a '''GUI, '''Print the User Input&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Creating a '''GUI''' to Print User Input in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We’ll also learn about the '''string command'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in Linux OS also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://www.spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
|&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box is an editable '''string''' which takes input from a user.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
|&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''Text '''box is a non-editable '''string''' used to display text or numbers.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Scilab Console Window.'''&lt;br /&gt;
|&lt;br /&gt;
Let us switch to the '''Scilab console''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that I already have the '''GUI Builder Toolbox''' loaded in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console Window,'''&lt;br /&gt;
&lt;br /&gt;
type '''guibuilder, '''press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now type '''guibuilder '''and''' '''press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''', &lt;br /&gt;
&lt;br /&gt;
click on '''Open.'''&lt;br /&gt;
| On the '''GUIBuilder Palette, '''click on '''Open '''in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Open an existing GUI '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
|&lt;br /&gt;
A '''prompt''' named '''Open an existing GUI '''appears.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on''' Yes''' to proceed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uigetfile '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
locate '''printpushbutton.sce.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|&lt;br /&gt;
This opens another window named '''uigetfile'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Locate the file '''printpushbutton.sce '''and click on it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Open. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1'''.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 1''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It shows the '''GUI''' with a '''pushbutton''' named '''Print'''.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Let us add an '''Edit '''box and a '''Text '''box''' '''in this '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',''' '''&lt;br /&gt;
&lt;br /&gt;
click on '''Edit.'''&lt;br /&gt;
| Go to '''GUI Builder Palette''' and click on '''Edit. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
type '''ed_input, '''&lt;br /&gt;
&lt;br /&gt;
type '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A dialog box named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type ‘'''ed_input’ '''as '''Tag '''and ‘'''Enter the input message’ '''as '''String. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on the '''OK '''button'''. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Edit''' box in the top left side.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over an '''Edit '''Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
Switch to '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place the '''Edit''' box above the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An '''Edit '''box with the '''string “Enter the input message”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' ,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Text.'''&lt;br /&gt;
|&lt;br /&gt;
Now, let us take a '''Text '''box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On '''GUI Builder Palette''', click on '''Text'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
type '''txt_output.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''txt_output '''for '''Tag '''field'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Do not type anything in the '''String '''field. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will not display any messages until we receive an input from the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK '''button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Text''' box in the bottom center.&lt;br /&gt;
|&lt;br /&gt;
We’ll place this just below the '''Print''' '''pushbutton''' in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click and place the '''Text''' box below the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''Text '''box with the '''string “UnName3”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Text '''Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
A default '''string''' value “'''UnName3”''' is assigned to the '''Text '''box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is because the '''String''' field was kept empty.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the interface.&lt;br /&gt;
|&lt;br /&gt;
Now the '''GUI''' part is completed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us proceed to generate an equivalent '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Builder Palette '''window.&lt;br /&gt;
&lt;br /&gt;
Click on''' Generate, '''and then click on '''Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''GUIBuilder Palette'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' on the top '''menubar''' and then on the '''Generate GUI code. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uiputfile '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
|&lt;br /&gt;
We will save this file as''' printuserinput.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Save '''button'''. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays GUI''' created successfully!'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window,&lt;br /&gt;
| The corresponding '''sce file '''is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
highlight line with '''handles.ed_input.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
Notice the '''handle '''for the '''Edit '''box''' '''is''' handles.ed_input'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The properties of the '''Edit '''box are defined in its respective''' uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight '''handles.txt_output.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
The '''handle '''for the '''Text '''box''' '''is''' handles.txt_output'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Its properties are defined within its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Scroll down to the end.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place the cursor within the '''h1_callback function.'''&lt;br /&gt;
|&lt;br /&gt;
Now, scroll down to the end of the code file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us make the''' pushbutton '''interactive.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For that, we will write the '''code''' within the '''h1_callback function.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
within '''h1_callback''',&lt;br /&gt;
&lt;br /&gt;
type, &lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
&lt;br /&gt;
Press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip)'''&lt;br /&gt;
| Type the code as seen here with the same '''syntax'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,''' '''&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
|&lt;br /&gt;
The first line will '''assign''' the user input from an '''Edit box''' to the '''variable ip.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight''','''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip) '''&lt;br /&gt;
| The next line will '''pass''' the value of '''variable ip''' to a '''Text box'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight '''.string '''after''' Edit '''and '''Text''' box''' handle'''.&lt;br /&gt;
|&lt;br /&gt;
'''GUI''' supports '''string''' format while taking and '''passing''' the values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence, I have added it after the''' Edit '''and '''Text''' box''' handle'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''string(ip)'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''variable ‘ip’''' while passing the value back to the '''Text''' box handle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is put within the parentheses of the '''string command.'''&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save the file by pressing '''Control''' and '''S''' key together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
Click on '''Execute, '''and then click on''' File with echo.'''&lt;br /&gt;
| To execute, click on '''Execute''' on the top '''menubar''' and then on '''file with echo'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This shows the '''GUI '''which we just created with the '''pushbutton'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us now test the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Delete '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''Welcome to Scilab!'''&lt;br /&gt;
|&lt;br /&gt;
Delete the '''string “Enter the input message” '''from the '''Edit '''box'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then type “'''Welcome to Scilab!” '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Welcome to Scilab!'''”&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box''' '''displays the '''string “Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Delete '''Welcome to Scilab!'''&lt;br /&gt;
&lt;br /&gt;
Type 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us test this using numbers now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Delete the '''string “Welcome to Scilab!” '''from the''' Edit '''box and type '''258. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print Pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over number 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box shows the number '''258''' which we typed just now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Likewise, you can try some more inputs for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| For any general or technical questions on '''Scilab''', visit the '''FOSSEE forum''' and post your question.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a FOSSEE intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</id>
		<title>GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English"/>
				<updated>2021-08-06T12:21:30Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Installation of '''GUI Builder Toolbox'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: GUI Builder Toolbox, Main categories - ATOMS, Tag, String, callback function, Pushbutton, static response.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Installation of '''GUI Builder Toolbox''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
| In this tutorial, we will learn to:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only Narration&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is identical in '''Linux''' '''OS '''also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Installation Requirements'''&lt;br /&gt;
| For the installation of '''GUI Builder Toolbox''', a working '''Internet''' connection is required.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
|&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GUI Builder''' '''Toolbox''' in '''Scilab:'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
Advantages of using '''GUI Builder Toolbox'''&lt;br /&gt;
|&lt;br /&gt;
Now let us look at the advantages of the Toolbox.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
Let’s first learn to '''install''' the '''GUI Builder toolbox. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This can be done in a number of ways. We will look at one of them.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''atomsGui'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Open '''Scilab.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the '''Scilab console '''window, type '''atomsGui.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''commands''' are case sensitive. Hence, please retain the '''syntax''' as shown here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
|&lt;br /&gt;
The '''Main categories - ATOMS '''window opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This window has two panels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The left panel displays a list of '''toolbox categories'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the blank right panel.&lt;br /&gt;
|&lt;br /&gt;
Notice that the right panel is blank since I have not '''installed''' the '''toolbox'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It will display the details of the '''toolbox '''after''' installation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
Click once on the '''GUI.'''&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI '''seen on the left panel'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will show the list of''' toolboxes '''available in the '''GUI '''category.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click once on '''GUI Builder''' .&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI Builder.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will show the details of this '''toolbox''' on the right side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories -'''&lt;br /&gt;
&lt;br /&gt;
'''ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
Highlight the''' version.'''&lt;br /&gt;
|&lt;br /&gt;
Scroll up and notice the '''Version''' of the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the time of recording this video, the current version of the '''toolbox''' is '''4.2.1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It could be different when you are watching this tutorial at a later date.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window, Click '''Install.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Installation Done” '''message.&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Install''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If successful, the '''Installation Done''' message appears at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
| Close and reopen Scilab.&lt;br /&gt;
|&lt;br /&gt;
After this, we need to restart '''Scilab''' for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s close and then reopen '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab''' '''console.'''&lt;br /&gt;
| Notice that the '''GUI Builder Toolbox''' gets loaded upon starting '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab''' '''console. '''&lt;br /&gt;
&lt;br /&gt;
Type''' guibuilder '''and''' '''&lt;br /&gt;
&lt;br /&gt;
Press''' Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now, type '''guibuilder''' in the '''Scilab console''', and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette '''window and '''Graphic Window Number 1.'''&lt;br /&gt;
|&lt;br /&gt;
The '''GUIBuilder Palette '''window is located on the left side. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Graphic Window Number 1 '''is located on the right side.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window, Hover cursor over the '''Pushbutton, Radiobutton, Checkbox, Edit, Text box''' .&lt;br /&gt;
|&lt;br /&gt;
Let us look at the '''GUIBuilder Palette '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It has objects such as,&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
hover cursor over '''Left, Right, Up, '''and '''Down.'''&lt;br /&gt;
|&lt;br /&gt;
On the right, the direction keys '''Up, Down, Left,''' and '''Right''' are provided.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They are used to shift the selected objects in the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
hover cursor over '''W-, W+.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''H-, H+.'''&lt;br /&gt;
|&lt;br /&gt;
Below the direction keys,''' '''notice '''W- (W minus) '''and''' W+ (W plus) '''keys.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They enable the user to adjust the width of the selected object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''H- (H minus) '''and''' H+ (H plus) '''are given to adjust the height of the selected object.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1.'''&lt;br /&gt;
| Objects are placed in '''Graphic window number 1. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on the '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Let us create a '''GUI '''by placing objects in '''Graphic Windows number 1'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to the '''GUI Builder Palette''' and click on the '''Pushbutton'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Tag.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the '''Tag '''field. It is a unique '''identifier''' for each '''GUI '''object. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It allows you to give a name to the object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''Tag '''can be a number or an alphabet or its combination.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users can assign any value as a '''Tag'''.&lt;br /&gt;
|-&lt;br /&gt;
| Type''' h1 '''in the '''Tag '''field'''.'''&lt;br /&gt;
| I will type '''h1''' in the '''Tag '''field'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''String.'''&lt;br /&gt;
| Below '''Tag''', we see the '''String '''field.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type''' Print '''in the''' String '''field'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
The text in the '''String''' field is the display name for the object in the '''Graphic''' '''window.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will type '''Print''' in the '''String''' field and then, click on''' OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click once in the middle left side.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag the''' '''cursor''' '''to draw a line box'''.'''&lt;br /&gt;
|&lt;br /&gt;
In the '''Graphic Window number 1, '''click once near the middle left side of the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then drag the mouse diagonally downwards to draw a rectangle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice a line box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The size of this can be varied by moving the cursor on the window.&lt;br /&gt;
|-&lt;br /&gt;
| Click again on the window.&lt;br /&gt;
| Click again on the '''Graphic Window '''to place the '''pushbutton. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on''' Print pushbutton. '''&lt;br /&gt;
|&lt;br /&gt;
Notice that a '''pushbutton''' named '''Print''' appears on '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Graphical User Interface '''is now ready.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,''' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on''' Generate GUI code .   '''&lt;br /&gt;
|&lt;br /&gt;
To generate the '''Scilab''' '''code,''' go to the '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Generate''' menu seen on the top '''menubar'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type''' printpushbuttongui &amp;amp;gt;&amp;amp;gt; '''click''' Save.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
| I will save this file as '''printpushbuttongui '''and click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on''' OK.'''&lt;br /&gt;
|&lt;br /&gt;
A confirmation message is displayed which says, “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
Immediately, the corresponding '''Scilab file '''opens'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside this''' file''', all the '''properties''' of the figure and '''object''' are provided.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight '''handles.h1,'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
highlight the part inside '''uicontrol '''parentheses.&lt;br /&gt;
|&lt;br /&gt;
'''handles.h1''' is the''' handle '''for the '''pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside the '''uicontrol''' parentheses the properties of the '''pushbutton''' are given.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''h1_callback '''function.&lt;br /&gt;
|&lt;br /&gt;
The '''callback function h1_callback '''is defined at the bottom'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Code written within this '''function''' will get executed on pressing the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''disp(“Hello World!”).'''&lt;br /&gt;
|&lt;br /&gt;
Let us now write a code within '''h1_callback'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' will display “'''Hello World!”''' on the '''Scilab console '''when executed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''program''' is now complete.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Press '''CTRL + S.'''&lt;br /&gt;
| Let us save it by pressing the '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
click on''' Execute.'''&lt;br /&gt;
| Click on '''Execute''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
| Click on '''File with echo'''&lt;br /&gt;
| Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''pushbutton '''named '''Print''' appears in the graphic window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Print.'''&lt;br /&gt;
|&lt;br /&gt;
Next, let us test our '''GUI.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The code gets executed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the message''' Hello World!'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''Scilab Console '''to see the output. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''console''' shows the message “'''Hello World!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print pushbutton '''three times'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now again click the '''Print pushbutton''' three times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that on the '''Scilab Console, '''the '''static response''' is generated three times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, for each click on the '''pushbutton,''' a '''static response''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add one more '''pushbutton''' to the current '''GUI''' as described below,&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| The '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</id>
		<title>GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English"/>
				<updated>2021-08-06T12:14:38Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Installation of '''GUI Builder Toolbox'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: GUI Builder Toolbox, Main categories - ATOMS, Tag, String, callback function, Pushbutton, static response.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Installation of '''GUI Builder Toolbox''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
| In this tutorial, we will learn to:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only Narration&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is identical in '''Linux''' '''OS '''also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Installation Requirements'''&lt;br /&gt;
| For the installation of '''GUI Builder Toolbox''', a working '''Internet''' connection is required.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
|&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GUI Builder''' '''Toolbox''' in '''Scilab:'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
Advantages of using '''GUI Builder Toolbox'''&lt;br /&gt;
|&lt;br /&gt;
Now let us look at the advantages of the Toolbox.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
Let’s first learn to '''install''' the '''GUI Builder toolbox. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This can be done in a number of ways. We will look at one of them.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''atomsGui'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Open '''Scilab.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the '''Scilab console '''window, type '''atomsGui.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''commands''' are case sensitive. Hence, please retain the '''syntax''' as shown here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
|&lt;br /&gt;
The '''Main categories - ATOMS '''window opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This window has two panels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The left panel displays a list of '''toolbox categories'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the blank right panel.&lt;br /&gt;
|&lt;br /&gt;
Notice that the right panel is blank since I have not '''installed''' the '''toolbox'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It will display the details of the '''toolbox '''after''' installation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
Click once on the '''GUI.'''&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI '''seen on the left panel'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will show the list of''' toolboxes '''available in the '''GUI '''category.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click once on '''GUI Builder''' .&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI Builder.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will show the details of this '''toolbox''' on the right side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories -'''&lt;br /&gt;
&lt;br /&gt;
'''ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
Highlight the''' version.'''&lt;br /&gt;
|&lt;br /&gt;
Scroll up and notice the '''Version''' of the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the time of recording this video, the current version of the '''toolbox''' is '''4.2.1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It could be different when you are watching this tutorial at a later date.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window, Click '''Install.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Installation Done” '''message.&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Install''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If successful, the '''Installation Done''' message appears at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
| Close and reopen Scilab.&lt;br /&gt;
|&lt;br /&gt;
After this, we need to restart '''Scilab''' for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s close and then reopen '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab''' '''console.'''&lt;br /&gt;
| Notice that the '''GUI Builder Toolbox''' gets loaded upon starting '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab''' '''console. '''&lt;br /&gt;
&lt;br /&gt;
Type''' guibuilder '''and''' '''&lt;br /&gt;
&lt;br /&gt;
Press''' Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now, type '''guibuilder''' in the '''Scilab console''', and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette '''window and '''Graphic Window Number 1.'''&lt;br /&gt;
|&lt;br /&gt;
The '''GUIBuilder Palette '''window is located on the left side. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Graphic Window Number 1 '''is located on the right side.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window, Hover cursor over the '''Pushbutton, Radiobutton, Checkbox, Edit, Text box''' .&lt;br /&gt;
|&lt;br /&gt;
Let us look at the '''GUIBuilder Palette '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It has objects such as,&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
hover cursor over '''Left, Right, Up, '''and '''Down.'''&lt;br /&gt;
|&lt;br /&gt;
On the right, the direction keys '''Up, Down, Left,''' and '''Right''' are provided.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They are used to shift the selected objects in the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
hover cursor over '''W-, W+.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''H-, H+.'''&lt;br /&gt;
|&lt;br /&gt;
Below the direction keys,''' '''notice '''W- (W minus) '''and''' W+ (W plus) '''keys.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They enable the user to adjust the width of the selected object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''H- (H minus) '''and''' H+ (H plus) '''are given to adjust the height of the selected object.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1.'''&lt;br /&gt;
| Objects are placed in '''Graphic window number 1. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on the '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Let us create a '''GUI '''by placing objects in '''Graphic Windows number 1'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to the '''GUI Builder Palette''' and click on the '''Pushbutton'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Tag.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the '''Tag '''field. It is a unique '''identifier''' for each '''GUI '''object. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It allows you to give a name to the object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''Tag '''can be a number or an alphabet or its combination.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users can assign any value as a '''Tag'''.&lt;br /&gt;
|-&lt;br /&gt;
| Type''' h1 '''in the '''Tag '''field'''.'''&lt;br /&gt;
| I will type '''h1''' in the '''Tag '''field'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''String.'''&lt;br /&gt;
| Below '''Tag''', we see the '''String '''field.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type''' Print '''in the''' String '''field'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
The text in the '''String''' field is the display name for the object in the '''Graphic''' '''window.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will type '''Print''' in the '''String''' field and then, click on''' OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click once in the middle left side.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag the''' '''cursor''' '''to draw a line box'''.'''&lt;br /&gt;
|&lt;br /&gt;
In the '''Graphic Window number 1, '''click once near the middle left side of the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then drag the mouse diagonally downwards to draw a rectangle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice a line box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The size of this can be varied by moving the cursor on the window.&lt;br /&gt;
|-&lt;br /&gt;
| Click again on the window.&lt;br /&gt;
| Click again on the '''Graphic Window '''to place the '''pushbutton. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on''' Print pushbutton. '''&lt;br /&gt;
|&lt;br /&gt;
Notice that a '''pushbutton''' named '''Print''' appears on '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Graphical User Interface '''is now ready.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,''' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on''' Generate GUI code .   '''&lt;br /&gt;
|&lt;br /&gt;
To generate the '''Scilab''' '''code,''' go to the '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Generate''' menu seen on the top '''menubar'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type''' printpushbuttongui &amp;amp;gt;&amp;amp;gt; '''click''' Save.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
| I will save this file as '''printpushbuttongui '''and click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on''' OK.'''&lt;br /&gt;
|&lt;br /&gt;
A confirmation message is displayed which says, “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
Immediately, the corresponding '''Scilab file '''opens'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside this''' file''', all the '''properties''' of the figure and '''object''' are provided.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight '''handles.h1,'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
highlight the part inside '''uicontrol '''parentheses.&lt;br /&gt;
|&lt;br /&gt;
'''handles.h1''' is the''' handle '''for the '''pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside the '''uicontrol''' parentheses the properties of the '''pushbutton''' are given.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''h1_callback '''function.&lt;br /&gt;
|&lt;br /&gt;
The '''callback function h1_callback '''is defined at the bottom'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Code written within this '''function''' will get executed on pressing the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''disp(“Hello World!”).'''&lt;br /&gt;
|&lt;br /&gt;
Let us now write a code within '''h1_callback'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' will display “'''Hello World!”''' on the '''Scilab console '''when executed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''program''' is now complete.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Press '''CTRL + S.'''&lt;br /&gt;
| Let us save it by pressing the '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
click on''' Execute.'''&lt;br /&gt;
| Click on '''Execute''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
| Click on '''File with echo'''&lt;br /&gt;
| Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''pushbutton '''named '''Print''' appears in the graphic window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Print.'''&lt;br /&gt;
|&lt;br /&gt;
Next, let us test our '''GUI.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The code gets executed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the message''' Hello World!'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''Scilab Console '''to see the output. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''console''' shows the message “'''Hello World!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print pushbutton '''three times'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now again click the '''Print pushbutton''' three times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that on the '''Scilab Console, '''the '''static response''' is generated three times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, for each click on the '''pushbutton,''' a '''static response''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add one more '''pushbutton''' to the current '''GUI''' as described below,&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| The '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</id>
		<title>GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Building-a-GUI-to-graph-a-linear-equation/English"/>
				<updated>2021-08-06T06:08:56Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: Created page with &amp;quot;'''                   Title of the script: '''Building '''GUI''' to graph a '''Linear Equation'''  '''Author: Rashmi Patankar, Amandeepsingh Siddhu '''    '''Keywords: Axes, '...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''                   Title of the script: '''Building '''GUI''' to graph a '''Linear Equation'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Axes, '''plot the response of a '''Linear Equation, strtod '''command, '''xgrid''' command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Outline: '''&lt;br /&gt;
&lt;br /&gt;
# About '''Linear equation''' of a line,&lt;br /&gt;
# What are '''Axes''',&lt;br /&gt;
# Use of '''Edit '''box for taking user input for '''a, b''' and '''c''',&lt;br /&gt;
# Use of '''Text '''box for displaying the '''slope''' and '''y-intercept''',&lt;br /&gt;
# Use of '''Pushbutton '''to plot the response of a '''Linear Equation,'''&lt;br /&gt;
# Use of '''Axes''' to plot an equation of line,&lt;br /&gt;
# Writing '''Tag '''and '''String '''for all the '''objects''',&lt;br /&gt;
# Auto-generate a '''Scilab''' code using '''GUI Builder toolbox,'''&lt;br /&gt;
# Write a '''callback '''function,&lt;br /&gt;
# Use of '''strtod '''command,&lt;br /&gt;
# Use of '''xgrid''' command,&lt;br /&gt;
# Test the '''GUI'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on ‘Building '''GUI''' to graph a '''Linear Equation’''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''        '''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is the''' Linear Equation '''of a line'''?'''&lt;br /&gt;
|&lt;br /&gt;
What is the''' Linear Equation '''of a line'''?'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
m is '''slope''' and&lt;br /&gt;
&lt;br /&gt;
c is '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
m = -A/B and&lt;br /&gt;
&lt;br /&gt;
c = C/B.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will use these two equations to plot a graph of a '''Linear Equation''' of a line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
|&lt;br /&gt;
What are '''Axes'''?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Axes '''is a '''GUI '''object that allows users to view graphical representations.&lt;br /&gt;
&lt;br /&gt;
It displays graphs and images.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show slide:&lt;br /&gt;
&lt;br /&gt;
'''Objects''' for graphing '''Linear equation'''&lt;br /&gt;
|&lt;br /&gt;
Following objects are needed on a graphic window to plot Linear equation of line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “linearequation.sce”.&lt;br /&gt;
| I have already opened the '''linearequation.sce '''file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
over cursor over the six '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It''' '''opens the '''GUI''' with the three '''Edit '''boxes''',''' a '''Pushbutton''' and two '''Text '''boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit '''box with''' String''' '''“Enter the value of A”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: ed_A, String: Enter the value of A”&lt;br /&gt;
| The first '''Edit '''box has the '''string''' '''“Enter the value of A” '''with '''Tag “ed_A”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit '''box with''' String''' '''“Enter the value of B”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: ed_B, String: Enter the value of B”&lt;br /&gt;
| The second '''Edit '''box has the '''string''' '''“Enter the value of B” '''with '''Tag “ed_B”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Edit '''box with''' String''' '''“Enter the value of C”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: ed_C, String: Enter the value of C”&lt;br /&gt;
| The third '''Edit '''box has the '''string''' '''“Enter the value of C” '''with '''Tag “ed_C”.'''&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Now let us look at the '''Text''' boxes which are at the bottom left side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text '''box with''' String''' '''“UnName4”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: txt_slope, String: UnName4”&lt;br /&gt;
| The first '''Text '''box has the '''string “UnName4”''' with '''Tag “txt_slope”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text '''box with''' String''' '''“UnName5”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: txt_y_int, String: UnName5”&lt;br /&gt;
| The second '''Text '''box has the '''string “UnName5” '''with '''Tag “txt_y_int”'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Pushbutton''' with''' String''' '''“Plot”'''.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “Tag: pb_plot, String: Plot”&lt;br /&gt;
|&lt;br /&gt;
Between the '''Edit''' boxes and '''Text''' boxes, a '''Pushbutton''' is present. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It has '''pb_plot '''as '''tag''' and '''Plot '''as '''string'''.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Now let us add the '''Axes''' to display the graph of a''' linear equation. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
click on '''Axes.'''&lt;br /&gt;
| On the left side of '''GUI Builder Palette''', click on '''Axes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
type '''ax_plot '''as '''Tag, '''&lt;br /&gt;
&lt;br /&gt;
type '''Plot '''as a '''String.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''ax_plot '''as '''Tag, '''and '''Plot '''as a '''String. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
place the '''Axes''' on the right side.&lt;br /&gt;
| I will place the '''Axes '''in the middle right side of the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| The '''GUI''' is now complete. Let us generate the '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,'''&lt;br /&gt;
&lt;br /&gt;
click on''' Generate GUI Code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to '''GUIBuilder Palette''', click on '''Generate''' in the '''menu bar.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Generate GUI Code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type''' axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click''' Save.'''&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
|&lt;br /&gt;
I will name this file as '''axesplotgui.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on''' OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays '''GUI created successfully!'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code '''has been generated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside this''' file''', notice the '''handles '''of the seven &lt;br /&gt;
&lt;br /&gt;
'''objects.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_A'''.&lt;br /&gt;
| '''handles.ed_A '''is the '''handle''' for taking user input for''' A.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_B'''.&lt;br /&gt;
| '''handles.ed_B '''is the '''handle''' for taking user input for '''B.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_C'''.&lt;br /&gt;
| '''handles.ed_C '''is the '''handle''' for taking user input for '''C.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_slope'''.&lt;br /&gt;
| '''handles.txt_slope '''is the '''handle''' for displaying the '''slope.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_y_int'''.&lt;br /&gt;
| '''handles.txt_y_int '''is the '''handle '''for displaying the''' y-intercept.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.pb_plot'''.&lt;br /&gt;
| '''handles.pb_plot '''is the '''handle''' for '''Pushbutton Plot.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ax_plot'''.&lt;br /&gt;
| '''handles.ax_plot '''is the '''handle''' for displaying the plot.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''pb_plot_callback '''function.&lt;br /&gt;
| Now let us write a '''function definition''' for '''pb_plot_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''pb_plot_callback'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_A.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_B.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_C.string)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, ‘X-axis’, ‘Y-axis’)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here, with the same '''syntax'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''A = strtod(handles.ed_a.string)'''&lt;br /&gt;
&lt;br /&gt;
'''B = strtod(handles.ed_b.string)'''&lt;br /&gt;
&lt;br /&gt;
'''C = strtod(handles.ed_c.string)'''&lt;br /&gt;
|&lt;br /&gt;
The first three lines of code will take inputs for '''A, B''' and '''C''' from the '''Edit '''boxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then they will be assigned to their respective variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''slope = -A/B'''&lt;br /&gt;
&lt;br /&gt;
'''y_int = C/B'''&lt;br /&gt;
|&lt;br /&gt;
The next two lines will calculate the '''slope''' and '''y-intercept'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They will then be stored in the variables''' slope''' and '''y_int'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,''' '''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_slope.string = string(slope)'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_y_int.string = string(y_int)'''&lt;br /&gt;
| Further two lines will give '''slope''' and '''y-int''' values to their respective '''Text '''boxes.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''x = 0:0.1:2*%pi'''&lt;br /&gt;
| The following line will set the value of '''x''' from '''0''' to '''2 pi''' with an interval of 0.1.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''y = C/B - (A/B)*x'''&lt;br /&gt;
| Once the value of '''x''' is '''set''', the value of '''y''' is calculated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''plot (x,y)'''&lt;br /&gt;
|&lt;br /&gt;
At last, the response of '''x''' versus '''y''' is plotted to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xtitle(‘Graph of linear equation’, “X-axis”, “Y-axis”)'''&lt;br /&gt;
| Then, using the '''xtitle command''', we will do the labeling.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''xgrid()'''&lt;br /&gt;
|&lt;br /&gt;
To make the '''plot''' look more presentable, the '''xgrid command''' is used'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''grid lines''' will be enabled on the plot as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
press '''CTRL + S.'''&lt;br /&gt;
|&lt;br /&gt;
The program is now complete.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us save it by pressing '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''Execute, '''and then click on''' File with echo.'''&lt;br /&gt;
|&lt;br /&gt;
To '''run''' the file, click on '''Execute''' in the '''menubar'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, &lt;br /&gt;
&lt;br /&gt;
2 in place of '''Enter the value of A,'''&lt;br /&gt;
&lt;br /&gt;
7 in place of '''Enter the value of B,'''&lt;br /&gt;
&lt;br /&gt;
4 in place of '''Enter the value of C.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Plot'''.&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 2''' opens with 6 boxes and 1 '''axes'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, &lt;br /&gt;
&lt;br /&gt;
2 as a value for '''A''' in the first '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
7 as a value for '''B''' in the second '''Edit''' box''','''&lt;br /&gt;
&lt;br /&gt;
4 as a value for '''C''' in the third '''Edit''' box'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''Plot'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''slope''' and '''y intercept''' Text boxes.&lt;br /&gt;
|&lt;br /&gt;
These are the '''slope''' and '''y intercept''' values for the''' linear equation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on axes plot.&lt;br /&gt;
|&lt;br /&gt;
Notice that the graph is labelled and has '''grid lines''' on it. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This way we have plotted a '''linear equation''' of a line using '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we have learnt:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI '''to,&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Object-properties-and-alignment-in-GUI/English</id>
		<title>GUI-in-Scilab/C2/Object-properties-and-alignment-in-GUI/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Object-properties-and-alignment-in-GUI/English"/>
				<updated>2021-08-06T06:07:00Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: Created page with &amp;quot;'''Title of the script: ''' '''Object''' properties and alignment in '''GUI'''  '''Author: Rashmi Patankar, Amandeepsingh Siddhu '''    '''Keywords: '''Properties of an '''obj...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: ''' '''Object''' properties and alignment in '''GUI'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Properties of an '''object, '''size of an '''object, '''alignment of '''objects, delete '''an '''object, objects''' of same size, '''objects''' equally spaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Outline: '''&lt;br /&gt;
&lt;br /&gt;
# How to change the '''Background '''color,&lt;br /&gt;
# How to change the '''Font angle''' of the '''string''',&lt;br /&gt;
# How to change the '''Font size''' of the '''string''',&lt;br /&gt;
# How to change the '''Font weight''' of the '''string''',&lt;br /&gt;
# How to change the '''Foreground '''color,&lt;br /&gt;
# How to change the '''Horizontal Alignment''' of the '''string''',&lt;br /&gt;
# How to change the '''String''' value,&lt;br /&gt;
# How to shift the '''object''' using direction keys,&lt;br /&gt;
# How to move '''object''' using ‘'''Move'''’ button,&lt;br /&gt;
# How to change the width and height of an '''object''',&lt;br /&gt;
# How to '''delete '''an '''object''',&lt;br /&gt;
# How to change the alignment of an '''object''',&lt;br /&gt;
# How to make all the '''objects''' of same size,&lt;br /&gt;
# How to maintain all the '''objects''' equally spaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on '''Object''' properties and alignment in '''GUI''' in Scilab.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
| In this tutorial, we will learn to:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''        '''&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in '''Linux OS '''also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window'''.'''&lt;br /&gt;
|&lt;br /&gt;
I have opened the '''GUIBuilder toolbox''' in my system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please do so in your system, also.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
click on '''Open.'''&lt;br /&gt;
| On the '''GUIBuilder Palette window, '''click on '''Open '''in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Open an existing GUI '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a '''dialog '''box''' '''that displays '''Open an existing GUI.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Yes.'''&lt;br /&gt;
|-&lt;br /&gt;
| Open the file named '''printuserinput.sce'''&lt;br /&gt;
| Locate the folder where '''printuserinput.sce '''file is saved and open it.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over the three '''objects'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It''' '''opens the '''GUI''' which has,&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Now let us see how to change some of the '''object''' properties of the '''Text '''box'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the right panel.&lt;br /&gt;
|&lt;br /&gt;
For this, go to the '''GUIBuilder Palette.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the right side panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It shows a list of '''Tag''' names for the '''objects''' on the '''Graphic window'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette '''window, &lt;br /&gt;
&lt;br /&gt;
click on '''txt_output. '''&lt;br /&gt;
|&lt;br /&gt;
Click on '''txt_output'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1 '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''Text''' box in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It has a red border indicating that it is selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette '''window, &lt;br /&gt;
&lt;br /&gt;
Click on '''ObjectProperties.'''&lt;br /&gt;
| Then click on '''ObjectProperties '''at the bottom right of the '''GUIBuilder Palette '''window'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window.&lt;br /&gt;
|&lt;br /&gt;
A '''Scilab Multiple Values Request '''window opens. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We see that the '''object''' properties are displayed on the left side.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Respective property values are seen on the right side with some default values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are assigned to the properties that are not predefined.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, not all of the properties apply to all the '''objects'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''help uicontrol_properties'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''help uicontrol_properties'''&lt;br /&gt;
|&lt;br /&gt;
To learn more about it, users need to type''' '''a '''command''' in the '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type''' help space uicontrol underscore properties '''to see the detailed help.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab Multiple Values Request '''window.&lt;br /&gt;
| Let us now change the properties that are applicable to the '''Text''' box.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, &lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
|&lt;br /&gt;
First we’ll change the '''Background '''color of the '''Text '''box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We see a vector with the default values [-1,-1,-1].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They specify''' Red, Green, Blue''' color values respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Selecting the values between 0 and 1, will change the color.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s change it to [0.5,0.6,0.7].&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, &lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''italic.'''&lt;br /&gt;
|&lt;br /&gt;
Next, we will change the '''Font angle.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We see '''normal '''as the default value'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will change it to '''italic.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This property will set the slant of the '''font'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple ValuesRequest '''window, &lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
&lt;br /&gt;
Type '''25.'''&lt;br /&gt;
|&lt;br /&gt;
We see '''[12]''' as the default '''FontSize '''value'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will change it to '''[25].'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple ValuesRequest '''window,&lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
&lt;br /&gt;
Type '''bold.'''&lt;br /&gt;
|&lt;br /&gt;
Next, the default '''FontWeight '''value is set as '''normal.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s change it to '''bold.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will make the '''string''' value '''bold.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple ValuesRequest '''window,&lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
|&lt;br /&gt;
Set the '''ForegroundColor '''default value''' '''[-1,-1,-1] to [0.7,0.8,0.9]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The color of the '''string''' value will change as a result of this.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, as per narration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''center.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now change the alignment of the '''string''' value. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We see '''left''' as the default '''HorizontalAlignment.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s change this to '''center.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, &lt;br /&gt;
&lt;br /&gt;
as per narration.&lt;br /&gt;
|&lt;br /&gt;
Lastly, we will change the '''String''' property. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default value is '''UnName3'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This property represents the text appearing on an''' object'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''Scilab Multiple Values Request '''window, &lt;br /&gt;
&lt;br /&gt;
delete '''UnName3.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Delete '''UnName3''', and we'll keep it empty.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have now changed enough properties of the '''Text''' box. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explore the remaining properties later on your own, for better understanding.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Ok'''.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Now let us change the location of the '''Text '''box'''.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on''' GUIBuilder Palette '''window.&lt;br /&gt;
| We will return to the '''GUIBuilder Palette '''window and click on '''txt_output '''once.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on''' GUIBuilder Palette '''window.&lt;br /&gt;
|&lt;br /&gt;
We see the four direction buttons in the right panel, namely '''Up, Down, Right,''' and '''Left'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will click once on the '''Left''' button.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
Notice that the '''Text '''box has moved slightly to the left.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It can be shifted to any side by using the respective direction buttons.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Move '''button'''.'''&lt;br /&gt;
|&lt;br /&gt;
Another way to move the '''Text '''box is by using the '''Move '''button'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is''' '''located below the direction buttons'''. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''txt_output.'''&lt;br /&gt;
&lt;br /&gt;
click on '''Move.'''&lt;br /&gt;
|&lt;br /&gt;
Make sure that the '''txt_output '''is still selected'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''Move'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''', &lt;br /&gt;
&lt;br /&gt;
move''' '''the cursor across the window'''.'''&lt;br /&gt;
|&lt;br /&gt;
Now move the cursor across the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A box with a black border and the same size as the '''Text''' box appears.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that it appears wherever the cursor is moved.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
click in the bottom left side of the window'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us place the '''Text''' box in the bottom left side by clicking on the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is how we can move the '''Text''' box with the help of the '''Move''' button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic Window number 1''',&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
hover cursor on '''Text''' box.&lt;br /&gt;
|&lt;br /&gt;
Next, let us change the height and width of the '''Text '''box'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Make sure the''' Text''' box still has a red border indicating it’s selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''W+, W- '''buttons'''.'''&lt;br /&gt;
|&lt;br /&gt;
I will now click on '''W+ (W plus) '''button'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that this action increases the width of the '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, clicking '''W- (W minus) '''will decrease its width.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''H+, H- '''buttons'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now increase the height of the '''Text''' box by clicking the '''H+ (H plus) '''button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Likewise, we can use the '''H- (H minus) '''button to decrease its height.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
|&lt;br /&gt;
Below this, we have a '''Delete '''button. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is used to delete the selected object from the '''Graphic Window.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Alignments''' button present in the right panel.&lt;br /&gt;
| Next, let us learn how to use the '''Alignments''' button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
press and Hold '''Ctrl''', and click on the '''Tag''' value of each object in the right panel.&lt;br /&gt;
|&lt;br /&gt;
Press and hold the '''Ctrl '''key on your keyboard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Tag''' value of each''' object''' in the right panel.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
| All selected '''objects''' now have a red border indicating they are selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' GUIBuilder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''Alignments.'''&lt;br /&gt;
|&lt;br /&gt;
On the bottom right of the '''GUIBuilder Palette '''window, click the '''Alignments '''button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignment''' window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
hover cursor over the three '''Alignment '''sections.&lt;br /&gt;
|&lt;br /&gt;
A '''GUI Alignment''' window pops up. &lt;br /&gt;
&lt;br /&gt;
This has&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window,&lt;br /&gt;
&lt;br /&gt;
click on the '''Same Width '''and''' Same Height '''button.&lt;br /&gt;
| Click once on the '''Same Width '''and''' Same Height '''buttons.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the selected '''objects''' in the''' Graphic window'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They now have the same width and height.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can see that the '''objects''' are currently placed one below the other.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window.&lt;br /&gt;
| So, we will use the buttons under '''Vertical''' '''Alignment '''heading'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Equally Spaced. '''&lt;br /&gt;
| Click once on the '''Equally Spaced '''button'''. '''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
The '''objects''' are now arranged such that they are equally spaced. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, let us arrange all the objects to the center of the window.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on GUI Alignments window.&lt;br /&gt;
| To do so, we will use the buttons under '''Horizontal Alignment''' heading.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Alignments''' window,&lt;br /&gt;
&lt;br /&gt;
click on '''Center. '''&lt;br /&gt;
| Click once on the '''Center '''button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1'''.&lt;br /&gt;
|&lt;br /&gt;
The '''objects''' are now arranged in the center.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Learners may pause this video and explore all these options further for better understanding.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUI Alignments''' window.&lt;br /&gt;
| Close the '''GUI Alignments''' window.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Let us test our '''GUI''' now.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Builder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''Generate, '''and click on''' Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''GUI Builder Palette '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' given on the top '''menubar''' and then on '''Generate GUI code. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uiputfile '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''printuserinput.sce'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on OK button.”&lt;br /&gt;
|&lt;br /&gt;
The '''uiputfile '''window will pop up. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will select the file '''printuserinput.sce''' that was previously saved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Save '''button.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''File already exists '''window,&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
| On the '''File already exists '''window, click on '''Yes.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''Window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a '''dialog '''box''' '''that displays the message “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
| Video-editor: Pls put a textbox on screen. “If Replace File? Window pops up, click on Reload.”&lt;br /&gt;
| If the '''Replace File? '''window pops up, then click on '''Reload. '''&lt;br /&gt;
|-&lt;br /&gt;
| Close '''Graphic Window number 1.'''&lt;br /&gt;
| Close the '''Graphic Window number 1.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette '''window.&lt;br /&gt;
| Minimize the '''GUIBuilder Palette '''window.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
| The corresponding updated '''sce file '''is displayed. &amp;amp;lt;&amp;amp;lt;PAUSE&amp;amp;gt;&amp;amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
There is another way to change the '''object''' properties using the '''sce '''file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We know that each '''object''' has its unique '''handle''' and''' uicontrol function'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, the properties can be changed by modifying the '''object's uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
within '''h1 uicontrol''' function,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''‘Fontsize’ ,[12].'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change '''FontSize '''12 to 20.&lt;br /&gt;
|&lt;br /&gt;
By using this method, let us change the '''Fontsize''' of a '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'll make changes in '''uicontrol''' parentheses of '''h1''' which is a '''pushbutton's handle'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the '''FontSize '''12 to 20.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on''' Execute, '''and then click on''' File with echo'''&lt;br /&gt;
|&lt;br /&gt;
Now let us execute the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Execute''' on the top '''menubar''' and then on '''File with echo'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
replace the '''String '''on '''Edit''' box with '''Hello.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 1''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us test the '''GUI'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the '''String '''on the '''Edit''' box with “'''Hello”. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print''' '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''Print''' '''Pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The message “'''Hello'''” appears in the '''Text '''box.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on the '''Text '''box'''.'''&lt;br /&gt;
| Notice that the '''String '''value in the''' Text''' box is now&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on the '''Print Pushbutton.'''&lt;br /&gt;
| The string “'''Print'''” on the '''pushbutton''' now has a larger font size.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we have:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following modifications to the current '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
Rearrange the '''objects''' as follows: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, place the objects with equal spacing.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| For any general or technical questions on '''Scilab''', visit the '''FOSSEE forum''' and post your question.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a FOSSEE intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</id>
		<title>GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Creating-a-GUI-to-print-the-user-input/English"/>
				<updated>2021-08-06T06:04:55Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: Created page with &amp;quot;'''Title of the script: ''' Creating a '''GUI''' to Print the User Input  '''Author: Rashmi Patankar, Amandeepsingh Siddhu '''    '''Keywords: Edit '''box, '''Text '''box, '''...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: ''' Creating a '''GUI''' to Print the User Input&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Edit '''box, '''Text '''box, '''.string '''command, Creating a '''GUI, '''Print the User Input&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Outline:'''&lt;br /&gt;
&lt;br /&gt;
# About an''' Edit '''box,&lt;br /&gt;
# About a''' Text '''box,&lt;br /&gt;
# How to open an existing''' GUI, '''&lt;br /&gt;
# Adding '''Tag''' and '''String''',&lt;br /&gt;
# Adding an '''Edit '''box''' '''to''' GUI,'''&lt;br /&gt;
# Adding a '''Text '''box''' '''to''' GUI,'''&lt;br /&gt;
# About''' string '''command''','''&lt;br /&gt;
# Auto-generate '''Scilab''' code using this '''toolbox'''&lt;br /&gt;
# Write a code to '''print''' the user input on '''GUI''',&lt;br /&gt;
# Importance of adding''' .string '''after the''' handle.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Creating a '''GUI''' to Print User Input in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We’ll also learn about the '''string command'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Only narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is similar in Linux OS also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://www.spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
|&lt;br /&gt;
What is an '''Edit''' box?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An '''Edit''' box is an editable '''string''' which takes input from a user.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
|&lt;br /&gt;
What is a '''Text''' box?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''Text '''box is a non-editable '''string''' used to display text or numbers.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Scilab Console Window.'''&lt;br /&gt;
|&lt;br /&gt;
Let us switch to the '''Scilab console''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that I already have the '''GUI Builder Toolbox''' loaded in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console Window,'''&lt;br /&gt;
&lt;br /&gt;
type '''guibuilder, '''press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now type '''guibuilder '''and''' '''press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''', &lt;br /&gt;
&lt;br /&gt;
click on '''Open.'''&lt;br /&gt;
| On the '''GUIBuilder Palette, '''click on '''Open '''in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Open an existing GUI '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Yes.'''&lt;br /&gt;
|&lt;br /&gt;
A '''prompt''' named '''Open an existing GUI '''appears.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on''' Yes''' to proceed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uigetfile '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
locate '''printpushbutton.sce.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Open.'''&lt;br /&gt;
|&lt;br /&gt;
This opens another window named '''uigetfile'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Locate the file '''printpushbutton.sce '''and click on it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Open. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on''' Graphic window number 1'''.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
'''Graphic window number 1''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It shows the '''GUI''' with a '''pushbutton''' named '''Print'''.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Let us add an '''Edit '''box and a '''Text '''box''' '''in this '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''',''' '''&lt;br /&gt;
&lt;br /&gt;
click on '''Edit.'''&lt;br /&gt;
| Go to '''GUI Builder Palette''' and click on '''Edit. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
type '''ed_input, '''&lt;br /&gt;
&lt;br /&gt;
type '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A dialog box named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type ‘'''ed_input’ '''as '''Tag '''and ‘'''Enter the input message’ '''as '''String. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on the '''OK '''button'''. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Edit''' box in the top left side.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over an '''Edit '''Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
Switch to '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place the '''Edit''' box above the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An '''Edit '''box with the '''string “Enter the input message”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette''' ,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Text.'''&lt;br /&gt;
|&lt;br /&gt;
Now, let us take a '''Text '''box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On '''GUI Builder Palette''', click on '''Text'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
type '''txt_output.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Type '''txt_output '''for '''Tag '''field'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Do not type anything in the '''String '''field. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will not display any messages until we receive an input from the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK '''button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place the '''Text''' box in the bottom center.&lt;br /&gt;
|&lt;br /&gt;
We’ll place this just below the '''Print''' '''pushbutton''' in the '''Graphic window'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click and place the '''Text''' box below the '''Print''' '''pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''Text '''box with the '''string “UnName3”''' appears.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Text '''Box'''.'''&lt;br /&gt;
|&lt;br /&gt;
A default '''string''' value “'''UnName3”''' is assigned to the '''Text '''box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is because the '''String''' field was kept empty.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the interface.&lt;br /&gt;
|&lt;br /&gt;
Now the '''GUI''' part is completed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us proceed to generate an equivalent '''Scilab''' code.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Builder Palette '''window.&lt;br /&gt;
&lt;br /&gt;
Click on''' Generate, '''and then click on '''Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''GUIBuilder Palette'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' on the top '''menubar''' and then on the '''Generate GUI code. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''uiputfile '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
|&lt;br /&gt;
We will save this file as''' printuserinput.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Save '''button'''. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
It shows a dialog box that displays GUI''' created successfully!'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window,&lt;br /&gt;
| The corresponding '''sce file '''is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
highlight line with '''handles.ed_input.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
Notice the '''handle '''for the '''Edit '''box''' '''is''' handles.ed_input'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The properties of the '''Edit '''box are defined in its respective''' uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight '''handles.txt_output.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the part inside the '''uicontrol''' parentheses'''.'''&lt;br /&gt;
|&lt;br /&gt;
The '''handle '''for the '''Text '''box''' '''is''' handles.txt_output'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Its properties are defined within its respective '''uicontrol function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Scroll down to the end.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place the cursor within the '''h1_callback function.'''&lt;br /&gt;
|&lt;br /&gt;
Now, scroll down to the end of the code file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us make the''' pushbutton '''interactive.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For that, we will write the '''code''' within the '''h1_callback function.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
within '''h1_callback''',&lt;br /&gt;
&lt;br /&gt;
type, &lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
&lt;br /&gt;
Press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip)'''&lt;br /&gt;
| Type the code as seen here with the same '''syntax'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,''' '''&lt;br /&gt;
&lt;br /&gt;
'''ip = handles.ed_input.string'''&lt;br /&gt;
|&lt;br /&gt;
The first line will '''assign''' the user input from an '''Edit box''' to the '''variable ip.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight''','''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_output.string = string(ip) '''&lt;br /&gt;
| The next line will '''pass''' the value of '''variable ip''' to a '''Text box'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight '''.string '''after''' Edit '''and '''Text''' box''' handle'''.&lt;br /&gt;
|&lt;br /&gt;
'''GUI''' supports '''string''' format while taking and '''passing''' the values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence, I have added it after the''' Edit '''and '''Text''' box''' handle'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''string(ip)'''.&lt;br /&gt;
|&lt;br /&gt;
Notice the '''variable ‘ip’''' while passing the value back to the '''Text''' box handle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is put within the parentheses of the '''string command.'''&lt;br /&gt;
|-&lt;br /&gt;
| Press '''CTRL + S.'''&lt;br /&gt;
| Let us save the file by pressing '''Control''' and '''S''' key together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
Click on '''Execute, '''and then click on''' File with echo.'''&lt;br /&gt;
| To execute, click on '''Execute''' on the top '''menubar''' and then on '''file with echo'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This shows the '''GUI '''which we just created with the '''pushbutton'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us now test the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Delete '''Enter the input message.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''Welcome to Scilab!'''&lt;br /&gt;
|&lt;br /&gt;
Delete the '''string “Enter the input message” '''from the '''Edit '''box'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then type “'''Welcome to Scilab!” '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Welcome to Scilab!'''”&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box''' '''displays the '''string “Welcome to Scilab!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Delete '''Welcome to Scilab!'''&lt;br /&gt;
&lt;br /&gt;
Type 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us test this using numbers now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Delete the '''string “Welcome to Scilab!” '''from the''' Edit '''box and type '''258. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Print Pushbutton.'''&lt;br /&gt;
&lt;br /&gt;
Hover cursor over number 258'''.'''&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box shows the number '''258''' which we typed just now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Likewise, you can try some more inputs for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| For any general or technical questions on '''Scilab''', visit the '''FOSSEE forum''' and post your question.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a FOSSEE intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</id>
		<title>GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/GUI-in-Scilab/C2/Installation-of-GUI-Builder-Toolbox/English"/>
				<updated>2021-08-06T06:01:45Z</updated>
		
		<summary type="html">&lt;p&gt;Amandeeps: Created page with &amp;quot;'''Title of the script: '''Installation of '''GUI Builder Toolbox'''  '''Author: Rashmi Patankar, Amandeepsingh Siddhu '''    '''Keywords: GUI Builder Toolbox, Main categories...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Installation of '''GUI Builder Toolbox'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar, Amandeepsingh Siddhu '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: GUI Builder Toolbox, Main categories - ATOMS, Tag, String, callback function, Pushbutton, static response.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Outline:&lt;br /&gt;
&lt;br /&gt;
# Learn about '''GUI Builder Toolbox,'''&lt;br /&gt;
# Install '''GUI Builder Toolbox,'''&lt;br /&gt;
# About '''GUIBuilder Palette,'''&lt;br /&gt;
# Adding a '''pushbutton,'''&lt;br /&gt;
# What is '''Tag,'''&lt;br /&gt;
# What is '''String,'''&lt;br /&gt;
# Adding a '''Pushbutton '''to a''' GUI '''using''' GUIBuilder Palette,'''&lt;br /&gt;
# How to auto-generate a '''Scilab''' code using this '''toolbox,'''&lt;br /&gt;
# Write a '''callback function '''for the '''Pushbutton''',&lt;br /&gt;
# Generate a '''static response''' on the '''Scilab console'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| '''Visual Cue'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
| Welcome to the '''Spoken Tutorial''' on Installation of '''GUI Builder Toolbox''' in '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning objectives'''&lt;br /&gt;
| In this tutorial, we will learn to:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only Narration&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is identical in '''Linux''' '''OS '''also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Installation Requirements'''&lt;br /&gt;
| For the installation of '''GUI Builder Toolbox''', a working '''Internet''' connection is required.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
| To follow this tutorial:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
|&lt;br /&gt;
What is a '''GUI Builder Toolbox?'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GUI Builder''' '''Toolbox''' in '''Scilab:'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
Advantages of using '''GUI Builder Toolbox'''&lt;br /&gt;
|&lt;br /&gt;
Now let us look at the advantages of the Toolbox.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
Let’s first learn to '''install''' the '''GUI Builder toolbox. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This can be done in a number of ways. We will look at one of them.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''atomsGui'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Open '''Scilab.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the '''Scilab console '''window, type '''atomsGui.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''commands''' are case sensitive. Hence, please retain the '''syntax''' as shown here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
|&lt;br /&gt;
The '''Main categories - ATOMS '''window opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This window has two panels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The left panel displays a list of '''toolbox categories'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the blank right panel.&lt;br /&gt;
|&lt;br /&gt;
Notice that the right panel is blank since I have not '''installed''' the '''toolbox'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It will display the details of the '''toolbox '''after''' installation'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
Click once on the '''GUI.'''&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI '''seen on the left panel'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will show the list of''' toolboxes '''available in the '''GUI '''category.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click once on '''GUI Builder''' .&lt;br /&gt;
|&lt;br /&gt;
Click once on the '''GUI Builder.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will show the details of this '''toolbox''' on the right side of the window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories -'''&lt;br /&gt;
&lt;br /&gt;
'''ATOMS '''window.&lt;br /&gt;
&lt;br /&gt;
Highlight the''' version.'''&lt;br /&gt;
|&lt;br /&gt;
Scroll up and notice the '''Version''' of the '''toolbox'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the time of recording this video, the current version of the '''toolbox''' is '''4.2.1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It could be different when you are watching this tutorial at a later date.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Main categories - ATOMS '''window, Click '''Install.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over “'''Installation Done” '''message.&lt;br /&gt;
|&lt;br /&gt;
Click on the '''Install''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If successful, the '''Installation Done''' message appears at the bottom.&lt;br /&gt;
|-&lt;br /&gt;
| Close and reopen Scilab.&lt;br /&gt;
|&lt;br /&gt;
After this, we need to restart '''Scilab''' for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s close and then reopen '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on the '''Scilab''' '''console.'''&lt;br /&gt;
| Notice that the '''GUI Builder Toolbox''' gets loaded upon starting '''Scilab'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab''' '''console. '''&lt;br /&gt;
&lt;br /&gt;
Type''' guibuilder '''and''' '''&lt;br /&gt;
&lt;br /&gt;
Press''' Enter.'''&lt;br /&gt;
|&lt;br /&gt;
Now, type '''guibuilder''' in the '''Scilab console''', and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' opens two windows.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette '''window and '''Graphic Window Number 1.'''&lt;br /&gt;
|&lt;br /&gt;
The '''GUIBuilder Palette '''window is located on the left side. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Graphic Window Number 1 '''is located on the right side.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''GUIBuilder Palette''' window, Hover cursor over the '''Pushbutton, Radiobutton, Checkbox, Edit, Text box''' .&lt;br /&gt;
|&lt;br /&gt;
Let us look at the '''GUIBuilder Palette '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It has objects such as,&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
hover cursor over '''Left, Right, Up, '''and '''Down.'''&lt;br /&gt;
|&lt;br /&gt;
On the right, the direction keys '''Up, Down, Left,''' and '''Right''' are provided.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They are used to shift the selected objects in the '''GUI'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUIBuilder Palette''' window, &lt;br /&gt;
&lt;br /&gt;
hover cursor over '''W-, W+.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''H-, H+.'''&lt;br /&gt;
|&lt;br /&gt;
Below the direction keys,''' '''notice '''W- (W minus) '''and''' W+ (W plus) '''keys.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They enable the user to adjust the width of the selected object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''H- (H minus) '''and''' H+ (H plus) '''are given to adjust the height of the selected object.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''Graphic Window number 1.'''&lt;br /&gt;
| Objects are placed in '''Graphic window number 1. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on the '''Pushbutton'''.&lt;br /&gt;
|&lt;br /&gt;
Let us create a '''GUI '''by placing objects in '''Graphic Windows number 1'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to the '''GUI Builder Palette''' and click on the '''Pushbutton'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Tag.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Scilab Multiple Values Request''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the '''Tag '''field. It is a unique '''identifier''' for each '''GUI '''object. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It allows you to give a name to the object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''Tag '''can be a number or an alphabet or its combination.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users can assign any value as a '''Tag'''.&lt;br /&gt;
|-&lt;br /&gt;
| Type''' h1 '''in the '''Tag '''field'''.'''&lt;br /&gt;
| I will type '''h1''' in the '''Tag '''field'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
hover cursor over '''String.'''&lt;br /&gt;
| Below '''Tag''', we see the '''String '''field.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Multiple Values Request '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type''' Print '''in the''' String '''field'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
The text in the '''String''' field is the display name for the object in the '''Graphic''' '''window.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will type '''Print''' in the '''String''' field and then, click on''' OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click once in the middle left side.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag the''' '''cursor''' '''to draw a line box'''.'''&lt;br /&gt;
|&lt;br /&gt;
In the '''Graphic Window number 1, '''click once near the middle left side of the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then drag the mouse diagonally downwards to draw a rectangle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice a line box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The size of this can be varied by moving the cursor on the window.&lt;br /&gt;
|-&lt;br /&gt;
| Click again on the window.&lt;br /&gt;
| Click again on the '''Graphic Window '''to place the '''pushbutton. '''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 1,'''&lt;br /&gt;
&lt;br /&gt;
hover cursor on''' Print pushbutton. '''&lt;br /&gt;
|&lt;br /&gt;
Notice that a '''pushbutton''' named '''Print''' appears on '''Graphic Window number 1.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Graphical User Interface '''is now ready.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on the '''GUI Builder Palette '''window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on '''Generate,''' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on''' Generate GUI code .   '''&lt;br /&gt;
|&lt;br /&gt;
To generate the '''Scilab''' '''code,''' go to the '''GUI Builder Palette''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Generate''' menu seen on the top '''menubar'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on '''Generate GUI code.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Type''' printpushbuttongui &amp;amp;gt;&amp;amp;gt; '''click''' Save.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
| I will save this file as '''printpushbuttongui '''and click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUI Created '''window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on''' OK.'''&lt;br /&gt;
|&lt;br /&gt;
A confirmation message is displayed which says, “'''GUI created successfully!”'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
| Cursor on '''SciNotes''' window.&lt;br /&gt;
|&lt;br /&gt;
Immediately, the corresponding '''Scilab file '''opens'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside this''' file''', all the '''properties''' of the figure and '''object''' are provided.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight '''handles.h1,'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
highlight the part inside '''uicontrol '''parentheses.&lt;br /&gt;
|&lt;br /&gt;
'''handles.h1''' is the''' handle '''for the '''pushbutton. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside the '''uicontrol''' parentheses the properties of the '''pushbutton''' are given.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight the '''h1_callback '''function.&lt;br /&gt;
|&lt;br /&gt;
The '''callback function h1_callback '''is defined at the bottom'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Code written within this '''function''' will get executed on pressing the '''pushbutton.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''disp(“Hello World!”).'''&lt;br /&gt;
|&lt;br /&gt;
Let us now write a code within '''h1_callback'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, '''disp(“Hello World!”).'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''command''' will display “'''Hello World!”''' on the '''Scilab console '''when executed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''program''' is now complete.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Press '''CTRL + S.'''&lt;br /&gt;
| Let us save it by pressing the '''Control''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scinotes '''window,&lt;br /&gt;
&lt;br /&gt;
click on''' Execute.'''&lt;br /&gt;
| Click on '''Execute''' in the top '''menubar'''.&lt;br /&gt;
|-&lt;br /&gt;
| Click on '''File with echo'''&lt;br /&gt;
| Then click on '''File with echo''' from the drop-down.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover cursor on '''Print pushbutton.'''&lt;br /&gt;
|&lt;br /&gt;
A window named '''Graphic window number 2''' opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''pushbutton '''named '''Print''' appears in the graphic window.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Print.'''&lt;br /&gt;
|&lt;br /&gt;
Next, let us test our '''GUI.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Print''' '''pushbutton'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The code gets executed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Scilab Console.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the message''' Hello World!'''&lt;br /&gt;
|&lt;br /&gt;
Go to the '''Scilab Console '''to see the output. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''console''' shows the message “'''Hello World!”'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''Graphic Window number 2,'''&lt;br /&gt;
&lt;br /&gt;
click on the '''Print pushbutton '''three times'''.'''&lt;br /&gt;
|&lt;br /&gt;
Let us now again click the '''Print pushbutton''' three times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that on the '''Scilab Console, '''the '''static response''' is generated three times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, for each click on the '''pushbutton,''' a '''static response''' is generated.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this '''tutorial'''. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this '''tutorial''', we:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add one more '''pushbutton''' to the current '''GUI''' as described below,&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE '''team coordinates the '''Lab Migration project.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide: &lt;br /&gt;
&lt;br /&gt;
'''Acknowledgment'''&lt;br /&gt;
| The '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Amandeepsingh Siddhu''', a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Amandeeps</name></author>	</entry>

	</feed>