官术网_书友最值得收藏!

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The reset_to_initial_locations() method initializes all the chess piece locations to reflect the starting position of the game."

A block of code is set as follows:

def toggle_play_button_state(self):
    if self.now_playing:
        self.play_button.config(state="disabled")
    else:
        self.play_button.config(state="normal")

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 on_loop_button_toggled(self):
    self.loop = self.to_loop.get()
    self.keep_playing = self.loop
    if self.now_playing:
        self.now_playing = self.loop
    self.toggle_play_button_state()

Any command-line input on the Python interactive shell is written as follows:

>>> import pyglet
>>> help(pyglet.media)

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "When a user clicks on the Cancel button, we simply want the settings window to close."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 闽侯县| 宁安市| 黄陵县| 勃利县| 通辽市| 建阳市| 凌源市| 东阳市| 区。| 子长县| 安溪县| 镇沅| 安溪县| 白银市| 黑水县| 天台县| 永济市| 年辖:市辖区| 富顺县| 阳新县| 深水埗区| 若羌县| 乌兰浩特市| 林周县| 曲麻莱县| 竹山县| 平江县| 白河县| 庆元县| 浦北县| 乌兰察布市| 青州市| 连州市| 乐昌市| 福泉市| 酒泉市| 墨江| 岚皋县| 达拉特旗| 崇仁县| 五河县|