Skip to content

Commit

Permalink
GUI DONE
Browse files Browse the repository at this point in the history
  • Loading branch information
jmportilla committed Nov 26, 2015
1 parent 9196748 commit 36989aa
Show file tree
Hide file tree
Showing 10 changed files with 1,620 additions and 1,796 deletions.
106 changes: 71 additions & 35 deletions GUI/.ipynb_checkpoints/2 - Widget Basics-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {
"collapsed": false
},
Expand Down Expand Up @@ -95,7 +95,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {
"collapsed": false
},
Expand Down Expand Up @@ -124,7 +124,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {
"collapsed": false
},
Expand Down Expand Up @@ -155,7 +155,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {
"collapsed": false
},
Expand All @@ -164,26 +164,6 @@
"display(w)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Why does displaying the same widget twice work?"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"Widgets are represented in the back-end by a single object. Each time a widget is displayed, a new representation of that same object is created in the front-end. These representations are called views.\n",
"\n",
"![Kernel & front-end diagram](images/WidgetModelView.png)"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand All @@ -204,7 +184,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {
"collapsed": false
},
Expand All @@ -215,7 +195,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"metadata": {
"collapsed": false
},
Expand Down Expand Up @@ -244,7 +224,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"metadata": {
"collapsed": false
},
Expand All @@ -256,11 +236,22 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"metadata": {
"collapsed": false
},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"0"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"w.value"
]
Expand All @@ -274,7 +265,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 10,
"metadata": {
"collapsed": false
},
Expand Down Expand Up @@ -303,11 +294,54 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 11,
"metadata": {
"collapsed": false
},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"['_view_name',\n",
" 'orientation',\n",
" 'color',\n",
" '_view_module',\n",
" 'height',\n",
" 'disabled',\n",
" 'visible',\n",
" 'border_radius',\n",
" 'border_width',\n",
" '_model_module',\n",
" 'font_style',\n",
" 'min',\n",
" '_range',\n",
" 'background_color',\n",
" 'slider_color',\n",
" 'width',\n",
" 'version',\n",
" 'font_family',\n",
" '_dom_classes',\n",
" 'description',\n",
" '_model_name',\n",
" 'max',\n",
" 'border_color',\n",
" 'readout',\n",
" 'padding',\n",
" 'font_weight',\n",
" 'step',\n",
" 'border_style',\n",
" 'font_size',\n",
" 'msg_throttle',\n",
" '_css',\n",
" 'value',\n",
" 'margin']"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"w.keys"
]
Expand All @@ -332,7 +366,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 12,
"metadata": {
"collapsed": false
},
Expand Down Expand Up @@ -361,7 +395,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 13,
"metadata": {
"collapsed": false
},
Expand Down Expand Up @@ -408,7 +442,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"[Index](Index.ipynb) - [Next](Widget List.ipynb)"
"# Conclusion\n",
"\n",
"You should now be beginning to have an understanding of how Widgets can interact with eachother and how you can begin to specify widget details."
]
}
],
Expand Down
Loading

0 comments on commit 36989aa

Please sign in to comment.