0%

Book Description

Newbies to GUI programming in Python will find this book indispensable. As well as the basic concepts, you’ll be taught PySide in detail through practical instructions and create your own applications with customized widgets and dialogs.

  • Designed for beginners to help them get started with GUI application development
  • Develop your own applications by creating customized widgets and dialogs
  • Written in a simple and elegant structure to help you easily understand how to program various GUI components

In Detail

Elegantly built GUI applications are always a massive hit among users. PySide is an open source software project that provides Python bindings for the Qt cross-platform UI framework. Combining the power of Qt and Python, PySide provides easy access to the Qt framework for Python developers and also acts as an excellent rapid application development platform available on all major operating systems.

This book aims to help you develop GUI applications easily using PySide. Python is easy to learn and use and its programs are relatively shorter than those written in other programming languages like C++ or Java. This book will introduce you to user interface programming in Python, allowing you to develop real-time applications in a shorter amount of time.

This book will take you through everything you need to know to develop UI applications. You will learn about installing/building PySide in various major operating systems as well as the basics of GUI programming. The book will then move on to discuss event management, signals and slots, and the widgets and dialogs available with PySide. Database interaction and manipulation is also covered.

In a nutshell, this book is great for learning how to program applications with GUI and for mastering how to develop your own applications and how to run them across platforms.

Table of Contents

  1. PySide GUI Application Development
    1. Table of Contents
    2. PySide GUI Application Development
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, e-books, discount offers, and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Getting Started with PySide
      1. About Python
      2. What is PySide?
      3. Hello GUI
      4. Setting up PySide
        1. Installation
          1. Windows
          2. Mac OS X
          3. Linux
      5. Building PySide
        1. Windows
        2. Linux
          1. Prerequisites
          2. Building PySide
        3. Mac OS X
      6. Importing PySide objects
      7. My first PySide application
      8. Exception handling as a practice
      9. Summary
    9. 2. Entering through Windows
      1. Creating a simple window
      2. Creating the application icon
      3. Showing a tooltip
      4. Adding a button
      5. Centering the Window on the screen
      6. About box
      7. Timers
      8. Windows style
      9. Summary
    10. 3. Main Windows and Layout Management
      1. Creating the main window
      2. Status bar
      3. Menu bar
      4. The central widget
      5. Adding a menu bar
      6. Adding menus
      7. Tool bar
      8. Layout management
        1. Absolute positioning
        2. Layout containers
        3. QBoxLayout
          1. QHBoxLayout
          2. QVBoxLayout
        4. QGridLayout
        5. QFormLayout
        6. QStackedLayout
      9. SDI and MDI
      10. A simple text editor
      11. Summary
    11. 4. Events and Signals
      1. Event management
        1. Event loop
        2. Event processing
          1. Reimplementing event handlers
          2. Installing event filters
          3. Reimplementing the notify() function
      2. Signals and slots
      3. Drag-and-drop
      4. Drawing
      5. Graphics and effects
      6. Summary
    12. 5. Dialogs and Widgets
      1. Built-in dialogs
        1. QFileDialog
        2. QInputDialog
        3. QColorDialog
        4. QPrintDialog
      2. Custom dialogs
      3. Widgets at a glance
        1. Basic widgets
        2. Advanced widgets
        3. Organizer widgets
      4. Custom widgets
      5. Implementation of MDI
      6. Summary
    13. 6. Handling Databases
      1. Connecting to the database
      2. Executing SQL queries
        1. Executing a query
        2. Inserting, updating, and deleting records
        3. Navigating records
        4. Transactions
      3. Table and form views
        1. QSqlQueryModel
        2. QSqlTableModel
        3. QSqlRelationalTableModel
      4. Table view
      5. Form view
      6. Viewing relations in table views
      7. Summary
    14. A. Resources
      1. The PySide documentation wiki page
      2. API reference manuals
      3. Tutorials
      4. Community support
    15. Index
3.137.212.124