Cargando…

Tkinter GUI Programming by Example : Learn to create modern GUIs using Tkinter by building real-world projects in Python.

When developing GUI-rich applications, the most important choice is which programming language(s) and GUI framework to use; in this case, Python along with Tkinter prove to be a great combination. This book will get you up and running with Tkinter while letting you create some fun and interactive pr...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Love, David
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2018.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Meet Tkinter; Installation; How will the code be structured?; Geometry managers; pack; grid; place; To pack or to grid?; Getting going; Adding interactivity; Using variables; Our first try; Creating Tkinter-compatible variables; Using and updating; Fixing our application; Showing messages; Showing information with showinfo; Showing warnings or errors; Getting feedback from the user; Getting text input; Summary; Chapter 2: Back to the Command Line
  • Basic Blackjack.
  • Python's class systemInstances; Inheritance; Blackjack's classes; The Card class; The Deck class; The Hand class; The Game class and main loop; Command line versus GUI; Interactivity; Familiarity; Ease of use; Size and portability; Summary; Chapter 3: Jack is Back in Style
  • the Blackjack GUI; Moving from the command line to a graphical interface; The Canvas widget; Creating a graphical blackjack game; Card, Deck, and Hand; The GameState class; The GameScreen class; Playing our game; Summary; Chapter 4: The Finishing Touches
  • Sound and Animation; Python's module system.
  • The blackjack packagesThe casino package; The casino_sounds package; Setting up a virtual environment; Creating the package; The blackjack.py file; Initializing the GameWindow class; The GameScreen class; The GameState class; Choosing to hit; Choosing to stick; Running out of money; Finishing off; Summary; Chapter 5: Creating a Highly Customizable Python Editor; The ttk submodule; Styling a tk widget; Styling a ttk widget; Ttk style inheritance; Beginning our text editor; Tkinter's event system; Binding an event; Overwriting default events; Generating events; Events in our text editor.
  • A second top-level windowSummary; Chapter 6: Color Me Impressed!
  • Adding Syntax Highlighting; Tkinter's indexing system; Getting the cursor's position; Named indexes; Special strings; Line endings; Horizontal movement; Vertical movement; Line beginning and end; Word beginning and end; Expanding our demo; Using tags; Searching text; Adding syntax highlighting to our text editor; The Highlighter class; Using our Highlighter class; The LineNumbers class; Using our LineNumbers class; Integrating our FindWindow class; Using our FindWindow class; Summary.
  • Chapter 7: Not Just for Restaurants
  • All About MenusThe Menu widget; A menu bar; A floating menu; Adding a menu bar to our text editor; Adding a context menu to our text editor; Handling files; Changing the syntax highlighting; Changing the editor's font; The Listbox widget; The Spinbox widget; Saving the user's choices; Changing the editor's color scheme; Summary; Chapter 8: Talk Python to Me
  • a Chat Application; Creating a scrollable frame; Creating our FriendsList class; Creating our ChatWindow class; Creating our SmilieSelect class; Summary.
  • Chapter 9: Connecting
  • Getting Our Chat Client Online.