[Python编程(第4版)].(Programming.Python.4th.Edition).Mark.Lutz.文字版

(yzsuai) #1
object identifiers, 553
object tags, 553
postscript method, 554
programming, 551–554
scrolling canvases, 554–556
tag_bind method, 563
tkraise method, 553
update method, 589
xscrollcommand option, 526
xview method, 526
yscrollcommand option, 526
yview method, 526
canvases
basic operations, 550–551
clearing, 561
coordinate system, 551
defined, 550
dragging out object shapes, 561
event support, 560–564
image thumbnails, 557–560
moving objects, 562
object construction, 552
object identifiers, 553
object tags, 553
scrolling, 554–556
cat command, 99
cd command, 106
cenviron module, 1497
cgi module
escape function, 59, 1186, 1202–1206,
1256, 1265
FieldStorage class, 1152, 1166, 1187, 1255
functionality, 786, 1129
PyMailCGI program and, 1232
CGI scripts, 1125
(see also PyMailCGI program; server-side
scripting/processing)
adding common input devices, 1163–1166
adding pictures, 1146–1149
adding user interaction, 1149–1157
building first web page, 1135–1140
changing input layouts, 1166–1170
checking inputs, 1190–1192
converting strings, 1161
debugging, 1161–1163
defined, 1126
escape conventions, 1201–1209
examples, 1141–1146
formatting reply text, 59

functionality, 52–55, 777, 1126–1128
functions and, 1155
generating tables, 1146–1149
Hello World program, 1183–1192
installing, 1142–1145
laying out forms with tables, 1157–1163
model extensions, 1182
name conventions, 1143
passing parameters in hidden form fields,
1172
passing parameters in URLs, 1170–1172
permissions, 1215
programming suggestions, 68
query strings, 57–59
refactoring code, 1192–1201
running, 1130–1134
saving state information in, 1174–1183
text decoding issues, 929
urllib module and, 57–59
using cookies in, 1179
web servers and, 55–57
writing, 1128–1130
Checkbutton widget class
command option, 458
functionality, 411, 457–461
variables and, 460–461
child process
defined, 179
exiting from, 807
spawning, 184
chmod command, 16, 54, 1140
class instances
persistence and, 1303
pickling, 1313
storing in shelves, 1318–1320
class object callback handlers, 392
classes
adding behavior, 29
adding inheritance, 29
adding persistence, 34–36
alternative, 32
C language and, 1535–1538
changing for objects, 1320
container, 408–410
customizing widgets with, 400–403
moving graphs to, 1393–1395
programming considerations, 27–29
recoding with, 638–639
refactoring scripts with, 888–892

Index | 1559

Do


wnload from Wow! eBook <www.wowebook.com>

Free download pdf