Welcome | Get started | Dive into Lino | Contribute | Reference
Python for kids¶
This section is for young future Lino developers. You'll probably need somebody to help you with getting started.
Turtle
Playing with Turtle https://gitlab.com/lino-framework/book/-/tree/master/docs/dev/newbies/turtle1.py
More free games in Turtle : http://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