]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_toplvl.i
workaround bug in SWIG's t_output_helper
[wxWidgets.git] / wxPython / src / _toplvl.i
index 01f14c5b2750a014823413e53be43badf4ff05d3..2a42716275f2d85b740a7b6550434f7a6a6d3fe4 100644 (file)
@@ -69,18 +69,12 @@ enum
     wxTOPLEVEL_EX_DIALOG,
 };
 
     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);
 
     // 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 ;
 #ifdef __WXMAC__
     void MacSetMetalAppearance( bool on ) ;
     bool MacGetMetalAppearance() const ;