X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d07d2bc9d05408c58b76c53a0a291915b88e5064..11207aefcfea0f5fbd5507ccd1d5d0a39c32c9de:/wxPython/src/_window.i?ds=inline diff --git a/wxPython/src/_window.i b/wxPython/src/_window.i index af73418c9a..1248073fb7 100644 --- a/wxPython/src/_window.i +++ b/wxPython/src/_window.i @@ -187,6 +187,10 @@ Extra Styles "); +MustHaveApp(wxWindow); +MustHaveApp(wxWindow::FindFocus); +MustHaveApp(wxWindow::GetCapture); +MustHaveApp(wxWindow::GetClassDefaultAttributes); class wxWindow : public wxEvtHandler { @@ -482,12 +486,12 @@ the borders, scrollbars, other decorations...)", ""); DocDeclStr( wxRect , GetClientRect() const, - "Get the client area position and size as a wx.Rect object.", ""); + "Get the client area position and size as a `wx.Rect` object.", ""); DocStr(GetBestSize, - "This functions returns the best acceptable minimal size for the + "This function returns the best acceptable minimal size for the window, if applicable. For example, for a static text control, it will be the minimal size such that the control label is not truncated. For windows containing subwindows (suzh aswx.Panel), the size returned by @@ -1201,7 +1205,7 @@ exposed.", ""); useful if you want to use the same font or colour in your own control as in a standard control -- which is a much better idea than hard coding specific colours or fonts which might look completely out of -place on the users system, especially if it uses themes.", ""); +place on the user's system, especially if it uses themes.", ""); DocDeclStr( @@ -1210,12 +1214,13 @@ place on the users system, especially if it uses themes.", ""); "Get the default attributes for this class. This is useful if you want to use the same font or colour in your own control as in a standard control -- which is a much better idea than hard coding specific -colours or fonts which might look completely out of place on the users -system, especially if it uses themes. +colours or fonts which might look completely out of place on the +user's system, especially if it uses themes. The variant parameter is only relevant under Mac currently and is ignore under other platforms. Under Mac, it will change the size of -the returned font. See SetWindowVariant for more about this.", ""); +the returned font. See `wx.Window.SetWindowVariant` for more about +this.", ""); DocDeclStr( @@ -1225,7 +1230,7 @@ was changed. The background colour is usually painted by the default EVT_ERASE_BACKGROUND event handler function under Windows and automatically under GTK. -Note that setting the background colour does not cause an immediate +Note that setting the background colour may not cause an immediate refresh, so you may wish to call ClearBackground or Refresh after calling this function. @@ -1849,6 +1854,10 @@ non-None, the search will be limited to the given window hierarchy. The search is recursive in both cases.", ""); +MustHaveApp(wxFindWindowById); +MustHaveApp(wxFindWindowByName); +MustHaveApp(wxFindWindowByLabel); + %inline %{ wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { return wxWindow::FindWindowById(id, parent);