Get/SetManagedWindow

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-07-14 01:26:04 +00:00
parent b8193d807f
commit d7a7616b9d
2 changed files with 24 additions and 12 deletions

View File

@@ -83,9 +83,9 @@ pane will end up:
DocStr(wxFrameManager::wxFrameManager, DocStr(wxFrameManager::wxFrameManager,
"Constructor. "Constructor.
:param frame: Specifies the `wx.Frame` which should be managed. :param managed_wnd: Specifies the `wx.Window` which should be
If not set in the call to this constructor then `SetFrame` managed. If not set in the call to this constructor then
should be called. `SetManagedWindow` should be called later.
:param flags: Specifies options which allow the frame management :param flags: Specifies options which allow the frame management
behavior to be modified. behavior to be modified.
@@ -113,7 +113,7 @@ Valid flags are:
DocStr(wxFrameManager::UnInit, DocStr(wxFrameManager::UnInit,
"UnInit uninitializes the framework and should be called before a "UnInit uninitializes the framework and should be called before a
managed frame is destroyed. UnInit is usually called in the managed managed frame is destroyed. UnInit is usually called in the managed
wx.Frame's destructor. window's destructor.
", ""); ", "");
DocStr(wxFrameManager::SetFlags, DocStr(wxFrameManager::SetFlags,
@@ -125,14 +125,16 @@ DocStr(wxFrameManager::GetFlags,
"GetFlags returns the current FrameManager's flags. "GetFlags returns the current FrameManager's flags.
", ""); ", "");
DocStr(wxFrameManager::SetFrame, DocStr(wxFrameManager::SetManagedWindow,
"SetFrame is called to specify the frame which is to be managed by the "SetManagedWindow is called to specify the window which is to be
FrameManager. It only needs to be called if the Frame was not given managed by the FrameManager. It is normally a `wx.Frame` but it is
to the manager in the constructor. possible to also allow docking within any container window. This only
needs to be called if the window was not given to the manager in the
constructor.
", ""); ", "");
DocStr(wxFrameManager::GetFrame, DocStr(wxFrameManager::GetManagedWindow,
"GetFrame returns the frame currently being managed by the "GetManagedWindow returns the window currently being managed by the
FrameManager. FrameManager.
", ""); ", "");

View File

@@ -136,6 +136,8 @@ The following example shows a simple implementation that utilizes
#define wxUSE_AUI 1 #define wxUSE_AUI 1
#define WXDLLIMPEXP_AUI #define WXDLLIMPEXP_AUI
#define unsigned #define unsigned
#define wxDEPRECATED(decl)
// We'll let SWIG handle the function overloading for these // We'll let SWIG handle the function overloading for these
%ignore wxPaneInfo::MaxSize(int x, int y); %ignore wxPaneInfo::MaxSize(int x, int y);
@@ -176,7 +178,7 @@ The following example shows a simple implementation that utilizes
// the overloaded versions of GetPane and AddPane // the overloaded versions of GetPane and AddPane
%extend wxFrameManager { %extend wxFrameManager {
%pythoncode { %pythoncode {
def GetPane(self, item): def GetPane(self, item):
""" """
GetPane(self, window_or_info item) -> PaneInfo GetPane(self, window_or_info item) -> PaneInfo
@@ -222,7 +224,15 @@ The following example shows a simple implementation that utilizes
if caption is None: if caption is None:
caption = "" caption = ""
return self._AddPane2(window, info, caption) return self._AddPane2(window, info, caption)
} }
// For backwards compatibility
%pythoncode {
SetFrame = wx._deprecated(SetManagedWindow,
"SetFrame is deprecated, use `SetManagedWindow` instead.")
GetFrame = wx._deprecated(GetManagedWindow,
"GetFrame is deprecated, use `GetManagedWindow` instead.")
}
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------