]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_functions.i
made the code a bit more readable by not using _T() around to-be-generated code snippets
[wxWidgets.git] / wxPython / src / _functions.i
index 533a0aa9577f7a7cb7798f951e1538c2fc6941ee..baf74525ac64f3dd221f509793eb21ac1da6eaed 100644 (file)
@@ -50,7 +50,19 @@ enum wxStockLabelQueryFlag
 // for wxID_OK):
 wxString wxGetStockLabel(wxWindowID id,
                          long flags = wxSTOCK_WITH_MNEMONIC);
+
+
+enum wxStockHelpStringClient
+{
+    wxSTOCK_MENU        // help string to use for menu items
+};
+
+// Returns an help string for the given stock UI element and for the given "context".
+wxString wxGetStockHelpString(wxWindowID id,
+                              wxStockHelpStringClient client = wxSTOCK_MENU);
+
+
+
 
 MustHaveApp(wxBell);
 void wxBell();
@@ -58,13 +70,9 @@ void wxBell();
 MustHaveApp(wxEndBusyCursor);
 void wxEndBusyCursor();
 
-long wxGetElapsedTime(bool resetTimer = true);
-%pythoncode { GetElapsedTime = wx._deprecated(GetElapsedTime) }
-    
 bool wxIsBusy();
 wxString wxNow();
 bool wxShell(const wxString& command = wxPyEmptyString);
-void wxStartTimer();
 
 
 DocDeclA(
@@ -329,8 +337,14 @@ MustHaveApp(wxGetTopLevelParent);
 wxWindow* wxGetTopLevelParent(wxWindow *win);
 
 
+// flags for wxLaunchDefaultBrowser
+enum
+{
+    wxBROWSER_NEW_WINDOW = 1
+};
+
 DocDeclStr(
-    bool , wxLaunchDefaultBrowser(const wxString& url),
+    bool , wxLaunchDefaultBrowser(const wxString& url, int flags = 0),
     "Launches the user's default browser and tells it to open the location
 at ``url``.  Returns ``True`` if the application was successfully
 launched.", "");