Index

A note on the digital index

A link in an index entry is displayed as the section title in which that entry appears. Because some sections have multiple index markers, it is not unusual for an entry to have several links to the same section. Clicking on any link will take you directly to the place in the text in which the marker appears.

Symbols

: (colon)
in if/else branches, Python uses indents to connect paths
in index of string, But how do you get at more than one character?
in while loops, Python’s while loop
{} (curly brackets), creating hashes, Associate a key with a value using a hash
= (equal sign), assignment operator, Programming lets you do more, Your Programming Toolbox
== (equal sign, double), equal to operator, Programming lets you do more, if/else branches
!= (exclamation point, equal sign), not equal to operator, Python’s while loop
() (parentheses)
in format strings, Use strings to format strings
in function definition, Reuse code with functions
% (percentage symbol), preceding format strings, Use strings to format strings
. (period), in library function request, You’re already using library code
+ (plus sign), addition operator, Python data is smart
# (pound sign), preceding comments, The function always sends the same message, The Starbuzz code
> (right angle bracket), greater than operator, Python data is smart, Your Programming Toolbox
[] (square brackets)
creating arrays, Python gives you arrays with lists, Arrays can be extended
enclosing index of array, Python gives you arrays with lists
enclosing index of string, Find characters inside the text
enclosing key for hash, Associate a key with a value using a hash

A

abstraction, Use the Force, Web Luke
addition operator (+), Python data is smart
algorithms, #8: Algorithms
append() method, arrays, Python gives you arrays with lists, Your Programming Toolbox
arguments (parameters), Use parameters to avoid duplicating functions, Use parameters to avoid duplicating functions, Your Programming Toolbox
arrays (lists), You can’t use a separate variable for each line of data, Your Programming Toolbox, The model stays the same
adding items to, Sort the array before displaying the results
counting occurrences of values in, Sort the array before displaying the results
creating, Python gives you arrays with lists, Arrays can be extended
extending, Python gives you arrays with lists, Sort the array before displaying the results
index (offset value) for, Python gives you arrays with lists
methods for, Sort the array before displaying the results
multi-dimensional arrays, Associate the name with the score
removing items from, Sort the array before displaying the results
reversing order of, Sort the array before displaying the results, Sort the scores from highest to lowest
searching, Sort the array before displaying the results
sorting, Sort the array before displaying the results, Your Programming Toolbox
askokcancel message boxes, Message boxes that ask stuff
askquestion message boxes, Message boxes that ask stuff
askretrycancel message boxes, Message boxes that ask stuff
askyesnocancel message boxes, Creating message boxes in Python, Message boxes that ask stuff
assignment
of multiple values, The split() method cuts the string
of single values, Programming lets you do more, Your Programming Toolbox
assignment operator (=), Programming lets you do more, Your Programming Toolbox
associative arrays (see hashes)
automated testing, #4: Automated testing techniques

C

C# language
compared to Python, Prepare and run your code
learning, #3: Other programming languages
characters (see strings)
Checkbutton() widget, The checkbox is an on/off, flip/flop toggle, Your Programming Toolbox
classes, A class is a machine for creating objects, The SoundPanel class looks a lot like the create_gui() function, Your Programming Toolbox
(see also methods; objects)
constructors for, The SoundPanel class looks a lot like the create_gui() function, Your Programming Toolbox
data for, The SoundPanel class looks a lot like the create_gui() function
defining, A class has methods that define behavior
clock() function, time library, You’re already using library code
close() method, files, Iterate through the file with the open, for, close pattern, Your Programming Toolbox
code
bloated, Don’t duplicate your code...
command-line execution of, #6: Command-line execution
comments in, The function always sends the same message, The Starbuzz code
debugging, #5: Debugging
duplicating, What does the new program need to do?
indents in, Python uses indents to connect paths, Python uses indents to connect paths
paths in, Codeville: Your program is like a network of roads, The Python code needs interconnecting paths
pseudo-code, Keeping track of 3 scores makes the code more complex
Python practices for, #1: Doing things “The Python Way”
reusing with functions, Don’t duplicate your code..., Create code for each track as a function
reusing with modules, Don’t just update your copy, The health club has a new requirement, The Starbuzz code, Your Programming Toolbox
running from IDLE, Prepare and run your code
saving, Prepare and run your code
testing, #4: Automated testing techniques
white space in, Python uses indents to connect paths
code examples (see examples)
coffee examples (see health club example; Starbuzz Coffee example)
collection variables (see data structures)
colon (:)
in if/else branches, Python uses indents to connect paths
in index of string, But how do you get at more than one character?
in while loops, Python’s while loop
combo boxes, But TVN is still not happy
command-line execution, #6: Command-line execution
comments, The function always sends the same message, The Starbuzz code
conditionals, Your Programming Toolbox
in branches, Branches are code intersections
in while loops, Python’s while loop
constructors (initializer methods), The SoundPanel class looks a lot like the create_gui() function, Your Programming Toolbox
control variables, So how do you use models in tkinter?
controller, The system tells the other widgets when the model changes, Your Programming Toolbox
count() method, arrays, Sort the array before displaying the results
crashes, When it couldn’t write to the file, the program threw an exception
curly brackets ({}), creating hashes, Associate a key with a value using a hash, Your Programming Toolbox

D

data entry widgets
Checkbutton() widget, The checkbox is an on/off, flip/flop toggle, Your Programming Toolbox
Entry() widget, The Entry and Text widgets let you enter text data into your GUI, Large Text fields are harder to handle, Large Text fields are harder to handle, Your Programming Toolbox
model for, The radio buttons can share a model, The model stays the same, Your Programming Toolbox
OptionMenu() widget, An OptionMenu lets you have as many options as needed, Your Programming Toolbox
populating dynamically, But wait... you don’t have to list all the values like that, Your Programming Toolbox
RadioButton() widget, Radio buttons force users to choose a valid depot, The radio buttons should work together, Your Programming Toolbox
restricting input to, Users can enter anything in the fields
Scale() widget, Pump up the volume!, Use tkinter for everything else, Your Programming Toolbox
Text() widget, The Entry and Text widgets let you enter text data into your GUI, Large Text fields are harder to handle, Large Text fields are harder to handle, Large Text fields are harder to handle, Your Programming Toolbox
data storage, Sorting is easier in memory
data structures, An array lets you manage a whole train of data, Associate the name with the score
(see also arrays; hashes)
list of, Associate the name with the score
returning from functions, Return a data structure from a function
database, The code remains the same; it’s the function that changes, Your Programming Toolbox
datatypes, converting, Programming lets you do more, Prepare and run your code, Strings and numbers are different, Your Programming Toolbox
date and time functions, Time... if only you had more of it
daylight() function, time library, You’re already using library code
debugging, #5: Debugging
decision points (see branches)
decode() method, But how do you get at more than one character?
def keyword, Reuse code with functions, Your Programming Toolbox
delete() method, data entry widgets, Read and write data to text fields, Large Text fields are harder to handle, Large Text fields are harder to handle, Large Text fields are harder to handle
delivery company example, Head-Ex needs a new delivery system
dynamic depot options for, There are too many depots on the GUI
errors in delivery tracking, handling, What’s that smell?
GUI for delivery system, Head-Ex needs a new delivery system
user input, controlling, Users can enter anything in the fields
destroy() method, apps, Capturing the protocol event isn’t enough, Your Programming Toolbox
dialog boxes, But TVN is still not happy
(see also message boxes)
dictionaries (see hashes)
directories, reading files in, The DJ has an entire directory of tracks
disk storage, Sorting is easier in memory
DJ example (see mixing software example)
Don’t Repeat Yourself (DRY), Return data with the return command
DoubleVar() variable, Use tkinter for everything else, Use tkinter for everything else, Your Programming Toolbox
drop down lists, But TVN is still not happy
(see also OptionMenu() widget)
DRY (Don’t Repeat Yourself), Return data with the return command

E

Eclipse IDE, #10: Other IDEs, shells, and text editors
editors, So how do you run your code?, #10: Other IDEs, shells, and text editors
(see also IDLE)
Emacs editor, #10: Other IDEs, shells, and text editors
encapsulation, #7: Ooops... we could’ve covered more OOP
endswith() method, strings, Python data is smart
Entry() widget, The Entry and Text widgets let you enter text data into your GUI, Large Text fields are harder to handle, Your Programming Toolbox
creating, Large Text fields are harder to handle
methods for, Read and write data to text fields
equal sign (=), assignment operator, Programming lets you do more
equal sign, double (==), equal to operator, Programming lets you do more, if/else branches
Eric IDE, #10: Other IDEs, shells, and text editors
errors, Your Programming Toolbox
(see also debugging; testing)
crashes resulting from, When it couldn’t write to the file, the program threw an exception
displayed in Shell instead of GUI, Someone changed the file permissions
displaying in message boxes, A message box demands attention
exceptions, When it couldn’t write to the file, the program threw an exception, Your Programming Toolbox
TypeError message, Python data is smart
ValueError message, Iterate through the file with the open, for, close pattern
event loop, 0... 2... 1... 9... blast off!, Your Programming Toolbox
events
from operating system, Not all events are generated by button clicks, Your Programming Toolbox
from Window Manager, Not all events are generated by button clicks, Capturing the protocol event isn’t enough
handlers for, Connect code to your button events, The GUI program’s now ready for a screentest, Your Programming Toolbox
examples
delivery company example, Head-Ex needs a new delivery system
game show example, Head First TVN now produces game shows
guessing game, Programming lets you do more
health club example, Head First Health Club is upgrading some systems
mixing software example, Time to mix it up, The DJ wants to play more than one track
Starbuzz Coffee, Your new gig at Starbuzz Coffee, Starbuzz is out of beans!
storeroom example, What’s that smell?
Surf-A-Thon example, Surf’s up in Codeville, Who won the surfing contest?
except statement, Watch for exceptions with try/except, Your Programming Toolbox
exceptions, When it couldn’t write to the file, the program threw an exception, Your Programming Toolbox
exclamation point, equal sign (!=), not equal to operator, Python’s while loop
extend() method, arrays, Sort the array before displaying the results

F

false value, Branches are code intersections
File menu
New Window option, Create a new program file
Save option, Prepare and run your code
files
handles for, Iterate through the file with the open, for, close pattern
permissions for, Someone changed the file permissions
reading all files in directory, The DJ has an entire directory of tracks
reading from, Iterate through the file with the open, for, close pattern, Return a data structure from a function
find() method, strings, Python data is smart
float() function, Strings and numbers are different, Iterate through the file with the open, for, close pattern
for loop, Iterate through the file with the open, for, close pattern, Iterate hash data with for
format strings, Use strings to format strings, Use strings to format strings, Your Programming Toolbox
formatted data, The program needs to create a transaction file
FQNs (fully qualified names), Fully Qualified Names (FQNs) prevent your programs from getting confused, The discounts get the customers flooding in, Your Programming Toolbox
Frame() widget, A frame widget contains other widgets, class = methods + data, Your Programming Toolbox
fully qualified names (FQNs), Fully Qualified Names (FQNs) prevent your programs from getting confused, The discounts get the customers flooding in, Your Programming Toolbox
functional programming, #9: Advanced Scary programming topics
functions, Reuse code with functions
(see also reusing code; specific functions)
calling, Reuse code with functions, Reuse code with functions
creating (defining), Reuse code with functions, Your Programming Toolbox
local functions, The new function contains other functions, Your Programming Toolbox
parameters for, Use parameters to avoid duplicating functions, Use parameters to avoid duplicating functions, Your Programming Toolbox
returning data structures from, Return a data structure from a function, The code remains the same; it’s the function that changes
returning values from, Return data with the return command, Your Programming Toolbox
scope of variables in, The rest of the program can’t see the password variable
with same name in different modules, The two discount functions have the same name, The discounts get the customers flooding in

G

game show example, Head First TVN now produces game shows
answers, displaying in GUI, But TVN is still not happy
answers, sound effects for, Head First TVN now produces game shows
answers, tallying, Head First TVN now produces game shows, pygame is cross platform
GUI for, 0... 2... 1... 9... blast off!
get() method
data entry widgets, Read and write data to text fields, Large Text fields are harder to handle, Large Text fields are harder to handle, So how do you use models in tkinter?
IntVar() variable, Working with checkboxes in tkinter, Using the get() method
get_busy() method, channels, pygame is cross platform
global variables, When you leave a function, its variables get thrown away, The GUI program’s now ready for a screentest
gmtime() function, time library, You’re already using library code
graphical user interface (see GUI)
greater than operator (>), Python data is smart, Your Programming Toolbox
Greene, Jennifer (Head First C#), #3: Other programming languages
grouping widgets, Group widgets together
guessing game example, Programming lets you do more
guesses, determining if correct, Programming lets you do more
guesses, higher or lower hints for, Prepare and run your code
multiple guesses, allowing, Python uses indents to connect paths
GUI (graphical user interface), Building a Graphical User Interface: Going all gooey, 0... 2... 1... 9... blast off!
(see also widgets)
displaying messages in, But TVN is still not happy, A message box demands attention, Your Programming Toolbox
errors not displayed in, Someone changed the file permissions
event loop for, 0... 2... 1... 9... blast off!
guidelines for, Use tkinter for everything else
positioning widgets in, tkinter is packed with options

I

IDE (Integrated Development Environment), So how do you run your code?, Prepare and run your code, #10: Other IDEs, shells, and text editors
IDLE, So how do you run your code?, Prepare and run your code, Python uses indents to connect paths
if/else branches, Programming lets you do more, if/else branches, Python uses indents to connect paths
import statement, But how do you get at more than one character?, You’re already using library code
importing
libraries, But how do you get at more than one character?, You’re already using library code, pygame is cross platform, pygame is cross platform
modules, So how do you create a module...?, The transaction file is working great, too, The health club has a new requirement, Fully Qualified Names (FQNs) prevent your programs from getting confused, Your Programming Toolbox
indents in code, Python uses indents to connect paths, Python uses indents to connect paths
index (offset value)
for arrays, Python gives you arrays with lists
for strings, Find characters inside the text
index() method, arrays, Sort the array before displaying the results
inheritance, #7: Ooops... we could’ve covered more OOP
__init__() method, The SoundPanel class looks a lot like the create_gui() function, class = methods + data, Your Programming Toolbox
initializer methods (constructors), The SoundPanel class looks a lot like the create_gui() function, Your Programming Toolbox
input() function, Programming lets you do more, Your Programming Toolbox, #2: Using Python 2
insert() method
arrays, Sort the array before displaying the results
data entry widgets, Read and write data to text fields, Large Text fields are harder to handle, Large Text fields are harder to handle
int() function, Programming lets you do more, Prepare and run your code, Your Programming Toolbox
Integrated Development Environment (IDE), So how do you run your code?, Prepare and run your code, #10: Other IDEs, shells, and text editors
internationalization, format strings for, Use strings to format strings
interpreter, So how do you run your code?
(see also IDLE)
IntVar() variable, Label it, Label it, Your Programming Toolbox
iPython shell, #10: Other IDEs, shells, and text editors
IronPython project, #3: Other programming languages
items() method, hashes, Iterate hash data with for, Your Programming Toolbox
iteration (see loops)

J

Java language
compared to Python, Prepare and run your code
learning, #3: Other programming languages
Jython project, #3: Other programming languages

K

key-value lists (see hashes)
keys() method, hashes, Iterate hash data with for, Your Programming Toolbox
Komodo IDE, #10: Other IDEs, shells, and text editors

L

Label() widget, But TVN is still not happy, Your Programming Toolbox
labels for values (see variables)
Learning Python, 4th Edition (Lutz), #1: Doing things “The Python Way”
libraries, Your Programming Toolbox
(see also pygame library)
importing, But how do you get at more than one character?, You’re already using library code, pygame is cross platform, pygame is cross platform
third-party libraries (packages), pygame is cross platform, pygame is cross platform
time library, Time... if only you had more of it
tkinter library, 0... 2... 1... 9... blast off!, The GUI works, but doesn’t do anything, Your Programming Toolbox, Use tkinter for everything else
linked lists, Associate the name with the score
listdir() function, The DJ has an entire directory of tracks
lists (see arrays)
local functions, The new function contains other functions, Your Programming Toolbox
local variables, When you call a function, the computer creates a fresh list of variables, When you leave a function, its variables get thrown away, Your Programming Toolbox
localtime() function, time library, You’re already using library code
loops, Loops let you run the same piece of code over and over again, Your Programming Toolbox
delaying iterations of, The program has overloaded the Beans’R’Us Server
event loop, 0... 2... 1... 9... blast off!, Your Programming Toolbox
for loop, Iterate through the file with the open, for, close pattern, Iterate hash data with for
while loop, Python’s while loop, Python data is smart
lower() method, strings, Python data is smart
Lutz, Mark (Learning Python, 4th Edition), #1: Doing things “The Python Way”

M

mainloop() method, tkinter, tkinter gives you the event loop for free, Label it
mappings (see hashes)
McLaughlin, Brett D. (Head First Object-Oriented Analysis & Design), #7: Ooops... we could’ve covered more OOP
memory, Sorting is easier in memory
menus, But TVN is still not happy
message boxes, A message box demands attention, Your Programming Toolbox
messages
error messages (see errors)
protocol messages, Not all events are generated by button clicks
sending to Twitter, Use the Force, Web Luke, Use parameters to avoid duplicating functions
metaprogramming, #9: Advanced Scary programming topics
methods, class = methods + data, Your Programming Toolbox
(see also specific methods)
calling, But how does an object call a method?
defining, A class has methods that define behavior
mixing software example, Time to mix it up, The DJ wants to play more than one track
multiple tracks, controlling, The DJ wants to play more than one track
multiple tracks, reading from directory, The DJ has an entire directory of tracks
toggle for starting and stopping, Two buttons, or not two buttons? That is the question...
tracks, starting and stopping, Time to mix it up
volume control, Pump up the volume!
model for data entry widgets, The radio buttons can share a model, The model stays the same, Your Programming Toolbox
Model View Controller (MVC), The system tells the other widgets when the model changes
modular code, Don’t just update your copy, The health club has a new requirement, The Starbuzz code, Your Programming Toolbox
(see also reusing code)
module (see code)
multi-dimensional arrays, Associate the name with the score
multiple assignment, The split() method cuts the string
MVC (Model View Controller), The system tells the other widgets when the model changes

N

New Window option, File menu, Create a new program file
, newline in format strings, Use strings to format strings
not equal to operator (!=), Python’s while loop

P

pack() method, tkinter, tkinter is packed with options, The GUI works, but doesn’t do anything, Large Text fields are harder to handle, Large Text fields are harder to handle
packages (third-party libraries), pygame is cross platform, pygame is cross platform
parameters for functions, Use parameters to avoid duplicating functions, Use parameters to avoid duplicating functions, Your Programming Toolbox
parentheses (())
in format strings, Use strings to format strings
in function definition, Reuse code with functions
pass statement, pygame is cross platform, Your Programming Toolbox
paths in code, Codeville: Your program is like a network of roads, The Python code needs interconnecting paths
pdb debugger, #5: Debugging
percentage symbol (%), preceding format strings, Use strings to format strings
period (.), in library function request, You’re already using library code
permissions for files, Someone changed the file permissions
play() method, sounds, pygame is cross platform
plus sign (+), addition operator, Python data is smart
point-of-sale (POS) system, Head First Health Club is upgrading some systems
(see also health club example)
Pollice, Gary (Head First Object-Oriented Analysis & Design), #7: Ooops... we could’ve covered more OOP
polymorphism, #7: Ooops... we could’ve covered more OOP
pop() method, arrays, Sort the array before displaying the results
POS (point-of-sale) system, Head First Health Club is upgrading some systems
(see also health club example)
pound sign (#), preceding comments, The function always sends the same message, The Starbuzz code
print() function, Programming lets you do more, Your Programming Toolbox, #2: Using Python 2
program (see code)
programming idioms, #1: Doing things “The Python Way”
protocol events, Not all events are generated by button clicks
protocol() method, apps, Not all events are generated by button clicks
pseudo-code, Keeping track of 3 scores makes the code more complex
.py file extension, Prepare and run your code
pygame library, Head First TVN now produces game shows, pygame is cross platform, Your Programming Toolbox
downloading and installing, pygame is cross platform
importing, pygame is cross platform, pygame is cross platform
mixer object for, pygame is cross platform, pygame is cross platform
platforms supported by, Head First TVN now produces game shows
setting volume, Use pygame to set the volume
Python, Prepare and run your code
books about, #1: Doing things “The Python Way”
command-line execution of, #6: Command-line execution
compared to Java and C#, Prepare and run your code
integrated into other languages, #3: Other programming languages
programming idioms for, #1: Doing things “The Python Way”
systems supporting, Prepare and run your code
version 2 of, #2: Using Python 2
versions of, Prepare and run your code
Python IDE (see IDLE)
Python Shell, So how do you run your code?
errors displayed in, Someone changed the file permissions
running code in, Prepare and run your code
.pyw file extension, tkinter is packed with options

R

RadioButton() widget, Radio buttons force users to choose a valid depot, The radio buttons should work together, Your Programming Toolbox
randint() function, Python’s while loop, Your Programming Toolbox
raw_input() function, #2: Using Python 2
read() method, But how do you get at more than one character?
reading from files, Iterate through the file with the open, for, close pattern
record, The program needs to create a transaction file
(see also database)
recursion, #9: Advanced Scary programming topics
regex, #9: Advanced Scary programming topics
Regional Surfing Association (RSA) example, When data gets complex
regular expressions, #9: Advanced Scary programming topics
remove() method, arrays, Sort the array before displaying the results
repeating pieces of code (see loops)
replace() method, strings, Python data is smart
reserved words, Use tkinter for everything else, Your Programming Toolbox
return values for functions, Return data with the return command, Your Programming Toolbox
return() statement, Return data with the return command, Your Programming Toolbox
reusing code, Reuse code with functions
(see also functions)
with functions, Don’t duplicate your code..., Create code for each track as a function
with modules, Don’t just update your copy, The health club has a new requirement, The Starbuzz code, Your Programming Toolbox
reverse() method, arrays, Sort the array before displaying the results, Sort the scores from highest to lowest, Your Programming Toolbox
right angle bracket (>), greater than operator, Python data is smart, Your Programming Toolbox
RSA (Regional Surfing Association) example, When data gets complex
Run Module option, Run menu, Prepare and run your code

S

Save option, File menu, Prepare and run your code
Scale() widget, Pump up the volume!, Use tkinter for everything else, Your Programming Toolbox
scope of variables, The rest of the program can’t see the password variable, Your Programming Toolbox
searching
arrays, Sort the array before displaying the results
strings, Searching is complex
self variable, But how does an object call a method?, class = methods + data, Your Programming Toolbox
set() method, So how do you use models in tkinter?
data entry widgets, So how do you use models in tkinter?, So how do you use models in tkinter?
IntVar() variable, Label it
sets, Associate the name with the score
set_volume() method, pygame, Use pygame to set the volume
sharing code (see reusing code)
Shell (see Python Shell)
showerror message boxes, Message boxes that ask stuff, Message boxes that ask stuff
showinfo message boxes, Creating message boxes in Python, Message boxes that ask stuff
showwarning message boxes, Message boxes that ask stuff
Sierra, Kathy (Head First Java), #3: Other programming languages
sleep() function, time library, You’re already using library code, You’re already using library code
slider on a scale (see Scale() widget)
sort() method, arrays, Sort the array before displaying the results, Your Programming Toolbox
sorted() function, The data isn’t sorted, Your Programming Toolbox
sorting data, Keeping track of 3 scores makes the code more complex
algorithms for, #8: Algorithms
in any data structure, The data isn’t sorted, Your Programming Toolbox
in arrays, Sort the array before displaying the results, Your Programming Toolbox
sound
pausing between playing, pygame is cross platform, pygame is cross platform
playing, pygame is cross platform, pygame is cross platform
pygame library for, Head First TVN now produces game shows, pygame is cross platform
starting and stopping, Time to mix it up
volume, adjusting, Pump up the volume!
WAV files for, pygame is cross platform, pygame is cross platform
source code (see code)
spaces (see white space)
split() method, strings, Split each line as you read it, Your Programming Toolbox, So what does RSA’s data look like?, Your Programming Toolbox
SQL, The code remains the same; it’s the function that changes
(see also database)
square brackets ([])
creating arrays, Python gives you arrays with lists, Arrays can be extended
enclosing index of array, Python gives you arrays with lists
enclosing index of string, Find characters inside the text
enclosing key for hash, Associate a key with a value using a hash
stack, The rest of the program can’t see the password variable
stack frame, When you call a function, the computer creates a fresh list of variables, Your Programming Toolbox
Starbuzz Coffee example, Your new gig at Starbuzz Coffee, Starbuzz is out of beans!
coffee supplies, maintaining, Starbuzz is out of beans!
discount price, finding in HTML, Beans‘R’Us is rewarding loyal customers
health club discounts, calculating, The health club has a new requirement
low price, checking for, Python data is smart
order messages, sending to Twitter, Return data with the return command
price, extracting from HTML, Your new gig at Starbuzz Coffee
startswith() method, strings, Python data is smart
Stellman, Andrew (Head First C#), #3: Other programming languages
storage of data, Sorting is easier in memory
storeroom example, What’s that smell?
strings, The cost is embedded in the HTML, But how do you get at more than one character?, Your Programming Toolbox
ending substring, checking, Python data is smart
formatting, Use strings to format strings, Use strings to format strings, Your Programming Toolbox
lowercase, converting to, Python data is smart
methods for, Python data is smart
offset value (index) of, Find characters inside the text
removing white space from, Python data is smart
replacing substrings in, Python data is smart
searching for substrings in, Searching is complex
splitting at spaces, Split each line as you read it
splitting at specified character, So what does RSA’s data look like?
starting substring, checking, Python data is smart
substrings of, But how do you get at more than one character?, But how do you get at more than one character?, But how do you get at more than one character?
uppercase, converting to, Python data is smart, Python data is smart
web pages as, But how do you get at more than one character?
StringVar() variable, So how do you use models in tkinter?, So how do you use models in tkinter?, Your Programming Toolbox
strip() method, strings, Python data is smart
substrings, But how do you get at more than one character?
length of, But how do you get at more than one character?
searching for, in strings, Searching is complex
specifying, But how do you get at more than one character?, But how do you get at more than one character?
Surf-A-Thon example, Surf’s up in Codeville, Who won the surfing contest?
highest score, calculating, Surf’s up in Codeville
names, matching to scores, And the winner is...?, Who won the surfing contest?
score data, extracting from database, Meanwhile, down at the studio...
score data, extracting from formatted file, When data gets complex
scores, sorting, Sort the array before displaying the results, The data isn’t sorted
three highest scores, calculating, But you need more than one top score

U

Unicode character encoding system, #9: Advanced Scary programming topics
unittest module, #4: Automated testing techniques
upper() method, strings, Python data is smart, Python data is smart
uppercase, converting strings to, Python data is smart
urllib.request library, You’re already using library code
urlopen() function, But how do you get at more than one character?

W

wait_finish() function, pygame is cross platform, pygame is cross platform
WAV files, pygame is cross platform, pygame is cross platform
web pages, as strings, But how do you get at more than one character?
West, Dave (Head First Object-Oriented Analysis & Design), #7: Ooops... we could’ve covered more OOP
while loop, Python’s while loop, Python data is smart
white space
in code, Python uses indents to connect paths
removing from strings, Python data is smart
specifying in format strings, Use strings to format strings
splitting strings at, Split each line as you read it
widgets
Button() widget, tkinter gives you the event loop for free, Connect code to your button events, The GUI program’s now ready for a screentest, Your Programming Toolbox
choosing, Use tkinter for everything else
compared to objects, A class has methods that define behavior
event loop for, Your Programming Toolbox
for data entry (see data entry widgets)
Frame() widget, A frame widget contains other widgets, class = methods + data, Your Programming Toolbox
grouping, Group widgets together
Label() widget, But TVN is still not happy, Your Programming Toolbox
list of, But TVN is still not happy
positioning, tkinter is packed with options
Window Manager, Your Programming Toolbox
Window Manager events, Not all events are generated by button clicks, Capturing the protocol event isn’t enough
WM_DELETE_WINDOW message, Not all events are generated by button clicks
WM_SAVE_YOURSELF message, Not all events are generated by button clicks
WM_TAKE_FOCUS message, Not all events are generated by button clicks
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.60.149