By Cody Precord

Key Features

This ebook empowers you to create wealthy cross-platform graphical consumer interfaces utilizing Python
It is helping you advance functions that may be deployed on home windows, OSX, and Linux
The recipes within the ebook contain real-world functions, providing you with a first-hand event of the sensible scenarios

Book Description

wxPython is a GUI toolkit for the Python programming language outfitted on best of the cross-platform wxWidgets GUI libraries. wxPython presents a strong set of instruments that let you speedy and successfully development functions that may run on numerous various structures. due to the fact wxWidgets presents a wrapper round every one platform's local GUI toolkit, the purposes outfitted with wxPython can have a local appear and feel anywhere they're deployed.

This e-book will give you the abilities to construct hugely sensible and local having a look consumer interfaces for Python purposes on a number of working procedure environments. by means of operating in the course of the recipes, you are going to achieve insights into and publicity to making purposes utilizing wxPython. With quite a lot of subject matters coated within the ebook, there are recipes to get the main simple of novices all started in GUI programming in addition to how to support skilled clients get extra out in their purposes. The recipes will take you from the main uncomplicated software constructs throughout to the deployment of entire applications.
What you are going to learn

Create complete featured consumer interfaces
layout and strengthen customized controls
set up and distribute wxPython purposes to home windows, Macintosh OS X, Linux, and different UNIX-like environments
deal with and reply to program events
deal with and reveal info utilizing grids
engage with internet companies out of your GUI
Use Paint occasions to attract customized displays
aid the reveal of consumer interfaces in a number of languages

About the Author

Cody Precord is a software program engineer dependent in Minneapolis, MN, united states. He designs and writes platforms and alertness software program for home windows, AIX, Linux, and Macintosh OS X utilizing basically C++, C#, C, Perl, Bash, and Python. The consistent desire for engaged on a number of structures certainly led Cody to the wxPython toolkit, which he has used for a number of years. he's the writer of wxPython 2.8 program improvement Cookbook, Packt Publishing and has additionally contributed to the improvement of the wxPython library. Cody is drawn to selling go platform improvement practices and bettering usability in software.
Table of Contents

wxPython beginning Points
universal consumer Controls
UI structure and Organization
bins and complex Controls
facts screens and Grids
how you can Notify and Alert
soliciting for and Retrieving Information
consumer Interface Primitives
growing and Customizing Components
Getting Your software prepared for Release

Show description

Read or Download WxPython Application Development Cookbook PDF

Best python books

Mastering Python Design Patterns

Approximately This Book
• Simplify layout development implementation utilizing the facility of Python
• each one development is followed with a real-world instance demonstrating its key features
• this can be an easy-to-follow advisor targeting the sensible elements of Python layout patterns

Who This e-book Is For
This ebook is for Python programmers with an intermediate heritage and an curiosity in layout styles carried out in idiomatic Python. Programmers of different languages who're drawn to Python may also make the most of this e-book, however it will be higher in the event that they first learn a few introductory fabrics that designate how issues are performed in Python.

What you'll Learn
• discover manufacturing facility procedure and summary manufacturing unit for item creation
• Clone gadgets utilizing the Prototype pattern
• Make incompatible interfaces appropriate utilizing the Adapter pattern
• safe an interface utilizing the Proxy pattern
• decide on an set of rules dynamically utilizing the method pattern
• expand an item with out subclassing utilizing the Decorator pattern
• retain the common sense decoupled from the UI utilizing the MVC pattern

In Detail
Python is an object-oriented, scripting language that's utilized in wide selection of different types. In software program engineering, a layout trend is a steered way to a software program layout challenge. even supposing now not new, layout styles stay one of many most popular issues in software program engineering they usually come as a prepared reference for software program builders to unravel the typical difficulties they face at work.

This e-book will take you thru each layout development defined with assistance from real-world examples. the purpose of the e-book is to introduce extra low-level aspect and ideas on how one can write Pythonic code, not only concentrating on universal strategies as applied in Java and C++. It comprises small sections on troubleshooting, most sensible practices, method structure, and its layout points. With the aid of this ebook, it is possible for you to to appreciate Python layout trend thoughts and the framework, in addition to concerns and their solution. You'll specialise in all sixteen layout styles which are used to unravel daily difficulties.

Beginning Game Development with Python and Pygame: From Novice to Professional (Expert's Voice)

Like track and films, games are swiftly turning into a vital part of our lives. through the years, you’ve yearned for each new gaming console, mastered every one blockbuster inside weeks after its unencumber, and feature even gained an area gaming pageant or . yet in recent times you’ve been spending loads of time wondering a video game thought of your individual, or are exploring the potential of creating a profession of this bright and turning out to be undefined.

Python Geospatial Development - Second Edition

Learn how to construct subtle mapping purposes from scratch utilizing Python instruments for geospatial improvement evaluation construct your individual entire and complex mapping purposes in Python. Walks you thru the method of establishing your individual on-line process for viewing and modifying geospatial info useful, hands-on instructional that teaches you all approximately geospatial improvement in Python intimately Geospatial improvement hyperlinks your facts to areas at the Earth’s floor.

A functional start to computing with Python

A sensible begin to Computing with Python permits scholars to fast examine computing with no need to take advantage of loops, variables, and item abstractions at the beginning. Requiring no past programming adventure, the publication attracts on Python’s versatile facts varieties and operations in addition to its means for outlining new services.

Additional info for WxPython Application Development Cookbook

Sample text

It can lay out controls in either a single rectangular column or a row. Sizers can then be nested inside each other to create more complex layouts. In this recipe, we will explore some of the basics of using BoxSizer to layout controls on a panel. How to do it… For this recipe, you need to perform the following steps: 1. choice) 2. AddStretchSpacer() 3. choice) 4. CENTER) 5. SetSizer(sizer) 6. The last step in this recipe is defining the event handler for the Choice selection. Layout() 47 UI Layout and Organization How it works… First, let's take a look at a graphical breakdown of the layout that was produced by the Sizers that we used in the _doLayout method: The preceding image tries to label the areas that are being managed by items added to the Sizer.

This is because the EVT_TOOL event is the same as EVT_MENU, so all tool events will automatically be routed to the already existing menu handlers for the same actions. 1, the ToolBar object now supports adding a stretchable space between tools by calling the AddStretchableSpace method, which makes it possible to align tools away from the left side of the ToolBar object as the parent window changes its size. 41 Common User Controls A ToolBars object also supports adding several other types of tools in addition to the normal icon button-based ones.

Using the MenuItem constructor or the kind parameter of the Menu class' Append method, a MenuItem object can have either a CheckBox (ITEM_CHECK) or a RadioButton (ITEM_RADIO) control. See also ff Refer to the Working with ToolBars and Managing UI states recipes in this chapter, where we will add some extended functionality to the example code started in this recipe ff The Selecting files with a FileDialog recipe in Chapter 7, Requesting and Retrieving Information, will also revisit this recipe to add the Open and Save functionality 37 Common User Controls Displaying a context menu Sometimes, an individual page or control on a page needs a way to give some additional options on which actions are available to be performed.

Download PDF sample

Rated 4.44 of 5 – based on 50 votes