bool MacGetMetalAppearance() const { /*wxPyRaiseNotImplemented();*/ return false; }
}
#endif
+
+ DocDeclStr(
+ void , CenterOnScreen(int dir = wxBOTH),
+ "Center the window on screen", "");
+ %pythoncode { CentreOnScreen = CenterOnScreen }
};
class wxDialog : public wxTopLevelWindow {
public:
+
+ enum
+ {
+ // all flags allowed in wxDialogBase::CreateButtonSizer()
+ ButtonSizerFlags = wxOK|wxCANCEL|wxYES|wxNO|wxHELP|wxNO_DEFAULT
+ };
+
+
%pythonAppend wxDialog "self._setOORInfo(self)"
%pythonAppend wxDialog() ""
%typemap(out) wxDialog*; // turn off this typemap
void SetReturnCode(int returnCode);
int GetReturnCode() const;
+ // The identifier for the affirmative button
+ void SetAffirmativeId(int affirmativeId);
+ int GetAffirmativeId() const;
+
+ // Identifier for Esc key translation
+ void SetEscapeId(int escapeId);
+ int GetEscapeId() const;
+
// splits text up at newlines and places the
// lines into a vertical wxBoxSizer
wxSizer* CreateTextSizer( const wxString &message );
// places buttons into a horizontal wxBoxSizer
- wxSizer* CreateButtonSizer( long flags );
+ wxSizer* CreateButtonSizer( long flags,
+ bool separated = false,
+ wxCoord distance = 0 );
wxStdDialogButtonSizer* CreateStdDialogButtonSizer( long flags );
//void SetModal(bool flag);
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-
- %pythoncode {
- def SendSizeEvent(self):
- self.ProcessEvent(wx.SizeEvent((-1,-1)))
- }
};
//---------------------------------------------------------------------------