Giving your wxPython program a solid foundation

2.1 What do I need to know about the required objects? 30

2.2 How do I create and use an application object? 31

Creating a wx.App subclass 31 ■ Understanding the application object lifecycle 34

2.3 How do I direct output from a wxPython program? 35

Redirecting output 35 ■ Modifying the default redirect behavior 37

2.4 How do I shut down my wxPython application? 38

Managing a normal shutdown 38 ■ Managing an emergency shutdown 39

2.5 How do I create and use the top-level window object? 39

Working with wx.Frame 40 ■ Working with wxPython IDs 42 Working with wx.Size and wx.Point 43 ■ Working with wx.Frame styles 44

2.6 How do I add objects and subwindows to a frame? 47

Adding widgets to a frame 47 ■ Adding a menubar, toolbar, or status bar to a frame 49

2.7 How can I use common dialogs? 51

2.8 What are some common errors with application objects and frames? 53

2.9 Summary 54

Was this article helpful?

0 0

Post a comment