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

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.
主站蜘蛛池模板: 珲春市| 建平县| 徐汇区| 千阳县| 鄢陵县| 富裕县| 祁连县| 安义县| 左贡县| 丽水市| 琼中| 康定县| 扎鲁特旗| 区。| 旌德县| 寿阳县| 黄石市| 新竹县| 微山县| 安龙县| 和硕县| 和龙市| 高邮市| 盐山县| 繁昌县| 文登市| 新丰县| 蓝田县| 马公市| 陵川县| 建平县| 克什克腾旗| 凤阳县| 芜湖县| 富蕴县| 乃东县| 双牌县| 武汉市| 青铜峡市| 天祝| 噶尔县|