Giving users choices with dialogs

This chapter covers

■ Creating modal dialogs and alert boxes

■ Using standard dialogs

■ Creating wizards

■ Showing startup tips

■ Creating validators and using them to transfer data

Where frames are used for long-term interactions with the user, a dialog is typically used to get a small amount of information from the user, and is then quickly dispatched. Dialog windows are often modal, which means that no other frame in the application can handle events until the dialog is closed. In this chapter we will discuss the many varieties of dialogs available in wxPython. In addition to allowing you to create your own dialog styles, wxPython provides you with several predefined dialog types. These predefined dialogs include both simple interactions, such as a basic alert box, and more complex dialogs that mimic system interactions, such as page layout or file selection.

Was this article helpful?

0 0

Post a comment