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

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Another parameter for tuning is dash_capstyle."

A block of code is set as follows:

import matplotlib.pyplot as plt
plt.figure(figsize=(4,4))
x = [0.1,0.3]
plt.pie(x)
plt.show()

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

        self.SetSize((500, 550))
        self.button_1 = wx.Button(self, wx.ID_ANY, "button_1")
##Code being added*** self.Bind(wx.EVT_BUTTON, self.__updat_fun, self.button_1) #Setting up the figure, canvas and axes

Any command-line input or output is written as follows:

python3 first_gtk_example.py

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Select Qt in Files and Classes and Qt Designer Form in the middle panel."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 凤山市| 哈巴河县| 保靖县| 尼木县| 沂源县| 商水县| 太和县| 巩义市| 巴中市| 鹰潭市| 石城县| 苏尼特左旗| 临桂县| 抚州市| 普兰县| 高邮市| 福贡县| 鸡泽县| 甘孜县| 甘泉县| 乌兰浩特市| 安龙县| 图片| 治县。| 巩留县| 泰顺县| 罗田县| 百色市| 平舆县| 乐安县| 洞口县| 历史| 鹤岗市| 华容县| 阿尔山市| 乌兰察布市| 二连浩特市| 怀宁县| 寻甸| 尚义县| 阿瓦提县|