Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
Python for kids¶
This section is for young future Lino developers. You’ll probably need somebody to help you with getting started.
How to install Python on a Debian-based Linux:
$ sudo apt-get install python3 python3-tk idle3
Turtle
Playing with Turtle https://gitlab.com/lino-framework/book/-/tree/master/docs/dev/newbies/turtle1.py
More free games in Turtle : https://www.grantjenks.com/docs/freegames/
See also the official turtle docs
tkinter
A “Hello world” program using tkinter: https://gitlab.com/lino-framework/book/-/tree/master/docs/dev/newbies/gui1.py
This uses the “grid” layout method. The widgets are arranged by placing them in a cell of the grid. The button spans over two cells. Numbering starts with 0 and in the top left corner.
col0
col1
row0
L1
E1
row1
B
The “number guessing game” using tkinter: https://gitlab.com/lino-framework/book/-/tree/master/docs/dev/newbies/gui2.py
See also the official tkinter docs and Frederik Lundh’s Comprehensive list of events and http://www.tutorialspoint.com/python/python_gui_programming.htm