SYMBOL INDEX (2280 symbols across 145 files) FILE: Chapter 01/1.09.py function callback (line 11) | def callback(event): ##(2) FILE: Chapter 01/1.10.py function show_event_details (line 9) | def show_event_details(event): FILE: Chapter 01/1.11.py function show (line 11) | def show(): FILE: Chapter 02/2.04.py function cut (line 26) | def cut(): function copy (line 31) | def copy(): function paste (line 36) | def paste(): function undo (line 41) | def undo(): function redo (line 46) | def redo(event=None): FILE: Chapter 02/2.05.py function select_all (line 25) | def select_all(event=None): function find_text (line 30) | def find_text(event=None): function search_output (line 56) | def search_output(needle, if_ignore_case, content_text, function cut (line 77) | def cut(): function copy (line 82) | def copy(): function paste (line 87) | def paste(): function undo (line 92) | def undo(): function redo (line 97) | def redo(event=None): FILE: Chapter 02/2.07.py function new_file (line 30) | def new_file(event=None): function open_file (line 37) | def open_file(event=None): function write_to_file (line 49) | def write_to_file(file_name): function save_as (line 59) | def save_as(event=None): function save (line 70) | def save(event=None): function select_all (line 81) | def select_all(event=None): function find_text (line 86) | def find_text(event=None): function search_output (line 112) | def search_output(needle, if_ignore_case, content_text, function cut (line 133) | def cut(): function copy (line 138) | def copy(): function paste (line 143) | def paste(): function undo (line 148) | def undo(): function redo (line 153) | def redo(event=None): FILE: Chapter 02/2.09.py function display_about_messagebox (line 27) | def display_about_messagebox(event=None): function display_help_messagebox (line 32) | def display_help_messagebox(event=None): function exit_editor (line 38) | def exit_editor(event=None): function new_file (line 46) | def new_file(event=None): function open_file (line 53) | def open_file(event=None): function write_to_file (line 65) | def write_to_file(file_name): function save_as (line 74) | def save_as(event=None): function save (line 84) | def save(event=None): function select_all (line 93) | def select_all(event=None): function find_text (line 98) | def find_text(event=None): function search_output (line 124) | def search_output(needle, if_ignore_case, content_text, function cut (line 145) | def cut(): function copy (line 150) | def copy(): function paste (line 155) | def paste(): function undo (line 160) | def undo(): function redo (line 165) | def redo(event=None): FILE: Chapter 02/2.10.py function update_line_numbers (line 26) | def update_line_numbers(event=None): function highlight_line (line 34) | def highlight_line(interval=100): function undo_highlight (line 41) | def undo_highlight(): function toggle_highlight (line 45) | def toggle_highlight(event=None): function on_content_changed (line 52) | def on_content_changed(event=None): function get_line_numbers (line 56) | def get_line_numbers(): function display_about_messagebox (line 65) | def display_about_messagebox(event=None): function display_help_messagebox (line 70) | def display_help_messagebox(event=None): function exit_editor (line 76) | def exit_editor(event=None): function new_file (line 81) | def new_file(event=None): function open_file (line 89) | def open_file(event=None): function write_to_file (line 102) | def write_to_file(file_name): function save_as (line 111) | def save_as(event=None): function save (line 121) | def save(event=None): function select_all (line 130) | def select_all(event=None): function find_text (line 135) | def find_text(event=None): function search_output (line 161) | def search_output(needle, if_ignore_case, content_text, function cut (line 182) | def cut(): function copy (line 188) | def copy(): function paste (line 193) | def paste(): function undo (line 199) | def undo(): function redo (line 205) | def redo(event=None): FILE: Chapter 02/2.11.py function show_cursor_info_bar (line 25) | def show_cursor_info_bar(): function update_cursor_info_bar (line 33) | def update_cursor_info_bar(event=None): function change_theme (line 41) | def change_theme(event=None): function update_line_numbers (line 49) | def update_line_numbers(event=None): function highlight_line (line 57) | def highlight_line(interval=100): function undo_highlight (line 64) | def undo_highlight(): function toggle_highlight (line 67) | def toggle_highlight(event=None): function on_content_changed (line 73) | def on_content_changed(event=None): function get_line_numbers (line 78) | def get_line_numbers(): function update_line_numbers (line 87) | def update_line_numbers(event=None): function display_about_messagebox (line 95) | def display_about_messagebox(event=None): function display_help_messagebox (line 100) | def display_help_messagebox(event=None): function exit_editor (line 106) | def exit_editor(event=None): function new_file (line 111) | def new_file(event=None): function open_file (line 119) | def open_file(event=None): function write_to_file (line 132) | def write_to_file(file_name): function save_as (line 141) | def save_as(event=None): function save (line 151) | def save(event=None): function select_all (line 160) | def select_all(event=None): function find_text (line 165) | def find_text(event=None): function search_output (line 191) | def search_output(needle, if_ignore_case, content_text, function cut (line 212) | def cut(): function copy (line 218) | def copy(): function paste (line 223) | def paste(): function undo (line 229) | def undo(): function redo (line 235) | def redo(event=None): FILE: Chapter 02/2.12.py function show_popup_menu (line 26) | def show_popup_menu(event): function show_cursor_info_bar (line 30) | def show_cursor_info_bar(): function update_cursor_info_bar (line 38) | def update_cursor_info_bar(event=None): function change_theme (line 45) | def change_theme(event=None): function update_line_numbers (line 53) | def update_line_numbers(event=None): function highlight_line (line 61) | def highlight_line(interval=100): function undo_highlight (line 68) | def undo_highlight(): function toggle_highlight (line 72) | def toggle_highlight(event=None): function on_content_changed (line 79) | def on_content_changed(event=None): function get_line_numbers (line 84) | def get_line_numbers(): function display_about_messagebox (line 93) | def display_about_messagebox(event=None): function display_help_messagebox (line 98) | def display_help_messagebox(event=None): function exit_editor (line 104) | def exit_editor(event=None): function new_file (line 109) | def new_file(event=None): function open_file (line 117) | def open_file(event=None): function write_to_file (line 130) | def write_to_file(file_name): function save_as (line 139) | def save_as(event=None): function save (line 150) | def save(event=None): function select_all (line 159) | def select_all(event=None): function find_text (line 164) | def find_text(event=None): function search_output (line 191) | def search_output(needle, if_ignore_case, content_text, function cut (line 212) | def cut(): function copy (line 218) | def copy(): function paste (line 223) | def paste(): function undo (line 229) | def undo(): function redo (line 235) | def redo(event=None): FILE: Chapter 03/3.01.py class DrumMachine (line 13) | class DrumMachine: method __init__ (line 15) | def __init__(self, root): FILE: Chapter 03/3.02.py class DrumMachine (line 19) | class DrumMachine: method __init__ (line 21) | def __init__(self, root): method init_all_patterns (line 28) | def init_all_patterns(self): method init_is_button_clicked_list (line 42) | def init_is_button_clicked_list(self, num_of_rows, num_of_columns): FILE: Chapter 03/3.03.py class DrumMachine (line 65) | class DrumMachine: method __init__ (line 67) | def __init__(self, root): method init_all_patterns (line 77) | def init_all_patterns(self): method on_pattern_changed (line 91) | def on_pattern_changed(self): method on_number_of_units_changed (line 94) | def on_number_of_units_changed(self): method on_bpu_changed (line 97) | def on_bpu_changed(self): method on_open_file_button_clicked (line 100) | def on_open_file_button_clicked(self, drum_index): method on_play_button_clicked (line 103) | def on_play_button_clicked(self): method on_stop_button_clicked (line 106) | def on_stop_button_clicked(self): method on_loop_button_toggled (line 109) | def on_loop_button_toggled(self): method on_beats_per_minute_changed (line 112) | def on_beats_per_minute_changed(self): method init_is_button_clicked_list (line 115) | def init_is_button_clicked_list(self, num_of_rows, num_of_columns): method get_button_value (line 118) | def get_button_value(self, row, col): method find_number_of_columns (line 122) | def find_number_of_columns(self): method process_button_clicked (line 125) | def process_button_clicked(self, row, col): method set_button_value (line 129) | def set_button_value(self, row, col, bool_value): method on_button_clicked (line 133) | def on_button_clicked(self, row, col): method display_all_button_colors (line 138) | def display_all_button_colors(self): method display_button_color (line 144) | def display_button_color(self, row, col): method create_play_bar (line 151) | def create_play_bar(self): method create_right_button_matrix (line 177) | def create_right_button_matrix(self): method create_left_drum_loader (line 190) | def create_left_drum_loader(self): method create_top_bar (line 203) | def create_top_bar(self): method create_top_menu (line 228) | def create_top_menu(self): method init_gui (line 241) | def init_gui(self): FILE: Chapter 03/3.04.py class DrumMachine (line 42) | class DrumMachine: method __init__ (line 44) | def __init__(self, root): method get_current_pattern_dict (line 58) | def get_current_pattern_dict(self): method get_bpu (line 61) | def get_bpu(self): method set_bpu (line 64) | def set_bpu(self): method get_number_of_units (line 67) | def get_number_of_units(self): method set_number_of_units (line 70) | def set_number_of_units(self): method get_list_of_drum_files (line 74) | def get_list_of_drum_files(self): method get_drum_file_path (line 77) | def get_drum_file_path(self, drum_index): method set_drum_file_path (line 80) | def set_drum_file_path(self, drum_index, file_path): method get_is_button_clicked_list (line 83) | def get_is_button_clicked_list(self): method set_is_button_clicked_list (line 86) | def set_is_button_clicked_list(self, num_of_rows, num_of_columns): method init_all_patterns (line 91) | def init_all_patterns(self): method on_pattern_changed (line 105) | def on_pattern_changed(self): method on_number_of_units_changed (line 108) | def on_number_of_units_changed(self): method on_bpu_changed (line 114) | def on_bpu_changed(self): method on_open_file_button_clicked (line 121) | def on_open_file_button_clicked(self, drum_index): method on_play_button_clicked (line 124) | def on_play_button_clicked(self): method on_stop_button_clicked (line 127) | def on_stop_button_clicked(self): method on_loop_button_toggled (line 130) | def on_loop_button_toggled(self): method on_beats_per_minute_changed (line 133) | def on_beats_per_minute_changed(self): method init_is_button_clicked_list (line 136) | def init_is_button_clicked_list(self, num_of_rows, num_of_columns): method get_button_value (line 139) | def get_button_value(self, row, col): method find_number_of_columns (line 143) | def find_number_of_columns(self): method process_button_clicked (line 146) | def process_button_clicked(self, row, col): method set_button_value (line 150) | def set_button_value(self, row, col, bool_value): method on_button_clicked (line 154) | def on_button_clicked(self, row, col): method display_all_button_colors (line 159) | def display_all_button_colors(self): method display_button_color (line 165) | def display_button_color(self, row, col): method create_play_bar (line 172) | def create_play_bar(self): method create_right_button_matrix (line 198) | def create_right_button_matrix(self): method create_left_drum_loader (line 211) | def create_left_drum_loader(self): method create_top_bar (line 224) | def create_top_bar(self): method create_top_menu (line 249) | def create_top_menu(self): method init_gui (line 262) | def init_gui(self): FILE: Chapter 03/3.05.py class DrumMachine (line 38) | class DrumMachine: method __init__ (line 40) | def __init__(self, root): method on_open_file_button_clicked (line 50) | def on_open_file_button_clicked(self, drum_index): method display_all_drum_file_names (line 60) | def display_all_drum_file_names(self): method display_drum_name (line 64) | def display_drum_name(self, text_widget_num, file_path): method get_current_pattern_dict (line 77) | def get_current_pattern_dict(self): method get_bpu (line 80) | def get_bpu(self): method set_bpu (line 83) | def set_bpu(self): method get_number_of_units (line 86) | def get_number_of_units(self): method set_number_of_units (line 89) | def set_number_of_units(self): method get_list_of_drum_files (line 93) | def get_list_of_drum_files(self): method get_drum_file_path (line 96) | def get_drum_file_path(self, drum_index): method set_drum_file_path (line 99) | def set_drum_file_path(self, drum_index, file_path): method get_is_button_clicked_list (line 102) | def get_is_button_clicked_list(self): method set_is_button_clicked_list (line 105) | def set_is_button_clicked_list(self, num_of_rows, num_of_columns): method init_all_patterns (line 110) | def init_all_patterns(self): method on_pattern_changed (line 124) | def on_pattern_changed(self): method on_number_of_units_changed (line 127) | def on_number_of_units_changed(self): method on_bpu_changed (line 133) | def on_bpu_changed(self): method on_play_button_clicked (line 140) | def on_play_button_clicked(self): method on_stop_button_clicked (line 143) | def on_stop_button_clicked(self): method on_loop_button_toggled (line 146) | def on_loop_button_toggled(self): method on_beats_per_minute_changed (line 149) | def on_beats_per_minute_changed(self): method init_is_button_clicked_list (line 152) | def init_is_button_clicked_list(self, num_of_rows, num_of_columns): method get_button_value (line 155) | def get_button_value(self, row, col): method find_number_of_columns (line 159) | def find_number_of_columns(self): method process_button_clicked (line 162) | def process_button_clicked(self, row, col): method set_button_value (line 166) | def set_button_value(self, row, col, bool_value): method on_button_clicked (line 170) | def on_button_clicked(self, row, col): method display_all_button_colors (line 175) | def display_all_button_colors(self): method display_button_color (line 181) | def display_button_color(self, row, col): method create_play_bar (line 188) | def create_play_bar(self): method create_right_button_matrix (line 214) | def create_right_button_matrix(self): method create_left_drum_loader (line 227) | def create_left_drum_loader(self): method create_top_bar (line 241) | def create_top_bar(self): method create_top_menu (line 266) | def create_top_menu(self): method init_gui (line 279) | def init_gui(self): FILE: Chapter 03/3.06.py class DrumMachine (line 61) | class DrumMachine: method __init__ (line 63) | def __init__(self, root): method on_open_file_button_clicked (line 75) | def on_open_file_button_clicked(self, drum_index): method display_all_drum_file_names (line 85) | def display_all_drum_file_names(self): method display_drum_name (line 89) | def display_drum_name(self, text_widget_num, file_path): method get_current_pattern_dict (line 102) | def get_current_pattern_dict(self): method get_bpu (line 105) | def get_bpu(self): method set_bpu (line 108) | def set_bpu(self): method get_number_of_units (line 111) | def get_number_of_units(self): method set_number_of_units (line 114) | def set_number_of_units(self): method get_list_of_drum_files (line 118) | def get_list_of_drum_files(self): method get_drum_file_path (line 121) | def get_drum_file_path(self, drum_index): method set_drum_file_path (line 124) | def set_drum_file_path(self, drum_index, file_path): method get_is_button_clicked_list (line 127) | def get_is_button_clicked_list(self): method set_is_button_clicked_list (line 130) | def set_is_button_clicked_list(self, num_of_rows, num_of_columns): method init_all_patterns (line 135) | def init_all_patterns(self): method on_pattern_changed (line 149) | def on_pattern_changed(self): method on_number_of_units_changed (line 152) | def on_number_of_units_changed(self): method on_bpu_changed (line 158) | def on_bpu_changed(self): method on_play_button_clicked (line 164) | def on_play_button_clicked(self): method start_play (line 167) | def start_play(self): method on_stop_button_clicked (line 171) | def on_stop_button_clicked(self): method stop_play (line 174) | def stop_play(self): method init_pygame (line 177) | def init_pygame(self): method play_sound (line 181) | def play_sound(self, sound_filename): method get_column_from_matrix (line 185) | def get_column_from_matrix(self, matrix, i): method play_pattern (line 189) | def play_pattern(self): method time_to_play_each_column (line 206) | def time_to_play_each_column(self): method on_loop_button_toggled (line 212) | def on_loop_button_toggled(self): method on_beats_per_minute_changed (line 215) | def on_beats_per_minute_changed(self): method init_is_button_clicked_list (line 218) | def init_is_button_clicked_list(self, num_of_rows, num_of_columns): method get_button_value (line 221) | def get_button_value(self, row, col): method find_number_of_columns (line 225) | def find_number_of_columns(self): method process_button_clicked (line 228) | def process_button_clicked(self, row, col): method set_button_value (line 232) | def set_button_value(self, row, col, bool_value): method on_button_clicked (line 236) | def on_button_clicked(self, row, col): method display_all_button_colors (line 241) | def display_all_button_colors(self): method display_button_color (line 247) | def display_button_color(self, row, col): method create_play_bar (line 254) | def create_play_bar(self): method create_right_button_matrix (line 282) | def create_right_button_matrix(self): method create_left_drum_loader (line 295) | def create_left_drum_loader(self): method create_top_bar (line 309) | def create_top_bar(self): method create_top_menu (line 334) | def create_top_menu(self): method init_gui (line 347) | def init_gui(self): FILE: Chapter 03/3.07.py class DrumMachine (line 48) | class DrumMachine: method __init__ (line 50) | def __init__(self, root): method on_open_file_button_clicked (line 62) | def on_open_file_button_clicked(self, drum_index): method display_all_drum_file_names (line 72) | def display_all_drum_file_names(self): method display_drum_name (line 76) | def display_drum_name(self, text_widget_num, file_path): method get_current_pattern_dict (line 89) | def get_current_pattern_dict(self): method get_bpu (line 92) | def get_bpu(self): method set_bpu (line 95) | def set_bpu(self): method get_number_of_units (line 98) | def get_number_of_units(self): method set_number_of_units (line 101) | def set_number_of_units(self): method get_list_of_drum_files (line 105) | def get_list_of_drum_files(self): method get_drum_file_path (line 108) | def get_drum_file_path(self, drum_index): method set_drum_file_path (line 111) | def set_drum_file_path(self, drum_index, file_path): method get_is_button_clicked_list (line 114) | def get_is_button_clicked_list(self): method set_is_button_clicked_list (line 117) | def set_is_button_clicked_list(self, num_of_rows, num_of_columns): method init_all_patterns (line 122) | def init_all_patterns(self): method on_pattern_changed (line 136) | def on_pattern_changed(self): method on_number_of_units_changed (line 139) | def on_number_of_units_changed(self): method on_bpu_changed (line 145) | def on_bpu_changed(self): method play_in_thread (line 151) | def play_in_thread(self): method on_play_button_clicked (line 156) | def on_play_button_clicked(self): method start_play (line 160) | def start_play(self): method on_stop_button_clicked (line 164) | def on_stop_button_clicked(self): method toggle_play_button_state (line 169) | def toggle_play_button_state(self): method exit_app (line 175) | def exit_app(self): method stop_play (line 180) | def stop_play(self): method init_pygame (line 183) | def init_pygame(self): method play_sound (line 187) | def play_sound(self, sound_filename): method get_column_from_matrix (line 191) | def get_column_from_matrix(self, matrix, i): method play_pattern (line 195) | def play_pattern(self): method time_to_play_each_column (line 214) | def time_to_play_each_column(self): method on_loop_button_toggled (line 220) | def on_loop_button_toggled(self): method on_beats_per_minute_changed (line 223) | def on_beats_per_minute_changed(self): method init_is_button_clicked_list (line 226) | def init_is_button_clicked_list(self, num_of_rows, num_of_columns): method get_button_value (line 229) | def get_button_value(self, row, col): method find_number_of_columns (line 233) | def find_number_of_columns(self): method process_button_clicked (line 236) | def process_button_clicked(self, row, col): method set_button_value (line 240) | def set_button_value(self, row, col, bool_value): method on_button_clicked (line 244) | def on_button_clicked(self, row, col): method display_all_button_colors (line 249) | def display_all_button_colors(self): method display_button_color (line 255) | def display_button_color(self, row, col): method create_play_bar (line 262) | def create_play_bar(self): method create_right_button_matrix (line 290) | def create_right_button_matrix(self): method create_left_drum_loader (line 303) | def create_left_drum_loader(self): method create_top_bar (line 317) | def create_top_bar(self): method create_top_menu (line 342) | def create_top_menu(self): method init_gui (line 355) | def init_gui(self): FILE: Chapter 03/3.08.py class DrumMachine (line 42) | class DrumMachine: method __init__ (line 44) | def __init__(self, root): method on_open_file_button_clicked (line 56) | def on_open_file_button_clicked(self, drum_index): method display_all_drum_file_names (line 66) | def display_all_drum_file_names(self): method display_drum_name (line 70) | def display_drum_name(self, text_widget_num, file_path): method get_current_pattern_dict (line 83) | def get_current_pattern_dict(self): method get_bpu (line 86) | def get_bpu(self): method set_bpu (line 89) | def set_bpu(self): method get_number_of_units (line 92) | def get_number_of_units(self): method set_number_of_units (line 95) | def set_number_of_units(self): method get_list_of_drum_files (line 99) | def get_list_of_drum_files(self): method get_drum_file_path (line 102) | def get_drum_file_path(self, drum_index): method set_drum_file_path (line 105) | def set_drum_file_path(self, drum_index, file_path): method get_is_button_clicked_list (line 108) | def get_is_button_clicked_list(self): method set_is_button_clicked_list (line 111) | def set_is_button_clicked_list(self, num_of_rows, num_of_columns): method init_all_patterns (line 116) | def init_all_patterns(self): method display_pattern_name (line 130) | def display_pattern_name(self): method on_pattern_changed (line 137) | def on_pattern_changed(self): method change_pattern (line 140) | def change_pattern(self): method on_number_of_units_changed (line 148) | def on_number_of_units_changed(self): method on_bpu_changed (line 154) | def on_bpu_changed(self): method play_in_thread (line 160) | def play_in_thread(self): method on_play_button_clicked (line 165) | def on_play_button_clicked(self): method start_play (line 169) | def start_play(self): method on_stop_button_clicked (line 173) | def on_stop_button_clicked(self): method toggle_play_button_state (line 178) | def toggle_play_button_state(self): method exit_app (line 184) | def exit_app(self): method stop_play (line 189) | def stop_play(self): method init_pygame (line 192) | def init_pygame(self): method play_sound (line 196) | def play_sound(self, sound_filename): method get_column_from_matrix (line 200) | def get_column_from_matrix(self, matrix, i): method play_pattern (line 204) | def play_pattern(self): method time_to_play_each_column (line 223) | def time_to_play_each_column(self): method on_loop_button_toggled (line 229) | def on_loop_button_toggled(self): method on_beats_per_minute_changed (line 232) | def on_beats_per_minute_changed(self): method init_is_button_clicked_list (line 235) | def init_is_button_clicked_list(self, num_of_rows, num_of_columns): method get_button_value (line 238) | def get_button_value(self, row, col): method find_number_of_columns (line 242) | def find_number_of_columns(self): method process_button_clicked (line 245) | def process_button_clicked(self, row, col): method set_button_value (line 249) | def set_button_value(self, row, col, bool_value): method on_button_clicked (line 253) | def on_button_clicked(self, row, col): method display_all_button_colors (line 258) | def display_all_button_colors(self): method display_button_color (line 264) | def display_button_color(self, row, col): method create_play_bar (line 271) | def create_play_bar(self): method create_right_button_matrix (line 299) | def create_right_button_matrix(self): method create_left_drum_loader (line 312) | def create_left_drum_loader(self): method create_top_bar (line 326) | def create_top_bar(self): method create_top_menu (line 352) | def create_top_menu(self): method init_gui (line 365) | def init_gui(self): FILE: Chapter 03/3.09.py class DrumMachine (line 46) | class DrumMachine: method __init__ (line 48) | def __init__(self, root): method on_open_file_button_clicked (line 60) | def on_open_file_button_clicked(self, drum_index): method display_all_drum_file_names (line 70) | def display_all_drum_file_names(self): method display_drum_name (line 74) | def display_drum_name(self, text_widget_num, file_path): method get_current_pattern_dict (line 87) | def get_current_pattern_dict(self): method get_bpu (line 90) | def get_bpu(self): method set_bpu (line 93) | def set_bpu(self): method get_number_of_units (line 96) | def get_number_of_units(self): method set_number_of_units (line 99) | def set_number_of_units(self): method get_list_of_drum_files (line 103) | def get_list_of_drum_files(self): method get_drum_file_path (line 106) | def get_drum_file_path(self, drum_index): method set_drum_file_path (line 109) | def set_drum_file_path(self, drum_index, file_path): method get_is_button_clicked_list (line 112) | def get_is_button_clicked_list(self): method set_is_button_clicked_list (line 115) | def set_is_button_clicked_list(self, num_of_rows, num_of_columns): method init_all_patterns (line 120) | def init_all_patterns(self): method display_pattern_name (line 134) | def display_pattern_name(self): method on_pattern_changed (line 141) | def on_pattern_changed(self): method change_pattern (line 144) | def change_pattern(self): method on_number_of_units_changed (line 152) | def on_number_of_units_changed(self): method on_bpu_changed (line 158) | def on_bpu_changed(self): method play_in_thread (line 164) | def play_in_thread(self): method on_play_button_clicked (line 169) | def on_play_button_clicked(self): method start_play (line 173) | def start_play(self): method on_stop_button_clicked (line 177) | def on_stop_button_clicked(self): method toggle_play_button_state (line 182) | def toggle_play_button_state(self): method exit_app (line 188) | def exit_app(self): method stop_play (line 193) | def stop_play(self): method init_pygame (line 196) | def init_pygame(self): method play_sound (line 200) | def play_sound(self, sound_filename): method get_column_from_matrix (line 204) | def get_column_from_matrix(self, matrix, i): method play_pattern (line 208) | def play_pattern(self): method time_to_play_each_column (line 227) | def time_to_play_each_column(self): method on_loop_button_toggled (line 233) | def on_loop_button_toggled(self): method on_beats_per_minute_changed (line 236) | def on_beats_per_minute_changed(self): method init_is_button_clicked_list (line 239) | def init_is_button_clicked_list(self, num_of_rows, num_of_columns): method get_button_value (line 242) | def get_button_value(self, row, col): method find_number_of_columns (line 246) | def find_number_of_columns(self): method process_button_clicked (line 249) | def process_button_clicked(self, row, col): method set_button_value (line 253) | def set_button_value(self, row, col, bool_value): method on_button_clicked (line 257) | def on_button_clicked(self, row, col): method display_all_button_colors (line 262) | def display_all_button_colors(self): method display_button_color (line 268) | def display_button_color(self, row, col): method create_play_bar (line 275) | def create_play_bar(self): method create_right_button_matrix (line 303) | def create_right_button_matrix(self): method create_left_drum_loader (line 316) | def create_left_drum_loader(self): method create_top_bar (line 330) | def create_top_bar(self): method load_project (line 355) | def load_project(self): method save_project (line 374) | def save_project(self): method show_about (line 383) | def show_about(self): method create_top_menu (line 386) | def create_top_menu(self): method init_gui (line 402) | def init_gui(self): FILE: Chapter 03/3.12.py class DrumMachine (line 41) | class DrumMachine: method __init__ (line 43) | def __init__(self, root): method get_current_pattern_dict (line 56) | def get_current_pattern_dict(self): method get_bpu (line 59) | def get_bpu(self): method set_bpu (line 62) | def set_bpu(self): method get_number_of_units (line 65) | def get_number_of_units(self): method set_number_of_units (line 68) | def set_number_of_units(self): method get_list_of_drum_files (line 72) | def get_list_of_drum_files(self): method get_drum_file_path (line 75) | def get_drum_file_path(self, drum_index): method set_drum_file_path (line 78) | def set_drum_file_path(self, drum_index, file_path): method get_is_button_clicked_list (line 81) | def get_is_button_clicked_list(self): method set_is_button_clicked_list (line 84) | def set_is_button_clicked_list(self, num_of_rows, num_of_columns): method set_beats_per_minute (line 89) | def set_beats_per_minute(self): method init_all_patterns (line 93) | def init_all_patterns(self): method init_is_button_clicked_list (line 107) | def init_is_button_clicked_list(self, num_of_rows, num_of_columns): method load_project (line 110) | def load_project(self): method save_project (line 129) | def save_project(self): method show_about (line 138) | def show_about(self): method exit_app (line 142) | def exit_app(self): method display_pattern_name (line 147) | def display_pattern_name(self): method on_pattern_changed (line 154) | def on_pattern_changed(self): method change_pattern (line 157) | def change_pattern(self): method on_number_of_units_changed (line 165) | def on_number_of_units_changed(self): method on_bpu_changed (line 171) | def on_bpu_changed(self): method on_open_file_button_clicked (line 177) | def on_open_file_button_clicked(self, drum_index): method display_all_drum_file_names (line 187) | def display_all_drum_file_names(self): method display_drum_name (line 191) | def display_drum_name(self, text_widget_num, file_path): method play_in_thread (line 198) | def play_in_thread(self): method on_play_button_clicked (line 202) | def on_play_button_clicked(self): method start_play (line 206) | def start_play(self): method on_stop_button_clicked (line 210) | def on_stop_button_clicked(self): method stop_play (line 214) | def stop_play(self): method init_pygame (line 218) | def init_pygame(self): method play_sound (line 222) | def play_sound(self, sound_filename): method get_column_from_matrix (line 226) | def get_column_from_matrix(self, matrix, i): method toggle_play_button_state (line 229) | def toggle_play_button_state(self): method play_pattern (line 235) | def play_pattern(self): method time_to_play_each_column (line 254) | def time_to_play_each_column(self): method on_loop_button_toggled (line 259) | def on_loop_button_toggled(self): method on_beats_per_minute_changed (line 262) | def on_beats_per_minute_changed(self): method get_button_value (line 265) | def get_button_value(self, row, col): method find_number_of_columns (line 269) | def find_number_of_columns(self): method process_button_clicked (line 272) | def process_button_clicked(self, row, col): method set_button_value (line 276) | def set_button_value(self, row, col, bool_value): method on_button_clicked (line 280) | def on_button_clicked(self, row, col): method display_all_button_colors (line 285) | def display_all_button_colors(self): method display_button_color (line 291) | def display_button_color(self, row, col): method create_play_bar (line 298) | def create_play_bar(self): method create_right_button_matrix (line 331) | def create_right_button_matrix(self): method create_left_drum_loader (line 344) | def create_left_drum_loader(self): method create_top_bar (line 357) | def create_top_bar(self): method create_top_menu (line 382) | def create_top_menu(self): method init_gui (line 397) | def init_gui(self): FILE: Chapter 04/4.01/controller.py class Controller (line 10) | class Controller(): method __init__ (line 12) | def __init__(self): method init_model (line 15) | def init_model(self): FILE: Chapter 04/4.01/exceptions.py class ChessError (line 5) | class ChessError(Exception): pass FILE: Chapter 04/4.01/model.py class Model (line 9) | class Model(): method __init__ (line 11) | def __init__(self): FILE: Chapter 04/4.01/view.py class View (line 12) | class View(): method __init__ (line 17) | def __init__(self, parent, controller): method create_chess_base (line 23) | def create_chess_base(self): method create_top_menu (line 29) | def create_top_menu(self): method create_bottom_frame (line 35) | def create_bottom_frame(self): method on_about_menu_clicked (line 42) | def on_about_menu_clicked(self): method on_new_game_menu_clicked (line 46) | def on_new_game_menu_clicked(self): method on_preference_menu_clicked (line 49) | def on_preference_menu_clicked(self): method create_file_menu (line 52) | def create_file_menu(self): method create_edit_menu (line 59) | def create_edit_menu(self): method create_about_menu (line 66) | def create_about_menu(self): method create_canvas (line 73) | def create_canvas(self): method draw_board (line 80) | def draw_board(self): method get_alternate_color (line 91) | def get_alternate_color(self, current_color): method on_square_clicked (line 98) | def on_square_clicked(self, event): method get_clicked_row_column (line 102) | def get_clicked_row_column(self, event): method get_x_y_coordinate (line 108) | def get_x_y_coordinate(self, row, col): function main (line 114) | def main(controller): function init_new_game (line 121) | def init_new_game(): FILE: Chapter 04/4.02/controller.py class Controller (line 10) | class Controller(): method __init__ (line 12) | def __init__(self): method init_model (line 15) | def init_model(self): FILE: Chapter 04/4.02/exceptions.py class ChessError (line 5) | class ChessError(Exception): pass FILE: Chapter 04/4.02/model.py class Model (line 10) | class Model(dict): method __init__ (line 18) | def __init__(self): method get_piece_at (line 21) | def get_piece_at(self, position): method get_alphanumeric_position (line 24) | def get_alphanumeric_position(self, rowcol): method is_on_board (line 29) | def is_on_board(self, rowcol): FILE: Chapter 04/4.02/piece.py function create_piece (line 9) | def create_piece (piece, color='white'): class Piece (line 19) | class Piece(): method __init__ (line 21) | def __init__(self, color): method keep_reference (line 29) | def keep_reference(self, model): class King (line 32) | class King(Piece): class Queen (line 35) | class Queen(Piece): class Rook (line 38) | class Rook(Piece): class Bishop (line 41) | class Bishop(Piece): class Knight (line 44) | class Knight(Piece): class Pawn (line 47) | class Pawn(Piece): FILE: Chapter 04/4.02/view.py class View (line 12) | class View(): method __init__ (line 17) | def __init__(self, parent, controller): method create_chess_base (line 23) | def create_chess_base(self): method create_top_menu (line 29) | def create_top_menu(self): method create_bottom_frame (line 35) | def create_bottom_frame(self): method on_about_menu_clicked (line 42) | def on_about_menu_clicked(self): method on_new_game_menu_clicked (line 46) | def on_new_game_menu_clicked(self): method on_preference_menu_clicked (line 49) | def on_preference_menu_clicked(self): method create_file_menu (line 52) | def create_file_menu(self): method create_edit_menu (line 59) | def create_edit_menu(self): method create_about_menu (line 66) | def create_about_menu(self): method create_canvas (line 73) | def create_canvas(self): method draw_board (line 80) | def draw_board(self): method on_square_clicked (line 91) | def on_square_clicked(self, event): method get_clicked_row_column (line 95) | def get_clicked_row_column(self, event): method get_x_y_coordinate (line 101) | def get_x_y_coordinate(self, row, col): method get_alternate_color (line 106) | def get_alternate_color(self, current_color): function main (line 114) | def main(controller): function init_new_game (line 121) | def init_new_game(): FILE: Chapter 04/4.03/controller.py class Controller (line 16) | class Controller(): method __init__ (line 18) | def __init__(self): method init_model (line 21) | def init_model(self): method get_all_peices_on_chess_board (line 24) | def get_all_peices_on_chess_board(self): method reset_game_data (line 27) | def reset_game_data(self): method reset_to_initial_locations (line 30) | def reset_to_initial_locations(self): method get_numeric_notation (line 33) | def get_numeric_notation(self, position): FILE: Chapter 04/4.03/exceptions.py class ChessError (line 5) | class ChessError(Exception): pass FILE: Chapter 04/4.03/model.py class Model (line 18) | class Model(dict): method __init__ (line 26) | def __init__(self): method reset_game_data (line 29) | def reset_game_data(self): method reset_to_initial_locations (line 36) | def reset_to_initial_locations(self): method get_piece_at (line 43) | def get_piece_at(self, position): method get_alphanumeric_position (line 46) | def get_alphanumeric_position(self, rowcol): method is_on_board (line 51) | def is_on_board(self, rowcol): FILE: Chapter 04/4.03/piece.py function create_piece (line 19) | def create_piece (piece, color='white'): function get_numeric_notation (line 29) | def get_numeric_notation(rowcol): class Piece (line 34) | class Piece(): method __init__ (line 36) | def __init__(self, color): method keep_reference (line 44) | def keep_reference(self, model): class King (line 47) | class King(Piece): class Queen (line 50) | class Queen(Piece): class Rook (line 53) | class Rook(Piece): class Bishop (line 56) | class Bishop(Piece): class Knight (line 59) | class Knight(Piece): class Pawn (line 62) | class Pawn(Piece): FILE: Chapter 04/4.03/view.py class View (line 22) | class View(): method __init__ (line 28) | def __init__(self, parent, controller): method create_chess_base (line 35) | def create_chess_base(self): method create_top_menu (line 41) | def create_top_menu(self): method create_bottom_frame (line 47) | def create_bottom_frame(self): method on_about_menu_clicked (line 54) | def on_about_menu_clicked(self): method on_new_game_menu_clicked (line 58) | def on_new_game_menu_clicked(self): method on_preference_menu_clicked (line 61) | def on_preference_menu_clicked(self): method create_file_menu (line 64) | def create_file_menu(self): method create_edit_menu (line 71) | def create_edit_menu(self): method create_about_menu (line 78) | def create_about_menu(self): method create_canvas (line 85) | def create_canvas(self): method draw_board (line 92) | def draw_board(self): method on_square_clicked (line 103) | def on_square_clicked(self, event): method get_clicked_row_column (line 107) | def get_clicked_row_column(self, event): method get_x_y_coordinate (line 113) | def get_x_y_coordinate(self, row, col): method calculate_piece_coordinate (line 118) | def calculate_piece_coordinate(self, row, col): method draw_single_piece (line 125) | def draw_single_piece(self, position, piece): method draw_all_pieces (line 136) | def draw_all_pieces(self): method start_new_game (line 141) | def start_new_game(self): method get_alternate_color (line 147) | def get_alternate_color(self, current_color): function main (line 155) | def main(controller): function init_new_game (line 162) | def init_new_game(): FILE: Chapter 04/4.04/controller.py class Controller (line 11) | class Controller(): method __init__ (line 13) | def __init__(self): method init_model (line 16) | def init_model(self): method get_all_peices_on_chess_board (line 19) | def get_all_peices_on_chess_board(self): method reset_game_data (line 22) | def reset_game_data(self): method reset_to_initial_locations (line 25) | def reset_to_initial_locations(self): method get_numeric_notation (line 28) | def get_numeric_notation(self, position): FILE: Chapter 04/4.04/exceptions.py class ChessError (line 5) | class ChessError(Exception): pass FILE: Chapter 04/4.04/model.py class Model (line 14) | class Model(dict): method __init__ (line 22) | def __init__(self): method all_positions_occupied_by_color (line 25) | def all_positions_occupied_by_color(self, color): method all_occupied_positions (line 33) | def all_occupied_positions(self): method reset_game_data (line 36) | def reset_game_data(self): method reset_to_initial_locations (line 43) | def reset_to_initial_locations(self): method get_piece_at (line 50) | def get_piece_at(self, position): method get_alphanumeric_position (line 53) | def get_alphanumeric_position(self, rowcol): method is_on_board (line 58) | def is_on_board(self, rowcol): FILE: Chapter 04/4.04/piece.py function create_piece (line 17) | def create_piece(piece, color='white'): function get_numeric_notation (line 28) | def get_numeric_notation(rowcol): class Piece (line 33) | class Piece(): method __init__ (line 35) | def __init__(self, color): method keep_reference (line 43) | def keep_reference(self, model): method moves_available (line 46) | def moves_available(self, current_position, directions, distance): method possible_position (line 67) | def possible_position(self, destination): class King (line 71) | class King(Piece): method moves_available (line 75) | def moves_available(self, current_position): class Queen (line 79) | class Queen(Piece): method moves_available (line 83) | def moves_available(self, current_position): class Rook (line 87) | class Rook(Piece): method moves_available (line 91) | def moves_available(self, current_position): class Bishop (line 95) | class Bishop(Piece): method moves_available (line 99) | def moves_available(self, current_position): class Knight (line 103) | class Knight(Piece): method moves_available (line 105) | def moves_available(self, current_position): class Pawn (line 118) | class Pawn(Piece): method moves_available (line 120) | def moves_available(self, current_position): FILE: Chapter 04/4.04/view.py class View (line 22) | class View(): method __init__ (line 28) | def __init__(self, parent, controller): method create_chess_base (line 35) | def create_chess_base(self): method create_top_menu (line 41) | def create_top_menu(self): method create_bottom_frame (line 47) | def create_bottom_frame(self): method on_about_menu_clicked (line 54) | def on_about_menu_clicked(self): method on_new_game_menu_clicked (line 58) | def on_new_game_menu_clicked(self): method on_preference_menu_clicked (line 61) | def on_preference_menu_clicked(self): method create_file_menu (line 64) | def create_file_menu(self): method create_edit_menu (line 71) | def create_edit_menu(self): method create_about_menu (line 78) | def create_about_menu(self): method create_canvas (line 85) | def create_canvas(self): method draw_board (line 92) | def draw_board(self): method on_square_clicked (line 103) | def on_square_clicked(self, event): method get_clicked_row_column (line 107) | def get_clicked_row_column(self, event): method get_x_y_coordinate (line 113) | def get_x_y_coordinate(self, row, col): method calculate_piece_coordinate (line 118) | def calculate_piece_coordinate(self, row, col): method draw_single_piece (line 125) | def draw_single_piece(self, position, piece): method draw_all_pieces (line 136) | def draw_all_pieces(self): method start_new_game (line 141) | def start_new_game(self): method get_alternate_color (line 147) | def get_alternate_color(self, current_color): function main (line 155) | def main(controller): function init_new_game (line 162) | def init_new_game(): FILE: Chapter 04/4.05/controller.py class Controller (line 11) | class Controller(): method __init__ (line 13) | def __init__(self): method init_model (line 16) | def init_model(self): method get_all_peices_on_chess_board (line 19) | def get_all_peices_on_chess_board(self): method reset_game_data (line 22) | def reset_game_data(self): method reset_to_initial_locations (line 25) | def reset_to_initial_locations(self): method get_numeric_notation (line 28) | def get_numeric_notation(self, position): FILE: Chapter 04/4.05/exceptions.py class ChessError (line 5) | class ChessError(Exception): pass FILE: Chapter 04/4.05/model.py class Model (line 14) | class Model(dict): method __init__ (line 22) | def __init__(self): method get_all_available_moves (line 25) | def get_all_available_moves(self, color): method all_positions_occupied_by_color (line 35) | def all_positions_occupied_by_color(self, color): method all_occupied_positions (line 43) | def all_occupied_positions(self): method reset_game_data (line 46) | def reset_game_data(self): method reset_to_initial_locations (line 53) | def reset_to_initial_locations(self): method get_piece_at (line 60) | def get_piece_at(self, position): method get_alphanumeric_position (line 63) | def get_alphanumeric_position(self, rowcol): method is_on_board (line 68) | def is_on_board(self, rowcol): method get_alphanumeric_position_of_king (line 72) | def get_alphanumeric_position_of_king(self, color): method is_king_under_check (line 78) | def is_king_under_check(self, color): FILE: Chapter 04/4.05/piece.py function create_piece (line 11) | def create_piece(piece, color='white'): function get_numeric_notation (line 22) | def get_numeric_notation(rowcol): class Piece (line 27) | class Piece(): method __init__ (line 29) | def __init__(self, color): method keep_reference (line 37) | def keep_reference(self, model): method moves_available (line 40) | def moves_available(self, current_position, directions, distance): method possible_position (line 61) | def possible_position(self, destination): class King (line 65) | class King(Piece): method moves_available (line 69) | def moves_available(self, current_position): class Queen (line 73) | class Queen(Piece): method moves_available (line 77) | def moves_available(self, current_position): class Rook (line 81) | class Rook(Piece): method moves_available (line 85) | def moves_available(self, current_position): class Bishop (line 89) | class Bishop(Piece): method moves_available (line 93) | def moves_available(self, current_position): class Knight (line 97) | class Knight(Piece): method moves_available (line 99) | def moves_available(self, current_position): class Pawn (line 112) | class Pawn(Piece): method moves_available (line 114) | def moves_available(self, current_position): FILE: Chapter 04/4.05/view.py class View (line 12) | class View(): method __init__ (line 18) | def __init__(self, parent, controller): method create_chess_base (line 25) | def create_chess_base(self): method create_top_menu (line 31) | def create_top_menu(self): method create_bottom_frame (line 37) | def create_bottom_frame(self): method on_about_menu_clicked (line 44) | def on_about_menu_clicked(self): method on_new_game_menu_clicked (line 48) | def on_new_game_menu_clicked(self): method on_preference_menu_clicked (line 51) | def on_preference_menu_clicked(self): method create_file_menu (line 54) | def create_file_menu(self): method create_edit_menu (line 61) | def create_edit_menu(self): method create_about_menu (line 68) | def create_about_menu(self): method create_canvas (line 75) | def create_canvas(self): method draw_board (line 82) | def draw_board(self): method on_square_clicked (line 93) | def on_square_clicked(self, event): method get_clicked_row_column (line 97) | def get_clicked_row_column(self, event): method get_x_y_coordinate (line 103) | def get_x_y_coordinate(self, row, col): method calculate_piece_coordinate (line 108) | def calculate_piece_coordinate(self, row, col): method draw_single_piece (line 115) | def draw_single_piece(self, position, piece): method draw_all_pieces (line 126) | def draw_all_pieces(self): method start_new_game (line 131) | def start_new_game(self): method get_alternate_color (line 137) | def get_alternate_color(self, current_color): function main (line 145) | def main(controller): function init_new_game (line 152) | def init_new_game(): FILE: Chapter 04/4.06/controller.py class Controller (line 16) | class Controller(): method __init__ (line 18) | def __init__(self): method init_model (line 21) | def init_model(self): method reset_game_data (line 24) | def reset_game_data(self): method reset_to_initial_locations (line 27) | def reset_to_initial_locations(self): method get_alphanumeric_position (line 30) | def get_alphanumeric_position(self, rowcolumntuple): method get_numeric_notation (line 33) | def get_numeric_notation(self, rowcol): method get_piece_at (line 36) | def get_piece_at(self, position_of_click): method pre_move_validation (line 39) | def pre_move_validation(self, start_pos, end_pos): method get_all_peices_on_chess_board (line 42) | def get_all_peices_on_chess_board(self): method player_turn (line 45) | def player_turn(self): method moves_available (line 48) | def moves_available(self, position): FILE: Chapter 04/4.06/exceptions.py class ChessError (line 13) | class ChessError(Exception): pass class Check (line 14) | class Check(ChessError): pass class InvalidMove (line 15) | class InvalidMove(ChessError): pass class CheckMate (line 16) | class CheckMate(ChessError): pass class Draw (line 17) | class Draw(ChessError): pass class NotYourTurn (line 18) | class NotYourTurn(ChessError): pass class InvalidCoord (line 19) | class InvalidCoord(ChessError): pass FILE: Chapter 04/4.06/model.py class Model (line 24) | class Model(dict): method __init__ (line 32) | def __init__(self): method update_game_statistics (line 35) | def update_game_statistics(self, piece, dest, start_pos, end_pos): method change_player_turn (line 50) | def change_player_turn(self, color): method pre_move_validation (line 54) | def pre_move_validation(self, initial_pos, final_pos): method move (line 80) | def move(self, start_pos, final_pos): method will_move_cause_check (line 83) | def will_move_cause_check(self, start_position, end_position): method get_all_available_moves (line 88) | def get_all_available_moves(self, color): method is_king_under_check (line 98) | def is_king_under_check(self, color): method get_alphanumeric_position_of_king (line 103) | def get_alphanumeric_position_of_king(self, color): method all_positions_occupied_by_color (line 109) | def all_positions_occupied_by_color(self, color): method all_occupied_positions (line 117) | def all_occupied_positions(self): method reset_game_data (line 120) | def reset_game_data(self): method reset_to_initial_locations (line 127) | def reset_to_initial_locations(self): method get_piece_at (line 134) | def get_piece_at(self, position): method get_alphanumeric_position (line 137) | def get_alphanumeric_position(self, rowcol): method is_on_board (line 142) | def is_on_board(self, rowcol): FILE: Chapter 04/4.06/piece.py function create_piece (line 11) | def create_piece(piece, color='white'): function get_numeric_notation (line 22) | def get_numeric_notation(rowcol): class Piece (line 27) | class Piece(): method __init__ (line 29) | def __init__(self, color): method keep_reference (line 37) | def keep_reference(self, model): method moves_available (line 40) | def moves_available(self, current_position, directions, distance): method possible_position (line 61) | def possible_position(self, destination): class King (line 65) | class King(Piece): method moves_available (line 69) | def moves_available(self, current_position): class Queen (line 73) | class Queen(Piece): method moves_available (line 77) | def moves_available(self, current_position): class Rook (line 81) | class Rook(Piece): method moves_available (line 85) | def moves_available(self, current_position): class Bishop (line 89) | class Bishop(Piece): method moves_available (line 93) | def moves_available(self, current_position): class Knight (line 97) | class Knight(Piece): method moves_available (line 99) | def moves_available(self, current_position): class Pawn (line 112) | class Pawn(Piece): method moves_available (line 114) | def moves_available(self, current_position): FILE: Chapter 04/4.06/view.py class View (line 26) | class View(): method __init__ (line 35) | def __init__(self, parent, controller): method create_bottom_frame (line 42) | def create_bottom_frame(self): method create_top_menu (line 49) | def create_top_menu(self): method create_file_menu (line 55) | def create_file_menu(self): method create_edit_menu (line 62) | def create_edit_menu(self): method create_about_menu (line 69) | def create_about_menu(self): method on_preference_menu_clicked (line 76) | def on_preference_menu_clicked(self): method show_prefereces_window (line 79) | def show_prefereces_window(self): method create_canvas (line 82) | def create_canvas(self): method create_chess_base (line 89) | def create_chess_base(self): method start_new_game (line 95) | def start_new_game(self): method reset_board_state (line 101) | def reset_board_state(self): method on_new_game_menu_clicked (line 106) | def on_new_game_menu_clicked(self): method get_clicked_row_column (line 109) | def get_clicked_row_column(self, event): method on_square_clicked (line 115) | def on_square_clicked(self, event): method shift (line 127) | def shift(self, start_pos, end_pos): method update_label (line 138) | def update_label(self, piece, start_pos, end_pos): method update_highlight_list (line 143) | def update_highlight_list(self, position): method get_x_y_coordinate (line 155) | def get_x_y_coordinate(self, row, col): method draw_board (line 160) | def draw_board(self): method calculate_piece_coordinate (line 175) | def calculate_piece_coordinate(self, row, col): method draw_single_piece (line 182) | def draw_single_piece(self, position, piece): method draw_all_pieces (line 193) | def draw_all_pieces(self): method on_about_menu_clicked (line 198) | def on_about_menu_clicked(self): method get_alternate_color (line 202) | def get_alternate_color(self, current_color): function main (line 210) | def main(model): function init_new_game (line 217) | def init_new_game(): FILE: Chapter 04/4.07/controller.py class Controller (line 10) | class Controller(): method __init__ (line 12) | def __init__(self): method init_model (line 15) | def init_model(self): method reset_game_data (line 18) | def reset_game_data(self): method reset_to_initial_locations (line 21) | def reset_to_initial_locations(self): method get_alphanumeric_position (line 24) | def get_alphanumeric_position(self, rowcolumntuple): method get_numeric_notation (line 27) | def get_numeric_notation(self, rowcol): method get_piece_at (line 30) | def get_piece_at(self, position_of_click): method pre_move_validation (line 33) | def pre_move_validation(self, start_pos, end_pos): method get_all_peices_on_chess_board (line 36) | def get_all_peices_on_chess_board(self): method player_turn (line 39) | def player_turn(self): method moves_available (line 42) | def moves_available(self, position): FILE: Chapter 04/4.07/exceptions.py class ChessError (line 6) | class ChessError(Exception): pass class Check (line 7) | class Check(ChessError): pass class InvalidMove (line 8) | class InvalidMove(ChessError): pass class CheckMate (line 9) | class CheckMate(ChessError): pass class Draw (line 10) | class Draw(ChessError): pass class NotYourTurn (line 11) | class NotYourTurn(ChessError): pass class InvalidCoord (line 12) | class InvalidCoord(ChessError): pass FILE: Chapter 04/4.07/model.py class Model (line 12) | class Model(dict): method __init__ (line 20) | def __init__(self): method update_game_statistics (line 23) | def update_game_statistics(self, piece, dest, p1, p2): method change_player_turn (line 38) | def change_player_turn(self, color): method pre_move_validation (line 42) | def pre_move_validation(self, initial_pos, final_pos): method move (line 68) | def move(self, start_pos, final_pos): method will_move_cause_check (line 71) | def will_move_cause_check(self, start_position, end_position): method get_all_available_moves (line 76) | def get_all_available_moves(self, color): method is_king_under_check (line 86) | def is_king_under_check(self, color): method get_alphanumeric_position_of_king (line 91) | def get_alphanumeric_position_of_king(self, color): method all_positions_occupied_by_color (line 97) | def all_positions_occupied_by_color(self, color): method all_occupied_positions (line 105) | def all_occupied_positions(self): method reset_game_data (line 108) | def reset_game_data(self): method reset_to_initial_locations (line 115) | def reset_to_initial_locations(self): method get_piece_at (line 122) | def get_piece_at(self, position): method get_alphanumeric_position (line 125) | def get_alphanumeric_position(self, rowcol): method is_on_board (line 130) | def is_on_board(self, rowcol): FILE: Chapter 04/4.07/piece.py function create_piece (line 12) | def create_piece(piece, color='white'): function get_numeric_notation (line 23) | def get_numeric_notation(rowcol): class Piece (line 28) | class Piece(): method __init__ (line 30) | def __init__(self, color): method keep_reference (line 38) | def keep_reference(self, model): method moves_available (line 41) | def moves_available(self, current_position, directions, distance): method possible_position (line 62) | def possible_position(self, destination): class King (line 66) | class King(Piece): method moves_available (line 71) | def moves_available(self, current_position): class Queen (line 75) | class Queen(Piece): method moves_available (line 80) | def moves_available(self, current_position): class Rook (line 84) | class Rook(Piece): method moves_available (line 89) | def moves_available(self, current_position): class Bishop (line 93) | class Bishop(Piece): method moves_available (line 98) | def moves_available(self, current_position): class Knight (line 102) | class Knight(Piece): method moves_available (line 104) | def moves_available(self, current_position): class Pawn (line 117) | class Pawn(Piece): method moves_available (line 119) | def moves_available(self, current_position): FILE: Chapter 04/4.07/preferenceswindow.py class PreferencesWindow (line 19) | class PreferencesWindow(): method __init__ (line 21) | def __init__(self, view): method fill_preference_colors (line 27) | def fill_preference_colors(self): method set_color_1 (line 32) | def set_color_1(self): method set_color_2 (line 35) | def set_color_2(self): method set_highlight_color (line 38) | def set_highlight_color(self): method create_prefereces_window (line 41) | def create_prefereces_window(self): method create_prefereces_list (line 47) | def create_prefereces_list(self): method on_save_button_clicked (line 71) | def on_save_button_clicked(self): method set_new_values (line 77) | def set_new_values(self): method on_cancel_button_clicked (line 89) | def on_cancel_button_clicked(self): FILE: Chapter 04/4.07/view.py class View (line 32) | class View(): method __init__ (line 41) | def __init__(self, parent, controller): method reload_colors (line 48) | def reload_colors(self, color_1, color_2, highlight_color): method on_preference_menu_clicked (line 55) | def on_preference_menu_clicked(self): method show_preferences_window (line 58) | def show_preferences_window(self): method create_bottom_frame (line 61) | def create_bottom_frame(self): method create_top_menu (line 68) | def create_top_menu(self): method create_file_menu (line 74) | def create_file_menu(self): method create_edit_menu (line 81) | def create_edit_menu(self): method create_about_menu (line 88) | def create_about_menu(self): method create_canvas (line 95) | def create_canvas(self): method create_chess_base (line 102) | def create_chess_base(self): method start_new_game (line 108) | def start_new_game(self): method reset_board_state (line 114) | def reset_board_state(self): method on_new_game_menu_clicked (line 119) | def on_new_game_menu_clicked(self): method get_clicked_row_column (line 122) | def get_clicked_row_column(self, event): method on_square_clicked (line 128) | def on_square_clicked(self, event): method shift (line 140) | def shift(self, start_pos, end_pos): method update_label (line 151) | def update_label(self, piece, start_pos, end_pos): method update_highlight_list (line 156) | def update_highlight_list(self, position): method get_x_y_coordinate (line 168) | def get_x_y_coordinate(self, row, col): method draw_board (line 173) | def draw_board(self): method get_alternate_color (line 188) | def get_alternate_color(self, current_color): method calculate_piece_coordinate (line 195) | def calculate_piece_coordinate(self, row, col): method draw_single_piece (line 202) | def draw_single_piece(self, position, piece): method draw_all_pieces (line 213) | def draw_all_pieces(self): method on_about_menu_clicked (line 218) | def on_about_menu_clicked(self): function main (line 223) | def main(model): function init_new_game (line 230) | def init_new_game(): FILE: Chapter 05/5.01/model.py class Model (line 7) | class Model: method __init__ (line 9) | def __init__(self): FILE: Chapter 05/5.01/player.py class Player (line 9) | class Player: method __init__ (line 11) | def __init__(self): FILE: Chapter 05/5.01/view.py class View (line 18) | class View: method __init__ (line 22) | def __init__(self, root, model, player): method create_gui (line 28) | def create_gui(self): method create_top_display (line 36) | def create_top_display(self): method create_button_frame (line 52) | def create_button_frame(self): method create_list_box (line 105) | def create_list_box(self): method create_bottom_frame (line 119) | def create_bottom_frame(self): method create_context_menu (line 156) | def create_context_menu(self): method show_context_menu (line 161) | def show_context_menu(self, event): method on_previous_track_button_clicked (line 164) | def on_previous_track_button_clicked(self): method on_rewind_button_clicked (line 167) | def on_rewind_button_clicked(self): method on_play_stop_button_clicked (line 170) | def on_play_stop_button_clicked(self): method on_pause_unpause_button_clicked (line 173) | def on_pause_unpause_button_clicked(self): method on_mute_unmute_button_clicked (line 176) | def on_mute_unmute_button_clicked(self): method on_fast_forward_button_clicked (line 179) | def on_fast_forward_button_clicked(self): method on_next_track_button_clicked (line 182) | def on_next_track_button_clicked(self): method on_volume_scale_changed (line 185) | def on_volume_scale_changed(self, value): method on_add_file_button_clicked (line 188) | def on_add_file_button_clicked(self): method on_remove_selected_button_clicked (line 191) | def on_remove_selected_button_clicked(self): method on_add_directory_button_clicked (line 194) | def on_add_directory_button_clicked(self): method on_clear_play_list_button_clicked (line 197) | def on_clear_play_list_button_clicked(self): method on_remove_selected_context_menu_clicked (line 200) | def on_remove_selected_context_menu_clicked(self): method on_play_list_double_clicked (line 203) | def on_play_list_double_clicked(self, event=None): FILE: Chapter 05/5.02/model.py class Model (line 8) | class Model: method __init__ (line 10) | def __init__(self): method play_list (line 14) | def play_list(self): method get_file_to_play (line 17) | def get_file_to_play(self, file_index): method clear_play_list (line 20) | def clear_play_list(self): method add_to_play_list (line 23) | def add_to_play_list(self, file_name): method remove_item_from_play_list_at_index (line 26) | def remove_item_from_play_list_at_index(self, index): FILE: Chapter 05/5.02/player.py class Player (line 12) | class Player: method __init__ (line 14) | def __init__(self): method play_media (line 18) | def play_media(self, audio_file): method reset_player (line 25) | def reset_player(self): method is_playing (line 29) | def is_playing(self): method seek (line 37) | def seek(self, time): method track_length (line 44) | def track_length(self): method volume (line 51) | def volume(self): method elapsed_play_duration (line 55) | def elapsed_play_duration(self): method volume (line 59) | def volume(self, volume): method unpause (line 62) | def unpause(self): method pause (line 65) | def pause(self): method stop (line 68) | def stop(self): method mute (line 71) | def mute(self): method unmute (line 74) | def unmute(self, newvolume_level): method fast_forward (line 77) | def fast_forward(self): method rewind (line 87) | def rewind(self): FILE: Chapter 05/5.02/view.py class View (line 18) | class View: method __init__ (line 22) | def __init__(self, root, model, player): method create_gui (line 28) | def create_gui(self): method create_top_display (line 36) | def create_top_display(self): method create_button_frame (line 52) | def create_button_frame(self): method create_list_box (line 105) | def create_list_box(self): method create_bottom_frame (line 119) | def create_bottom_frame(self): method create_context_menu (line 156) | def create_context_menu(self): method show_context_menu (line 161) | def show_context_menu(self, event): method on_previous_track_button_clicked (line 164) | def on_previous_track_button_clicked(self): method on_rewind_button_clicked (line 167) | def on_rewind_button_clicked(self): method on_play_stop_button_clicked (line 170) | def on_play_stop_button_clicked(self): method on_pause_unpause_button_clicked (line 173) | def on_pause_unpause_button_clicked(self): method on_mute_unmute_button_clicked (line 176) | def on_mute_unmute_button_clicked(self): method on_fast_forward_button_clicked (line 179) | def on_fast_forward_button_clicked(self): method on_next_track_button_clicked (line 182) | def on_next_track_button_clicked(self): method on_volume_scale_changed (line 185) | def on_volume_scale_changed(self, value): method on_add_file_button_clicked (line 188) | def on_add_file_button_clicked(self): method on_remove_selected_button_clicked (line 191) | def on_remove_selected_button_clicked(self): method on_add_directory_button_clicked (line 194) | def on_add_directory_button_clicked(self): method on_clear_play_list_button_clicked (line 197) | def on_clear_play_list_button_clicked(self): method on_remove_selected_context_menu_clicked (line 200) | def on_remove_selected_context_menu_clicked(self): method on_play_list_double_clicked (line 203) | def on_play_list_double_clicked(self, event=None): FILE: Chapter 05/5.03/model.py class Model (line 8) | class Model: method __init__ (line 10) | def __init__(self): method play_list (line 14) | def play_list(self): method get_file_to_play (line 17) | def get_file_to_play(self, file_index): method clear_play_list (line 20) | def clear_play_list(self): method add_to_play_list (line 23) | def add_to_play_list(self, file_name): method remove_item_from_play_list_at_index (line 26) | def remove_item_from_play_list_at_index(self, index): FILE: Chapter 05/5.03/player.py class Player (line 12) | class Player: method __init__ (line 14) | def __init__(self): method play_media (line 18) | def play_media(self, audio_file): method reset_player (line 25) | def reset_player(self): method is_playing (line 29) | def is_playing(self): method seek (line 37) | def seek(self, time): method track_length (line 44) | def track_length(self): method volume (line 51) | def volume(self): method elapsed_play_duration (line 55) | def elapsed_play_duration(self): method volume (line 59) | def volume(self, volume): method unpause (line 62) | def unpause(self): method pause (line 65) | def pause(self): method stop (line 68) | def stop(self): method mute (line 71) | def mute(self): method unmute (line 74) | def unmute(self, newvolume_level): method fast_forward (line 77) | def fast_forward(self): method rewind (line 87) | def rewind(self): FILE: Chapter 05/5.03/view.py class View (line 34) | class View: method __init__ (line 38) | def __init__(self, root, model, player): method create_gui (line 44) | def create_gui(self): method create_top_display (line 52) | def create_top_display(self): method create_button_frame (line 68) | def create_button_frame(self): method create_list_box (line 121) | def create_list_box(self): method create_bottom_frame (line 135) | def create_bottom_frame(self): method create_context_menu (line 172) | def create_context_menu(self): method show_context_menu (line 177) | def show_context_menu(self, event): method on_add_file_button_clicked (line 180) | def on_add_file_button_clicked(self): method on_remove_selected_button_clicked (line 183) | def on_remove_selected_button_clicked(self): method on_add_directory_button_clicked (line 186) | def on_add_directory_button_clicked(self): method on_clear_play_list_button_clicked (line 189) | def on_clear_play_list_button_clicked(self): method on_remove_selected_context_menu_clicked (line 192) | def on_remove_selected_context_menu_clicked(self): method on_previous_track_button_clicked (line 195) | def on_previous_track_button_clicked(self): method on_rewind_button_clicked (line 198) | def on_rewind_button_clicked(self): method on_play_stop_button_clicked (line 201) | def on_play_stop_button_clicked(self): method on_pause_unpause_button_clicked (line 204) | def on_pause_unpause_button_clicked(self): method on_mute_unmute_button_clicked (line 207) | def on_mute_unmute_button_clicked(self): method on_fast_forward_button_clicked (line 210) | def on_fast_forward_button_clicked(self): method on_next_track_button_clicked (line 213) | def on_next_track_button_clicked(self): method on_volume_scale_changed (line 216) | def on_volume_scale_changed(self, value): method on_play_list_double_clicked (line 219) | def on_play_list_double_clicked(self, event=None): method add_audio_file (line 222) | def add_audio_file(self): method remove_selected_files (line 230) | def remove_selected_files(self): method add_all_audio_files_from_directory (line 239) | def add_all_audio_files_from_directory(self): method get_all_audio_file_from_directory (line 250) | def get_all_audio_file_from_directory(self, directory_path): method clear_play_list (line 258) | def clear_play_list(self): FILE: Chapter 05/5.04/model.py class Model (line 8) | class Model: method __init__ (line 10) | def __init__(self): method play_list (line 14) | def play_list(self): method get_file_to_play (line 17) | def get_file_to_play(self, file_index): method clear_play_list (line 20) | def clear_play_list(self): method add_to_play_list (line 23) | def add_to_play_list(self, file_name): method remove_item_from_play_list_at_index (line 26) | def remove_item_from_play_list_at_index(self, index): FILE: Chapter 05/5.04/player.py class Player (line 12) | class Player: method __init__ (line 14) | def __init__(self): method play_media (line 18) | def play_media(self, audio_file): method reset_player (line 25) | def reset_player(self): method is_playing (line 29) | def is_playing(self): method seek (line 37) | def seek(self, time): method track_length (line 44) | def track_length(self): method volume (line 51) | def volume(self): method elapsed_play_duration (line 55) | def elapsed_play_duration(self): method volume (line 59) | def volume(self, volume): method unpause (line 62) | def unpause(self): method pause (line 65) | def pause(self): method stop (line 68) | def stop(self): method mute (line 71) | def mute(self): method unmute (line 74) | def unmute(self, newvolume_level): method fast_forward (line 77) | def fast_forward(self): method rewind (line 87) | def rewind(self): FILE: Chapter 05/5.04/view.py class View (line 44) | class View: method __init__ (line 52) | def __init__(self, root, model, player): method create_gui (line 58) | def create_gui(self): method create_top_display (line 66) | def create_top_display(self): method create_button_frame (line 82) | def create_button_frame(self): method create_list_box (line 135) | def create_list_box(self): method create_bottom_frame (line 149) | def create_bottom_frame(self): method create_context_menu (line 186) | def create_context_menu(self): method show_context_menu (line 191) | def show_context_menu(self, event): method on_add_file_button_clicked (line 194) | def on_add_file_button_clicked(self): method on_remove_selected_button_clicked (line 197) | def on_remove_selected_button_clicked(self): method on_add_directory_button_clicked (line 200) | def on_add_directory_button_clicked(self): method on_clear_play_list_button_clicked (line 203) | def on_clear_play_list_button_clicked(self): method on_remove_selected_context_menu_clicked (line 206) | def on_remove_selected_context_menu_clicked(self): method on_play_stop_button_clicked (line 209) | def on_play_stop_button_clicked(self): method on_pause_unpause_button_clicked (line 220) | def on_pause_unpause_button_clicked(self): method on_mute_unmute_button_clicked (line 227) | def on_mute_unmute_button_clicked(self): method on_previous_track_button_clicked (line 239) | def on_previous_track_button_clicked(self): method on_rewind_button_clicked (line 242) | def on_rewind_button_clicked(self): method on_fast_forward_button_clicked (line 245) | def on_fast_forward_button_clicked(self): method on_next_track_button_clicked (line 248) | def on_next_track_button_clicked(self): method on_volume_scale_changed (line 251) | def on_volume_scale_changed(self, value): method on_play_list_double_clicked (line 258) | def on_play_list_double_clicked(self, event=None): method play_previous_track (line 262) | def play_previous_track(self): method play_next_track (line 266) | def play_next_track(self): method start_play (line 271) | def start_play(self): method stop_play (line 279) | def stop_play(self): method add_audio_file (line 283) | def add_audio_file(self): method remove_selected_files (line 291) | def remove_selected_files(self): method add_all_audio_files_from_directory (line 300) | def add_all_audio_files_from_directory(self): method get_all_audio_file_from_directory (line 311) | def get_all_audio_file_from_directory(self, directory_path): method clear_play_list (line 319) | def clear_play_list(self): FILE: Chapter 05/5.05/model.py class Model (line 8) | class Model: method __init__ (line 10) | def __init__(self): method play_list (line 14) | def play_list(self): method get_file_to_play (line 17) | def get_file_to_play(self, file_index): method clear_play_list (line 20) | def clear_play_list(self): method add_to_play_list (line 23) | def add_to_play_list(self, file_name): method remove_item_from_play_list_at_index (line 26) | def remove_item_from_play_list_at_index(self, index): FILE: Chapter 05/5.05/player.py class Player (line 12) | class Player: method __init__ (line 14) | def __init__(self): method play_media (line 18) | def play_media(self, audio_file): method reset_player (line 25) | def reset_player(self): method is_playing (line 29) | def is_playing(self): method seek (line 37) | def seek(self, time): method track_length (line 44) | def track_length(self): method volume (line 51) | def volume(self): method elapsed_play_duration (line 55) | def elapsed_play_duration(self): method volume (line 59) | def volume(self, volume): method unpause (line 62) | def unpause(self): method pause (line 65) | def pause(self): method stop (line 68) | def stop(self): method mute (line 71) | def mute(self): method unmute (line 74) | def unmute(self, newvolume_level): method fast_forward (line 77) | def fast_forward(self): method rewind (line 87) | def rewind(self): FILE: Chapter 05/5.05/seekbar.py class Seekbar (line 10) | class Seekbar(tk.Canvas): method __init__ (line 12) | def __init__(self, parent, **options): method bind_mouse_button (line 22) | def bind_mouse_button(self): method on_seekbar_clicked (line 30) | def on_seekbar_clicked(self, event=None): method slide_to_position (line 34) | def slide_to_position(self, new_position): class TestSeekBar (line 40) | class TestSeekBar(): method __init__ (line 42) | def __init__(self): method seek_new_position (line 52) | def seek_new_position(self, event): FILE: Chapter 05/5.05/view.py class View (line 29) | class View: method __init__ (line 37) | def __init__(self, root, model, player): method create_gui (line 43) | def create_gui(self): method create_top_display (line 51) | def create_top_display(self): method create_button_frame (line 70) | def create_button_frame(self): method create_list_box (line 123) | def create_list_box(self): method create_bottom_frame (line 137) | def create_bottom_frame(self): method create_context_menu (line 174) | def create_context_menu(self): method show_context_menu (line 179) | def show_context_menu(self, event): method on_add_file_button_clicked (line 182) | def on_add_file_button_clicked(self): method on_remove_selected_button_clicked (line 185) | def on_remove_selected_button_clicked(self): method on_add_directory_button_clicked (line 188) | def on_add_directory_button_clicked(self): method on_clear_play_list_button_clicked (line 191) | def on_clear_play_list_button_clicked(self): method on_remove_selected_context_menu_clicked (line 194) | def on_remove_selected_context_menu_clicked(self): method on_play_stop_button_clicked (line 197) | def on_play_stop_button_clicked(self): method on_pause_unpause_button_clicked (line 208) | def on_pause_unpause_button_clicked(self): method on_mute_unmute_button_clicked (line 215) | def on_mute_unmute_button_clicked(self): method on_previous_track_button_clicked (line 227) | def on_previous_track_button_clicked(self): method on_rewind_button_clicked (line 230) | def on_rewind_button_clicked(self): method on_fast_forward_button_clicked (line 233) | def on_fast_forward_button_clicked(self): method on_next_track_button_clicked (line 236) | def on_next_track_button_clicked(self): method on_volume_scale_changed (line 239) | def on_volume_scale_changed(self, value): method on_play_list_double_clicked (line 246) | def on_play_list_double_clicked(self, event=None): method play_previous_track (line 250) | def play_previous_track(self): method play_next_track (line 254) | def play_next_track(self): method start_play (line 259) | def start_play(self): method stop_play (line 267) | def stop_play(self): method add_audio_file (line 271) | def add_audio_file(self): method remove_selected_files (line 279) | def remove_selected_files(self): method add_all_audio_files_from_directory (line 288) | def add_all_audio_files_from_directory(self): method get_all_audio_file_from_directory (line 299) | def get_all_audio_file_from_directory(self, directory_path): method clear_play_list (line 307) | def clear_play_list(self): FILE: Chapter 05/5.06/helpers.py function get_time_in_minute_seconds (line 8) | def get_time_in_minute_seconds(time_in_seconds): function truncate_text (line 14) | def truncate_text(text, truncate_length): FILE: Chapter 05/5.06/model.py class Model (line 8) | class Model: method __init__ (line 10) | def __init__(self): method play_list (line 14) | def play_list(self): method get_file_to_play (line 17) | def get_file_to_play(self, file_index): method clear_play_list (line 20) | def clear_play_list(self): method add_to_play_list (line 23) | def add_to_play_list(self, file_name): method remove_item_from_play_list_at_index (line 26) | def remove_item_from_play_list_at_index(self, index): FILE: Chapter 05/5.06/player.py class Player (line 12) | class Player: method __init__ (line 14) | def __init__(self): method play_media (line 18) | def play_media(self, audio_file): method reset_player (line 25) | def reset_player(self): method is_playing (line 29) | def is_playing(self): method seek (line 37) | def seek(self, time): method track_length (line 44) | def track_length(self): method volume (line 51) | def volume(self): method elapsed_play_duration (line 55) | def elapsed_play_duration(self): method volume (line 59) | def volume(self, volume): method unpause (line 62) | def unpause(self): method pause (line 65) | def pause(self): method stop (line 68) | def stop(self): method mute (line 71) | def mute(self): method unmute (line 74) | def unmute(self, newvolume_level): method fast_forward (line 77) | def fast_forward(self): method rewind (line 87) | def rewind(self): FILE: Chapter 05/5.06/seekbar.py class Seekbar (line 9) | class Seekbar(tk.Canvas): method __init__ (line 11) | def __init__(self, parent, **options): method bind_mouse_button (line 21) | def bind_mouse_button(self): method on_seekbar_clicked (line 29) | def on_seekbar_clicked(self, event=None): method slide_to_position (line 33) | def slide_to_position(self, new_position): class TestSeekBar (line 39) | class TestSeekBar(): method __init__ (line 41) | def __init__(self): method seek_new_position (line 51) | def seek_new_position(self, event): FILE: Chapter 05/5.06/view.py class View (line 30) | class View: method __init__ (line 38) | def __init__(self, root, model, player): method create_gui (line 45) | def create_gui(self): method create_top_display (line 53) | def create_top_display(self): method create_button_frame (line 72) | def create_button_frame(self): method create_list_box (line 125) | def create_list_box(self): method create_bottom_frame (line 139) | def create_bottom_frame(self): method create_context_menu (line 176) | def create_context_menu(self): method show_context_menu (line 181) | def show_context_menu(self, event): method on_add_file_button_clicked (line 184) | def on_add_file_button_clicked(self): method on_remove_selected_button_clicked (line 187) | def on_remove_selected_button_clicked(self): method on_add_directory_button_clicked (line 190) | def on_add_directory_button_clicked(self): method on_clear_play_list_button_clicked (line 193) | def on_clear_play_list_button_clicked(self): method on_remove_selected_context_menu_clicked (line 196) | def on_remove_selected_context_menu_clicked(self): method on_play_stop_button_clicked (line 199) | def on_play_stop_button_clicked(self): method on_pause_unpause_button_clicked (line 210) | def on_pause_unpause_button_clicked(self): method on_mute_unmute_button_clicked (line 217) | def on_mute_unmute_button_clicked(self): method on_previous_track_button_clicked (line 229) | def on_previous_track_button_clicked(self): method on_rewind_button_clicked (line 232) | def on_rewind_button_clicked(self): method on_fast_forward_button_clicked (line 235) | def on_fast_forward_button_clicked(self): method on_next_track_button_clicked (line 238) | def on_next_track_button_clicked(self): method on_volume_scale_changed (line 241) | def on_volume_scale_changed(self, value): method on_play_list_double_clicked (line 248) | def on_play_list_double_clicked(self, event=None): method play_previous_track (line 252) | def play_previous_track(self): method play_next_track (line 256) | def play_next_track(self): method start_play (line 261) | def start_play(self): method stop_play (line 271) | def stop_play(self): method add_audio_file (line 275) | def add_audio_file(self): method remove_selected_files (line 283) | def remove_selected_files(self): method add_all_audio_files_from_directory (line 292) | def add_all_audio_files_from_directory(self): method get_all_audio_file_from_directory (line 303) | def get_all_audio_file_from_directory(self, directory_path): method clear_play_list (line 311) | def clear_play_list(self): method manage_one_time_track_updates_on_play_start (line 315) | def manage_one_time_track_updates_on_play_start(self): method update_now_playing_text (line 319) | def update_now_playing_text(self): method display_track_duration (line 325) | def display_track_duration(self): FILE: Chapter 05/5.07/helpers.py function get_time_in_minute_seconds (line 8) | def get_time_in_minute_seconds(time_in_seconds): function truncate_text (line 14) | def truncate_text(text, truncate_length): FILE: Chapter 05/5.07/model.py class Model (line 8) | class Model: method __init__ (line 10) | def __init__(self): method play_list (line 14) | def play_list(self): method get_file_to_play (line 17) | def get_file_to_play(self, file_index): method clear_play_list (line 20) | def clear_play_list(self): method add_to_play_list (line 23) | def add_to_play_list(self, file_name): method remove_item_from_play_list_at_index (line 26) | def remove_item_from_play_list_at_index(self, index): FILE: Chapter 05/5.07/player.py class Player (line 12) | class Player: method __init__ (line 14) | def __init__(self): method play_media (line 18) | def play_media(self, audio_file): method reset_player (line 25) | def reset_player(self): method is_playing (line 29) | def is_playing(self): method seek (line 37) | def seek(self, time): method track_length (line 44) | def track_length(self): method volume (line 51) | def volume(self): method elapsed_play_duration (line 55) | def elapsed_play_duration(self): method volume (line 59) | def volume(self, volume): method unpause (line 62) | def unpause(self): method pause (line 65) | def pause(self): method stop (line 68) | def stop(self): method mute (line 71) | def mute(self): method unmute (line 74) | def unmute(self, newvolume_level): method fast_forward (line 77) | def fast_forward(self): method rewind (line 87) | def rewind(self): FILE: Chapter 05/5.07/seekbar.py class Seekbar (line 12) | class Seekbar(tk.Canvas): method __init__ (line 14) | def __init__(self, parent, **options): method bind_mouse_button (line 24) | def bind_mouse_button(self): method on_seekbar_clicked (line 32) | def on_seekbar_clicked(self, event=None): method slide_to_position (line 35) | def slide_to_position(self, new_position): class TestSeekBar (line 42) | class TestSeekBar(): method __init__ (line 44) | def __init__(self): method seek_new_position (line 54) | def seek_new_position(self, event): FILE: Chapter 05/5.07/view.py class View (line 31) | class View: method __init__ (line 39) | def __init__(self, root, model, player): method create_gui (line 46) | def create_gui(self): method create_top_display (line 54) | def create_top_display(self): method create_button_frame (line 73) | def create_button_frame(self): method create_list_box (line 126) | def create_list_box(self): method create_bottom_frame (line 140) | def create_bottom_frame(self): method create_context_menu (line 177) | def create_context_menu(self): method show_context_menu (line 182) | def show_context_menu(self, event): method on_add_file_button_clicked (line 185) | def on_add_file_button_clicked(self): method on_remove_selected_button_clicked (line 188) | def on_remove_selected_button_clicked(self): method on_add_directory_button_clicked (line 191) | def on_add_directory_button_clicked(self): method on_clear_play_list_button_clicked (line 194) | def on_clear_play_list_button_clicked(self): method on_remove_selected_context_menu_clicked (line 197) | def on_remove_selected_context_menu_clicked(self): method on_play_stop_button_clicked (line 200) | def on_play_stop_button_clicked(self): method on_pause_unpause_button_clicked (line 211) | def on_pause_unpause_button_clicked(self): method on_mute_unmute_button_clicked (line 218) | def on_mute_unmute_button_clicked(self): method on_previous_track_button_clicked (line 230) | def on_previous_track_button_clicked(self): method on_rewind_button_clicked (line 233) | def on_rewind_button_clicked(self): method on_fast_forward_button_clicked (line 236) | def on_fast_forward_button_clicked(self): method on_next_track_button_clicked (line 239) | def on_next_track_button_clicked(self): method on_volume_scale_changed (line 242) | def on_volume_scale_changed(self, value): method on_play_list_double_clicked (line 249) | def on_play_list_double_clicked(self, event=None): method play_previous_track (line 253) | def play_previous_track(self): method play_next_track (line 257) | def play_next_track(self): method start_play (line 262) | def start_play(self): method stop_play (line 273) | def stop_play(self): method add_audio_file (line 277) | def add_audio_file(self): method remove_selected_files (line 285) | def remove_selected_files(self): method add_all_audio_files_from_directory (line 294) | def add_all_audio_files_from_directory(self): method get_all_audio_file_from_directory (line 305) | def get_all_audio_file_from_directory(self, directory_path): method clear_play_list (line 313) | def clear_play_list(self): method manage_one_time_track_updates_on_play_start (line 317) | def manage_one_time_track_updates_on_play_start(self): method update_now_playing_text (line 321) | def update_now_playing_text(self): method display_track_duration (line 327) | def display_track_duration(self): method manage_periodic_updates_during_play (line 334) | def manage_periodic_updates_during_play(self): method update_clock (line 339) | def update_clock(self): method update_seek_bar (line 346) | def update_seek_bar(self): method seek_new_position (line 351) | def seek_new_position(self, event=None): FILE: Chapter 05/5.08/helpers.py function get_time_in_minute_seconds (line 8) | def get_time_in_minute_seconds(time_in_seconds): function truncate_text (line 14) | def truncate_text(text, truncate_length): FILE: Chapter 05/5.08/model.py class Model (line 8) | class Model: method __init__ (line 10) | def __init__(self): method play_list (line 14) | def play_list(self): method get_file_to_play (line 17) | def get_file_to_play(self, file_index): method clear_play_list (line 20) | def clear_play_list(self): method add_to_play_list (line 23) | def add_to_play_list(self, file_name): method remove_item_from_play_list_at_index (line 26) | def remove_item_from_play_list_at_index(self, index): FILE: Chapter 05/5.08/player.py class Player (line 12) | class Player: method __init__ (line 14) | def __init__(self): method play_media (line 18) | def play_media(self, audio_file): method reset_player (line 25) | def reset_player(self): method is_playing (line 29) | def is_playing(self): method seek (line 37) | def seek(self, time): method track_length (line 44) | def track_length(self): method volume (line 51) | def volume(self): method elapsed_play_duration (line 55) | def elapsed_play_duration(self): method volume (line 59) | def volume(self, volume): method unpause (line 62) | def unpause(self): method pause (line 65) | def pause(self): method stop (line 68) | def stop(self): method mute (line 71) | def mute(self): method unmute (line 74) | def unmute(self, newvolume_level): method fast_forward (line 77) | def fast_forward(self): method rewind (line 87) | def rewind(self): FILE: Chapter 05/5.08/seekbar.py class Seekbar (line 9) | class Seekbar(tk.Canvas): method __init__ (line 11) | def __init__(self, parent, **options): method bind_mouse_button (line 21) | def bind_mouse_button(self): method on_seekbar_clicked (line 29) | def on_seekbar_clicked(self, event=None): method slide_to_position (line 33) | def slide_to_position(self, new_position): class TestSeekBar (line 39) | class TestSeekBar(): method __init__ (line 41) | def __init__(self): method seek_new_position (line 51) | def seek_new_position(self, event): FILE: Chapter 05/5.08/view.py class View (line 31) | class View: method __init__ (line 39) | def __init__(self, root, model, player): method create_gui (line 47) | def create_gui(self): method create_top_display (line 55) | def create_top_display(self): method create_button_frame (line 74) | def create_button_frame(self): method create_list_box (line 127) | def create_list_box(self): method create_bottom_frame (line 141) | def create_bottom_frame(self): method create_context_menu (line 178) | def create_context_menu(self): method show_context_menu (line 183) | def show_context_menu(self, event): method on_add_file_button_clicked (line 186) | def on_add_file_button_clicked(self): method on_remove_selected_button_clicked (line 189) | def on_remove_selected_button_clicked(self): method on_add_directory_button_clicked (line 192) | def on_add_directory_button_clicked(self): method on_clear_play_list_button_clicked (line 195) | def on_clear_play_list_button_clicked(self): method on_remove_selected_context_menu_clicked (line 198) | def on_remove_selected_context_menu_clicked(self): method on_play_stop_button_clicked (line 201) | def on_play_stop_button_clicked(self): method on_pause_unpause_button_clicked (line 212) | def on_pause_unpause_button_clicked(self): method on_mute_unmute_button_clicked (line 219) | def on_mute_unmute_button_clicked(self): method on_previous_track_button_clicked (line 231) | def on_previous_track_button_clicked(self): method on_rewind_button_clicked (line 234) | def on_rewind_button_clicked(self): method on_fast_forward_button_clicked (line 237) | def on_fast_forward_button_clicked(self): method on_next_track_button_clicked (line 240) | def on_next_track_button_clicked(self): method on_volume_scale_changed (line 243) | def on_volume_scale_changed(self, value): method play_previous_track (line 251) | def play_previous_track(self): method play_next_track (line 255) | def play_next_track(self): method start_play (line 260) | def start_play(self): method stop_play (line 271) | def stop_play(self): method on_play_list_double_clicked (line 275) | def on_play_list_double_clicked(self, event=None): method add_audio_file (line 279) | def add_audio_file(self): method remove_selected_files (line 287) | def remove_selected_files(self): method add_all_audio_files_from_directory (line 296) | def add_all_audio_files_from_directory(self): method get_all_audio_file_from_directory (line 307) | def get_all_audio_file_from_directory(self, directory_path): method clear_play_list (line 315) | def clear_play_list(self): method manage_one_time_track_updates_on_play_start (line 319) | def manage_one_time_track_updates_on_play_start(self): method update_now_playing_text (line 323) | def update_now_playing_text(self): method display_track_duration (line 329) | def display_track_duration(self): method update_clock (line 336) | def update_clock(self): method update_seek_bar (line 343) | def update_seek_bar(self): method seek_new_position (line 348) | def seek_new_position(self, event=None): method manage_periodic_updates_during_play (line 352) | def manage_periodic_updates_during_play(self): method not_to_loop (line 359) | def not_to_loop(self): method close_player (line 370) | def close_player(self): FILE: Chapter 05/5.09/helpers.py function get_time_in_minute_seconds (line 8) | def get_time_in_minute_seconds(time_in_seconds): function truncate_text (line 14) | def truncate_text(text, truncate_length): FILE: Chapter 05/5.09/model.py class Model (line 8) | class Model: method __init__ (line 10) | def __init__(self): method play_list (line 14) | def play_list(self): method get_file_to_play (line 17) | def get_file_to_play(self, file_index): method clear_play_list (line 20) | def clear_play_list(self): method add_to_play_list (line 23) | def add_to_play_list(self, file_name): method remove_item_from_play_list_at_index (line 26) | def remove_item_from_play_list_at_index(self, index): FILE: Chapter 05/5.09/player.py class Player (line 12) | class Player: method __init__ (line 14) | def __init__(self): method play_media (line 18) | def play_media(self, audio_file): method reset_player (line 25) | def reset_player(self): method is_playing (line 29) | def is_playing(self): method seek (line 37) | def seek(self, time): method track_length (line 44) | def track_length(self): method volume (line 51) | def volume(self): method elapsed_play_duration (line 55) | def elapsed_play_duration(self): method volume (line 59) | def volume(self, volume): method unpause (line 62) | def unpause(self): method pause (line 65) | def pause(self): method stop (line 68) | def stop(self): method mute (line 71) | def mute(self): method unmute (line 74) | def unmute(self, new_volume_level): method fast_forward (line 77) | def fast_forward(self): method rewind (line 87) | def rewind(self): FILE: Chapter 05/5.09/seekbar.py class Seekbar (line 9) | class Seekbar(tk.Canvas): method __init__ (line 11) | def __init__(self, parent, **options): method bind_mouse_button (line 21) | def bind_mouse_button(self): method on_seekbar_clicked (line 29) | def on_seekbar_clicked(self, event=None): method slide_to_position (line 33) | def slide_to_position(self, new_position): class TestSeekBar (line 39) | class TestSeekBar(): method __init__ (line 41) | def __init__(self): method seek_new_position (line 51) | def seek_new_position(self, event): FILE: Chapter 05/5.09/view.py class View (line 31) | class View: method __init__ (line 39) | def __init__(self, root, model, player): method create_gui (line 47) | def create_gui(self): method create_top_display (line 56) | def create_top_display(self): method create_button_frame (line 75) | def create_button_frame(self): method create_list_box (line 135) | def create_list_box(self): method create_bottom_frame (line 149) | def create_bottom_frame(self): method create_context_menu (line 190) | def create_context_menu(self): method show_context_menu (line 195) | def show_context_menu(self, event): method on_add_file_button_clicked (line 198) | def on_add_file_button_clicked(self): method on_remove_selected_button_clicked (line 201) | def on_remove_selected_button_clicked(self): method on_add_directory_button_clicked (line 204) | def on_add_directory_button_clicked(self): method on_clear_play_list_button_clicked (line 207) | def on_clear_play_list_button_clicked(self): method on_remove_selected_context_menu_clicked (line 210) | def on_remove_selected_context_menu_clicked(self): method on_play_stop_button_clicked (line 213) | def on_play_stop_button_clicked(self): method on_pause_unpause_button_clicked (line 224) | def on_pause_unpause_button_clicked(self): method on_mute_unmute_button_clicked (line 231) | def on_mute_unmute_button_clicked(self): method on_previous_track_button_clicked (line 243) | def on_previous_track_button_clicked(self): method on_rewind_button_clicked (line 246) | def on_rewind_button_clicked(self): method on_fast_forward_button_clicked (line 249) | def on_fast_forward_button_clicked(self): method on_next_track_button_clicked (line 252) | def on_next_track_button_clicked(self): method on_volume_scale_changed (line 255) | def on_volume_scale_changed(self, value): method play_previous_track (line 262) | def play_previous_track(self): method play_next_track (line 266) | def play_next_track(self): method start_play (line 271) | def start_play(self): method stop_play (line 282) | def stop_play(self): method on_play_list_double_clicked (line 286) | def on_play_list_double_clicked(self, event=None): method add_audio_file (line 290) | def add_audio_file(self): method remove_selected_files (line 298) | def remove_selected_files(self): method add_all_audio_files_from_directory (line 307) | def add_all_audio_files_from_directory(self): method get_all_audio_file_from_directory (line 318) | def get_all_audio_file_from_directory(self, directory_path): method clear_play_list (line 326) | def clear_play_list(self): method manage_one_time_track_updates_on_play_start (line 330) | def manage_one_time_track_updates_on_play_start(self): method update_now_playing_text (line 334) | def update_now_playing_text(self): method display_track_duration (line 340) | def display_track_duration(self): method update_clock (line 348) | def update_clock(self): method update_seek_bar (line 355) | def update_seek_bar(self): method seek_new_position (line 360) | def seek_new_position(self, event=None): method manage_periodic_updates_during_play (line 364) | def manage_periodic_updates_during_play(self): method not_to_loop (line 371) | def not_to_loop(self): method close_player (line 382) | def close_player(self): FILE: Chapter 06/6.01.py class PaintApplication (line 11) | class PaintApplication(framework.Framework): method __init__ (line 13) | def __init__(self, root): method create_gui (line 17) | def create_gui(self): method create_menu (line 24) | def create_menu(self): method create_top_bar (line 34) | def create_top_bar(self): method create_tool_bar (line 38) | def create_tool_bar(self): method create_drawing_canvas (line 42) | def create_drawing_canvas(self): method create_scroll_bar (line 50) | def create_scroll_bar(self): method bind_menu_accelrator_keys (line 60) | def bind_menu_accelrator_keys(self): method on_new_file_menu_clicked (line 69) | def on_new_file_menu_clicked(self, event=None): method on_save_menu_clicked (line 72) | def on_save_menu_clicked(self, event=None): method on_save_as_menu_clicked (line 75) | def on_save_as_menu_clicked(self): method on_canvas_zoom_out_menu_clicked (line 78) | def on_canvas_zoom_out_menu_clicked(self): method on_canvas_zoom_in_menu_clicked (line 81) | def on_canvas_zoom_in_menu_clicked(self): method on_close_menu_clicked (line 84) | def on_close_menu_clicked(self): method on_undo_menu_clicked (line 87) | def on_undo_menu_clicked(self, event=None): method on_about_menu_clicked (line 90) | def on_about_menu_clicked(self, event=None): FILE: Chapter 06/6.02.py class PaintApplication (line 25) | class PaintApplication(framework.Framework): method bind_mouse (line 30) | def bind_mouse(self): method on_mouse_button_pressed (line 38) | def on_mouse_button_pressed(self, event): method on_mouse_button_pressed_motion (line 43) | def on_mouse_button_pressed_motion(self, event): method on_mouse_button_released (line 47) | def on_mouse_button_released(self, event): method on_mouse_unpressed_motion (line 52) | def on_mouse_unpressed_motion(self, event): method __init__ (line 55) | def __init__(self, root): method create_gui (line 60) | def create_gui(self): method create_menu (line 67) | def create_menu(self): method create_top_bar (line 77) | def create_top_bar(self): method create_tool_bar (line 81) | def create_tool_bar(self): method create_drawing_canvas (line 85) | def create_drawing_canvas(self): method create_scroll_bar (line 93) | def create_scroll_bar(self): method bind_menu_accelrator_keys (line 103) | def bind_menu_accelrator_keys(self): method on_new_file_menu_clicked (line 112) | def on_new_file_menu_clicked(self, event=None): method on_save_menu_clicked (line 115) | def on_save_menu_clicked(self, event=None): method on_save_as_menu_clicked (line 118) | def on_save_as_menu_clicked(self): method on_canvas_zoom_out_menu_clicked (line 121) | def on_canvas_zoom_out_menu_clicked(self): method on_canvas_zoom_in_menu_clicked (line 124) | def on_canvas_zoom_in_menu_clicked(self): method on_close_menu_clicked (line 127) | def on_close_menu_clicked(self): method on_undo_menu_clicked (line 130) | def on_undo_menu_clicked(self, event=None): method on_about_menu_clicked (line 133) | def on_about_menu_clicked(self, event=None): FILE: Chapter 06/6.03.py class PaintApplication (line 21) | class PaintApplication(framework.Framework): method create_tool_bar_buttons (line 32) | def create_tool_bar_buttons(self): method on_tool_bar_button_clicked (line 41) | def on_tool_bar_button_clicked(self, button_index): method display_options_in_the_top_bar (line 46) | def display_options_in_the_top_bar(self): method remove_options_from_top_bar (line 50) | def remove_options_from_top_bar(self): method show_selected_tool_icon_in_top_bar (line 54) | def show_selected_tool_icon_in_top_bar(self, function_name): method bind_mouse (line 63) | def bind_mouse(self): method on_mouse_button_pressed (line 71) | def on_mouse_button_pressed(self, event): method on_mouse_button_pressed_motion (line 75) | def on_mouse_button_pressed_motion(self, event): method on_mouse_button_released (line 79) | def on_mouse_button_released(self, event): method on_mouse_unpressed_motion (line 83) | def on_mouse_unpressed_motion(self, event): method __init__ (line 86) | def __init__(self, root): method create_gui (line 91) | def create_gui(self): method create_menu (line 99) | def create_menu(self): method create_top_bar (line 109) | def create_top_bar(self): method create_tool_bar (line 113) | def create_tool_bar(self): method create_drawing_canvas (line 117) | def create_drawing_canvas(self): method create_scroll_bar (line 125) | def create_scroll_bar(self): method bind_menu_accelrator_keys (line 135) | def bind_menu_accelrator_keys(self): method on_new_file_menu_clicked (line 144) | def on_new_file_menu_clicked(self, event=None): method on_save_menu_clicked (line 147) | def on_save_menu_clicked(self, event=None): method on_save_as_menu_clicked (line 150) | def on_save_as_menu_clicked(self): method on_canvas_zoom_out_menu_clicked (line 153) | def on_canvas_zoom_out_menu_clicked(self): method on_canvas_zoom_in_menu_clicked (line 156) | def on_canvas_zoom_in_menu_clicked(self): method on_close_menu_clicked (line 159) | def on_close_menu_clicked(self): method on_undo_menu_clicked (line 162) | def on_undo_menu_clicked(self, event=None): method on_about_menu_clicked (line 165) | def on_about_menu_clicked(self, event=None): FILE: Chapter 06/6.04.py class PaintApplication (line 38) | class PaintApplication(framework.Framework): method function_not_defined (line 56) | def function_not_defined(self): method execute_selected_method (line 59) | def execute_selected_method(self): method draw_line (line 65) | def draw_line(self): method draw_oval (line 69) | def draw_oval(self): method draw_rectangle (line 73) | def draw_rectangle(self): method draw_arc (line 77) | def draw_arc(self): method draw_triangle (line 81) | def draw_triangle(self): method draw_star (line 97) | def draw_star(self): method create_tool_bar_buttons (line 121) | def create_tool_bar_buttons(self): method on_tool_bar_button_clicked (line 130) | def on_tool_bar_button_clicked(self, button_index): method display_options_in_the_top_bar (line 135) | def display_options_in_the_top_bar(self): method remove_options_from_top_bar (line 139) | def remove_options_from_top_bar(self): method show_selected_tool_icon_in_top_bar (line 143) | def show_selected_tool_icon_in_top_bar(self, function_name): method bind_mouse (line 152) | def bind_mouse(self): method on_mouse_button_pressed (line 160) | def on_mouse_button_pressed(self, event): method on_mouse_button_pressed_motion (line 165) | def on_mouse_button_pressed_motion(self, event): method on_mouse_button_released (line 171) | def on_mouse_button_released(self, event): method on_mouse_unpressed_motion (line 175) | def on_mouse_unpressed_motion(self, event): method __init__ (line 178) | def __init__(self, root): method create_gui (line 183) | def create_gui(self): method create_menu (line 191) | def create_menu(self): method create_top_bar (line 201) | def create_top_bar(self): method create_tool_bar (line 205) | def create_tool_bar(self): method create_drawing_canvas (line 209) | def create_drawing_canvas(self): method create_scroll_bar (line 217) | def create_scroll_bar(self): method bind_menu_accelrator_keys (line 227) | def bind_menu_accelrator_keys(self): method on_new_file_menu_clicked (line 236) | def on_new_file_menu_clicked(self, event=None): method on_save_menu_clicked (line 239) | def on_save_menu_clicked(self, event=None): method on_save_as_menu_clicked (line 242) | def on_save_as_menu_clicked(self): method on_canvas_zoom_out_menu_clicked (line 245) | def on_canvas_zoom_out_menu_clicked(self): method on_canvas_zoom_in_menu_clicked (line 248) | def on_canvas_zoom_in_menu_clicked(self): method on_close_menu_clicked (line 251) | def on_close_menu_clicked(self): method on_undo_menu_clicked (line 254) | def on_undo_menu_clicked(self, event=None): method on_about_menu_clicked (line 257) | def on_about_menu_clicked(self, event=None): FILE: Chapter 06/6.05.py class PaintApplication (line 33) | class PaintApplication(framework.Framework): method create_color_palette (line 53) | def create_color_palette(self): method bind_color_palette (line 62) | def bind_color_palette(self): method set_foreground_color (line 68) | def set_foreground_color(self, event=None): method set_background_color (line 74) | def set_background_color(self, event=None): method create_current_coordinate_label (line 81) | def create_current_coordinate_label(self): method show_current_coordinates (line 87) | def show_current_coordinates(self, event=None): method function_not_defined (line 93) | def function_not_defined(self): method execute_selected_method (line 96) | def execute_selected_method(self): method draw_line (line 102) | def draw_line(self): method draw_oval (line 106) | def draw_oval(self): method draw_rectangle (line 110) | def draw_rectangle(self): method draw_arc (line 114) | def draw_arc(self): method draw_triangle (line 118) | def draw_triangle(self): method draw_star (line 133) | def draw_star(self): method create_tool_bar_buttons (line 151) | def create_tool_bar_buttons(self): method on_tool_bar_button_clicked (line 160) | def on_tool_bar_button_clicked(self, button_index): method display_options_in_the_top_bar (line 165) | def display_options_in_the_top_bar(self): method remove_options_from_top_bar (line 169) | def remove_options_from_top_bar(self): method show_selected_tool_icon_in_top_bar (line 173) | def show_selected_tool_icon_in_top_bar(self, function_name): method bind_mouse (line 182) | def bind_mouse(self): method on_mouse_button_pressed (line 190) | def on_mouse_button_pressed(self, event): method on_mouse_button_pressed_motion (line 195) | def on_mouse_button_pressed_motion(self, event): method on_mouse_button_released (line 201) | def on_mouse_button_released(self, event): method on_mouse_unpressed_motion (line 205) | def on_mouse_unpressed_motion(self, event): method __init__ (line 208) | def __init__(self, root): method create_gui (line 213) | def create_gui(self): method create_menu (line 223) | def create_menu(self): method create_top_bar (line 233) | def create_top_bar(self): method create_tool_bar (line 237) | def create_tool_bar(self): method create_drawing_canvas (line 241) | def create_drawing_canvas(self): method create_scroll_bar (line 249) | def create_scroll_bar(self): method bind_menu_accelrator_keys (line 259) | def bind_menu_accelrator_keys(self): method on_new_file_menu_clicked (line 268) | def on_new_file_menu_clicked(self, event=None): method on_save_menu_clicked (line 271) | def on_save_menu_clicked(self, event=None): method on_save_as_menu_clicked (line 274) | def on_save_as_menu_clicked(self): method on_canvas_zoom_out_menu_clicked (line 277) | def on_canvas_zoom_out_menu_clicked(self): method on_canvas_zoom_in_menu_clicked (line 280) | def on_canvas_zoom_in_menu_clicked(self): method on_close_menu_clicked (line 283) | def on_close_menu_clicked(self): method on_undo_menu_clicked (line 286) | def on_undo_menu_clicked(self, event=None): method on_about_menu_clicked (line 289) | def on_about_menu_clicked(self, event=None): FILE: Chapter 06/6.06.py class PaintApplication (line 45) | class PaintApplication(framework.Framework): method set_foreground_color (line 65) | def set_foreground_color(self, event=None): method set_background_color (line 71) | def set_background_color(self, event=None): method get_color_from_chooser (line 77) | def get_color_from_chooser(self, initial_color, color_type="a"): method try_to_set_fill_after_palette_change (line 88) | def try_to_set_fill_after_palette_change(self): method try_to_set_outline_after_palette_change (line 94) | def try_to_set_outline_after_palette_change(self): method display_options_in_the_top_bar (line 100) | def display_options_in_the_top_bar(self): method draw_line_options (line 107) | def draw_line_options(self): method draw_oval_options (line 113) | def draw_oval_options(self): method draw_rectangle_options (line 118) | def draw_rectangle_options(self): method draw_arc_options (line 123) | def draw_arc_options(self): method draw_triangle_options (line 128) | def draw_triangle_options(self): method draw_star_options (line 133) | def draw_star_options(self): method create_fill_options_combobox (line 139) | def create_fill_options_combobox(self): method create_number_of_spokes_options_combobox (line 148) | def create_number_of_spokes_options_combobox(self): method create_outline_options_combobox (line 159) | def create_outline_options_combobox(self): method create_width_options_combobox (line 169) | def create_width_options_combobox(self): method create_dash_options_combobox (line 179) | def create_dash_options_combobox(self): method create_arrow_options_combobox (line 188) | def create_arrow_options_combobox(self): method set_fill (line 197) | def set_fill(self, event=None): method set_outline (line 208) | def set_outline(self, event=None): method set_width (line 219) | def set_width(self, event): method set_number_of_spokes (line 222) | def set_number_of_spokes(self, event): method set_arrow (line 225) | def set_arrow(self, event): method set_dash (line 228) | def set_dash(self, event): method create_color_palette (line 240) | def create_color_palette(self): method bind_color_palette (line 249) | def bind_color_palette(self): method create_current_coordinate_label (line 255) | def create_current_coordinate_label(self): method show_current_coordinates (line 261) | def show_current_coordinates(self, event=None): method function_not_defined (line 267) | def function_not_defined(self): method execute_selected_method (line 270) | def execute_selected_method(self): method draw_line (line 276) | def draw_line(self): method draw_oval (line 280) | def draw_oval(self): method draw_rectangle (line 284) | def draw_rectangle(self): method draw_arc (line 288) | def draw_arc(self): method draw_triangle (line 292) | def draw_triangle(self): method draw_star (line 307) | def draw_star(self): method create_tool_bar_buttons (line 325) | def create_tool_bar_buttons(self): method on_tool_bar_button_clicked (line 334) | def on_tool_bar_button_clicked(self, button_index): method remove_options_from_top_bar (line 339) | def remove_options_from_top_bar(self): method show_selected_tool_icon_in_top_bar (line 343) | def show_selected_tool_icon_in_top_bar(self, function_name): method bind_mouse (line 352) | def bind_mouse(self): method on_mouse_button_pressed (line 360) | def on_mouse_button_pressed(self, event): method on_mouse_button_pressed_motion (line 365) | def on_mouse_button_pressed_motion(self, event): method on_mouse_button_released (line 371) | def on_mouse_button_released(self, event): method on_mouse_unpressed_motion (line 375) | def on_mouse_unpressed_motion(self, event): method __init__ (line 378) | def __init__(self, root): method create_gui (line 383) | def create_gui(self): method create_menu (line 395) | def create_menu(self): method create_top_bar (line 405) | def create_top_bar(self): method create_tool_bar (line 409) | def create_tool_bar(self): method create_drawing_canvas (line 413) | def create_drawing_canvas(self): method create_scroll_bar (line 421) | def create_scroll_bar(self): method bind_menu_accelrator_keys (line 431) | def bind_menu_accelrator_keys(self): method on_new_file_menu_clicked (line 440) | def on_new_file_menu_clicked(self, event=None): method on_save_menu_clicked (line 443) | def on_save_menu_clicked(self, event=None): method on_save_as_menu_clicked (line 446) | def on_save_as_menu_clicked(self): method on_canvas_zoom_out_menu_clicked (line 449) | def on_canvas_zoom_out_menu_clicked(self): method on_canvas_zoom_in_menu_clicked (line 452) | def on_canvas_zoom_in_menu_clicked(self): method on_close_menu_clicked (line 455) | def on_close_menu_clicked(self): method on_undo_menu_clicked (line 458) | def on_undo_menu_clicked(self, event=None): method on_about_menu_clicked (line 461) | def on_about_menu_clicked(self, event=None): FILE: Chapter 06/6.07.py class PaintApplication (line 36) | class PaintApplication(framework.Framework): method draw_irregular_line (line 57) | def draw_irregular_line(self): method draw_irregular_line_update_x_y (line 62) | def draw_irregular_line_update_x_y(self, event=None): method draw_irregular_line_options (line 67) | def draw_irregular_line_options(self): method on_tool_bar_button_clicked (line 71) | def on_tool_bar_button_clicked(self, button_index): method draw_super_shape (line 77) | def draw_super_shape(self): method draw_super_shape_options (line 83) | def draw_super_shape_options(self): method create_super_shapes_options_combobox (line 89) | def create_super_shapes_options_combobox(self): method set_selected_super_shape (line 100) | def set_selected_super_shape(self, event=None): method get_super_shape_points (line 103) | def get_super_shape_points(self, a, b, m, n1, n2, n3): method float_range (line 115) | def float_range(self, x, y, step): method set_foreground_color (line 120) | def set_foreground_color(self, event=None): method set_background_color (line 126) | def set_background_color(self, event=None): method get_color_from_chooser (line 132) | def get_color_from_chooser(self, initial_color, color_type="a"): method try_to_set_fill_after_palette_change (line 144) | def try_to_set_fill_after_palette_change(self): method try_to_set_outline_after_palette_change (line 150) | def try_to_set_outline_after_palette_change(self): method display_options_in_the_top_bar (line 156) | def display_options_in_the_top_bar(self): method draw_line_options (line 163) | def draw_line_options(self): method draw_oval_options (line 169) | def draw_oval_options(self): method draw_rectangle_options (line 174) | def draw_rectangle_options(self): method draw_arc_options (line 179) | def draw_arc_options(self): method draw_triangle_options (line 184) | def draw_triangle_options(self): method draw_star_options (line 189) | def draw_star_options(self): method create_fill_options_combobox (line 195) | def create_fill_options_combobox(self): method create_number_of_spokes_options_combobox (line 204) | def create_number_of_spokes_options_combobox(self): method create_outline_options_combobox (line 215) | def create_outline_options_combobox(self): method create_width_options_combobox (line 225) | def create_width_options_combobox(self): method create_dash_options_combobox (line 235) | def create_dash_options_combobox(self): method create_arrow_options_combobox (line 244) | def create_arrow_options_combobox(self): method set_fill (line 253) | def set_fill(self, event=None): method set_outline (line 264) | def set_outline(self, event=None): method set_width (line 275) | def set_width(self, event): method set_number_of_spokes (line 278) | def set_number_of_spokes(self, event): method set_arrow (line 281) | def set_arrow(self, event): method set_dash (line 284) | def set_dash(self, event): method create_color_palette (line 296) | def create_color_palette(self): method bind_color_palette (line 305) | def bind_color_palette(self): method create_current_coordinate_label (line 311) | def create_current_coordinate_label(self): method show_current_coordinates (line 317) | def show_current_coordinates(self, event=None): method function_not_defined (line 323) | def function_not_defined(self): method execute_selected_method (line 326) | def execute_selected_method(self): method draw_line (line 332) | def draw_line(self): method draw_oval (line 336) | def draw_oval(self): method draw_rectangle (line 340) | def draw_rectangle(self): method draw_arc (line 344) | def draw_arc(self): method draw_triangle (line 348) | def draw_triangle(self): method draw_star (line 363) | def draw_star(self): method create_tool_bar_buttons (line 381) | def create_tool_bar_buttons(self): method remove_options_from_top_bar (line 390) | def remove_options_from_top_bar(self): method show_selected_tool_icon_in_top_bar (line 394) | def show_selected_tool_icon_in_top_bar(self, function_name): method bind_mouse (line 403) | def bind_mouse(self): method on_mouse_button_pressed (line 411) | def on_mouse_button_pressed(self, event): method on_mouse_button_pressed_motion (line 416) | def on_mouse_button_pressed_motion(self, event): method on_mouse_button_released (line 422) | def on_mouse_button_released(self, event): method on_mouse_unpressed_motion (line 426) | def on_mouse_unpressed_motion(self, event): method __init__ (line 429) | def __init__(self, root): method create_gui (line 434) | def create_gui(self): method create_menu (line 446) | def create_menu(self): method create_top_bar (line 456) | def create_top_bar(self): method create_tool_bar (line 460) | def create_tool_bar(self): method create_drawing_canvas (line 464) | def create_drawing_canvas(self): method create_scroll_bar (line 472) | def create_scroll_bar(self): method bind_menu_accelrator_keys (line 482) | def bind_menu_accelrator_keys(self): method on_new_file_menu_clicked (line 491) | def on_new_file_menu_clicked(self, event=None): method on_save_menu_clicked (line 494) | def on_save_menu_clicked(self, event=None): method on_save_as_menu_clicked (line 497) | def on_save_as_menu_clicked(self): method on_canvas_zoom_out_menu_clicked (line 500) | def on_canvas_zoom_out_menu_clicked(self): method on_canvas_zoom_in_menu_clicked (line 503) | def on_canvas_zoom_in_menu_clicked(self): method on_close_menu_clicked (line 506) | def on_close_menu_clicked(self): method on_undo_menu_clicked (line 509) | def on_undo_menu_clicked(self, event=None): method on_about_menu_clicked (line 512) | def on_about_menu_clicked(self, event=None): FILE: Chapter 06/6.08.py class PaintApplication (line 32) | class PaintApplication(framework.Framework): method draw_text (line 53) | def draw_text(self): method draw_text_options (line 56) | def draw_text_options(self): method on_create_text_button_clicked (line 69) | def on_create_text_button_clicked(self): method delete_item (line 77) | def delete_item(self): method fill_item (line 81) | def fill_item(self): method fill_item_options (line 88) | def fill_item_options(self): method duplicate_item (line 92) | def duplicate_item(self): method get_all_configurations_for_item (line 103) | def get_all_configurations_for_item(self): method canvas_function_wrapper (line 110) | def canvas_function_wrapper(self, function_name, *arg, **kwargs): method move_to_top (line 114) | def move_to_top(self): method drag_item (line 118) | def drag_item(self): method drag_item_update_x_y (line 123) | def drag_item_update_x_y(self, event): method enlarge_item_size (line 128) | def enlarge_item_size(self): method reduce_item_size (line 134) | def reduce_item_size(self): method draw_irregular_line (line 140) | def draw_irregular_line(self): method draw_irregular_line_update_x_y (line 145) | def draw_irregular_line_update_x_y(self, event=None): method draw_irregular_line_options (line 150) | def draw_irregular_line_options(self): method on_tool_bar_button_clicked (line 154) | def on_tool_bar_button_clicked(self, button_index): method draw_super_shape (line 160) | def draw_super_shape(self): method draw_super_shape_options (line 166) | def draw_super_shape_options(self): method create_super_shapes_options_combobox (line 172) | def create_super_shapes_options_combobox(self): method set_selected_super_shape (line 183) | def set_selected_super_shape(self, event=None): method get_super_shape_points (line 186) | def get_super_shape_points(self, a, b, m, n1, n2, n3): method float_range (line 198) | def float_range(self, x, y, step): method set_foreground_color (line 203) | def set_foreground_color(self, event=None): method set_background_color (line 209) | def set_background_color(self, event=None): method get_color_from_chooser (line 215) | def get_color_from_chooser(self, initial_color, color_type="a"): method try_to_set_fill_after_palette_change (line 226) | def try_to_set_fill_after_palette_change(self): method try_to_set_outline_after_palette_change (line 232) | def try_to_set_outline_after_palette_change(self): method display_options_in_the_top_bar (line 238) | def display_options_in_the_top_bar(self): method draw_line_options (line 246) | def draw_line_options(self): method draw_oval_options (line 252) | def draw_oval_options(self): method draw_rectangle_options (line 257) | def draw_rectangle_options(self): method draw_arc_options (line 262) | def draw_arc_options(self): method draw_triangle_options (line 267) | def draw_triangle_options(self): method draw_star_options (line 272) | def draw_star_options(self): method create_fill_options_combobox (line 278) | def create_fill_options_combobox(self): method create_number_of_spokes_options_combobox (line 287) | def create_number_of_spokes_options_combobox(self): method create_outline_options_combobox (line 298) | def create_outline_options_combobox(self): method create_width_options_combobox (line 308) | def create_width_options_combobox(self): method create_dash_options_combobox (line 318) | def create_dash_options_combobox(self): method create_arrow_options_combobox (line 327) | def create_arrow_options_combobox(self): method set_fill (line 336) | def set_fill(self, event=None): method set_outline (line 347) | def set_outline(self, event=None): method set_width (line 358) | def set_width(self, event): method set_number_of_spokes (line 361) | def set_number_of_spokes(self, event): method set_arrow (line 364) | def set_arrow(self, event): method set_dash (line 367) | def set_dash(self, event): method create_color_palette (line 379) | def create_color_palette(self): method bind_color_palette (line 388) | def bind_color_palette(self): method create_current_coordinate_label (line 394) | def create_current_coordinate_label(self): method show_current_coordinates (line 400) | def show_current_coordinates(self, event=None): method function_not_defined (line 406) | def function_not_defined(self): method execute_selected_method (line 409) | def execute_selected_method(self): method draw_line (line 415) | def draw_line(self): method draw_oval (line 419) | def draw_oval(self): method draw_rectangle (line 423) | def draw_rectangle(self): method draw_arc (line 427) | def draw_arc(self): method draw_triangle (line 431) | def draw_triangle(self): method draw_star (line 446) | def draw_star(self): method create_tool_bar_buttons (line 464) | def create_tool_bar_buttons(self): method remove_options_from_top_bar (line 473) | def remove_options_from_top_bar(self): method show_selected_tool_icon_in_top_bar (line 477) | def show_selected_tool_icon_in_top_bar(self, function_name): method bind_mouse (line 486) | def bind_mouse(self): method on_mouse_button_pressed (line 494) | def on_mouse_button_pressed(self, event): method on_mouse_button_pressed_motion (line 499) | def on_mouse_button_pressed_motion(self, event): method on_mouse_button_released (line 505) | def on_mouse_button_released(self, event): method on_mouse_unpressed_motion (line 509) | def on_mouse_unpressed_motion(self, event): method __init__ (line 512) | def __init__(self, root): method create_gui (line 517) | def create_gui(self): method create_menu (line 529) | def create_menu(self): method create_top_bar (line 539) | def create_top_bar(self): method create_tool_bar (line 543) | def create_tool_bar(self): method create_drawing_canvas (line 547) | def create_drawing_canvas(self): method create_scroll_bar (line 555) | def create_scroll_bar(self): method bind_menu_accelrator_keys (line 565) | def bind_menu_accelrator_keys(self): method on_new_file_menu_clicked (line 574) | def on_new_file_menu_clicked(self, event=None): method on_save_menu_clicked (line 577) | def on_save_menu_clicked(self, event=None): method on_save_as_menu_clicked (line 580) | def on_save_as_menu_clicked(self): method on_canvas_zoom_out_menu_clicked (line 583) | def on_canvas_zoom_out_menu_clicked(self): method on_canvas_zoom_in_menu_clicked (line 586) | def on_canvas_zoom_in_menu_clicked(self): method on_close_menu_clicked (line 589) | def on_close_menu_clicked(self): method on_undo_menu_clicked (line 592) | def on_undo_menu_clicked(self, event=None): method on_about_menu_clicked (line 595) | def on_about_menu_clicked(self, event=None): FILE: Chapter 06/6.09.py class PaintApplication (line 42) | class PaintApplication(framework.Framework): method on_new_file_menu_clicked (line 63) | def on_new_file_menu_clicked(self, event=None): method start_new_project (line 66) | def start_new_project(self): method on_save_menu_clicked (line 71) | def on_save_menu_clicked(self, event=None): method on_save_as_menu_clicked (line 77) | def on_save_as_menu_clicked(self): method actual_save (line 85) | def actual_save(self): method on_close_menu_clicked (line 89) | def on_close_menu_clicked(self): method close_window (line 92) | def close_window(self): method on_undo_menu_clicked (line 96) | def on_undo_menu_clicked(self, event=None): method undo (line 99) | def undo(self): method on_canvas_zoom_in_menu_clicked (line 107) | def on_canvas_zoom_in_menu_clicked(self): method on_canvas_zoom_out_menu_clicked (line 110) | def on_canvas_zoom_out_menu_clicked(self): method canvas_zoom_in (line 113) | def canvas_zoom_in(self): method canvas_zoom_out (line 117) | def canvas_zoom_out(self): method on_about_menu_clicked (line 121) | def on_about_menu_clicked(self, event=None): method draw_text_options (line 125) | def draw_text_options(self): method on_create_text_button_clicked (line 138) | def on_create_text_button_clicked(self): method delete_item (line 146) | def delete_item(self): method fill_item (line 150) | def fill_item(self): method fill_item_options (line 156) | def fill_item_options(self): method duplicate_item (line 160) | def duplicate_item(self): method get_all_configurations_for_item (line 170) | def get_all_configurations_for_item(self): method canvas_function_wrapper (line 177) | def canvas_function_wrapper(self, function_name, *arg, **kwargs): method move_to_top (line 181) | def move_to_top(self): method drag_item (line 185) | def drag_item(self): method drag_item_update_x_y (line 190) | def drag_item_update_x_y(self, event): method enlarge_item_size (line 195) | def enlarge_item_size(self): method reduce_item_size (line 201) | def reduce_item_size(self): method draw_irregular_line (line 207) | def draw_irregular_line(self): method draw_irregular_line_update_x_y (line 212) | def draw_irregular_line_update_x_y(self, event=None): method draw_irregular_line_options (line 217) | def draw_irregular_line_options(self): method on_tool_bar_button_clicked (line 221) | def on_tool_bar_button_clicked(self, button_index): method draw_super_shape (line 227) | def draw_super_shape(self): method draw_super_shape_options (line 233) | def draw_super_shape_options(self): method create_super_shapes_options_combobox (line 239) | def create_super_shapes_options_combobox(self): method set_selected_super_shape (line 250) | def set_selected_super_shape(self, event=None): method get_super_shape_points (line 253) | def get_super_shape_points(self, a, b, m, n1, n2, n3): method float_range (line 265) | def float_range(self, x, y, step): method set_foreground_color (line 270) | def set_foreground_color(self, event=None): method set_background_color (line 276) | def set_background_color(self, event=None): method get_color_from_chooser (line 282) | def get_color_from_chooser(self, initial_color, color_type="a"): method try_to_set_fill_after_palette_change (line 293) | def try_to_set_fill_after_palette_change(self): method try_to_set_outline_after_palette_change (line 299) | def try_to_set_outline_after_palette_change(self): method display_options_in_the_top_bar (line 305) | def display_options_in_the_top_bar(self): method draw_line_options (line 312) | def draw_line_options(self): method draw_oval_options (line 318) | def draw_oval_options(self): method draw_rectangle_options (line 323) | def draw_rectangle_options(self): method draw_arc_options (line 328) | def draw_arc_options(self): method draw_triangle_options (line 333) | def draw_triangle_options(self): method draw_star_options (line 338) | def draw_star_options(self): method create_fill_options_combobox (line 344) | def create_fill_options_combobox(self): method create_outline_options_combobox (line 353) | def create_outline_options_combobox(self): method create_number_of_spokes_options_combobox (line 363) | def create_number_of_spokes_options_combobox(self): method create_width_options_combobox (line 374) | def create_width_options_combobox(self): method create_dash_options_combobox (line 384) | def create_dash_options_combobox(self): method create_arrow_options_combobox (line 393) | def create_arrow_options_combobox(self): method set_fill (line 402) | def set_fill(self, event=None): method set_outline (line 413) | def set_outline(self, event=None): method set_width (line 424) | def set_width(self, event): method set_number_of_spokes (line 427) | def set_number_of_spokes(self, event): method set_arrow (line 430) | def set_arrow(self, event): method set_dash (line 433) | def set_dash(self, event): method create_color_palette (line 445) | def create_color_palette(self): method bind_color_palette (line 454) | def bind_color_palette(self): method create_current_coordinate_label (line 460) | def create_current_coordinate_label(self): method show_current_coordinates (line 466) | def show_current_coordinates(self, event=None): method function_not_defined (line 472) | def function_not_defined(self): method execute_selected_method (line 475) | def execute_selected_method(self): method draw_line (line 481) | def draw_line(self): method draw_oval (line 485) | def draw_oval(self): method draw_rectangle (line 489) | def draw_rectangle(self): method draw_arc (line 493) | def draw_arc(self): method draw_triangle (line 497) | def draw_triangle(self): method draw_star (line 512) | def draw_star(self): method create_tool_bar_buttons (line 530) | def create_tool_bar_buttons(self): method remove_options_from_top_bar (line 539) | def remove_options_from_top_bar(self): method show_selected_tool_icon_in_top_bar (line 543) | def show_selected_tool_icon_in_top_bar(self, function_name): method bind_mouse (line 552) | def bind_mouse(self): method on_mouse_button_pressed (line 560) | def on_mouse_button_pressed(self, event): method on_mouse_button_pressed_motion (line 565) | def on_mouse_button_pressed_motion(self, event): method on_mouse_button_released (line 571) | def on_mouse_button_released(self, event): method on_mouse_unpressed_motion (line 575) | def on_mouse_unpressed_motion(self, event): method __init__ (line 578) | def __init__(self, root): method create_gui (line 583) | def create_gui(self): method create_menu (line 595) | def create_menu(self): method create_top_bar (line 605) | def create_top_bar(self): method create_tool_bar (line 609) | def create_tool_bar(self): method create_drawing_canvas (line 613) | def create_drawing_canvas(self): method create_scroll_bar (line 621) | def create_scroll_bar(self): method bind_menu_accelrator_keys (line 631) | def bind_menu_accelrator_keys(self): FILE: Chapter 06/framework.py class Framework (line 10) | class Framework(): method __init__ (line 39) | def __init__(self, root): method build_menu (line 42) | def build_menu(self, menu_definitions): method _add_menu_command (line 53) | def _add_menu_command(self, menu, item): class TestThisFramework (line 67) | class TestThisFramework(Framework): method new_file (line 69) | def new_file(self): method open_file (line 72) | def open_file(self): method undo (line 75) | def undo(self): method options (line 78) | def options(self): method about (line 81) | def about(self): FILE: Chapter 07/7.01/view.py class PianoTutor (line 11) | class PianoTutor: method __init__ (line 13) | def __init__(self, root): method build_mode_selector_frame (line 25) | def build_mode_selector_frame(self): method build_score_sheet_frame (line 44) | def build_score_sheet_frame(self): method build_controls_frame (line 52) | def build_controls_frame(self): method build_keyboard_frame (line 59) | def build_keyboard_frame(self): method build_scales_frame (line 68) | def build_scales_frame(self): method build_chords_frame (line 77) | def build_chords_frame(self): method build_progressions_frame (line 87) | def build_progressions_frame(self): method on_mode_changed (line 97) | def on_mode_changed(self, event): method show_scales_frame (line 106) | def show_scales_frame(self): method show_chords_frame (line 111) | def show_chords_frame(self): method show_progressions_frame (line 116) | def show_progressions_frame(self): function run (line 122) | def run(): FILE: Chapter 07/7.02/view.py class PianoTutor (line 25) | class PianoTutor: method __init__ (line 27) | def __init__(self, root): method build_mode_selector_frame (line 40) | def build_mode_selector_frame(self): method build_score_sheet_frame (line 59) | def build_score_sheet_frame(self): method build_controls_frame (line 67) | def build_controls_frame(self): method build_keyboard_frame (line 74) | def build_keyboard_frame(self): method build_scales_frame (line 87) | def build_scales_frame(self): method build_chords_frame (line 96) | def build_chords_frame(self): method build_progressions_frame (line 106) | def build_progressions_frame(self): method on_mode_changed (line 116) | def on_mode_changed(self, event): method show_scales_frame (line 125) | def show_scales_frame(self): method show_chords_frame (line 130) | def show_chords_frame(self): method show_progressions_frame (line 135) | def show_progressions_frame(self): method create_key (line 140) | def create_key(self, img, key_name, x_coordinate): method change_image_to_pressed (line 151) | def change_image_to_pressed(self, event): method change_image_to_unpressed (line 160) | def change_image_to_unpressed(self, event): method on_key_pressed (line 169) | def on_key_pressed(self, event): method on_key_released (line 173) | def on_key_released(self, event): function run (line 178) | def run(): FILE: Chapter 07/7.03/audio.py function play_note (line 5) | def play_note(note_name): function play_scale (line 9) | def play_scale(scale): function play_scale_in_new_thread (line 14) | def play_scale_in_new_thread(scale): function play_chord (line 17) | def play_chord(scale): function play_chord_in_new_thread (line 21) | def play_chord_in_new_thread(chord): FILE: Chapter 07/7.03/view.py class PianoTutor (line 21) | class PianoTutor: method __init__ (line 23) | def __init__(self, root): method build_mode_selector_frame (line 36) | def build_mode_selector_frame(self): method build_score_sheet_frame (line 55) | def build_score_sheet_frame(self): method build_controls_frame (line 63) | def build_controls_frame(self): method build_keyboard_frame (line 70) | def build_keyboard_frame(self): method build_scales_frame (line 83) | def build_scales_frame(self): method build_chords_frame (line 92) | def build_chords_frame(self): method build_progressions_frame (line 102) | def build_progressions_frame(self): method on_mode_changed (line 112) | def on_mode_changed(self, event): method show_scales_frame (line 121) | def show_scales_frame(self): method show_chords_frame (line 126) | def show_chords_frame(self): method show_progressions_frame (line 131) | def show_progressions_frame(self): method create_key (line 136) | def create_key(self, img, key_name, x_coordinate): method change_image_to_pressed (line 147) | def change_image_to_pressed(self, event): method change_image_to_unpressed (line 156) | def change_image_to_unpressed(self, event): method on_key_pressed (line 165) | def on_key_pressed(self, event): method on_key_released (line 169) | def on_key_released(self, event): function run (line 174) | def run(): FILE: Chapter 07/7.04/audio.py function play_note (line 5) | def play_note(note_name): function play_scale (line 9) | def play_scale(scale): function play_scale_in_new_thread (line 14) | def play_scale_in_new_thread(scale): function play_chord (line 17) | def play_chord(scale): function play_chord_in_new_thread (line 21) | def play_chord_in_new_thread(chord): FILE: Chapter 07/7.04/view.py class PianoTutor (line 29) | class PianoTutor: method __init__ (line 31) | def __init__(self, root): method load_json_files (line 47) | def load_json_files(self): method on_scale_changed (line 52) | def on_scale_changed(self, event): method on_scale_key_changed (line 56) | def on_scale_key_changed(self, event): method find_scale (line 60) | def find_scale(self, event=None): method highlight_list_of_keys (line 69) | def highlight_list_of_keys(self, key_names): method highlight_key (line 73) | def highlight_key(self, key_name): method remove_key_highlight (line 84) | def remove_key_highlight(self, key_name): method remove_all_key_highlights (line 95) | def remove_all_key_highlights(self): method build_mode_selector_frame (line 103) | def build_mode_selector_frame(self): method build_score_sheet_frame (line 122) | def build_score_sheet_frame(self): method build_controls_frame (line 130) | def build_controls_frame(self): method build_keyboard_frame (line 136) | def build_keyboard_frame(self): method build_scales_frame (line 149) | def build_scales_frame(self): method build_chords_frame (line 177) | def build_chords_frame(self): method build_progressions_frame (line 187) | def build_progressions_frame(self): method on_mode_changed (line 196) | def on_mode_changed(self, event): method show_scales_frame (line 205) | def show_scales_frame(self): method show_chords_frame (line 210) | def show_chords_frame(self): method show_progressions_frame (line 215) | def show_progressions_frame(self): method create_key (line 220) | def create_key(self, img, key_name, x_coordinate): method change_image_to_pressed (line 231) | def change_image_to_pressed(self, event): method change_image_to_unpressed (line 240) | def change_image_to_unpressed(self, event): method on_key_pressed (line 249) | def on_key_pressed(self, event): method on_key_released (line 253) | def on_key_released(self, event): function run (line 258) | def run(): FILE: Chapter 07/7.05/audio.py function play_note (line 5) | def play_note(note_name): function play_scale (line 9) | def play_scale(scale): function play_scale_in_new_thread (line 14) | def play_scale_in_new_thread(scale): function play_chord (line 17) | def play_chord(scale): function play_chord_in_new_thread (line 21) | def play_chord_in_new_thread(chord): FILE: Chapter 07/7.05/view.py class PianoTutor (line 31) | class PianoTutor: method __init__ (line 33) | def __init__(self, root): method load_json_files (line 49) | def load_json_files(self): method on_chord_changed (line 55) | def on_chord_changed(self, event): method on_chords_key_changed (line 59) | def on_chords_key_changed(self, event): method find_chord (line 63) | def find_chord(self, event=None): method on_scale_changed (line 74) | def on_scale_changed(self, event): method on_scale_key_changed (line 78) | def on_scale_key_changed(self, event): method find_scale (line 82) | def find_scale(self, event=None): method highlight_list_of_keys (line 91) | def highlight_list_of_keys(self, key_names): method highlight_key (line 95) | def highlight_key(self, key_name): method remove_key_highlight (line 106) | def remove_key_highlight(self, key_name): method remove_all_key_highlights (line 117) | def remove_all_key_highlights(self): method build_mode_selector_frame (line 125) | def build_mode_selector_frame(self): method build_score_sheet_frame (line 144) | def build_score_sheet_frame(self): method build_controls_frame (line 152) | def build_controls_frame(self): method build_keyboard_frame (line 158) | def build_keyboard_frame(self): method build_scales_frame (line 171) | def build_scales_frame(self): method build_chords_frame (line 199) | def build_chords_frame(self): method build_progressions_frame (line 226) | def build_progressions_frame(self): method on_mode_changed (line 235) | def on_mode_changed(self, event): method show_scales_frame (line 247) | def show_scales_frame(self): method show_chords_frame (line 252) | def show_chords_frame(self): method show_progressions_frame (line 257) | def show_progressions_frame(self): method create_key (line 262) | def create_key(self, img, key_name, x_coordinate): method change_image_to_pressed (line 273) | def change_image_to_pressed(self, event): method change_image_to_unpressed (line 282) | def change_image_to_unpressed(self, event): method on_key_pressed (line 291) | def on_key_pressed(self, event): method on_key_released (line 295) | def on_key_released(self, event): function run (line 300) | def run(): FILE: Chapter 07/7.06/audio.py function play_note (line 5) | def play_note(note_name): function play_scale (line 9) | def play_scale(scale): function play_scale_in_new_thread (line 14) | def play_scale_in_new_thread(scale): function play_chord (line 17) | def play_chord(scale): function play_chord_in_new_thread (line 21) | def play_chord_in_new_thread(chord): FILE: Chapter 07/7.06/view.py class PianoTutor (line 40) | class PianoTutor: method __init__ (line 42) | def __init__(self, root): method load_json_files (line 59) | def load_json_files(self): method on_progression_scale_changed (line 68) | def on_progression_scale_changed(self, event): method on_progression_key_changed (line 77) | def on_progression_key_changed(self, event): method on_progression_changed (line 80) | def on_progression_changed(self, event): method destroy_current_progression_buttons (line 83) | def destroy_current_progression_buttons(self): method show_progression_buttons (line 87) | def show_progression_buttons(self): method on_progression_button_clicked (line 104) | def on_progression_button_clicked(self, i): method on_chord_changed (line 121) | def on_chord_changed(self, event): method on_chords_key_changed (line 125) | def on_chords_key_changed(self, event): method find_chord (line 129) | def find_chord(self, event=None): method on_scale_changed (line 139) | def on_scale_changed(self, event): method on_scale_key_changed (line 143) | def on_scale_key_changed(self, event): method find_scale (line 147) | def find_scale(self, event=None): method highlight_list_of_keys (line 157) | def highlight_list_of_keys(self, key_names): method highlight_key (line 161) | def highlight_key(self, key_name): method remove_key_highlight (line 172) | def remove_key_highlight(self, key_name): method remove_all_key_highlights (line 183) | def remove_all_key_highlights(self): method build_mode_selector_frame (line 188) | def build_mode_selector_frame(self): method build_score_sheet_frame (line 201) | def build_score_sheet_frame(self): method build_controls_frame (line 210) | def build_controls_frame(self): method build_keyboard_frame (line 216) | def build_keyboard_frame(self): method build_scales_frame (line 229) | def build_scales_frame(self): method build_chords_frame (line 253) | def build_chords_frame(self): method build_progressions_frame (line 278) | def build_progressions_frame(self): method on_mode_changed (line 316) | def on_mode_changed(self, event): method show_scales_frame (line 329) | def show_scales_frame(self): method show_chords_frame (line 334) | def show_chords_frame(self): method show_progressions_frame (line 339) | def show_progressions_frame(self): method create_key (line 344) | def create_key(self, img, key_name, x_coordinate): method change_image_to_pressed (line 355) | def change_image_to_pressed(self, event): method change_image_to_unpressed (line 364) | def change_image_to_unpressed(self, event): method on_key_pressed (line 373) | def on_key_pressed(self, event): method on_key_released (line 377) | def on_key_released(self, event): function run (line 381) | def run(): FILE: Chapter 07/7.07/audio.py function play_note (line 5) | def play_note(note_name): function play_scale (line 9) | def play_scale(scale): function play_scale_in_new_thread (line 14) | def play_scale_in_new_thread(scale): function play_chord (line 17) | def play_chord(scale): function play_chord_in_new_thread (line 21) | def play_chord_in_new_thread(chord): FILE: Chapter 07/7.07/score_maker.py class ScoreMaker (line 4) | class ScoreMaker: method __init__ (line 9) | def __init__(self, container): method _clean_score_sheet (line 19) | def _clean_score_sheet(self): method _create_treble_staff (line 24) | def _create_treble_staff(self): method draw_chord (line 29) | def draw_chord(self, chord): method _draw_five_lines (line 36) | def _draw_five_lines(self): method draw_notes (line 45) | def draw_notes(self, notes): method _draw_single_note (line 51) | def _draw_single_note(self, note, is_in_chord=False): FILE: Chapter 07/7.07/view.py class PianoTutor (line 28) | class PianoTutor: method __init__ (line 30) | def __init__(self, root): method load_json_files (line 47) | def load_json_files(self): method on_progression_scale_changed (line 56) | def on_progression_scale_changed(self, event): method on_progression_key_changed (line 65) | def on_progression_key_changed(self, event): method on_progression_changed (line 68) | def on_progression_changed(self, event): method destroy_current_progression_buttons (line 71) | def destroy_current_progression_buttons(self): method show_progression_buttons (line 75) | def show_progression_buttons(self): method on_progression_button_clicked (line 92) | def on_progression_button_clicked(self, i): method on_chord_changed (line 110) | def on_chord_changed(self, event): method on_chords_key_changed (line 114) | def on_chords_key_changed(self, event): method find_chord (line 118) | def find_chord(self, event=None): method on_scale_changed (line 129) | def on_scale_changed(self, event): method on_scale_key_changed (line 133) | def on_scale_key_changed(self, event): method find_scale (line 137) | def find_scale(self, event=None): method highlight_list_of_keys (line 148) | def highlight_list_of_keys(self, key_names): method highlight_key (line 152) | def highlight_key(self, key_name): method remove_key_highlight (line 163) | def remove_key_highlight(self, key_name): method remove_all_key_highlights (line 174) | def remove_all_key_highlights(self): method build_mode_selector_frame (line 179) | def build_mode_selector_frame(self): method build_score_sheet_frame (line 192) | def build_score_sheet_frame(self): method build_controls_frame (line 201) | def build_controls_frame(self): method build_keyboard_frame (line 207) | def build_keyboard_frame(self): method build_scales_frame (line 220) | def build_scales_frame(self): method build_chords_frame (line 244) | def build_chords_frame(self): method build_progressions_frame (line 269) | def build_progressions_frame(self): method on_mode_changed (line 307) | def on_mode_changed(self, event): method show_scales_frame (line 320) | def show_scales_frame(self): method show_chords_frame (line 325) | def show_chords_frame(self): method show_progressions_frame (line 330) | def show_progressions_frame(self): method create_key (line 335) | def create_key(self, img, key_name, x_coordinate): method change_image_to_pressed (line 346) | def change_image_to_pressed(self, event): method change_image_to_unpressed (line 355) | def change_image_to_unpressed(self, event): method on_key_pressed (line 364) | def on_key_pressed(self, event): method on_key_released (line 368) | def on_key_released(self, event): function run (line 372) | def run(): FILE: Chapter 07/handle_widget_resize.py function on_label_resized (line 19) | def on_label_resized(event): FILE: Chapter 08/8.01_screensaver.py class RandomBall (line 12) | class RandomBall: method __init__ (line 14) | def __init__(self, canvas): method create_ball (line 20) | def create_ball(self): method generate_random_attributes (line 24) | def generate_random_attributes(self): method generate_random_color (line 32) | def generate_random_color(self): method create_oval (line 36) | def create_oval(self): method move_ball (line 44) | def move_ball(self): method check_screen_bounds (line 50) | def check_screen_bounds(self): class ScreenSaver (line 58) | class ScreenSaver: method __init__ (line 62) | def __init__(self, number_of_balls): method create_screensaver (line 72) | def create_screensaver(self): method create_canvas (line 77) | def create_canvas(self): method add_balls_to_canvas (line 81) | def add_balls_to_canvas(self): method quit_on_interaction (line 85) | def quit_on_interaction(self): method animate_balls (line 89) | def animate_balls(self): method quit_screensaver (line 94) | def quit_screensaver(self, event): FILE: Chapter 08/8.02_pie_chart.py function angle (line 14) | def angle(n): FILE: Chapter 08/8.04_scatter_plot.py function motion (line 13) | def motion(event): FILE: Chapter 08/8.06_polar_plot.py function polar_to_cartesian (line 16) | def polar_to_cartesian(r, theta, scaling_factor, x_center, y_center): FILE: Chapter 08/8.07_gravity_simulation.py class Planet (line 19) | class Planet: method __init__ (line 23) | def __init__(self, name, mass, distance, radius, color, canvas): method distance_scaler (line 36) | def distance_scaler(self, value): method radius_scaler (line 41) | def radius_scaler(self, value): method draw_initial_planet (line 45) | def draw_initial_planet(self): method gravitational_force (line 60) | def gravitational_force(self): method angular_position (line 64) | def angular_position(self, t): method coordinates (line 68) | def coordinates(self, theta): method update_location (line 74) | def update_location(self, t): class Moon (line 83) | class Moon(Planet): method __init__ (line 86) | def __init__(self, name, mass, distance, radius, color, canvas, earth): method gravitational_force (line 94) | def gravitational_force(self): method coordinates (line 98) | def coordinates(self, t): method update_location (line 106) | def update_location(self, t): function update_bodies_position (line 126) | def update_bodies_position(): FILE: Chapter 08/8.08_Mandelbrot.py function mandelbrot_set_check (line 19) | def mandelbrot_set_check(real, imaginary): function get_color (line 32) | def get_color(num_iterations): function map_pixels_to_real (line 55) | def map_pixels_to_real(x): function map_pixels_to_imaginary (line 60) | def map_pixels_to_imaginary(y): FILE: Chapter 08/8.09_vornoi_diagram.py function create_voronoi_diagram (line 17) | def create_voronoi_diagram(canvas, w, h, number_of_attractor_points): FILE: Chapter 08/8.10_spring_pendulum.py function differential_functions (line 21) | def differential_functions(state_vector, time): function update_graph (line 51) | def update_graph(): FILE: Chapter 08/8.11_chaos_game.py function midway_point (line 25) | def midway_point(p1, p2): function random_point_inside_triangle (line 31) | def random_point_inside_triangle(v1, v2, v3): function get_next_point (line 44) | def get_next_point(): function update (line 57) | def update(): FILE: Chapter 08/8.12_phyllotaxis.py function update (line 41) | def update(): FILE: Chapter 08/8.13_3D_graphics.py class MatrixHelpers (line 11) | class MatrixHelpers: method transpose_matrix (line 12) | def transpose_matrix(self, matrix): method translate_vector (line 15) | def translate_vector(self, x, y, dx, dy): method matrix_multiply (line 18) | def matrix_multiply(self, matrix_a, matrix_b): method rotate_along_x (line 25) | def rotate_along_x(self, x, shape): method rotate_along_y (line 29) | def rotate_along_y(self, y, shape): method rotate_along_z (line 33) | def rotate_along_z(self, z, shape): class Cube (line 38) | class Cube(MatrixHelpers): method __init__ (line 45) | def __init__(self, root): method init_data (line 54) | def init_data(self): method create_canvas (line 60) | def create_canvas(self): method bind_mouse_buttons (line 65) | def bind_mouse_buttons(self): method draw_cube (line 69) | def draw_cube(self): method continually_rotate (line 82) | def continually_rotate(self): method on_mouse_clicked (line 89) | def on_mouse_clicked(self, event): method on_mouse_motion (line 93) | def on_mouse_motion(self, event): function main (line 102) | def main(): FILE: Chapter 09/9.01_race_condition.py class RaceConditionDemo (line 10) | class RaceConditionDemo: method __init__ (line 12) | def __init__(self): method increment (line 17) | def increment(self): method decrement (line 21) | def decrement(self): method demo_of_race_condition (line 25) | def demo_of_race_condition(self): FILE: Chapter 09/9.02_lock_demo.py class LockDemo (line 10) | class LockDemo(): method __init__ (line 12) | def __init__(self): method increment (line 18) | def increment(self): method decrement (line 24) | def decrement(self): method demo_of_lock_to_avoid_race_condition (line 30) | def demo_of_lock_to_avoid_race_condition(self): FILE: Chapter 09/9.03_threading_with queue.py class Consumer (line 11) | class Consumer(threading.Thread): method __init__ (line 13) | def __init__(self, queue): method run (line 17) | def run(self): method do_task (line 22) | def do_task(self, task): function producer (line 27) | def producer(tasks): FILE: Chapter 09/9.04_game_of_ snake.py class View (line 13) | class View(Tk): method __init__ (line 15) | def __init__(self, queue): method create_gui (line 21) | def create_gui(self): method queue_handler (line 31) | def queue_handler(self): method game_over (line 49) | def game_over(self): class Food (line 55) | class Food: method __init__ (line 57) | def __init__(self, queue): method generate_food (line 61) | def generate_food(self): class Snake (line 69) | class Snake(threading.Thread): method __init__ (line 72) | def __init__(self, queue): method run (line 83) | def run(self): method on_keypress (line 89) | def on_keypress(self, e): method move (line 92) | def move(self): method calculate_new_coordinates (line 103) | def calculate_new_coordinates(self): method check_game_over (line 115) | def check_game_over(self, snake_point): function main (line 122) | def main(): FILE: Chapter 09/9.06_weather_ reporter.py class WeatherReporter (line 16) | class WeatherReporter: method __init__ (line 21) | def __init__(self, root): method create_top_frame (line 26) | def create_top_frame(self): method create_weather_display_frame (line 35) | def create_weather_display_frame(self): method on_show_weather_button_clicked (line 41) | def on_show_weather_button_clicked(self): method get_weather_data (line 49) | def get_weather_data(self): method clear_canvas (line 53) | def clear_canvas(self): method format_data (line 57) | def format_data(self): method kelvin_to_celsius (line 78) | def kelvin_to_celsius(self, k): method kelvin_to_fahrenheit (line 81) | def kelvin_to_fahrenheit(self, k): method str2num (line 84) | def str2num(self, string, precision): method display_data (line 87) | def display_data(self): method time_stamp_to_time (line 137) | def time_stamp_to_time(self, ts): method time_stamp_to_data (line 140) | def time_stamp_to_data(self, ts): method get_data_from_url (line 143) | def get_data_from_url(self): method json_to_dict (line 159) | def json_to_dict(self, json_data): function main (line 176) | def main(): FILE: Chapter 09/9.08_port_scanner.py class PortScanner (line 12) | class PortScanner(): method __init__ (line 19) | def __init__(self, root): method on_scan_button_clicked (line 23) | def on_scan_button_clicked(self): method empty_console (line 27) | def empty_console(self): method scan_in_a_new_thread (line 32) | def scan_in_a_new_thread(self): method start_scan (line 40) | def start_scan(self, url, start_port, end_port): method is_port_open (line 49) | def is_port_open(self, url, port): method on_stop_button_clicked (line 59) | def on_stop_button_clicked(self): method output_to_console (line 62) | def output_to_console(self, new_text): method create_gui (line 68) | def create_gui(self): FILE: Chapter 09/9.09_chat_server.py class ChatServer (line 10) | class ChatServer: method __init__ (line 16) | def __init__(self): method create_listening_server (line 19) | def create_listening_server(self): method receive_messages (line 29) | def receive_messages(self, so): method broadcast_to_all_clients (line 38) | def broadcast_to_all_clients(self, senders_socket): method receive_messages_in_a_new_thread (line 44) | def receive_messages_in_a_new_thread(self): method add_to_clients_list (line 52) | def add_to_clients_list(self, client): FILE: Chapter 09/9.10_chat_client.py class ChatClient (line 16) | class ChatClient: method __init__ (line 21) | def __init__(self, root): method initialize_socket (line 27) | def initialize_socket(self): method initialize_gui (line 33) | def initialize_gui(self): method listen_for_incoming_messages_in_a_thread (line 38) | def listen_for_incoming_messages_in_a_thread(self): method recieve_message_from_server (line 43) | def recieve_message_from_server(self, so): method display_name_section (line 52) | def display_name_section(self): method display_chat_transcript (line 59) | def display_chat_transcript(self): method display_chat_entrybox (line 71) | def display_chat_entrybox(self): method on_enter_key_pressed (line 83) | def on_enter_key_pressed(self, event): method clear_text (line 91) | def clear_text(self): method send_chat (line 94) | def send_chat(self): FILE: Chapter 09/9.11_phonebook.py class PhoneBook (line 12) | class PhoneBook: method __init__ (line 16) | def __init__(self, root): method execute_db_query (line 20) | def execute_db_query(self, query, parameters=()): method create_gui (line 27) | def create_gui(self): method create_left_icon (line 35) | def create_left_icon(self): method create_label_frame (line 41) | def create_label_frame(self): method create_message_area (line 54) | def create_message_area(self): method create_tree_view (line 58) | def create_tree_view(self): method create_bottom_buttons (line 64) | def create_bottom_buttons(self): method on_add_record_button_clicked (line 70) | def on_add_record_button_clicked(self): method on_delete_selected_button_clicked (line 73) | def on_delete_selected_button_clicked(self): method on_modify_selected_button_clicked (line 82) | def on_modify_selected_button_clicked(self): method add_new_record (line 91) | def add_new_record(self): method new_records_validated (line 104) | def new_records_validated(self): method view_records (line 107) | def view_records(self): method delete_record (line 116) | def delete_record(self): method open_modify_window (line 124) | def open_modify_window(self): method update_record (line 142) | def update_record(self, newphone, old_phone_number, name): FILE: Chapter 09/9.12_async_demo.py function asyncio_thread (line 7) | def asyncio_thread(event_loop): function execute_tasks_in_a_new_thread (line 12) | def execute_tasks_in_a_new_thread(event_loop): function simulate_fetch_one_url (line 17) | async def simulate_fetch_one_url(url): function simulate_fetch_all_urls (line 24) | async def simulate_fetch_all_urls(): function check_if_button_freezed (line 32) | def check_if_button_freezed(): function main (line 38) | def main(event_loop): FILE: Chapter 09/9.14_read_from_serial_port.py function read_serial_data (line 18) | def read_serial_data(): FILE: Chapter 10/10.01_trace_variable.py function trace_when_my_variable_written (line 13) | def trace_when_my_variable_written(var, indx, mode): FILE: Chapter 10/10.02_widget_traversal.py class TraversalDemo (line 10) | class TraversalDemo: method __init__ (line 12) | def __init__(self, root): FILE: Chapter 10/10.03_validation_mode_demo.py class ValidateModeDemo (line 10) | class ValidateModeDemo(): method __init__ (line 12) | def __init__(self): method validate_data (line 45) | def validate_data(self, v): FILE: Chapter 10/10.04_percent _substitutions _demo.py class PercentSubstitutionsDemo (line 11) | class PercentSubstitutionsDemo(): method __init__ (line 13) | def __init__(self): method validate (line 21) | def validate(self, d, i, P, s, S, v, V, W): FILE: Chapter 10/10.05_key_validation.py class KeyValidationDemo (line 10) | class KeyValidationDemo(): method __init__ (line 12) | def __init__(self): method validate_data (line 24) | def validate_data(self, S): method invalid_name (line 29) | def invalid_name(self, S): FILE: Chapter 10/10.06_focus_out _validation.py class FocusOutValidationDemo (line 10) | class FocusOutValidationDemo(): method __init__ (line 12) | def __init__(self): method validate_email (line 25) | def validate_email(self, P): method invalid_email (line 30) | def invalid_email(self, P): FILE: Chapter 10/10.07_formatting_entry_widget_to_display_date.py class FormatEntryWidgetDemo (line 9) | class FormatEntryWidgetDemo: method __init__ (line 11) | def __init__(self, root): method format_date_entry_widget (line 20) | def format_date_entry_widget(self, event): FILE: Chapter 10/10.10_font_selector.py class FontSelectorDemo (line 10) | class FontSelectorDemo(): method __init__ (line 12) | def __init__(self): method gui_creator (line 23) | def gui_creator(self): method on_value_change (line 58) | def on_value_change(self, event=None):