Skip to Content
Tkinter GUI Application Development Blueprints, Second Edition - Second Edition
book

Tkinter GUI Application Development Blueprints, Second Edition - Second Edition

by Bhaskar Chaudhary
March 2018
Beginner to intermediate
422 pages
10h 33m
English
Packt Publishing
Content preview from Tkinter GUI Application Development Blueprints, Second Edition - Second Edition

Putting up the skeleton structure

To start, we build a class PianoTutor (7.01/view.py), the __init__ method of which is defined as follows:

class PianoTutor:    def __init__(self, root):    self.root = root    self.root.title('Piano Tutor')    self.build_mode_selector_frame()    self.build_score_sheet_frame()    self.build_controls_frame()    self.build_keyboard_frame()    self.build_chords_frame()    self.build_progressions_frame()    self.build_scales_frame()

In the preceding code, we are simply defining method calls to build multiple Frame widgets of predefined heights. We won't elaborate much upon the preceding code as we wrote similar code in all of the previous chapters.

Let's look at one example of frame creation. All other frames follow a similar pattern (

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Tkinter GUI Application Development Blueprints

Tkinter GUI Application Development Blueprints

Bhaskar Chaudhary

Publisher Resources

ISBN: 9781788837460Supplemental Content