def _create_contents(self, dialog):
        # Wire up the standard buttons
        # We change the ID on OK and CANCEL to the standard ids
        # so we get the default behavior
        okbutton = self.XRCCTRL("OK")
        if okbutton is not None:
            # Change the ID and set the handler
            okbutton.SetId(wx.ID_OK)
            wx.EVT_BUTTON(self.control, okbutton.GetId(), self._on_ok)
        cancelbutton = self.XRCCTRL("CANCEL")
        if cancelbutton is not None:
            # Change the ID and set the handler
            cancelbutton.SetId(wx.ID_CANCEL)
            wx.EVT_BUTTON(self.control, cancelbutton.GetId(), self._on_cancel)
        helpbutton = self.XRCCTRL("HELP")
        if helpbutton is not None:
            wx.EVT_BUTTON(self.control, helpbutton.GetId(), self._on_help)

        self._add_handlers()

    ##########################################################################
    # 'XrcDialog' interface
    ##########################################################################
Calls add_handlers.  The actual content is created
dataset/ETHPy150Open enthought/pyface/pyface/xrc_dialog.py/XrcDialog._create_contents