1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
5 The wx.aui moduleis an Advanced User Interface library that aims to
6 implement "cutting-edge" interface usability and design features so
7 developers can quickly and easily create beautiful and usable
8 application interfaces.
10 **Vision and Design Principles**
12 wx.aui attempts to encapsulate the following aspects of the user
15 * Frame Management: Frame management provides the means to open,
16 move and hide common controls that are needed to interact with the
17 document, and allow these configurations to be saved into
18 different perspectives and loaded at a later time.
20 * Toolbars: Toolbars are a specialized subset of the frame
21 management system and should behave similarly to other docked
22 components. However, they also require additional functionality,
23 such as "spring-loaded" rebar support, "chevron" buttons and
24 end-user customizability.
26 * Modeless Controls: Modeless controls expose a tool palette or set
27 of options that float above the application content while allowing
28 it to be accessed. Usually accessed by the toolbar, these controls
29 disappear when an option is selected, but may also be "torn off"
30 the toolbar into a floating frame of their own.
32 * Look and Feel: Look and feel encompasses the way controls are
33 drawn, both when shown statically as well as when they are being
34 moved. This aspect of user interface design incorporates "special
35 effects" such as transparent window dragging as well as frame
38 **PyAUI adheres to the following principles**
40 - Use native floating frames to obtain a native look and feel for
43 - Use existing wxPython code where possible, such as sizer
44 implementation for frame management;
46 - Use standard wxPython coding conventions.
51 The following example shows a simple implementation that utilizes
52 `wx.aui.FrameManager` to manage three text controls in a frame window::
57 class MyFrame(wx.Frame):
59 def __init__(self, parent, id=-1, title='wx.aui Test',
60 size=(800, 600), style=wx.DEFAULT_FRAME_STYLE):
61 wx.Frame.__init__(self, parent, id, title, pos, size, style)
63 self._mgr = wx.aui.FrameManager(self)
65 # create several text controls
66 text1 = wx.TextCtrl(self, -1, 'Pane 1 - sample text',
67 wx.DefaultPosition, wx.Size(200,150),
68 wx.NO_BORDER | wx.TE_MULTILINE)
70 text2 = wx.TextCtrl(self, -1, 'Pane 2 - sample text',
71 wx.DefaultPosition, wx.Size(200,150),
72 wx.NO_BORDER | wx.TE_MULTILINE)
74 text3 = wx.TextCtrl(self, -1, 'Main content window',
75 wx.DefaultPosition, wx.Size(200,150),
76 wx.NO_BORDER | wx.TE_MULTILINE)
78 # add the panes to the manager
79 self._mgr.AddPane(text1, wx.LEFT, 'Pane Number One')
80 self._mgr.AddPane(text2, wx.BOTTOM, 'Pane Number Two')
81 self._mgr.AddPane(text3, wx.CENTER)
83 # tell the manager to 'commit' all the changes just made
86 self.Bind(wx.EVT_CLOSE, self.OnClose)
89 def OnClose(self, event):
90 # deinitialize the frame manager
105 new_instancemethod
= new
.instancemethod
106 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
107 if (name
== "thisown"): return self
.this
.own(value
)
109 if type(value
).__name
__ == 'PySwigObject':
110 self
.__dict
__[name
] = value
112 method
= class_type
.__swig
_setmethods
__.get(name
,None)
113 if method
: return method(self
,value
)
114 if (not static
) or hasattr(self
,name
):
115 self
.__dict
__[name
] = value
117 raise AttributeError("You cannot add attributes to %s" % self
)
119 def _swig_setattr(self
,class_type
,name
,value
):
120 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
122 def _swig_getattr(self
,class_type
,name
):
123 if (name
== "thisown"): return self
.this
.own()
124 method
= class_type
.__swig
_getmethods
__.get(name
,None)
125 if method
: return method(self
)
126 raise AttributeError,name
128 def _swig_repr(self
):
129 try: strthis
= "proxy of " + self
.this
.__repr
__()
131 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
135 _object
= types
.ObjectType
137 except AttributeError:
143 def _swig_setattr_nondynamic_method(set):
144 def set_attr(self
,name
,value
):
145 if (name
== "thisown"): return self
.this
.own(value
)
146 if hasattr(self
,name
) or (name
== "this"):
149 raise AttributeError("You cannot add attributes to %s" % self
)
156 __docfilter__
= wx
.__DocFilter
(globals())
157 USE_AUI
= _aui
.USE_AUI
158 AUI_DOCK_NONE
= _aui
.AUI_DOCK_NONE
159 AUI_DOCK_TOP
= _aui
.AUI_DOCK_TOP
160 AUI_DOCK_RIGHT
= _aui
.AUI_DOCK_RIGHT
161 AUI_DOCK_BOTTOM
= _aui
.AUI_DOCK_BOTTOM
162 AUI_DOCK_LEFT
= _aui
.AUI_DOCK_LEFT
163 AUI_DOCK_CENTER
= _aui
.AUI_DOCK_CENTER
164 AUI_DOCK_CENTRE
= _aui
.AUI_DOCK_CENTRE
165 AUI_MGR_ALLOW_FLOATING
= _aui
.AUI_MGR_ALLOW_FLOATING
166 AUI_MGR_ALLOW_ACTIVE_PANE
= _aui
.AUI_MGR_ALLOW_ACTIVE_PANE
167 AUI_MGR_TRANSPARENT_DRAG
= _aui
.AUI_MGR_TRANSPARENT_DRAG
168 AUI_MGR_TRANSPARENT_HINT
= _aui
.AUI_MGR_TRANSPARENT_HINT
169 AUI_MGR_TRANSPARENT_HINT_FADE
= _aui
.AUI_MGR_TRANSPARENT_HINT_FADE
170 AUI_MGR_DEFAULT
= _aui
.AUI_MGR_DEFAULT
171 AUI_ART_SASH_SIZE
= _aui
.AUI_ART_SASH_SIZE
172 AUI_ART_CAPTION_SIZE
= _aui
.AUI_ART_CAPTION_SIZE
173 AUI_ART_GRIPPER_SIZE
= _aui
.AUI_ART_GRIPPER_SIZE
174 AUI_ART_PANE_BORDER_SIZE
= _aui
.AUI_ART_PANE_BORDER_SIZE
175 AUI_ART_PANE_BUTTON_SIZE
= _aui
.AUI_ART_PANE_BUTTON_SIZE
176 AUI_ART_BACKGROUND_COLOUR
= _aui
.AUI_ART_BACKGROUND_COLOUR
177 AUI_ART_SASH_COLOUR
= _aui
.AUI_ART_SASH_COLOUR
178 AUI_ART_ACTIVE_CAPTION_COLOUR
= _aui
.AUI_ART_ACTIVE_CAPTION_COLOUR
179 AUI_ART_ACTIVE_CAPTION_GRADIENT_COLOUR
= _aui
.AUI_ART_ACTIVE_CAPTION_GRADIENT_COLOUR
180 AUI_ART_INACTIVE_CAPTION_COLOUR
= _aui
.AUI_ART_INACTIVE_CAPTION_COLOUR
181 AUI_ART_INACTIVE_CAPTION_GRADIENT_COLOUR
= _aui
.AUI_ART_INACTIVE_CAPTION_GRADIENT_COLOUR
182 AUI_ART_ACTIVE_CAPTION_TEXT_COLOUR
= _aui
.AUI_ART_ACTIVE_CAPTION_TEXT_COLOUR
183 AUI_ART_INACTIVE_CAPTION_TEXT_COLOUR
= _aui
.AUI_ART_INACTIVE_CAPTION_TEXT_COLOUR
184 AUI_ART_BORDER_COLOUR
= _aui
.AUI_ART_BORDER_COLOUR
185 AUI_ART_GRIPPER_COLOUR
= _aui
.AUI_ART_GRIPPER_COLOUR
186 AUI_ART_CAPTION_FONT
= _aui
.AUI_ART_CAPTION_FONT
187 AUI_ART_GRADIENT_TYPE
= _aui
.AUI_ART_GRADIENT_TYPE
188 AUI_GRADIENT_NONE
= _aui
.AUI_GRADIENT_NONE
189 AUI_GRADIENT_VERTICAL
= _aui
.AUI_GRADIENT_VERTICAL
190 AUI_GRADIENT_HORIZONTAL
= _aui
.AUI_GRADIENT_HORIZONTAL
191 AUI_BUTTON_STATE_NORMAL
= _aui
.AUI_BUTTON_STATE_NORMAL
192 AUI_BUTTON_STATE_HOVER
= _aui
.AUI_BUTTON_STATE_HOVER
193 AUI_BUTTON_STATE_PRESSED
= _aui
.AUI_BUTTON_STATE_PRESSED
194 AUI_INSERT_PANE
= _aui
.AUI_INSERT_PANE
195 AUI_INSERT_ROW
= _aui
.AUI_INSERT_ROW
196 AUI_INSERT_DOCK
= _aui
.AUI_INSERT_DOCK
197 class PaneInfo(object):
199 PaneInfo specifies all the parameters for a pane for the
200 `FrameManager`. These parameters specify where the pane is on the
201 screen, whether it is docked or floating, or hidden. In addition,
202 these parameters specify the pane's docked position, floating
203 position, preferred size, minimum size, caption text among many other
207 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
208 __repr__
= _swig_repr
209 def __init__(self
, *args
, **kwargs
):
211 __init__(self) -> PaneInfo
213 PaneInfo specifies all the parameters for a pane for the
214 `FrameManager`. These parameters specify where the pane is on the
215 screen, whether it is docked or floating, or hidden. In addition,
216 these parameters specify the pane's docked position, floating
217 position, preferred size, minimum size, caption text among many other
221 _aui
.PaneInfo_swiginit(self
,_aui
.new_PaneInfo(*args
, **kwargs
))
222 __swig_destroy__
= _aui
.delete_PaneInfo
223 __del__
= lambda self
: None;
224 def IsOk(*args
, **kwargs
):
228 IsOk returns ``True`` if the PaneInfo structure is valid.
231 return _aui
.PaneInfo_IsOk(*args
, **kwargs
)
233 def IsFixed(*args
, **kwargs
):
235 IsFixed(self) -> bool
237 IsFixed returns ``True`` if the pane cannot be resized.
240 return _aui
.PaneInfo_IsFixed(*args
, **kwargs
)
242 def IsResizable(*args
, **kwargs
):
244 IsResizable(self) -> bool
246 IsResizeable returns ``True`` if the pane can be resized.
249 return _aui
.PaneInfo_IsResizable(*args
, **kwargs
)
251 def IsShown(*args
, **kwargs
):
253 IsShown(self) -> bool
255 IsShown returns ``True`` if the pane should be drawn on the screen.
258 return _aui
.PaneInfo_IsShown(*args
, **kwargs
)
260 def IsFloating(*args
, **kwargs
):
262 IsFloating(self) -> bool
264 IsFloating returns ``True`` if the pane is floating.
267 return _aui
.PaneInfo_IsFloating(*args
, **kwargs
)
269 def IsDocked(*args
, **kwargs
):
271 IsDocked(self) -> bool
273 IsDocked returns ``True`` if the pane is docked.
276 return _aui
.PaneInfo_IsDocked(*args
, **kwargs
)
278 def IsToolbar(*args
, **kwargs
):
280 IsToolbar(self) -> bool
282 IsToolbar returns ``True`` if the pane contains a toolbar.
285 return _aui
.PaneInfo_IsToolbar(*args
, **kwargs
)
287 def IsTopDockable(*args
, **kwargs
):
289 IsTopDockable(self) -> bool
291 IsTopDockable returns ``True`` if the pane can be docked at the top of
295 return _aui
.PaneInfo_IsTopDockable(*args
, **kwargs
)
297 def IsBottomDockable(*args
, **kwargs
):
299 IsBottomDockable(self) -> bool
301 IsBottomDockable returns ``True`` if the pane can be docked at the
302 bottom of the managed frame.
305 return _aui
.PaneInfo_IsBottomDockable(*args
, **kwargs
)
307 def IsLeftDockable(*args
, **kwargs
):
309 IsLeftDockable(self) -> bool
311 IsLeftDockable returns ``True`` if the pane can be docked on the left
312 of the managed frame.
315 return _aui
.PaneInfo_IsLeftDockable(*args
, **kwargs
)
317 def IsRightDockable(*args
, **kwargs
):
319 IsRightDockable(self) -> bool
321 IsRightDockable returns ``True`` if the pane can be docked on the
322 right of the managed frame.
325 return _aui
.PaneInfo_IsRightDockable(*args
, **kwargs
)
327 def IsFloatable(*args
, **kwargs
):
329 IsFloatable(self) -> bool
331 IsFloatable returns ``True`` if the pane can be undocked and displayed
332 as a floating window.
335 return _aui
.PaneInfo_IsFloatable(*args
, **kwargs
)
337 def IsMovable(*args
, **kwargs
):
339 IsMovable(self) -> bool
341 IsMoveable returns ``True`` if the docked frame can be undocked or moved
342 to another dock position.
345 return _aui
.PaneInfo_IsMovable(*args
, **kwargs
)
347 def HasCaption(*args
, **kwargs
):
349 HasCaption(self) -> bool
351 HasCaption returns ``True`` if the pane displays a caption.
354 return _aui
.PaneInfo_HasCaption(*args
, **kwargs
)
356 def HasGripper(*args
, **kwargs
):
358 HasGripper(self) -> bool
360 HasGripper returns ``True`` if the pane displays a gripper.
363 return _aui
.PaneInfo_HasGripper(*args
, **kwargs
)
365 def HasBorder(*args
, **kwargs
):
367 HasBorder(self) -> bool
369 HasBorder returns ``True`` if the pane displays a border.
372 return _aui
.PaneInfo_HasBorder(*args
, **kwargs
)
374 def HasCloseButton(*args
, **kwargs
):
376 HasCloseButton(self) -> bool
378 HasCloseButton returns ``True`` if the pane displays a button to close
382 return _aui
.PaneInfo_HasCloseButton(*args
, **kwargs
)
384 def HasMaximizeButton(*args
, **kwargs
):
386 HasMaximizeButton(self) -> bool
388 HasMaximizeButton returns ``True`` if the pane displays a button to
392 return _aui
.PaneInfo_HasMaximizeButton(*args
, **kwargs
)
394 def HasMinimizeButton(*args
, **kwargs
):
396 HasMinimizeButton(self) -> bool
398 HasMinimizeButton returns ``True`` if the pane displays a button to
402 return _aui
.PaneInfo_HasMinimizeButton(*args
, **kwargs
)
404 def HasPinButton(*args
, **kwargs
):
406 HasPinButton(self) -> bool
408 HasPinButton returns ``True`` if the pane displays a button to float
412 return _aui
.PaneInfo_HasPinButton(*args
, **kwargs
)
414 def HasGripperTop(*args
, **kwargs
):
415 """HasGripperTop(self) -> bool"""
416 return _aui
.PaneInfo_HasGripperTop(*args
, **kwargs
)
418 def Window(*args
, **kwargs
):
419 """Window(self, Window w) -> PaneInfo"""
420 return _aui
.PaneInfo_Window(*args
, **kwargs
)
422 def Name(*args
, **kwargs
):
424 Name(self, String n) -> PaneInfo
426 Name sets the name of the pane so it can be referenced in lookup
430 return _aui
.PaneInfo_Name(*args
, **kwargs
)
432 def Caption(*args
, **kwargs
):
434 Caption(self, String c) -> PaneInfo
436 Caption sets the caption of the pane.
439 return _aui
.PaneInfo_Caption(*args
, **kwargs
)
441 def Left(*args
, **kwargs
):
443 Left(self) -> PaneInfo
445 Left sets the pane dock position to the left side of the frame.
448 return _aui
.PaneInfo_Left(*args
, **kwargs
)
450 def Right(*args
, **kwargs
):
452 Right(self) -> PaneInfo
454 Right sets the pane dock position to the right side of the frame.
457 return _aui
.PaneInfo_Right(*args
, **kwargs
)
459 def Top(*args
, **kwargs
):
461 Top(self) -> PaneInfo
463 Top sets the pane dock position to the top of the frame.
466 return _aui
.PaneInfo_Top(*args
, **kwargs
)
468 def Bottom(*args
, **kwargs
):
470 Bottom(self) -> PaneInfo
472 Bottom sets the pane dock position to the bottom of the frame.
475 return _aui
.PaneInfo_Bottom(*args
, **kwargs
)
477 def Center(*args
, **kwargs
):
479 Center(self) -> PaneInfo
481 Center sets the pane to the center position of the frame.
484 return _aui
.PaneInfo_Center(*args
, **kwargs
)
486 def Centre(*args
, **kwargs
):
488 Centre(self) -> PaneInfo
490 Centre sets the pane to the center position of the frame.
493 return _aui
.PaneInfo_Centre(*args
, **kwargs
)
495 def Direction(*args
, **kwargs
):
497 Direction(self, int direction) -> PaneInfo
499 Direction determines the direction of the docked pane.
502 return _aui
.PaneInfo_Direction(*args
, **kwargs
)
504 def Layer(*args
, **kwargs
):
506 Layer(self, int layer) -> PaneInfo
508 Layer determines the layer of the docked pane.
511 return _aui
.PaneInfo_Layer(*args
, **kwargs
)
513 def Row(*args
, **kwargs
):
515 Row(self, int row) -> PaneInfo
517 Row determines the row of the docked pane.
520 return _aui
.PaneInfo_Row(*args
, **kwargs
)
522 def Position(*args
, **kwargs
):
524 Position(self, int pos) -> PaneInfo
526 Position determines the position of the docked pane.
529 return _aui
.PaneInfo_Position(*args
, **kwargs
)
531 def BestSize(*args
, **kwargs
):
533 BestSize(self, Size size) -> PaneInfo
535 BestSize sets the ideal size for the pane.
538 return _aui
.PaneInfo_BestSize(*args
, **kwargs
)
540 def MinSize(*args
, **kwargs
):
542 MinSize(self, Size size) -> PaneInfo
544 MinSize sets the minimum size of the pane.
547 return _aui
.PaneInfo_MinSize(*args
, **kwargs
)
549 def MaxSize(*args
, **kwargs
):
551 MaxSize(self, Size size) -> PaneInfo
553 MaxSize sets the maximum size of the pane.
556 return _aui
.PaneInfo_MaxSize(*args
, **kwargs
)
558 def FloatingPosition(*args
, **kwargs
):
560 FloatingPosition(self, Point pos) -> PaneInfo
562 FloatingPosition sets the position of the floating pane.
565 return _aui
.PaneInfo_FloatingPosition(*args
, **kwargs
)
567 def FloatingSize(*args
, **kwargs
):
569 FloatingSize(self, Size size) -> PaneInfo
571 FloatingSize sets the size of the floating pane.
574 return _aui
.PaneInfo_FloatingSize(*args
, **kwargs
)
576 def Fixed(*args
, **kwargs
):
578 Fixed(self) -> PaneInfo
580 Fixed forces a pane to be fixed size so that it cannot be resized.
583 return _aui
.PaneInfo_Fixed(*args
, **kwargs
)
585 def Resizable(*args
, **kwargs
):
587 Resizable(self, bool resizable=True) -> PaneInfo
589 Resized allows a pane to be resized if resizable is true, and forces
590 it to be a fixed size if resizeable is false.
593 return _aui
.PaneInfo_Resizable(*args
, **kwargs
)
595 def Dock(*args
, **kwargs
):
597 Dock(self) -> PaneInfo
599 Dock indicates that a pane should be docked.
602 return _aui
.PaneInfo_Dock(*args
, **kwargs
)
604 def Float(*args
, **kwargs
):
606 Float(self) -> PaneInfo
608 Float indicates that a pane should be floated.
611 return _aui
.PaneInfo_Float(*args
, **kwargs
)
613 def Hide(*args
, **kwargs
):
615 Hide(self) -> PaneInfo
617 Hide indicates that a pane should be hidden.
620 return _aui
.PaneInfo_Hide(*args
, **kwargs
)
622 def Show(*args
, **kwargs
):
624 Show(self, bool show=True) -> PaneInfo
626 Show indicates that a pane should be shown.
629 return _aui
.PaneInfo_Show(*args
, **kwargs
)
631 def CaptionVisible(*args
, **kwargs
):
633 CaptionVisible(self, bool visible=True) -> PaneInfo
635 CaptionVisible indicates that a pane caption should be visible.
638 return _aui
.PaneInfo_CaptionVisible(*args
, **kwargs
)
640 def PaneBorder(*args
, **kwargs
):
642 PaneBorder(self, bool visible=True) -> PaneInfo
644 PaneBorder indicates that a border should be drawn for the pane.
647 return _aui
.PaneInfo_PaneBorder(*args
, **kwargs
)
649 def Gripper(*args
, **kwargs
):
651 Gripper(self, bool visible=True) -> PaneInfo
653 Gripper indicates that a gripper should be drawn for the pane..
656 return _aui
.PaneInfo_Gripper(*args
, **kwargs
)
658 def GripperTop(*args
, **kwargs
):
659 """GripperTop(self, bool attop=True) -> PaneInfo"""
660 return _aui
.PaneInfo_GripperTop(*args
, **kwargs
)
662 def CloseButton(*args
, **kwargs
):
664 CloseButton(self, bool visible=True) -> PaneInfo
666 CloseButton indicates that a close button should be drawn for the
670 return _aui
.PaneInfo_CloseButton(*args
, **kwargs
)
672 def MaximizeButton(*args
, **kwargs
):
674 MaximizeButton(self, bool visible=True) -> PaneInfo
676 MaximizeButton indicates that a maximize button should be drawn for
680 return _aui
.PaneInfo_MaximizeButton(*args
, **kwargs
)
682 def MinimizeButton(*args
, **kwargs
):
684 MinimizeButton(self, bool visible=True) -> PaneInfo
686 MinimizeButton indicates that a minimize button should be drawn for
690 return _aui
.PaneInfo_MinimizeButton(*args
, **kwargs
)
692 def PinButton(*args
, **kwargs
):
694 PinButton(self, bool visible=True) -> PaneInfo
696 PinButton indicates that a pin button should be drawn for the pane.
699 return _aui
.PaneInfo_PinButton(*args
, **kwargs
)
701 def DestroyOnClose(*args
, **kwargs
):
703 DestroyOnClose(self, bool b=True) -> PaneInfo
705 DestroyOnClose indicates whether a pane should be detroyed when it is
709 return _aui
.PaneInfo_DestroyOnClose(*args
, **kwargs
)
711 def TopDockable(*args
, **kwargs
):
713 TopDockable(self, bool b=True) -> PaneInfo
715 TopDockable indicates whether a pane can be docked at the top of the
719 return _aui
.PaneInfo_TopDockable(*args
, **kwargs
)
721 def BottomDockable(*args
, **kwargs
):
723 BottomDockable(self, bool b=True) -> PaneInfo
725 BottomDockable indicates whether a pane can be docked at the bottom of
729 return _aui
.PaneInfo_BottomDockable(*args
, **kwargs
)
731 def LeftDockable(*args
, **kwargs
):
733 LeftDockable(self, bool b=True) -> PaneInfo
735 LeftDockable indicates whether a pane can be docked on the left of the
739 return _aui
.PaneInfo_LeftDockable(*args
, **kwargs
)
741 def RightDockable(*args
, **kwargs
):
743 RightDockable(self, bool b=True) -> PaneInfo
745 RightDockable indicates whether a pane can be docked on the right of
749 return _aui
.PaneInfo_RightDockable(*args
, **kwargs
)
751 def Floatable(*args
, **kwargs
):
753 Floatable(self, bool b=True) -> PaneInfo
755 Floatable indicates whether a frame can be floated.
758 return _aui
.PaneInfo_Floatable(*args
, **kwargs
)
760 def Movable(*args
, **kwargs
):
762 Movable(self, bool b=True) -> PaneInfo
764 Movable indicates whether a frame can be moved.
767 return _aui
.PaneInfo_Movable(*args
, **kwargs
)
769 def Dockable(*args
, **kwargs
):
771 Dockable(self, bool b=True) -> PaneInfo
773 Dockable indicates whether a pane can be docked at any position of the
777 return _aui
.PaneInfo_Dockable(*args
, **kwargs
)
779 def DefaultPane(*args
, **kwargs
):
781 DefaultPane(self) -> PaneInfo
783 DefaultPane specifies that the pane should adopt the default pane
787 return _aui
.PaneInfo_DefaultPane(*args
, **kwargs
)
789 def CentrePane(*args
, **kwargs
):
791 CentrePane(self) -> PaneInfo
793 CentrePane specifies that the pane should adopt the default center
797 return _aui
.PaneInfo_CentrePane(*args
, **kwargs
)
799 def CenterPane(*args
, **kwargs
):
801 CenterPane(self) -> PaneInfo
803 CenterPane specifies that the pane should adopt the default center
807 return _aui
.PaneInfo_CenterPane(*args
, **kwargs
)
809 def ToolbarPane(*args
, **kwargs
):
811 ToolbarPane(self) -> PaneInfo
813 ToolbarPane specifies that the pane should adopt the default toolbar
817 return _aui
.PaneInfo_ToolbarPane(*args
, **kwargs
)
819 def SetFlag(*args
, **kwargs
):
821 SetFlag(self, int flag, bool option_state) -> PaneInfo
823 SetFlag turns the property given by flag on or off with the
824 option_state parameter.
827 return _aui
.PaneInfo_SetFlag(*args
, **kwargs
)
829 def HasFlag(*args
, **kwargs
):
831 HasFlag(self, int flag) -> bool
833 HasFlag returns ``True`` if the the property specified by flag is
837 return _aui
.PaneInfo_HasFlag(*args
, **kwargs
)
839 optionFloating
= _aui
.PaneInfo_optionFloating
840 optionHidden
= _aui
.PaneInfo_optionHidden
841 optionLeftDockable
= _aui
.PaneInfo_optionLeftDockable
842 optionRightDockable
= _aui
.PaneInfo_optionRightDockable
843 optionTopDockable
= _aui
.PaneInfo_optionTopDockable
844 optionBottomDockable
= _aui
.PaneInfo_optionBottomDockable
845 optionFloatable
= _aui
.PaneInfo_optionFloatable
846 optionMovable
= _aui
.PaneInfo_optionMovable
847 optionResizable
= _aui
.PaneInfo_optionResizable
848 optionPaneBorder
= _aui
.PaneInfo_optionPaneBorder
849 optionCaption
= _aui
.PaneInfo_optionCaption
850 optionGripper
= _aui
.PaneInfo_optionGripper
851 optionDestroyOnClose
= _aui
.PaneInfo_optionDestroyOnClose
852 optionToolbar
= _aui
.PaneInfo_optionToolbar
853 optionActive
= _aui
.PaneInfo_optionActive
854 optionGripperTop
= _aui
.PaneInfo_optionGripperTop
855 buttonClose
= _aui
.PaneInfo_buttonClose
856 buttonMaximize
= _aui
.PaneInfo_buttonMaximize
857 buttonMinimize
= _aui
.PaneInfo_buttonMinimize
858 buttonPin
= _aui
.PaneInfo_buttonPin
859 buttonCustom1
= _aui
.PaneInfo_buttonCustom1
860 buttonCustom2
= _aui
.PaneInfo_buttonCustom2
861 buttonCustom3
= _aui
.PaneInfo_buttonCustom3
862 actionPane
= _aui
.PaneInfo_actionPane
863 name
= property(_aui
.PaneInfo_name_get
, _aui
.PaneInfo_name_set
)
864 caption
= property(_aui
.PaneInfo_caption_get
, _aui
.PaneInfo_caption_set
)
865 window
= property(_aui
.PaneInfo_window_get
, _aui
.PaneInfo_window_set
)
866 frame
= property(_aui
.PaneInfo_frame_get
, _aui
.PaneInfo_frame_set
)
867 state
= property(_aui
.PaneInfo_state_get
, _aui
.PaneInfo_state_set
)
868 dock_direction
= property(_aui
.PaneInfo_dock_direction_get
, _aui
.PaneInfo_dock_direction_set
)
869 dock_layer
= property(_aui
.PaneInfo_dock_layer_get
, _aui
.PaneInfo_dock_layer_set
)
870 dock_row
= property(_aui
.PaneInfo_dock_row_get
, _aui
.PaneInfo_dock_row_set
)
871 dock_pos
= property(_aui
.PaneInfo_dock_pos_get
, _aui
.PaneInfo_dock_pos_set
)
872 best_size
= property(_aui
.PaneInfo_best_size_get
, _aui
.PaneInfo_best_size_set
)
873 min_size
= property(_aui
.PaneInfo_min_size_get
, _aui
.PaneInfo_min_size_set
)
874 max_size
= property(_aui
.PaneInfo_max_size_get
, _aui
.PaneInfo_max_size_set
)
875 floating_pos
= property(_aui
.PaneInfo_floating_pos_get
, _aui
.PaneInfo_floating_pos_set
)
876 floating_size
= property(_aui
.PaneInfo_floating_size_get
, _aui
.PaneInfo_floating_size_set
)
877 dock_proportion
= property(_aui
.PaneInfo_dock_proportion_get
, _aui
.PaneInfo_dock_proportion_set
)
878 buttons
= property(_aui
.PaneInfo_buttons_get
, _aui
.PaneInfo_buttons_set
)
879 rect
= property(_aui
.PaneInfo_rect_get
, _aui
.PaneInfo_rect_set
)
880 _aui
.PaneInfo_swigregister(PaneInfo
)
883 class FrameManager(_core
.EvtHandler
):
885 FrameManager manages the panes associated with it for a particular
886 `wx.Frame`, using a pane's `PaneInfo` information to determine each
887 pane's docking and floating behavior. FrameManager uses wxWidgets'
888 sizer mechanism to plan the layout of each frame. It uses a
889 replaceable `DockArt` class to do all drawing, so all drawing is
890 localized in one area, and may be customized depending on an
891 application's specific needs.
894 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
895 __repr__
= _swig_repr
896 def __init__(self
, *args
, **kwargs
):
898 __init__(self, Frame frame=None, int flags=AUI_MGR_DEFAULT) -> FrameManager
902 :param frame: Specifies the `wx.Frame` which should be managed.
903 If not set in the call to this constructor then `SetFrame`
906 :param flags: Specifies options which allow the frame management
907 behavior to be modified.
910 _aui
.FrameManager_swiginit(self
,_aui
.new_FrameManager(*args
, **kwargs
))
911 __swig_destroy__
= _aui
.delete_FrameManager
912 __del__
= lambda self
: None;
913 def UnInit(*args
, **kwargs
):
917 UnInit uninitializes the framework and should be called before a
918 managed frame is destroyed. UnInit is usually called in the managed
919 wx.Frame's destructor.
922 return _aui
.FrameManager_UnInit(*args
, **kwargs
)
924 def SetFlags(*args
, **kwargs
):
926 SetFlags(self, int flags)
928 SetFlags is used to specify the FrameManager's behavioral
929 settings. The flags parameter is described in the docs for `__init__`
932 return _aui
.FrameManager_SetFlags(*args
, **kwargs
)
934 def GetFlags(*args
, **kwargs
):
936 GetFlags(self) -> int
938 GetFlags returns the current FrameManager's flags.
941 return _aui
.FrameManager_GetFlags(*args
, **kwargs
)
943 def SetFrame(*args
, **kwargs
):
945 SetFrame(self, Window frame)
947 SetFrame is called to specify the frame which is to be managed by the
948 FrameManager. It only needs to be called if the Frame was not given
949 to the manager in the constructor.
952 return _aui
.FrameManager_SetFrame(*args
, **kwargs
)
954 def GetFrame(*args
, **kwargs
):
956 GetFrame(self) -> Window
958 GetFrame returns the frame currently being managed by the
962 return _aui
.FrameManager_GetFrame(*args
, **kwargs
)
964 def SetArtProvider(*args
, **kwargs
):
966 SetArtProvider(self, DockArt art_provider)
968 SetArtProvider instructs FrameManager to use the art provider
969 specified for all drawing calls. This allows plugable look-and-feel
970 features. The previous art provider object, if any, will be destroyed
973 :note: If you wish to use a custom `DockArt` class to override drawing
974 or metrics then you shoudl derive your class from the `PyDockArt`
975 class, which has been instrumented for reflecting virtual calls to
979 return _aui
.FrameManager_SetArtProvider(*args
, **kwargs
)
981 def GetArtProvider(*args
, **kwargs
):
983 GetArtProvider(self) -> DockArt
985 GetArtProvider returns the current art provider being used.
988 return _aui
.FrameManager_GetArtProvider(*args
, **kwargs
)
990 def _GetPaneByWidget(*args
, **kwargs
):
991 """_GetPaneByWidget(self, Window window) -> PaneInfo"""
992 return _aui
.FrameManager__GetPaneByWidget(*args
, **kwargs
)
994 def _GetPaneByName(*args
, **kwargs
):
995 """_GetPaneByName(self, String name) -> PaneInfo"""
996 return _aui
.FrameManager__GetPaneByName(*args
, **kwargs
)
998 def GetAllPanes(*args
, **kwargs
):
1000 GetAllPanes(self) -> list
1002 GetAllPanes returns a list of `PaneInfo` objects for all panes managed
1003 by the frame manager.
1006 return _aui
.FrameManager_GetAllPanes(*args
, **kwargs
)
1008 def _AddPane1(*args
, **kwargs
):
1009 """_AddPane1(self, Window window, PaneInfo pane_info) -> bool"""
1010 return _aui
.FrameManager__AddPane1(*args
, **kwargs
)
1012 def _AddPane2(*args
, **kwargs
):
1013 """_AddPane2(self, Window window, int direction=LEFT, String caption=wxEmptyString) -> bool"""
1014 return _aui
.FrameManager__AddPane2(*args
, **kwargs
)
1016 def InsertPane(*args
, **kwargs
):
1018 InsertPane(self, Window window, PaneInfo insert_location, int insert_level=AUI_INSERT_PANE) -> bool
1020 InsertPane is used to insert either a previously unmanaged pane window
1021 into the frame manager, or to insert a currently managed pane
1022 somewhere else. InsertPane will push all panes, rows, or docks aside
1023 and insert the window into the position specified by
1024 ``insert_location``. Because ``insert_location`` can specify either a pane,
1025 dock row, or dock layer, the ``insert_level`` parameter is used to
1026 disambiguate this. The parameter ``insert_level`` can take a value of
1027 ``AUI_INSERT_PANE``, ``AUI_INSERT_ROW`` or ``AUI_INSERT_DOCK``.
1030 return _aui
.FrameManager_InsertPane(*args
, **kwargs
)
1032 def DetachPane(*args
, **kwargs
):
1034 DetachPane(self, Window window) -> bool
1036 DetachPane tells the FrameManager to stop managing the pane specified
1037 by window. The window, if in a floated frame, is reparented to the
1038 frame managed by FrameManager.
1041 return _aui
.FrameManager_DetachPane(*args
, **kwargs
)
1043 def SavePerspective(*args
, **kwargs
):
1045 SavePerspective(self) -> String
1047 SavePerspective saves the entire user interface layout into an encoded
1048 string, which can then be stored someplace by the application. When a
1049 perspective is restored using `LoadPerspective`, the entire user
1050 interface will return to the state it was when the perspective was
1054 return _aui
.FrameManager_SavePerspective(*args
, **kwargs
)
1056 def LoadPerspective(*args
, **kwargs
):
1058 LoadPerspective(self, String perspective, bool update=True) -> bool
1060 LoadPerspective loads a saved perspective. If ``update`` is ``True``,
1061 `Update` is automatically invoked, thus realizing the saved
1062 perspective on screen.
1065 return _aui
.FrameManager_LoadPerspective(*args
, **kwargs
)
1067 def Update(*args
, **kwargs
):
1071 Update shoudl be called called after any number of changes are made to
1072 any of the managed panes. Update must be invoked after `AddPane` or
1073 `InsertPane` are called in order to "realize" or "commit" the
1074 changes. In addition, any number of changes may be made to `PaneInfo`
1075 structures (retrieved with `GetPane` or `GetAllPanes`), but to realize
1076 the changes, Update must be called. This construction allows pane
1077 flicker to be avoided by updating the whole layout at one time.
1080 return _aui
.FrameManager_Update(*args
, **kwargs
)
1082 def OnRender(*args
, **kwargs
):
1083 """OnRender(self, FrameManagerEvent evt)"""
1084 return _aui
.FrameManager_OnRender(*args
, **kwargs
)
1086 def OnPaneButton(*args
, **kwargs
):
1087 """OnPaneButton(self, FrameManagerEvent evt)"""
1088 return _aui
.FrameManager_OnPaneButton(*args
, **kwargs
)
1090 def GetPane(self
, item
):
1092 GetPane(self, window_or_info item) -> PaneInfo
1094 GetPane is used to search for a `PaneInfo` object either by
1095 widget reference or by pane name, which acts as a unique id
1096 for a window pane. The returned `PaneInfo` object may then be
1097 modified to change a pane's look, state or position. After one
1098 or more modifications to the `PaneInfo`, `FrameManager.Update`
1099 should be called to realize the changes to the user interface.
1101 If the lookup failed (meaning the pane could not be found in
1102 the manager) GetPane returns an empty `PaneInfo`, a condition
1103 which can be checked by calling `PaneInfo.IsOk`.
1105 if isinstance(item
, wx
.Window
):
1106 return self
._GetPaneByWidget
(item
)
1108 return self
._GetPaneByName
(item
)
1110 def AddPane(self
, window
, info
=None, caption
=None):
1112 AddPane(self, window, info=None, caption=None) -> bool
1114 AddPane tells the frame manager to start managing a child
1115 window. There are two versions of this function. The first
1116 verison accepts a `PaneInfo` object for the ``info`` parameter
1117 and allows the full spectrum of pane parameter
1118 possibilities. (Say that 3 times fast!)
1120 The second version is used for simpler user interfaces which
1121 do not require as much configuration. In this case the
1122 ``info`` parameter specifies the direction property of the
1123 pane info, and defaults to ``wx.LEFT``. The pane caption may
1124 also be specified as an extra parameter in this form.
1126 if type(info
) == PaneInfo
:
1127 return self
._AddPane
1(window
, info
)
1134 return self
._AddPane
2(window
, info
, caption
)
1136 _aui
.FrameManager_swigregister(FrameManager
)
1138 class FrameManagerEvent(_core
.Event
):
1139 """Proxy of C++ FrameManagerEvent class"""
1140 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1141 __repr__
= _swig_repr
1142 def __init__(self
, *args
, **kwargs
):
1143 """__init__(self, EventType type=wxEVT_NULL) -> FrameManagerEvent"""
1144 _aui
.FrameManagerEvent_swiginit(self
,_aui
.new_FrameManagerEvent(*args
, **kwargs
))
1145 def Clone(*args
, **kwargs
):
1146 """Clone(self) -> Event"""
1147 return _aui
.FrameManagerEvent_Clone(*args
, **kwargs
)
1149 def SetPane(*args
, **kwargs
):
1150 """SetPane(self, PaneInfo p)"""
1151 return _aui
.FrameManagerEvent_SetPane(*args
, **kwargs
)
1153 def SetButton(*args
, **kwargs
):
1154 """SetButton(self, int b)"""
1155 return _aui
.FrameManagerEvent_SetButton(*args
, **kwargs
)
1157 def SetDC(*args
, **kwargs
):
1158 """SetDC(self, DC pdc)"""
1159 return _aui
.FrameManagerEvent_SetDC(*args
, **kwargs
)
1161 def GetPane(*args
, **kwargs
):
1162 """GetPane(self) -> PaneInfo"""
1163 return _aui
.FrameManagerEvent_GetPane(*args
, **kwargs
)
1165 def GetButton(*args
, **kwargs
):
1166 """GetButton(self) -> int"""
1167 return _aui
.FrameManagerEvent_GetButton(*args
, **kwargs
)
1169 def GetDC(*args
, **kwargs
):
1170 """GetDC(self) -> DC"""
1171 return _aui
.FrameManagerEvent_GetDC(*args
, **kwargs
)
1173 def Veto(*args
, **kwargs
):
1174 """Veto(self, bool veto=True)"""
1175 return _aui
.FrameManagerEvent_Veto(*args
, **kwargs
)
1177 def GetVeto(*args
, **kwargs
):
1178 """GetVeto(self) -> bool"""
1179 return _aui
.FrameManagerEvent_GetVeto(*args
, **kwargs
)
1181 def SetCanVeto(*args
, **kwargs
):
1182 """SetCanVeto(self, bool can_veto)"""
1183 return _aui
.FrameManagerEvent_SetCanVeto(*args
, **kwargs
)
1185 def CanVeto(*args
, **kwargs
):
1186 """CanVeto(self) -> bool"""
1187 return _aui
.FrameManagerEvent_CanVeto(*args
, **kwargs
)
1189 pane
= property(_aui
.FrameManagerEvent_pane_get
, _aui
.FrameManagerEvent_pane_set
)
1190 button
= property(_aui
.FrameManagerEvent_button_get
, _aui
.FrameManagerEvent_button_set
)
1191 veto_flag
= property(_aui
.FrameManagerEvent_veto_flag_get
, _aui
.FrameManagerEvent_veto_flag_set
)
1192 canveto_flag
= property(_aui
.FrameManagerEvent_canveto_flag_get
, _aui
.FrameManagerEvent_canveto_flag_set
)
1193 dc
= property(_aui
.FrameManagerEvent_dc_get
, _aui
.FrameManagerEvent_dc_set
)
1194 _aui
.FrameManagerEvent_swigregister(FrameManagerEvent
)
1196 class DockInfo(object):
1197 """Proxy of C++ DockInfo class"""
1198 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1199 __repr__
= _swig_repr
1200 def __init__(self
, *args
, **kwargs
):
1201 """__init__(self) -> DockInfo"""
1202 _aui
.DockInfo_swiginit(self
,_aui
.new_DockInfo(*args
, **kwargs
))
1203 def IsOk(*args
, **kwargs
):
1204 """IsOk(self) -> bool"""
1205 return _aui
.DockInfo_IsOk(*args
, **kwargs
)
1207 def IsHorizontal(*args
, **kwargs
):
1208 """IsHorizontal(self) -> bool"""
1209 return _aui
.DockInfo_IsHorizontal(*args
, **kwargs
)
1211 def IsVertical(*args
, **kwargs
):
1212 """IsVertical(self) -> bool"""
1213 return _aui
.DockInfo_IsVertical(*args
, **kwargs
)
1215 panes
= property(_aui
.DockInfo_panes_get
, _aui
.DockInfo_panes_set
)
1216 rect
= property(_aui
.DockInfo_rect_get
, _aui
.DockInfo_rect_set
)
1217 dock_direction
= property(_aui
.DockInfo_dock_direction_get
, _aui
.DockInfo_dock_direction_set
)
1218 dock_layer
= property(_aui
.DockInfo_dock_layer_get
, _aui
.DockInfo_dock_layer_set
)
1219 dock_row
= property(_aui
.DockInfo_dock_row_get
, _aui
.DockInfo_dock_row_set
)
1220 size
= property(_aui
.DockInfo_size_get
, _aui
.DockInfo_size_set
)
1221 min_size
= property(_aui
.DockInfo_min_size_get
, _aui
.DockInfo_min_size_set
)
1222 resizable
= property(_aui
.DockInfo_resizable_get
, _aui
.DockInfo_resizable_set
)
1223 toolbar
= property(_aui
.DockInfo_toolbar_get
, _aui
.DockInfo_toolbar_set
)
1224 fixed
= property(_aui
.DockInfo_fixed_get
, _aui
.DockInfo_fixed_set
)
1225 _aui
.DockInfo_swigregister(DockInfo
)
1227 class DockUIPart(object):
1228 """Proxy of C++ DockUIPart class"""
1229 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1230 def __init__(self
): raise AttributeError, "No constructor defined"
1231 __repr__
= _swig_repr
1232 typeCaption
= _aui
.DockUIPart_typeCaption
1233 typeGripper
= _aui
.DockUIPart_typeGripper
1234 typeDock
= _aui
.DockUIPart_typeDock
1235 typeDockSizer
= _aui
.DockUIPart_typeDockSizer
1236 typePane
= _aui
.DockUIPart_typePane
1237 typePaneSizer
= _aui
.DockUIPart_typePaneSizer
1238 typeBackground
= _aui
.DockUIPart_typeBackground
1239 typePaneBorder
= _aui
.DockUIPart_typePaneBorder
1240 typePaneButton
= _aui
.DockUIPart_typePaneButton
1241 type = property(_aui
.DockUIPart_type_get
, _aui
.DockUIPart_type_set
)
1242 orientation
= property(_aui
.DockUIPart_orientation_get
, _aui
.DockUIPart_orientation_set
)
1243 dock
= property(_aui
.DockUIPart_dock_get
, _aui
.DockUIPart_dock_set
)
1244 pane
= property(_aui
.DockUIPart_pane_get
, _aui
.DockUIPart_pane_set
)
1245 button
= property(_aui
.DockUIPart_button_get
, _aui
.DockUIPart_button_set
)
1246 cont_sizer
= property(_aui
.DockUIPart_cont_sizer_get
, _aui
.DockUIPart_cont_sizer_set
)
1247 sizer_item
= property(_aui
.DockUIPart_sizer_item_get
, _aui
.DockUIPart_sizer_item_set
)
1248 rect
= property(_aui
.DockUIPart_rect_get
, _aui
.DockUIPart_rect_set
)
1249 _aui
.DockUIPart_swigregister(DockUIPart
)
1251 class PaneButton(object):
1252 """Proxy of C++ PaneButton class"""
1253 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1254 def __init__(self
): raise AttributeError, "No constructor defined"
1255 __repr__
= _swig_repr
1256 button_id
= property(_aui
.PaneButton_button_id_get
, _aui
.PaneButton_button_id_set
)
1257 _aui
.PaneButton_swigregister(PaneButton
)
1259 wxEVT_AUI_PANEBUTTON
= _aui
.wxEVT_AUI_PANEBUTTON
1260 wxEVT_AUI_PANECLOSE
= _aui
.wxEVT_AUI_PANECLOSE
1261 wxEVT_AUI_RENDER
= _aui
.wxEVT_AUI_RENDER
1262 EVT_AUI_PANEBUTTON
= wx
.PyEventBinder( wxEVT_AUI_PANEBUTTON
)
1263 EVT_AUI_PANECLOSE
= wx
.PyEventBinder( wxEVT_AUI_PANECLOSE
)
1264 EVT_AUI_RENDER
= wx
.PyEventBinder( wxEVT_AUI_RENDER
)
1266 class DockArt(object):
1268 DockArt is an art provider class which does all of the drawing for
1269 `FrameManager`. This allows the library caller to customize or replace the
1270 dock art and drawing routines by deriving a new class from `PyDockArt`. The
1271 active dock art class can be set via `FrameManager.SetArtProvider`.
1274 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1275 def __init__(self
): raise AttributeError, "No constructor defined"
1276 __repr__
= _swig_repr
1277 __swig_destroy__
= _aui
.delete_DockArt
1278 __del__
= lambda self
: None;
1279 def GetMetric(*args
, **kwargs
):
1280 """GetMetric(self, int id) -> int"""
1281 return _aui
.DockArt_GetMetric(*args
, **kwargs
)
1283 def SetMetric(*args
, **kwargs
):
1284 """SetMetric(self, int id, int new_val)"""
1285 return _aui
.DockArt_SetMetric(*args
, **kwargs
)
1287 def SetFont(*args
, **kwargs
):
1288 """SetFont(self, int id, Font font)"""
1289 return _aui
.DockArt_SetFont(*args
, **kwargs
)
1291 def GetFont(*args
, **kwargs
):
1292 """GetFont(self, int id) -> Font"""
1293 return _aui
.DockArt_GetFont(*args
, **kwargs
)
1295 def GetColour(*args
, **kwargs
):
1296 """GetColour(self, int id) -> Colour"""
1297 return _aui
.DockArt_GetColour(*args
, **kwargs
)
1299 def SetColour(*args
, **kwargs
):
1300 """SetColour(self, int id, wxColor colour)"""
1301 return _aui
.DockArt_SetColour(*args
, **kwargs
)
1303 def GetColor(*args
, **kwargs
):
1304 """GetColor(self, int id) -> Colour"""
1305 return _aui
.DockArt_GetColor(*args
, **kwargs
)
1307 def SetColor(*args
, **kwargs
):
1308 """SetColor(self, int id, Colour color)"""
1309 return _aui
.DockArt_SetColor(*args
, **kwargs
)
1311 def DrawSash(*args
, **kwargs
):
1312 """DrawSash(self, DC dc, int orientation, Rect rect)"""
1313 return _aui
.DockArt_DrawSash(*args
, **kwargs
)
1315 def DrawBackground(*args
, **kwargs
):
1316 """DrawBackground(self, DC dc, int orientation, Rect rect)"""
1317 return _aui
.DockArt_DrawBackground(*args
, **kwargs
)
1319 def DrawCaption(*args
, **kwargs
):
1320 """DrawCaption(self, DC dc, String text, Rect rect, PaneInfo pane)"""
1321 return _aui
.DockArt_DrawCaption(*args
, **kwargs
)
1323 def DrawGripper(*args
, **kwargs
):
1324 """DrawGripper(self, DC dc, Rect rect, PaneInfo pane)"""
1325 return _aui
.DockArt_DrawGripper(*args
, **kwargs
)
1327 def DrawBorder(*args
, **kwargs
):
1328 """DrawBorder(self, DC dc, Rect rect, PaneInfo pane)"""
1329 return _aui
.DockArt_DrawBorder(*args
, **kwargs
)
1331 def DrawPaneButton(*args
, **kwargs
):
1332 """DrawPaneButton(self, DC dc, int button, int button_state, Rect rect, PaneInfo pane)"""
1333 return _aui
.DockArt_DrawPaneButton(*args
, **kwargs
)
1335 _aui
.DockArt_swigregister(DockArt
)
1337 class DefaultDockArt(DockArt
):
1339 DefaultDockArt is the type of art class constructed by default for the
1342 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1343 __repr__
= _swig_repr
1344 def __init__(self
, *args
, **kwargs
):
1346 __init__(self) -> DefaultDockArt
1348 DefaultDockArt is the type of art class constructed by default for the
1351 _aui
.DefaultDockArt_swiginit(self
,_aui
.new_DefaultDockArt(*args
, **kwargs
))
1352 _aui
.DefaultDockArt_swigregister(DefaultDockArt
)
1354 class FloatingPane(_windows
.Frame
):
1355 """Proxy of C++ FloatingPane class"""
1356 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1357 __repr__
= _swig_repr
1358 def __init__(self
, *args
, **kwargs
):
1360 __init__(self, Window parent, FrameManager owner_mgr, PaneInfo pane,
1361 int id=ID_ANY) -> FloatingPane
1363 _aui
.FloatingPane_swiginit(self
,_aui
.new_FloatingPane(*args
, **kwargs
))
1364 __swig_destroy__
= _aui
.delete_FloatingPane
1365 __del__
= lambda self
: None;
1366 def SetPaneWindow(*args
, **kwargs
):
1367 """SetPaneWindow(self, PaneInfo pane)"""
1368 return _aui
.FloatingPane_SetPaneWindow(*args
, **kwargs
)
1370 _aui
.FloatingPane_swigregister(FloatingPane
)
1372 class PyDockArt(DefaultDockArt
):
1374 This version of the `DockArt` class has been instrumented to be
1375 subclassable in Python and to reflect all calls to the C++ base class
1376 methods to the Python methods implemented in the derived class.
1378 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1379 def __init__(self
): raise AttributeError, "No constructor defined"
1380 __repr__
= _swig_repr
1381 _aui
.PyDockArt_swigregister(PyDockArt
)