In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "The Python file with the mesh building blocks is called
mymesh.py so the first part of our code contains the following
A block of code is set as follows:
def event(evt, val): if evt == Draw.ESCKEY: Draw.Exit() # exit when user presses ESC return
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
def error(text): Draw.Register(lambda:msg(text), event, button_event)
Any command-line input or output is written as follows: