Limit search to available items
Book Cover
E-book
Author Moore, Alan D

Title Mastering GUI Programming with Python : Develop Impressive Cross-Platform GUI Applications with Pyqt
Published Birmingham : Packt Publishing, 2019
©2019

Copies

Description 1 online resource (526 pages)
Contents Cover; Title Page; Copyright and Credits; Dedication; About Packt; Contributors; Table of Contents; Preface; Section 1: Deep Dive into PyQt; Chapter 1: Getting Started with PyQt; Technical requirements; Installing Qt Designer; Introducing Qt and PyQt; PyQt5; Working with Qt and PyQt; Understanding Qt's documentation; Core Qt modules; Creating Hello Qt -- our first window; Creating a PyQt application template; Introducing Qt Designer; Using Qt Designer; Summary; Questions; Further reading; Chapter 2: Building Forms with QtWidgets; Technical requirements; Creating basic QtWidgets widgets
QWidgetQWidget as a top-level window; QLabel; QLineEdit; QPushButton and other buttons; QComboBox; QSpinBox; QDateTimeEdit; QTextEdit; Placing and arranging widgets; Layout classes; QHBoxLayout and QVBoxLayout; QGridLayout; QFormLayout; Controlling widget size; Container widgets; QTabWidget; QGroupBox; Validating widgets; Creating an IPv4 entry widget; Using QSpinBox for discrete values; Building a calendar application GUI; Building the GUI in code; Creating the widgets; Building the layout; Building the GUI in Qt Designer; First steps; Building the right panel; Building the event form
Previewing the formSummary; Questions; Further reading; Chapter 3: Handling Events with Signals and Slots; Technical requirements; Signal and slot basics; Restrictions on signal and slot connections; Creating custom signals and slots; Sharing data between windows using custom signals; Overloading signals and slots; Automating our calendar form; Using our hand-coded form; Creating and connecting our callback methods; The populate _list () method; The populate _form () method; The save _event () method; The delete _event () method; The check _delete _btn () method
Building our new category pop-up formUsing Qt Designer .ui files; Connecting slots in Qt Designer; Converting .ui files to Python; Automatic signal and slot connections; Using .ui files without conversion; Summary; Questions; Further reading; Chapter 4: Building Applications with QMainWindow; Technical requirements; The QMainWindow class; Setting a central widget; Adding a status bar; Creating an application menu; Menus on macOS; Adding toolbars; Adding dock widgets; Other QMainWindow features; Standard dialog boxes; QMessageBox; QFileDialog; QFontDialog; Other dialog boxes
Saving settings with QSettingsLimitations of QSettings; Summary; Questions; Further reading; Chapter 5: Creating Data Interfaces with Model-View Classes; Technical requirements; Understanding model-view design; Models and views in PyQt; Building a CSV editor; Creating a table model; Implementing read capabilities; Adding headers and sorting; Implementing write capabilities; Using the model in a view; Summary; Questions; Further reading; Chapter 6: Styling Qt Applications; Technical requirements; Using fonts, images, and icons; Setting a font; Dealing with missing fonts; Adding images; Using icons
Summary The book will aim to tackle this problem by providing a comprehensive walkthrough of GUI development with PyQt5. Beginning with a brief introduction to PyQt5, the book will take you on a journey towards building stunning GUIs. Finally, you will learn various optimization techniques to improve your application's performance and functionality
Notes Online resource; title from digital title page (viewed on May 27, 2020)
Subject Graphical user interfaces (Computer systems) -- Programming
Python (Computer program language)
Python (Computer program language)
Form Electronic book
ISBN 1789615828
9781789615821