X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/705b61cce0e6c2167d7457c7c2b633688e9c67b6..702723413ed52b1f538d9c8deab8abfa3f8beb9a:/wxPython/src/_toplvl.i diff --git a/wxPython/src/_toplvl.i b/wxPython/src/_toplvl.i index 261d41c041..2a42716275 100644 --- a/wxPython/src/_toplvl.i +++ b/wxPython/src/_toplvl.i @@ -69,18 +69,12 @@ enum wxTOPLEVEL_EX_DIALOG, }; - - -%typemap(in) (int widths, int* widths_field) { - $1 = PyList_Size($input); - $2 = int_LIST_helper($input); - if ($2 == NULL) SWIG_fail; -} - -%typemap(freearg) (int widths, int* widths_field) { - if ($2) delete [] $2; -} - +// Styles for RequestUserAttention +enum +{ + wxUSER_ATTENTION_INFO = 1, + wxUSER_ATTENTION_ERROR = 2 +}; //--------------------------------------------------------------------------- @@ -128,6 +122,12 @@ public: // is successful.) virtual bool SetShape(const wxRegion& region); + + // Attracts the users attention to this window if the application is + // inactive (should be called when a background event occurs) + virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO); + + #ifdef __WXMAC__ void MacSetMetalAppearance( bool on ) ; bool MacGetMetalAppearance() const ; @@ -151,6 +151,7 @@ class wxFrame : public wxTopLevelWindow { public: %pythonAppend wxFrame "self._setOORInfo(self)" %pythonAppend wxFrame() "" + %typemap(out) wxFrame*; // turn off this typemap wxFrame(wxWindow* parent, const wxWindowID id=-1, const wxString& title = wxPyEmptyString, @@ -160,6 +161,10 @@ public: const wxString& name = wxPyFrameNameStr); %name(PreFrame)wxFrame(); + // Turn it back on again + %typemap(out) wxFrame* { $result = wxPyMake_wxObject($1, $owner); } + + bool Create(wxWindow* parent, const wxWindowID id=-1, const wxString& title = wxPyEmptyString, const wxPoint& pos = wxDefaultPosition, @@ -265,6 +270,7 @@ class wxDialog : public wxTopLevelWindow { public: %pythonAppend wxDialog "self._setOORInfo(self)" %pythonAppend wxDialog() "" + %typemap(out) wxDialog*; // turn off this typemap wxDialog(wxWindow* parent, const wxWindowID id=-1, @@ -275,6 +281,9 @@ public: const wxString& name = wxPyDialogNameStr); %name(PreDialog)wxDialog(); + // Turn it back on again + %typemap(out) wxDialog* { $result = wxPyMake_wxObject($1, $owner); } + bool Create(wxWindow* parent, const wxWindowID id=-1, const wxString& title = wxPyEmptyString,