diff --git a/wxPython/src/_functions.i b/wxPython/src/_functions.i index 02238b8ef5..3304ca5f08 100644 --- a/wxPython/src/_functions.i +++ b/wxPython/src/_functions.i @@ -13,6 +13,10 @@ // Not a %module +%{ +#include +%} + //--------------------------------------------------------------------------- MAKE_CONST_WXSTRING(FileSelectorPromptStr); @@ -27,6 +31,18 @@ long wxNewId(); void wxRegisterId(long id); long wxGetCurrentId(); +// Returns true if the ID is in the list of recognized stock actions +bool wxIsStockID(wxWindowID id); + +// Returns true of the label is empty or label of a stock button with +// given ID +bool wxIsStockLabel(wxWindowID id, const wxString& label); + +// Returns label that should be used for given stock UI element (e.g. "&OK" +// for wxID_OK): +wxString wxGetStockLabel(wxWindowID id); + + MustHaveApp(wxBell); void wxBell();