- Tkinter GUI Application Development Blueprints(Second Edition)
- Bhaskar Chaudhary
- 183字
- 2021-06-24 18:35:01
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 reset_to_initial_locations() method initializes all the locations to reflect the starting position of the game."
A block of code is set as follows:
def toggle_play_button_state(self):
if self.now_playing:
self.play_button.config(state="disabled")
else:
self.play_button.config(state="normal")
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 on_loop_button_toggled(self):
self.loop = self.to_loop.get()
self.keep_playing = self.loop
if self.now_playing:
self.now_playing = self.loop
self.toggle_play_button_state()
Any command-line input or output is written as follows:
>>> import pyglet
>>> help(pyglet.media)
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: "In our example, we will add menu items to the File, Edit, and About menu."
- Python Game Programming By Example
- 人臉識(shí)別原理及算法:動(dòng)態(tài)人臉識(shí)別系統(tǒng)研究
- Mastering macOS Programming
- 鋒利的SQL(第2版)
- Learning ArcGIS for Desktop
- Python編程:從入門到實(shí)踐(第3版)
- Learning Python Data Visualization
- Instant Automapper
- 零基礎(chǔ)學(xué)編程系列(全5冊(cè))
- C語(yǔ)言程序設(shè)計(jì)
- Mastering Vim
- Java性能權(quán)威指南
- 嵌入式Linux與物聯(lián)網(wǎng)軟件開發(fā):C語(yǔ)言內(nèi)核深度解析
- ASP.NET 4權(quán)威指南
- Web前端開發(fā)全程實(shí)戰(zhàn):HTML5+CSS3+JavaScript+jQuery+Bootstrap