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

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.
主站蜘蛛池模板: 乐山市| 邵东县| 岳西县| 馆陶县| 兴城市| 钟祥市| 邹平县| 平江县| 巴东县| 永川市| 鄂伦春自治旗| 九江县| 临江市| 海晏县| 小金县| 双鸭山市| 同德县| 二连浩特市| 湘潭县| 铁岭县| 神农架林区| 磐石市| 隆安县| 韩城市| 固镇县| 岐山县| 库车县| 郎溪县| 巴南区| 大庆市| 晴隆县| 灯塔市| 徐州市| 张北县| 方城县| 崇州市| 壤塘县| 清远市| 晋宁县| 溆浦县| 资兴市|