*********************** wx.StdDialogButtonSizer *********************** Inheritance diagram for `wx.StdDialogButtonSizer`: | .. inheritance-diagram:: wx.StdDialogButtonSizer | Description =========== This class creates button layouts which conform to the standard button spacing and ordering defined by the platform or toolkit's user interface guidelines (if such things exist). By using this class, you can ensure that all your standard dialogs look correct on all major platforms. Currently it conforms to the Windows, GTK+ and Mac OS X human interface guidelines. When there aren't interface guidelines defined for a particular platform or toolkit, `wx.StdDialogButtonSizer` reverts to the Windows implementation. To use this class, first add buttons to the sizer by calling `AddButton <#AddButton>`_ (or `SetAffirmativeButton <#SetAffirmativeButton>`_, `SetNegativeButton <#SetNegativeButton>`_, or `SetCancelButton <#SetCancelButton>`_) and then call `Realize <#Realize>`_ in order to create the actual button layout used. Other than these special operations, this sizer works like any other sizer. .. note:: If you add a button with ``wx.ID_SAVE``, on Mac OS X the button will be renamed to "Save" and the ``wx.ID_NO`` button will be renamed to "Don't Save" in accordance with the Mac OS X Human Interface Guidelines. Derived From ^^^^^^^^^^^^^ * `wx.BoxSizer `_ * `wx.Sizer `_ * `wx.Object `_ Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `AddButton <#AddButton>`_ * `GetAffirmativeButton <#GetAffirmativeButton>`_ * `GetApplyButton <#GetApplyButton>`_ * `GetCancelButton <#GetCancelButton>`_ * `GetHelpButton <#GetHelpButton>`_ * `GetNegativeButton <#GetNegativeButton>`_ * `Realize <#Realize>`_ * `SetAffirmativeButton <#SetAffirmativeButton>`_ * `SetCancelButton <#SetCancelButton>`_ * `SetNegativeButton <#SetNegativeButton>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `AffirmativeButton <#AffirmativeButton>`_ * `ApplyButton <#ApplyButton>`_ * `CancelButton <#CancelButton>`_ * `HelpButton <#HelpButton>`_ * `NegativeButton <#NegativeButton>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__() Constructor for a `wx.StdDialogButtonSizer`. -------- .. method:: AddButton(button) Adds a button to the `wx.StdDialogButtonSizer`. The button must have one of the following identifiers: * ``wx.ID_OK`` * ``wx.ID_YES`` * ``wx.ID_SAVE`` * ``wx.ID_APPLY`` * ``wx.ID_NO`` * ``wx.ID_CANCEL`` * ``wx.ID_HELP`` * ``wx.ID_CONTEXT_HELP`` **Parameters:** * `button` (`wx.Button `_) -------- .. method:: GetAffirmativeButton() `No docstrings available for this method.` -------- .. method:: GetApplyButton() `No docstrings available for this method.` -------- .. method:: GetCancelButton() `No docstrings available for this method.` -------- .. method:: GetHelpButton() `No docstrings available for this method.` -------- .. method:: GetNegativeButton() `No docstrings available for this method.` -------- .. method:: Realize() Rearranges the buttons and applies proper spacing between buttons to make them match the platform or toolkit's interface guidelines. -------- .. method:: SetAffirmativeButton(button) Sets the affirmative button for the sizer. This allows you to use identifiers other than the standard identifiers outlined above. **Parameters:** * `button` (`wx.Button `_) -------- .. method:: SetCancelButton(button) Sets the cancel button for the sizer. This allows you to use identifiers other than the standard identifiers outlined above. **Parameters:** * `button` (`wx.Button `_) -------- .. method:: SetNegativeButton(button) Sets the negative button for the sizer. This allows you to use identifiers other than the standard identifiers outlined above. **Parameters:** * `button` (`wx.Button `_) -------- Properties ^^^^^^^^^^ .. attribute:: AffirmativeButton See `GetAffirmativeButton <#GetAffirmativeButton>`_ and `SetAffirmativeButton <#SetAffirmativeButton>`_ .. attribute:: ApplyButton See `GetApplyButton <#GetApplyButton>`_ .. attribute:: CancelButton See `GetCancelButton <#GetCancelButton>`_ and `SetCancelButton <#SetCancelButton>`_ .. attribute:: HelpButton See `GetHelpButton <#GetHelpButton>`_ .. attribute:: NegativeButton See `GetNegativeButton <#GetNegativeButton>`_ and `SetNegativeButton <#SetNegativeButton>`_