PacktLib: Tkinter GUI Application Development Hotshot

Tkinter GUI Application Development HOTSHOT

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Meet Tkinter

Mission Briefing

The root window – your drawing board

Widgets – building blocks for your GUI program

Getting to know core Tkinter widgets

Geometry management

Events and callbacks – adding life to programs

Doing it in style

Mission Accomplished

A Hotshot Challenge

Making a Text Editor like Notepad

Mission Briefing

Setting up the widgets

Leveraging the power of built-in Text widget options

Indexing and tagging

Working with forms and dialogs

Working with message boxes

The icon toolbar and View menu functions

Event handling and the context menu

Mission Accomplished

A Hotshot Challenge

Programmable Drum Machine

Mission Briefing

Setting up the GUI in OOP

Completing the pattern editor

Loading drum samples

Playing the drum machine

Tkinter and threading

More beat patterns

Object persistence

ttk-themed widgets

Mission Accomplished

A Hotshot Challenge

Game of Chess

Mission Briefing

Structuring our program

Structuring chessboard-and-pieces-related data

Adding pieces on the board

Enforcing rules for pieces' movement

The chessboard logic

Making the chess functional

Adding menu and an info frame

Mission Accomplished

A Hotshot Challenge

Audio Player

Mission Briefing

Getting the audio to play

Adding a playlist

Adding more controls to the player

Adding the top display console

Looping over tracks

Adding the contextual menu

Adding a tooltip and finalizing our player

Mission Accomplished

A Hotshot Challenge

Drawing an Application

Mission Briefing

Developing a bare bone GUI framework

Structuring our drawing program

Handling mouse events

Drawing items on the canvas

Setting the options toolbar at the top

Adding some more features

Mission Accomplished

A Hotshot Challenge

Some Fun Project Ideas

Mission Briefing

Building a screen saver

Building a Snake game

Creating a Weather Reporter

Creating a phonebook application

Graphing with Tkinter

Mission Accomplished

A Hotshot Challenge

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Miscellaneous Tips

Quick Reference Sheets

Quick Reference Sheets

Quick Reference Sheets

Quick Reference Sheets

Quick Reference Sheets

Quick Reference Sheets

Quick Reference Sheets

Quick Reference Sheets

Quick Reference Sheets

Quick Reference Sheets

Quick Reference Sheets

Quick Reference Sheets

Quick Reference Sheets

Quick Reference Sheets

Index