bind method mechanism
binding events, 394, 443–448, 563–564
binding tags, 548
functionality, 393
binding
events, 394, 443–448, 563–564
reserved port servers, 802
tags, 548
binhex module, 786
BitmapImage widget class, 411, 484–491
BooleanVar class, 454
Boost.Python system, 1512
bound methods
callback handlers and, 391
defined, 42
PyMailGUI program support, 1029
recoding with, 638–639
browsers
cookie support, 1178
displaying CGI context in, 1162
Grail, 776
PyMailCGI send mail script, 1247–1249
testing with urllib.request, 1155–1157
buffering
command pipes and, 838
line, 835–837
output streams, 832
Button widget class
command option, 458
functionality, 379–380, 411
buttons
adding, 379–380
adding in PyCalc, 1477–1480
deferring calls, 384
fixed-size, 502
Quit button, 429
randomly changing images, 487–491
bytearray string type, 83
bytecode files
cleaning up, 324–327
precompiling strings to, 1528–1529
bytes string type, 83, 539–540, 545–546
C
C language
API standard, 212, 1515
classes and, 1535–1538
embedding interface, 1484–1486, 1515–
1529
extending interface, 1484–1491, 1486–
1491
getenv function, 1495
putenv function, 1495, 1501
Python comparison, 1548
Python support, 1483
scanning files for patterns, 1427–1429
strop extension module, 1415
SWIG tool and, 1491–1495, 1500
wrapping environment calls, 1495–1501
C++ language, 1502–1511, 1514, 1548
CalcGui class, 1464, 1465
calculators (see PyCalc program)
callable objects
defined, 1516
overview, 1524–1526
registering, 1530–1535
callback handlers
adding user-defined, 382
additional protocols, 393
binding events, 394, 444
bound method, 391
callable class object, 392
deferring calls, 384–385
defined, 367
lambda, 383–391
registering objects, 1530–1535
reloading dynamically, 628–630
callbacks
adding, 379–380
arguments versus globals, 385
passing data with lambdas, 434–436
placing on queues, 640–646
Canvas widget class
addtag_withtag method, 553
basic operations, 550
controlling image displays, 505
coordinate system, 551
create_ method, 553
create_polygon method, 552
delete method, 561
event support, 560–564
find_closest method, 554, 564
freeform graphic support, 50
functionality, 411, 485, 528, 550
image thumbnails, 557–560
itemconfig method, 553
move method, 553
object construction, 552
1558 | Index