Sometimes, it is necessary to guide a user through a series of actions to complete some choices. Wizard provides a way to accomplish this task by chaining a number of panels together in a special dialog that guides users through a series of sequential choices. In this recipe, we will take a look at what it takes to put together a Wizard dialog in the wxPython framework.
Perform the following steps:
First, we need to import an extra submodule to get access to the Wizard classes, as follows:
import wx import wx.wizard as WIZ
Next, let's make a base class to use for the pages in the custom
Wizard
class that we will make:class PageBase(WIZ.WizardPageSimple): def __init__(self, parent, title): super(PageBase, self).__init__(parent) sizer = wx.BoxSizer(wx.VERTICAL) label = wx.StaticText(self, label=title) font = wx.Font(18, wx.SWISS, wx.NORMAL, wx.BOLD) label.SetFont(font) sizer.Add(label, 0, wx...