Cargando…

Python GUI programming : a complete reference guide : develop responsive and powerful GUI applications with PyQt and Tkinter /

This Learning Path guides you through every concept necessary to create fully functional GUI applications using PyQt and Tkinter with only a few lines of code. You'll learn to design and build GUIs that are functional, appealing, and user-friendly using the powerful combination of Python and it...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autores principales: Moore, Alan, 1961- (Autor), Harwani, B. M. (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, Limited, 2019.
Temas:
Acceso en línea:Texto completo
Texto completo
Tabla de Contenidos:
  • Cover; FM; Copyright; About Packt; Contributors; Table of Contents; Preface; Chapter 1: Introduction to Tkinter; Introducing Tkinter and Tk; Choosing Tkinter; Installing Tkinter; Installing Python 3 on Windows; Installing Python 3 on macOS; Installing Python 3 and Tkinter on Linux; Introducing IDLE; Using the shell mode of IDLE; Using the editor mode of IDLE; IDLE as a Tkinter example; Creating a Tkinter Hello World; Creating a better Hello World Tkinter; Summary; Chapter 2: Designing GUI Applications with Tkinter; A problem at ABQ AgriLabs; Assessing the problem
  • Gathering information about the problemWhat you found out; Information about the data being collected; Information about the users of the application; Documenting specification requirements; Contents of a simple specification; Writing the ABQ data entry program specification; Designing the application; Exploring Tkinter input widgets; Grouping our fields; Laying out the form; Laying out the application; Summary; Chapter 3: Creating Basic Forms with Tkinter and ttk Widgets; Evaluating our technology choices; Choosing a technology; Exploring Tkinter widgets; The Entry widget; The Spinbox widget
  • The Combobox widgetThe Checkbutton widget; The Text widget; The Button widget; The LabelFrame widget; Implementing the application; Saving some time with a LabelInput class; Building the form; Adding LabelFrame and other widgets; Retrieving data from our form; Resetting our form; Building our application class; Saving to CSV; Finishing and testing; Summary; Chapter 4: Reducing User Error with Validation and Automation; Validating user input; Strategies to prevent data errors; Validation in Tkinter; Creating a DateEntry widget; Implementing validated widgets in our form
  • Exploiting the power of multiple inheritanceA validating mixin class; Building our widgets; Requiring data; A Date widget; A better Combobox widget; A range-limited Spinbox widget; Dynamically adjusting the Spinbox range; Updating our form; Displaying errors; Preventing form submission on error; Automating input; Inserting a date; Automating Lab, Time, and Technician; Summary; Chapter 5: Planning for the Expansion of Our Application; Separating concerns; The MVC pattern; What is a model?; What is a view?; What is a controller?; Why complicate our design?; Structuring our application directory
  • Basic directory structureThe abq_data_entry.py file; The README.rst file; ReStructuredText; Populating the docs folder; Making a Python package; Splitting our application into multiple files; Creating the models module; Moving the widgets; Moving the views; Removing redundancy in our view logic; Creating the application file; Running the application; Using version control software; A super-quick guide to using Git; Initializing and configuring a Git repository; Adding and committing code; Viewing and using our commits; Summary; Chapter 6: Creating Menus with Menu and Tkinter Dialogs