]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/misc2.i
Added wxUSE_RICHEDIT to match usage in header
[wxWidgets.git] / wxPython / src / misc2.i
index c80685a978b07bba312a4da14f93d9e04b873f25..5e080982f0def9c7df05324a640b78fd0b6553de 100644 (file)
@@ -468,6 +468,9 @@ IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
 class wxPyTipProvider : public wxTipProvider {
 public:
     wxPyTipProvider(size_t currentTip);
+
+    void _setCallbackInfo(PyObject* self, PyObject* _class);
+    %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyTipProvider)"
 };
 
 
@@ -763,12 +766,6 @@ public:
 //----------------------------------------------------------------------
 
 
-enum {
-    /* event type */
-    wxEVT_END_PROCESS
-};
-
-
 enum wxKillError
 {
     wxKILL_OK,              // no error
@@ -778,6 +775,37 @@ enum wxKillError
     wxKILL_ERROR            // another, unspecified error
 };
 
+enum wxSignal
+{
+    wxSIGNONE = 0,  // verify if the process exists under Unix
+    wxSIGHUP,
+    wxSIGINT,
+    wxSIGQUIT,
+    wxSIGILL,
+    wxSIGTRAP,
+    wxSIGABRT,
+    wxSIGIOT = wxSIGABRT,   // another name
+    wxSIGEMT,
+    wxSIGFPE,
+    wxSIGKILL,
+    wxSIGBUS,
+    wxSIGSEGV,
+    wxSIGSYS,
+    wxSIGPIPE,
+    wxSIGALRM,
+    wxSIGTERM
+
+    // further signals are different in meaning between different Unix systems
+};
+
+
+
+enum {
+    /* event type */
+    wxEVT_END_PROCESS
+};
+
+
 
 class wxProcessEvent : public wxEvent {
 public:
@@ -823,7 +851,7 @@ public:
     // on error NULL is returned, in any case the process object will be
     // deleted automatically when the process terminates and should *not* be
     // deleted by the caller
-    static wxPyProcess *Open(const wxString& cmd);
+    static wxPyProcess *Open(const wxString& cmd, int flags = wxEXEC_ASYNC);