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

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: "The delete() method takes two arguments that indicate the range of the characters that should be deleted."

A block of code is set as follows:

from tkinter import * 
 
root = Tk() 
btn = Button(root, text="Click me!") 
btn.config(command=lambda: print("Hello, Tkinter!"))
btn.pack(padx=120, pady=30)
root.title("My Tkinter app")
root.mainloop()

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 show_caption(self, event):
caption = tk.Label(self, ...)
caption.place(in_=event.widget, x=event.x, y=event.y)
# ...

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: "The first will be labeled Choose file."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 新巴尔虎左旗| 肇庆市| 延津县| 达拉特旗| 松潘县| 翼城县| 河北区| 高邑县| 泰来县| 怀仁县| 泗阳县| 抚顺市| 吴川市| 库伦旗| 西平县| 嘉禾县| 荣昌县| 朝阳县| 蚌埠市| 德化县| 朝阳县| 攀枝花市| 桦甸市| 河津市| 庆云县| 安新县| 班戈县| 天门市| 临猗县| 南漳县| 治多县| 长宁县| 佛教| 高要市| 澄江县| 焉耆| 新兴县| 成武县| 连州市| 贡觉县| 富源县|