Python 2.6 Graphics Cookbook
上QQ阅读APP看书,第一时间看更新

Conventions

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 new feature here is the function detect_Wall_Collision()."

A block of code is set as follows:

posn_x  =     1    # x position of box containing the ball (bottom)
posn_y  =     1    # y position of box containing the ball (left edge)
shift_x  =    3    # amount of x-movement each cycle of the 'for' loop
shift_y  =    2    # amount of y-movement each cycle of the 'for' loop

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "In Windows, you simply go to the website and click the Download button and it will install and can be used immediately".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.