Skip to content

Commit c1589b2

Browse files
committed
update tutorial
1 parent 7ce5e7e commit c1589b2

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

doc/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Tutorials
3333
=========
3434

3535
.. toctree::
36-
:maxdepth: 1
36+
:maxdepth: 2
3737

3838
tutorials/todo-list/index
3939

doc/source/tutorials/todo-list/adding-a-task/index.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
Adding a task
22
#############
33

4-
This is inspired from `todomvc.com <http://todomvc.com/>`_, Still PythonJS has not, at the time of writring, the code written to compete
5-
with such frameworks, nor does it has an equivalent of Django for the frontend.
6-
7-
The exercice is interesting has it allows to write a page with user interaction that can be useful.
8-
94
In what follows we will setup an application that allows the user to create a list of tasks.
105

116
Getting started

doc/source/tutorials/todo-list/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Todo List
22
#########
33

4+
This is inspired from `todomvc.com <http://todomvc.com/>`_, Still PythonJS has not, at the time of writring, the code written to compete
5+
with such frameworks, nor does it has an equivalent of Django for the frontend.
6+
7+
The exercice is interesting has it allows to write a page with user interaction that can be useful.
8+
49
.. toctree::
510
:maxdepth: 2
611

doc/source/tutorials/todo-list/wrap-ui-in-pythonjs-class/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ You only need to add... the following to the end of ``app.py``:
4242
4343
NORMAL_TODOS = TodoList("#todo-normal")
4444
45+
Changing tasks status
46+
=====================
47+
48+
Update ``TodoItem`` class with the following code:
49+
50+
.. literalinclude:: todo-item.py
51+
52+
You will have a new button on todo items that allows to change their status.
4553

4654
Several todo lists
4755
==================

0 commit comments

Comments
 (0)