wxPython Application Development Cookbook

Over 80 step-by-step recipes to get you up to speed with building your own wxPython applications
Preview in Mapt

wxPython Application Development Cookbook

Cody Precord

1 customer reviews
Over 80 step-by-step recipes to get you up to speed with building your own wxPython applications

Quick links: > What will you learn?> Table of content> Product reviews

eBook
$5.00
RRP $35.99
Save 86%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$5.00
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook

Frequently bought together


wxPython Application Development Cookbook Book Cover
wxPython Application Development Cookbook
$ 35.99
$ 5.00
Python GUI Programming Cookbook - Second Edition Book Cover
Python GUI Programming Cookbook - Second Edition
$ 39.99
$ 5.00
Buy 2 for $10.00
Save $65.98
Add to Cart

Book Details

ISBN 139781785287732
Paperback264 pages

Book Description

wxPython is a GUI toolkit for the Python programming language built on top of the cross-platform wxWidgets GUI libraries. wxPython provides a powerful set of tools that allow you to quickly and efficiently building applications that can run on a variety of different platforms. Since wxWidgets provides a wrapper around each platform’s native GUI toolkit, the applications built with wxPython will have a native look and feel wherever they are deployed.

This book will provide you with the skills to build highly functional and native looking user interfaces for Python applications on multiple operating system environments. By working through the recipes, you will gain insights into and exposure to creating applications using wxPython. With a wide range of topics covered in the book, there are recipes to get the most basic of beginners started in GUI programming as well as tips to help experienced users get more out of their applications. The recipes will take you from the most basic application constructs all the way through to the deployment of complete applications.

Table of Contents

Chapter 1: wxPython Starting Points
Introduction
Creating an application object
Adding the main frame
Using bitmaps
Binding to events
Understanding the hierarchy of the UI
Controlling the propagation of events
Accessing the clipboard
Supporting drag and drop
Handling AppleEvents
Chapter 2: Common User Controls
Introduction
Starting with the easy button
Pushing all the buttons
Offering options with CheckBoxes
Using TextCtrl
Processing key events
Picking dates with DatePickerCtrl
Exploring menus and shortcuts
Displaying a context menu
Working with ToolBars
Managing UI states
Chapter 3: UI Layout and Organization
Introduction
Laying out controls with Sizers
Controlling layout behavior
Grouping controls with a StaticBox control
Creating an automatic wrapping layout
Using the standard dialog button sizer
Simplifying the panel layout
Making dialog layout easy
Building XML resource-based layouts
Extending XRC for custom controls
Advancing your UI with AuiManager
Chapter 4: Containers and Advanced Controls
Introduction
Adding tabs with the Notebook control
Enhancing ComboBox with bitmaps
Configuring properties
Taking control with FlatNotebook
Styling text in StyledTextCtrl
Annotating StyledTextCtrl
Displaying hierarchical data with TreeCtrl
Building a system tray application
Surfing the Web in your app
Chapter 5: Data Displays and Grids
Introduction
Displaying lists of data
Editing data lists
Implementing a data source
Getting started with the data grid
Displaying dynamic data
Modeling your data
Displaying your data model
Chapter 6: Ways to Notify and Alert
Introduction
Showing MessageBox
Using InfoBar
Providing extra tips on usage
Displaying transient notifications
Making a splash at startup
Giving busy feedback
Showing information about your app
Chapter 7: Requesting and Retrieving Information
Introduction
Selecting files with FileDialog
Searching text with FindReplaceDialog
Filtering through choices
Retrieving multiple selections
Using Print dialogs
Guiding selections with Wizard
Chapter 8: User Interface Primitives
Introduction
Painting in your UI
Drawing basic shapes
Customizing grid labels
Drawing gradients with GraphicsContext
Recreating native controls with RendererNative
Chapter 9: Creating and Customizing Components
Introduction
Making your own dialog
Validating user input
Interacting with StatusBar
Providing your own information window
Creating a managed layout
Drawing your own list control
Implementing highlighting in StyledTextCtrl
Creating a composite control
Designing an owner-drawn control
Chapter 10: Getting Your Application Ready for Release
Introduction
Storing your configuration with StandardPaths
Saving the application's state
Supporting internationalization
Optimizing for OS X
Handling errors gracefully
Embedding your resources
Distributing an application
Updating your software

What You Will Learn

  • Create full featured user interfaces
  • Design and develop custom controls
  • Deploy and distribute wxPython applications to Windows, Macintosh OS X, Linux, and other UNIX-like environments
  • Handle and respond to application events
  • Manage and display data using grids
  • Interact with web services from your GUI
  • Use Paint events to draw custom displays
  • Support the display of user interfaces in multiple languages

Authors

Table of Contents

Chapter 1: wxPython Starting Points
Introduction
Creating an application object
Adding the main frame
Using bitmaps
Binding to events
Understanding the hierarchy of the UI
Controlling the propagation of events
Accessing the clipboard
Supporting drag and drop
Handling AppleEvents
Chapter 2: Common User Controls
Introduction
Starting with the easy button
Pushing all the buttons
Offering options with CheckBoxes
Using TextCtrl
Processing key events
Picking dates with DatePickerCtrl
Exploring menus and shortcuts
Displaying a context menu
Working with ToolBars
Managing UI states
Chapter 3: UI Layout and Organization
Introduction
Laying out controls with Sizers
Controlling layout behavior
Grouping controls with a StaticBox control
Creating an automatic wrapping layout
Using the standard dialog button sizer
Simplifying the panel layout
Making dialog layout easy
Building XML resource-based layouts
Extending XRC for custom controls
Advancing your UI with AuiManager
Chapter 4: Containers and Advanced Controls
Introduction
Adding tabs with the Notebook control
Enhancing ComboBox with bitmaps
Configuring properties
Taking control with FlatNotebook
Styling text in StyledTextCtrl
Annotating StyledTextCtrl
Displaying hierarchical data with TreeCtrl
Building a system tray application
Surfing the Web in your app
Chapter 5: Data Displays and Grids
Introduction
Displaying lists of data
Editing data lists
Implementing a data source
Getting started with the data grid
Displaying dynamic data
Modeling your data
Displaying your data model
Chapter 6: Ways to Notify and Alert
Introduction
Showing MessageBox
Using InfoBar
Providing extra tips on usage
Displaying transient notifications
Making a splash at startup
Giving busy feedback
Showing information about your app
Chapter 7: Requesting and Retrieving Information
Introduction
Selecting files with FileDialog
Searching text with FindReplaceDialog
Filtering through choices
Retrieving multiple selections
Using Print dialogs
Guiding selections with Wizard
Chapter 8: User Interface Primitives
Introduction
Painting in your UI
Drawing basic shapes
Customizing grid labels
Drawing gradients with GraphicsContext
Recreating native controls with RendererNative
Chapter 9: Creating and Customizing Components
Introduction
Making your own dialog
Validating user input
Interacting with StatusBar
Providing your own information window
Creating a managed layout
Drawing your own list control
Implementing highlighting in StyledTextCtrl
Creating a composite control
Designing an owner-drawn control
Chapter 10: Getting Your Application Ready for Release
Introduction
Storing your configuration with StandardPaths
Saving the application's state
Supporting internationalization
Optimizing for OS X
Handling errors gracefully
Embedding your resources
Distributing an application
Updating your software

Book Details

ISBN 139781785287732
Paperback264 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Python GUI Programming Cookbook - Second Edition Book Cover
Python GUI Programming Cookbook - Second Edition
$ 39.99
$ 5.00
Learning Python Application Development Book Cover
Learning Python Application Development
$ 35.99
$ 5.00
Modern Python Cookbook Book Cover
Modern Python Cookbook
$ 39.99
$ 5.00
wxPython 2.8 Application Development Cookbook Book Cover
wxPython 2.8 Application Development Cookbook
$ 23.99
$ 5.00
Building RESTful Python Web Services Book Cover
Building RESTful Python Web Services
$ 39.99
$ 5.00
Tkinter GUI Application Development Blueprints Book Cover
Tkinter GUI Application Development Blueprints
$ 35.99
$ 5.00