X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f8845289521c7f53e95b6dfd8275daab8b05639..31ad423e4fb556ec225a63b161154d3bf3445c1b:/wxPython/src/_window.i diff --git a/wxPython/src/_window.i b/wxPython/src/_window.i index 7a10cf71c5..f30260b297 100644 --- a/wxPython/src/_window.i +++ b/wxPython/src/_window.i @@ -32,7 +32,7 @@ struct wxVisualAttributes %extend { wxVisualAttributes() { return new wxVisualAttributes; } ~wxVisualAttributes() { delete self; } - } + } // the font used for control label/text inside it wxFont font; @@ -190,7 +190,9 @@ Extra Styles MustHaveApp(wxWindow); MustHaveApp(wxWindow::FindFocus); MustHaveApp(wxWindow::GetCapture); -MustHaveApp(wxWindow::GetClassDefaultAttributes); + +// This one is not restricted to wxWindow +MustHaveApp(GetClassDefaultAttributes); class wxWindow : public wxEvtHandler { @@ -869,8 +871,30 @@ control custom keypress handler to do the default navigation behaviour for the tab key, since the standard default behaviour for a multiline text control with the wx.TE_PROCESS_TAB style is to insert a tab and not navigate to the next control."); + + + + DocDeclStr( + void , MoveAfterInTabOrder(wxWindow *win), + "Moves this window in the tab navigation order after the specified +sibling window. This means that when the user presses the TAB key on +that other window, the focus switches to this window. + +The default tab order is the same as creation order. This function +and `MoveBeforeInTabOrder` allow to change it after creating all the +windows. +", ""); + + + DocDeclStr( + void , MoveBeforeInTabOrder(wxWindow *win), + "Same as `MoveAfterInTabOrder` except that it inserts this window just +before win instead of putting it right after it.", ""); + + + @@ -1300,7 +1324,7 @@ themes represent the appearance chosen by the user to be used for all applications on the system.", ""); DocDeclStr( - void , SetDefaultBackgroundColour(const wxColour& colour), + void , SetOwnBackgroundColour(const wxColour& colour), "", ""); @@ -1313,7 +1337,7 @@ the window class; it may be the text colour or other colour, or it may not be used at all.", ""); DocDeclStr( - void , SetDefaultForegroundColour(const wxColour& colour), + void , SetOwnForegroundColour(const wxColour& colour), "", ""); @@ -1350,7 +1374,7 @@ be reset back to default.", ""); "Sets the font for this window.", ""); DocDeclStr( - void , SetDefaultFont(const wxFont& font), + void , SetOwnFont(const wxFont& font), "", ""); @@ -1808,7 +1832,7 @@ colours. By 'intelligently' the following is meant: by default, all windows use their own default attributes. However if some of the parent's attributes are explicitly changed (that is, using SetFont and not -SetDefaultFont) and if the corresponding attribute hadn't been +SetOwnFont) and if the corresponding attribute hadn't been explicitly set for this window itself, then this window takes the same value as used by the parent. In addition, if the window overrides ShouldInheritColours to return false, the colours will not be changed