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."