X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d5ee7493bc40cec8ce576451f0c3af0a51b5a4b..2a783b2daaae6f06928e7095ebbc4fc039583907:/wxPython/src/gtk/aui.py diff --git a/wxPython/src/gtk/aui.py b/wxPython/src/gtk/aui.py index d29f747acb..93990622cc 100644 --- a/wxPython/src/gtk/aui.py +++ b/wxPython/src/gtk/aui.py @@ -166,7 +166,10 @@ AUI_MGR_ALLOW_FLOATING = _aui.AUI_MGR_ALLOW_FLOATING AUI_MGR_ALLOW_ACTIVE_PANE = _aui.AUI_MGR_ALLOW_ACTIVE_PANE AUI_MGR_TRANSPARENT_DRAG = _aui.AUI_MGR_TRANSPARENT_DRAG AUI_MGR_TRANSPARENT_HINT = _aui.AUI_MGR_TRANSPARENT_HINT -AUI_MGR_TRANSPARENT_HINT_FADE = _aui.AUI_MGR_TRANSPARENT_HINT_FADE +AUI_MGR_VENETIAN_BLINDS_HINT = _aui.AUI_MGR_VENETIAN_BLINDS_HINT +AUI_MGR_RECTANGLE_HINT = _aui.AUI_MGR_RECTANGLE_HINT +AUI_MGR_HINT_FADE = _aui.AUI_MGR_HINT_FADE +AUI_MGR_NO_VENETIAN_BLINDS_FADE = _aui.AUI_MGR_NO_VENETIAN_BLINDS_FADE AUI_MGR_DEFAULT = _aui.AUI_MGR_DEFAULT AUI_ART_SASH_SIZE = _aui.AUI_ART_SASH_SIZE AUI_ART_CAPTION_SIZE = _aui.AUI_ART_CAPTION_SIZE @@ -191,6 +194,20 @@ AUI_GRADIENT_HORIZONTAL = _aui.AUI_GRADIENT_HORIZONTAL AUI_BUTTON_STATE_NORMAL = _aui.AUI_BUTTON_STATE_NORMAL AUI_BUTTON_STATE_HOVER = _aui.AUI_BUTTON_STATE_HOVER AUI_BUTTON_STATE_PRESSED = _aui.AUI_BUTTON_STATE_PRESSED +AUI_BUTTON_STATE_DISABLED = _aui.AUI_BUTTON_STATE_DISABLED +AUI_BUTTON_STATE_HIDDEN = _aui.AUI_BUTTON_STATE_HIDDEN +AUI_BUTTON_CLOSE = _aui.AUI_BUTTON_CLOSE +AUI_BUTTON_MAXIMIZE = _aui.AUI_BUTTON_MAXIMIZE +AUI_BUTTON_MINIMIZE = _aui.AUI_BUTTON_MINIMIZE +AUI_BUTTON_PIN = _aui.AUI_BUTTON_PIN +AUI_BUTTON_OPTIONS = _aui.AUI_BUTTON_OPTIONS +AUI_BUTTON_LEFT = _aui.AUI_BUTTON_LEFT +AUI_BUTTON_RIGHT = _aui.AUI_BUTTON_RIGHT +AUI_BUTTON_UP = _aui.AUI_BUTTON_UP +AUI_BUTTON_DOWN = _aui.AUI_BUTTON_DOWN +AUI_BUTTON_CUSTOM1 = _aui.AUI_BUTTON_CUSTOM1 +AUI_BUTTON_CUSTOM2 = _aui.AUI_BUTTON_CUSTOM2 +AUI_BUTTON_CUSTOM3 = _aui.AUI_BUTTON_CUSTOM3 AUI_INSERT_PANE = _aui.AUI_INSERT_PANE AUI_INSERT_ROW = _aui.AUI_INSERT_ROW AUI_INSERT_DOCK = _aui.AUI_INSERT_DOCK @@ -221,6 +238,10 @@ class PaneInfo(object): _aui.PaneInfo_swiginit(self,_aui.new_PaneInfo(*args, **kwargs)) __swig_destroy__ = _aui.delete_PaneInfo __del__ = lambda self : None; + def SafeSet(*args, **kwargs): + """SafeSet(self, PaneInfo source)""" + return _aui.PaneInfo_SafeSet(*args, **kwargs) + def IsOk(*args, **kwargs): """ IsOk(self) -> bool @@ -344,6 +365,10 @@ class PaneInfo(object): """ return _aui.PaneInfo_IsMovable(*args, **kwargs) + def IsDestroyOnClose(*args, **kwargs): + """IsDestroyOnClose(self) -> bool""" + return _aui.PaneInfo_IsDestroyOnClose(*args, **kwargs) + def HasCaption(*args, **kwargs): """ HasCaption(self) -> bool @@ -895,13 +920,13 @@ class FrameManager(_core.EvtHandler): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, Frame frame=None, int flags=AUI_MGR_DEFAULT) -> FrameManager + __init__(self, Window managed_wnd=None, int flags=AUI_MGR_DEFAULT) -> FrameManager Constructor. - :param frame: Specifies the `wx.Frame` which should be managed. - If not set in the call to this constructor then `SetFrame` - should be called. + :param managed_wnd: Specifies the `wx.Window` which should be + managed. If not set in the call to this constructor then + `SetManagedWindow` should be called later. :param flags: Specifies options which allow the frame management behavior to be modified. @@ -916,7 +941,7 @@ class FrameManager(_core.EvtHandler): UnInit uninitializes the framework and should be called before a managed frame is destroyed. UnInit is usually called in the managed - wx.Frame's destructor. + window's destructor. """ return _aui.FrameManager_UnInit(*args, **kwargs) @@ -940,26 +965,28 @@ class FrameManager(_core.EvtHandler): """ return _aui.FrameManager_GetFlags(*args, **kwargs) - def SetFrame(*args, **kwargs): + def SetManagedWindow(*args, **kwargs): """ - SetFrame(self, Window frame) + SetManagedWindow(self, Window managed_wnd) - SetFrame is called to specify the frame which is to be managed by the - FrameManager. It only needs to be called if the Frame was not given - to the manager in the constructor. + SetManagedWindow is called to specify the window which is to be + managed by the FrameManager. It is normally a `wx.Frame` but it is + 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. """ - return _aui.FrameManager_SetFrame(*args, **kwargs) + return _aui.FrameManager_SetManagedWindow(*args, **kwargs) - def GetFrame(*args, **kwargs): + def GetManagedWindow(*args, **kwargs): """ - GetFrame(self) -> Window + GetManagedWindow(self) -> Window - GetFrame returns the frame currently being managed by the + GetManagedWindow returns the window currently being managed by the FrameManager. """ - return _aui.FrameManager_GetFrame(*args, **kwargs) + return _aui.FrameManager_GetManagedWindow(*args, **kwargs) def SetArtProvider(*args, **kwargs): """ @@ -1009,6 +1036,10 @@ class FrameManager(_core.EvtHandler): """_AddPane1(self, Window window, PaneInfo pane_info) -> bool""" return _aui.FrameManager__AddPane1(*args, **kwargs) + def AddPaneAtPos(*args, **kwargs): + """AddPaneAtPos(self, Window window, PaneInfo pane_info, Point drop_pos) -> bool""" + return _aui.FrameManager_AddPaneAtPos(*args, **kwargs) + def _AddPane2(*args, **kwargs): """_AddPane2(self, Window window, int direction=LEFT, String caption=wxEmptyString) -> bool""" return _aui.FrameManager__AddPane2(*args, **kwargs) @@ -1040,6 +1071,18 @@ class FrameManager(_core.EvtHandler): """ return _aui.FrameManager_DetachPane(*args, **kwargs) + def ClosePane(*args, **kwargs): + """ClosePane(self, PaneInfo pane_info)""" + return _aui.FrameManager_ClosePane(*args, **kwargs) + + def SavePaneInfo(*args, **kwargs): + """SavePaneInfo(self, PaneInfo pane) -> String""" + return _aui.FrameManager_SavePaneInfo(*args, **kwargs) + + def LoadPaneInfo(*args, **kwargs): + """LoadPaneInfo(self, String pane_part, PaneInfo pane)""" + return _aui.FrameManager_LoadPaneInfo(*args, **kwargs) + def SavePerspective(*args, **kwargs): """ SavePerspective(self) -> String @@ -1079,6 +1122,30 @@ class FrameManager(_core.EvtHandler): """ return _aui.FrameManager_Update(*args, **kwargs) + def CreateFloatingFrame(*args, **kwargs): + """CreateFloatingFrame(self, Window parent, PaneInfo p) -> FloatingPane""" + return _aui.FrameManager_CreateFloatingFrame(*args, **kwargs) + + def DrawHintRect(*args, **kwargs): + """DrawHintRect(self, Window pane_window, Point pt, Point offset)""" + return _aui.FrameManager_DrawHintRect(*args, **kwargs) + + def ShowHint(*args, **kwargs): + """ShowHint(self, Rect rect)""" + return _aui.FrameManager_ShowHint(*args, **kwargs) + + def HideHint(*args, **kwargs): + """HideHint(self)""" + return _aui.FrameManager_HideHint(*args, **kwargs) + + def OnRender(*args, **kwargs): + """OnRender(self, FrameManagerEvent evt)""" + return _aui.FrameManager_OnRender(*args, **kwargs) + + def OnPaneButton(*args, **kwargs): + """OnPaneButton(self, FrameManagerEvent evt)""" + return _aui.FrameManager_OnPaneButton(*args, **kwargs) + def GetPane(self, item): """ GetPane(self, window_or_info item) -> PaneInfo @@ -1125,6 +1192,15 @@ class FrameManager(_core.EvtHandler): caption = "" return self._AddPane2(window, info, caption) + SetFrame = wx._deprecated(SetManagedWindow, + "SetFrame is deprecated, use `SetManagedWindow` instead.") + GetFrame = wx._deprecated(GetManagedWindow, + "GetFrame is deprecated, use `GetManagedWindow` instead.") + + AllPanes = property(GetAllPanes,doc="See `GetAllPanes`") + ArtProvider = property(GetArtProvider,SetArtProvider,doc="See `GetArtProvider` and `SetArtProvider`") + Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") + ManagedWindow = property(GetManagedWindow,SetManagedWindow,doc="See `GetManagedWindow` and `SetManagedWindow`") _aui.FrameManager_swigregister(FrameManager) class FrameManagerEvent(_core.Event): @@ -1146,6 +1222,10 @@ class FrameManagerEvent(_core.Event): """SetButton(self, int b)""" return _aui.FrameManagerEvent_SetButton(*args, **kwargs) + def SetDC(*args, **kwargs): + """SetDC(self, DC pdc)""" + return _aui.FrameManagerEvent_SetDC(*args, **kwargs) + def GetPane(*args, **kwargs): """GetPane(self) -> PaneInfo""" return _aui.FrameManagerEvent_GetPane(*args, **kwargs) @@ -1154,6 +1234,10 @@ class FrameManagerEvent(_core.Event): """GetButton(self) -> int""" return _aui.FrameManagerEvent_GetButton(*args, **kwargs) + def GetDC(*args, **kwargs): + """GetDC(self) -> DC""" + return _aui.FrameManagerEvent_GetDC(*args, **kwargs) + def Veto(*args, **kwargs): """Veto(self, bool veto=True)""" return _aui.FrameManagerEvent_Veto(*args, **kwargs) @@ -1174,6 +1258,10 @@ class FrameManagerEvent(_core.Event): button = property(_aui.FrameManagerEvent_button_get, _aui.FrameManagerEvent_button_set) veto_flag = property(_aui.FrameManagerEvent_veto_flag_get, _aui.FrameManagerEvent_veto_flag_set) canveto_flag = property(_aui.FrameManagerEvent_canveto_flag_get, _aui.FrameManagerEvent_canveto_flag_set) + dc = property(_aui.FrameManagerEvent_dc_get, _aui.FrameManagerEvent_dc_set) + Button = property(GetButton,SetButton,doc="See `GetButton` and `SetButton`") + DC = property(GetDC,SetDC,doc="See `GetDC` and `SetDC`") + Pane = property(GetPane,SetPane,doc="See `GetPane` and `SetPane`") _aui.FrameManagerEvent_swigregister(FrameManagerEvent) class DockInfo(object): @@ -1205,6 +1293,8 @@ class DockInfo(object): resizable = property(_aui.DockInfo_resizable_get, _aui.DockInfo_resizable_set) toolbar = property(_aui.DockInfo_toolbar_get, _aui.DockInfo_toolbar_set) fixed = property(_aui.DockInfo_fixed_get, _aui.DockInfo_fixed_set) + __swig_destroy__ = _aui.delete_DockInfo + __del__ = lambda self : None; _aui.DockInfo_swigregister(DockInfo) class DockUIPart(object): @@ -1229,6 +1319,8 @@ class DockUIPart(object): cont_sizer = property(_aui.DockUIPart_cont_sizer_get, _aui.DockUIPart_cont_sizer_set) sizer_item = property(_aui.DockUIPart_sizer_item_get, _aui.DockUIPart_sizer_item_set) rect = property(_aui.DockUIPart_rect_get, _aui.DockUIPart_rect_set) + __swig_destroy__ = _aui.delete_DockUIPart + __del__ = lambda self : None; _aui.DockUIPart_swigregister(DockUIPart) class PaneButton(object): @@ -1237,12 +1329,16 @@ class PaneButton(object): def __init__(self): raise AttributeError, "No constructor defined" __repr__ = _swig_repr button_id = property(_aui.PaneButton_button_id_get, _aui.PaneButton_button_id_set) + __swig_destroy__ = _aui.delete_PaneButton + __del__ = lambda self : None; _aui.PaneButton_swigregister(PaneButton) wxEVT_AUI_PANEBUTTON = _aui.wxEVT_AUI_PANEBUTTON wxEVT_AUI_PANECLOSE = _aui.wxEVT_AUI_PANECLOSE +wxEVT_AUI_RENDER = _aui.wxEVT_AUI_RENDER EVT_AUI_PANEBUTTON = wx.PyEventBinder( wxEVT_AUI_PANEBUTTON ) EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANECLOSE ) +EVT_AUI_RENDER = wx.PyEventBinder( wxEVT_AUI_RENDER ) class DockArt(object): """ @@ -1290,27 +1386,30 @@ class DockArt(object): return _aui.DockArt_SetColor(*args, **kwargs) def DrawSash(*args, **kwargs): - """DrawSash(self, DC dc, int orientation, Rect rect)""" + """DrawSash(self, DC dc, Window window, int orientation, Rect rect)""" return _aui.DockArt_DrawSash(*args, **kwargs) def DrawBackground(*args, **kwargs): - """DrawBackground(self, DC dc, int orientation, Rect rect)""" + """DrawBackground(self, DC dc, Window window, int orientation, Rect rect)""" return _aui.DockArt_DrawBackground(*args, **kwargs) def DrawCaption(*args, **kwargs): - """DrawCaption(self, DC dc, String text, Rect rect, PaneInfo pane)""" + """DrawCaption(self, DC dc, Window window, String text, Rect rect, PaneInfo pane)""" return _aui.DockArt_DrawCaption(*args, **kwargs) def DrawGripper(*args, **kwargs): - """DrawGripper(self, DC dc, Rect rect, PaneInfo pane)""" + """DrawGripper(self, DC dc, Window window, Rect rect, PaneInfo pane)""" return _aui.DockArt_DrawGripper(*args, **kwargs) def DrawBorder(*args, **kwargs): - """DrawBorder(self, DC dc, Rect rect, PaneInfo pane)""" + """DrawBorder(self, DC dc, Window window, Rect rect, PaneInfo pane)""" return _aui.DockArt_DrawBorder(*args, **kwargs) def DrawPaneButton(*args, **kwargs): - """DrawPaneButton(self, DC dc, int button, int button_state, Rect rect, PaneInfo pane)""" + """ + DrawPaneButton(self, DC dc, Window window, int button, int button_state, + Rect rect, PaneInfo pane) + """ return _aui.DockArt_DrawPaneButton(*args, **kwargs) _aui.DockArt_swigregister(DockArt) @@ -1332,14 +1431,14 @@ class DefaultDockArt(DockArt): _aui.DefaultDockArt_swiginit(self,_aui.new_DefaultDockArt(*args, **kwargs)) _aui.DefaultDockArt_swigregister(DefaultDockArt) -class FloatingPane(_windows.Frame): +class FloatingPane(_windows.MiniFrame): """Proxy of C++ FloatingPane class""" thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ __init__(self, Window parent, FrameManager owner_mgr, PaneInfo pane, - int id=ID_ANY) -> FloatingPane + int id=ID_ANY, long style=wxRESIZE_BORDER|wxSYSTEM_MENU|wxCAPTION|wxFRAME_NO_TASKBAR|wxFRAME_FLOAT_ON_PARENT|wxCLIP_CHILDREN) -> FloatingPane """ _aui.FloatingPane_swiginit(self,_aui.new_FloatingPane(*args, **kwargs)) __swig_destroy__ = _aui.delete_FloatingPane @@ -1350,6 +1449,346 @@ class FloatingPane(_windows.Frame): _aui.FloatingPane_swigregister(FloatingPane) +class TabArt(object): + """Proxy of C++ TabArt class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr + __swig_destroy__ = _aui.delete_TabArt + __del__ = lambda self : None; + def SetNormalFont(*args, **kwargs): + """SetNormalFont(self, Font font)""" + return _aui.TabArt_SetNormalFont(*args, **kwargs) + + def SetSelectedFont(*args, **kwargs): + """SetSelectedFont(self, Font font)""" + return _aui.TabArt_SetSelectedFont(*args, **kwargs) + + def SetMeasuringFont(*args, **kwargs): + """SetMeasuringFont(self, Font font)""" + return _aui.TabArt_SetMeasuringFont(*args, **kwargs) + + def DrawBackground(*args, **kwargs): + """DrawBackground(self, DC dc, Rect rect)""" + return _aui.TabArt_DrawBackground(*args, **kwargs) + + def DrawTab(*args, **kwargs): + """ + DrawTab(self, DC dc, Rect in_rect, String caption, bool active, Rect out_rect, + int x_extent) + """ + return _aui.TabArt_DrawTab(*args, **kwargs) + + def DrawButton(*args, **kwargs): + """ + DrawButton(self, DC dc, Rect in_rect, int bitmap_id, int button_state, + int orientation, Bitmap bitmap_override, Rect out_rect) + """ + return _aui.TabArt_DrawButton(*args, **kwargs) + + def GetTabSize(*args, **kwargs): + """GetTabSize(self, DC dc, String caption, bool active, int x_extent) -> Size""" + return _aui.TabArt_GetTabSize(*args, **kwargs) + + def GetBestTabCtrlSize(*args, **kwargs): + """GetBestTabCtrlSize(self, Window wnd) -> int""" + return _aui.TabArt_GetBestTabCtrlSize(*args, **kwargs) + +_aui.TabArt_swigregister(TabArt) + +class DefaultTabArt(TabArt): + """Proxy of C++ DefaultTabArt class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self) -> DefaultTabArt""" + _aui.DefaultTabArt_swiginit(self,_aui.new_DefaultTabArt(*args, **kwargs)) + __swig_destroy__ = _aui.delete_DefaultTabArt + __del__ = lambda self : None; +_aui.DefaultTabArt_swigregister(DefaultTabArt) + +class AuiNotebookEvent(_core.NotifyEvent): + """Proxy of C++ AuiNotebookEvent class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, EventType command_type=wxEVT_NULL, int win_id=0) -> AuiNotebookEvent""" + _aui.AuiNotebookEvent_swiginit(self,_aui.new_AuiNotebookEvent(*args, **kwargs)) + def SetSelection(*args, **kwargs): + """SetSelection(self, int s)""" + return _aui.AuiNotebookEvent_SetSelection(*args, **kwargs) + + def SetOldSelection(*args, **kwargs): + """SetOldSelection(self, int s)""" + return _aui.AuiNotebookEvent_SetOldSelection(*args, **kwargs) + + def GetSelection(*args, **kwargs): + """ + GetSelection(self) -> int + + Returns item index for a listbox or choice selection event (not valid + for a deselection). + """ + return _aui.AuiNotebookEvent_GetSelection(*args, **kwargs) + + def GetOldSelection(*args, **kwargs): + """GetOldSelection(self) -> int""" + return _aui.AuiNotebookEvent_GetOldSelection(*args, **kwargs) + + old_selection = property(_aui.AuiNotebookEvent_old_selection_get, _aui.AuiNotebookEvent_old_selection_set) + selection = property(_aui.AuiNotebookEvent_selection_get, _aui.AuiNotebookEvent_selection_set) + OldSelection = property(GetOldSelection,SetOldSelection,doc="See `GetOldSelection` and `SetOldSelection`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") +_aui.AuiNotebookEvent_swigregister(AuiNotebookEvent) + +class AuiNotebookPage(object): + """Proxy of C++ AuiNotebookPage class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr + window = property(_aui.AuiNotebookPage_window_get, _aui.AuiNotebookPage_window_set) + caption = property(_aui.AuiNotebookPage_caption_get, _aui.AuiNotebookPage_caption_set) + bitmap = property(_aui.AuiNotebookPage_bitmap_get, _aui.AuiNotebookPage_bitmap_set) + rect = property(_aui.AuiNotebookPage_rect_get, _aui.AuiNotebookPage_rect_set) + active = property(_aui.AuiNotebookPage_active_get, _aui.AuiNotebookPage_active_set) +_aui.AuiNotebookPage_swigregister(AuiNotebookPage) + +class AuiTabContainerButton(object): + """Proxy of C++ AuiTabContainerButton class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr + id = property(_aui.AuiTabContainerButton_id_get, _aui.AuiTabContainerButton_id_set) + cur_state = property(_aui.AuiTabContainerButton_cur_state_get, _aui.AuiTabContainerButton_cur_state_set) + location = property(_aui.AuiTabContainerButton_location_get, _aui.AuiTabContainerButton_location_set) + bitmap = property(_aui.AuiTabContainerButton_bitmap_get, _aui.AuiTabContainerButton_bitmap_set) + dis_bitmap = property(_aui.AuiTabContainerButton_dis_bitmap_get, _aui.AuiTabContainerButton_dis_bitmap_set) + rect = property(_aui.AuiTabContainerButton_rect_get, _aui.AuiTabContainerButton_rect_set) +_aui.AuiTabContainerButton_swigregister(AuiTabContainerButton) + +class AuiTabContainer(object): + """Proxy of C++ AuiTabContainer class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self) -> AuiTabContainer""" + _aui.AuiTabContainer_swiginit(self,_aui.new_AuiTabContainer(*args, **kwargs)) + __swig_destroy__ = _aui.delete_AuiTabContainer + __del__ = lambda self : None; + def SetArtProvider(*args, **kwargs): + """SetArtProvider(self, TabArt art)""" + return _aui.AuiTabContainer_SetArtProvider(*args, **kwargs) + + def GetArtProvider(*args, **kwargs): + """GetArtProvider(self) -> TabArt""" + return _aui.AuiTabContainer_GetArtProvider(*args, **kwargs) + + def AddPage(*args, **kwargs): + """AddPage(self, Window page, AuiNotebookPage info) -> bool""" + return _aui.AuiTabContainer_AddPage(*args, **kwargs) + + def InsertPage(*args, **kwargs): + """InsertPage(self, Window page, AuiNotebookPage info, size_t idx) -> bool""" + return _aui.AuiTabContainer_InsertPage(*args, **kwargs) + + def MovePage(*args, **kwargs): + """MovePage(self, Window page, size_t new_idx) -> bool""" + return _aui.AuiTabContainer_MovePage(*args, **kwargs) + + def RemovePage(*args, **kwargs): + """RemovePage(self, Window page) -> bool""" + return _aui.AuiTabContainer_RemovePage(*args, **kwargs) + + def SetActivePage(*args): + """ + SetActivePage(self, Window page) -> bool + SetActivePage(self, size_t page) -> bool + """ + return _aui.AuiTabContainer_SetActivePage(*args) + + def SetNoneActive(*args, **kwargs): + """SetNoneActive(self)""" + return _aui.AuiTabContainer_SetNoneActive(*args, **kwargs) + + def GetActivePage(*args, **kwargs): + """GetActivePage(self) -> int""" + return _aui.AuiTabContainer_GetActivePage(*args, **kwargs) + + def TabHitTest(*args, **kwargs): + """TabHitTest(self, int x, int y, Window hit) -> bool""" + return _aui.AuiTabContainer_TabHitTest(*args, **kwargs) + + def ButtonHitTest(*args, **kwargs): + """ButtonHitTest(self, int x, int y, AuiTabContainerButton hit) -> bool""" + return _aui.AuiTabContainer_ButtonHitTest(*args, **kwargs) + + def GetWindowFromIdx(*args, **kwargs): + """GetWindowFromIdx(self, size_t idx) -> Window""" + return _aui.AuiTabContainer_GetWindowFromIdx(*args, **kwargs) + + def GetIdxFromWindow(*args, **kwargs): + """GetIdxFromWindow(self, Window page) -> int""" + return _aui.AuiTabContainer_GetIdxFromWindow(*args, **kwargs) + + def GetPageCount(*args, **kwargs): + """GetPageCount(self) -> size_t""" + return _aui.AuiTabContainer_GetPageCount(*args, **kwargs) + + def GetPage(*args, **kwargs): + """GetPage(self, size_t idx) -> AuiNotebookPage""" + return _aui.AuiTabContainer_GetPage(*args, **kwargs) + + def GetPages(*args, **kwargs): + """GetPages(self) -> wxAuiNotebookPageArray""" + return _aui.AuiTabContainer_GetPages(*args, **kwargs) + + def SetNormalFont(*args, **kwargs): + """SetNormalFont(self, Font normal_font)""" + return _aui.AuiTabContainer_SetNormalFont(*args, **kwargs) + + def SetSelectedFont(*args, **kwargs): + """SetSelectedFont(self, Font selected_font)""" + return _aui.AuiTabContainer_SetSelectedFont(*args, **kwargs) + + def SetMeasuringFont(*args, **kwargs): + """SetMeasuringFont(self, Font measuring_font)""" + return _aui.AuiTabContainer_SetMeasuringFont(*args, **kwargs) + + def DoShowHide(*args, **kwargs): + """DoShowHide(self)""" + return _aui.AuiTabContainer_DoShowHide(*args, **kwargs) + + def SetRect(*args, **kwargs): + """SetRect(self, Rect rect)""" + return _aui.AuiTabContainer_SetRect(*args, **kwargs) + + def AddButton(*args, **kwargs): + """ + AddButton(self, int id, int location, Bitmap normal_bitmap=wxNullBitmap, + Bitmap disabled_bitmap=wxNullBitmap) + """ + return _aui.AuiTabContainer_AddButton(*args, **kwargs) + + def GetTabOffset(*args, **kwargs): + """GetTabOffset(self) -> size_t""" + return _aui.AuiTabContainer_GetTabOffset(*args, **kwargs) + + def SetTabOffset(*args, **kwargs): + """SetTabOffset(self, size_t offset)""" + return _aui.AuiTabContainer_SetTabOffset(*args, **kwargs) + + ActivePage = property(GetActivePage,SetActivePage,doc="See `GetActivePage` and `SetActivePage`") + PageCount = property(GetPageCount,doc="See `GetPageCount`") + Pages = property(GetPages,doc="See `GetPages`") +_aui.AuiTabContainer_swigregister(AuiTabContainer) + +class AuiTabCtrl(_core.Control,AuiTabContainer): + """Proxy of C++ AuiTabCtrl class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """ + __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, + Size size=DefaultSize, long style=0) -> AuiTabCtrl + """ + _aui.AuiTabCtrl_swiginit(self,_aui.new_AuiTabCtrl(*args, **kwargs)) + self._setOORInfo(self) + + __swig_destroy__ = _aui.delete_AuiTabCtrl + __del__ = lambda self : None; +_aui.AuiTabCtrl_swigregister(AuiTabCtrl) + +class AuiMultiNotebook(_core.Control): + """Proxy of C++ AuiMultiNotebook class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """ + __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, + Size size=DefaultSize, long style=0) -> AuiMultiNotebook + """ + _aui.AuiMultiNotebook_swiginit(self,_aui.new_AuiMultiNotebook(*args, **kwargs)) + self._setOORInfo(self) + + def Create(*args, **kwargs): + """ + Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, + Size size=DefaultSize, long style=0) -> bool + + Do the 2nd phase and create the GUI control. + """ + return _aui.AuiMultiNotebook_Create(*args, **kwargs) + + def AddPage(*args, **kwargs): + """AddPage(self, Window page, String caption, bool select=False, Bitmap bitmap=wxNullBitmap) -> bool""" + return _aui.AuiMultiNotebook_AddPage(*args, **kwargs) + + def InsertPage(*args, **kwargs): + """ + InsertPage(self, size_t page_idx, Window page, String caption, bool select=False, + Bitmap bitmap=wxNullBitmap) -> bool + """ + return _aui.AuiMultiNotebook_InsertPage(*args, **kwargs) + + def DeletePage(*args, **kwargs): + """DeletePage(self, size_t page) -> bool""" + return _aui.AuiMultiNotebook_DeletePage(*args, **kwargs) + + def RemovePage(*args, **kwargs): + """RemovePage(self, size_t page) -> bool""" + return _aui.AuiMultiNotebook_RemovePage(*args, **kwargs) + + def SetPageText(*args, **kwargs): + """SetPageText(self, size_t page, String text) -> bool""" + return _aui.AuiMultiNotebook_SetPageText(*args, **kwargs) + + def SetSelection(*args, **kwargs): + """SetSelection(self, size_t new_page) -> size_t""" + return _aui.AuiMultiNotebook_SetSelection(*args, **kwargs) + + def GetSelection(*args, **kwargs): + """GetSelection(self) -> int""" + return _aui.AuiMultiNotebook_GetSelection(*args, **kwargs) + + def GetPageCount(*args, **kwargs): + """GetPageCount(self) -> size_t""" + return _aui.AuiMultiNotebook_GetPageCount(*args, **kwargs) + + def GetPage(*args, **kwargs): + """GetPage(self, size_t page_idx) -> Window""" + return _aui.AuiMultiNotebook_GetPage(*args, **kwargs) + + def SetArtProvider(*args, **kwargs): + """SetArtProvider(self, TabArt art)""" + return _aui.AuiMultiNotebook_SetArtProvider(*args, **kwargs) + + def GetArtProvider(*args, **kwargs): + """GetArtProvider(self) -> TabArt""" + return _aui.AuiMultiNotebook_GetArtProvider(*args, **kwargs) + + PageCount = property(GetPageCount,doc="See `GetPageCount`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") +_aui.AuiMultiNotebook_swigregister(AuiMultiNotebook) + +def PreAuiMultiNotebook(*args, **kwargs): + """PreAuiMultiNotebook() -> AuiMultiNotebook""" + val = _aui.new_PreAuiMultiNotebook(*args, **kwargs) + self._setOORInfo(self) + return val + +wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED = _aui.wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED +wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING = _aui.wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING +wxEVT_COMMAND_AUINOTEBOOK_BUTTON = _aui.wxEVT_COMMAND_AUINOTEBOOK_BUTTON +wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG = _aui.wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG +wxEVT_COMMAND_AUINOTEBOOK_END_DRAG = _aui.wxEVT_COMMAND_AUINOTEBOOK_END_DRAG +wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION = _aui.wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION +EVT_AUINOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, 1 ) +EVT_AUINOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, 1 ) +EVT_AUINOTEBOOK_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BUTTON, 1 ) +EVT_AUINOTEBOOK_BEGIN_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG, 1 ) +EVT_AUINOTEBOOK_END_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_END_DRAG, 1 ) +EVT_AUINOTEBOOK_DRAG_MOTION = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION, 1 ) + class PyDockArt(DefaultDockArt): """ This version of the `DockArt` class has been instrumented to be @@ -1361,5 +1800,16 @@ class PyDockArt(DefaultDockArt): __repr__ = _swig_repr _aui.PyDockArt_swigregister(PyDockArt) +class PyTabArt(DefaultTabArt): + """ + This version of the `TabArt` class has been instrumented to be + subclassable in Python and to reflect all calls to the C++ base class + methods to the Python methods implemented in the derived class. + """ + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr +_aui.PyTabArt_swigregister(PyTabArt) +