Giving your wxPython program a solid foundation

This chapter covers

■ Creating application objects

■ Directing output from a wxPython program

■ Shutting down a wxPython application

■ Creating and using top-level window objects

■ Adding objects and subwindows to a frame

The foundation of a house is a concrete structure that provides a strong base for the rest of the construction. Your wxPython program also has a foundation, made up of two required objects that support the rest of your application. These are the application object and the top-level window object. Using these objects properly will give your wxPython application a strong base to start with, and will make the job of constructing the rest of your application easier.

In this chapter, you will work with the application object to customize global aspects of your program, including initialization, redirecting output, and shutdown. You will use window objects in various styles, and put together basic widget combinations. You will also use simple default dialog boxes to get user information. At the end of the chapter, we'll help you diagnose and troubleshoot common problems with usage of application and top-level window objects.

Was this article helpful?

0 0

Post a comment