]>
Commit | Line | Data |
---|---|---|
27e45892 RD |
1 | # This file was created automatically by SWIG 1.3.29. |
2 | # Don't modify this file, modify the SWIG interface instead. | |
3 | ||
4 | """ | |
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. | |
9 | ||
10 | **Vision and Design Principles** | |
11 | ||
12 | wx.aui attempts to encapsulate the following aspects of the user | |
13 | interface: | |
14 | ||
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. | |
19 | ||
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. | |
25 | ||
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. | |
31 | ||
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 | |
36 | animation. | |
37 | ||
5eb8189c | 38 | **wx.aui adheres to the following principles** |
27e45892 RD |
39 | |
40 | - Use native floating frames to obtain a native look and feel for | |
41 | all platforms; | |
42 | ||
43 | - Use existing wxPython code where possible, such as sizer | |
44 | implementation for frame management; | |
45 | ||
46 | - Use standard wxPython coding conventions. | |
47 | ||
48 | ||
49 | **Usage** | |
50 | ||
51 | The following example shows a simple implementation that utilizes | |
52 | `wx.aui.FrameManager` to manage three text controls in a frame window:: | |
53 | ||
54 | import wx | |
55 | import wx.aui | |
56 | ||
57 | class MyFrame(wx.Frame): | |
58 | ||
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) | |
62 | ||
5eb8189c | 63 | self._mgr = wx.aui.AuiManager(self) |
27e45892 RD |
64 | |
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) | |
69 | ||
70 | text2 = wx.TextCtrl(self, -1, 'Pane 2 - sample text', | |
71 | wx.DefaultPosition, wx.Size(200,150), | |
72 | wx.NO_BORDER | wx.TE_MULTILINE) | |
73 | ||
74 | text3 = wx.TextCtrl(self, -1, 'Main content window', | |
75 | wx.DefaultPosition, wx.Size(200,150), | |
76 | wx.NO_BORDER | wx.TE_MULTILINE) | |
77 | ||
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) | |
82 | ||
83 | # tell the manager to 'commit' all the changes just made | |
84 | self._mgr.Update() | |
85 | ||
86 | self.Bind(wx.EVT_CLOSE, self.OnClose) | |
87 | ||
88 | ||
89 | def OnClose(self, event): | |
90 | # deinitialize the frame manager | |
91 | self._mgr.UnInit() | |
92 | # delete the frame | |
93 | self.Destroy() | |
94 | ||
95 | ||
96 | app = wx.App() | |
97 | frame = MyFrame(None) | |
98 | frame.Show() | |
99 | app.MainLoop() | |
100 | ||
101 | """ | |
102 | ||
103 | import _aui | |
104 | import new | |
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) | |
108 | if (name == "this"): | |
109 | if type(value).__name__ == 'PySwigObject': | |
110 | self.__dict__[name] = value | |
111 | return | |
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 | |
116 | else: | |
117 | raise AttributeError("You cannot add attributes to %s" % self) | |
118 | ||
119 | def _swig_setattr(self,class_type,name,value): | |
120 | return _swig_setattr_nondynamic(self,class_type,name,value,0) | |
121 | ||
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 | |
127 | ||
128 | def _swig_repr(self): | |
129 | try: strthis = "proxy of " + self.this.__repr__() | |
130 | except: strthis = "" | |
131 | return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) | |
132 | ||
133 | import types | |
134 | try: | |
135 | _object = types.ObjectType | |
136 | _newclass = 1 | |
137 | except AttributeError: | |
138 | class _object : pass | |
139 | _newclass = 0 | |
140 | del types | |
141 | ||
142 | ||
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"): | |
147 | set(self,name,value) | |
148 | else: | |
149 | raise AttributeError("You cannot add attributes to %s" % self) | |
150 | return set_attr | |
151 | ||
152 | ||
153 | import _core | |
154 | import _windows | |
155 | wx = _core | |
156 | __docfilter__ = wx.__DocFilter(globals()) | |
157 | USE_AUI = _aui.USE_AUI | |
34d71f81 | 158 | USE_MENUS = _aui.USE_MENUS |
27e45892 RD |
159 | AUI_DOCK_NONE = _aui.AUI_DOCK_NONE |
160 | AUI_DOCK_TOP = _aui.AUI_DOCK_TOP | |
161 | AUI_DOCK_RIGHT = _aui.AUI_DOCK_RIGHT | |
162 | AUI_DOCK_BOTTOM = _aui.AUI_DOCK_BOTTOM | |
163 | AUI_DOCK_LEFT = _aui.AUI_DOCK_LEFT | |
164 | AUI_DOCK_CENTER = _aui.AUI_DOCK_CENTER | |
165 | AUI_DOCK_CENTRE = _aui.AUI_DOCK_CENTRE | |
166 | AUI_MGR_ALLOW_FLOATING = _aui.AUI_MGR_ALLOW_FLOATING | |
167 | AUI_MGR_ALLOW_ACTIVE_PANE = _aui.AUI_MGR_ALLOW_ACTIVE_PANE | |
168 | AUI_MGR_TRANSPARENT_DRAG = _aui.AUI_MGR_TRANSPARENT_DRAG | |
169 | AUI_MGR_TRANSPARENT_HINT = _aui.AUI_MGR_TRANSPARENT_HINT | |
70d7cb34 RD |
170 | AUI_MGR_VENETIAN_BLINDS_HINT = _aui.AUI_MGR_VENETIAN_BLINDS_HINT |
171 | AUI_MGR_RECTANGLE_HINT = _aui.AUI_MGR_RECTANGLE_HINT | |
172 | AUI_MGR_HINT_FADE = _aui.AUI_MGR_HINT_FADE | |
173 | AUI_MGR_NO_VENETIAN_BLINDS_FADE = _aui.AUI_MGR_NO_VENETIAN_BLINDS_FADE | |
27e45892 | 174 | AUI_MGR_DEFAULT = _aui.AUI_MGR_DEFAULT |
eccab1a7 RD |
175 | AUI_DOCKART_SASH_SIZE = _aui.AUI_DOCKART_SASH_SIZE |
176 | AUI_DOCKART_CAPTION_SIZE = _aui.AUI_DOCKART_CAPTION_SIZE | |
177 | AUI_DOCKART_GRIPPER_SIZE = _aui.AUI_DOCKART_GRIPPER_SIZE | |
178 | AUI_DOCKART_PANE_BORDER_SIZE = _aui.AUI_DOCKART_PANE_BORDER_SIZE | |
179 | AUI_DOCKART_PANE_BUTTON_SIZE = _aui.AUI_DOCKART_PANE_BUTTON_SIZE | |
180 | AUI_DOCKART_BACKGROUND_COLOUR = _aui.AUI_DOCKART_BACKGROUND_COLOUR | |
181 | AUI_DOCKART_SASH_COLOUR = _aui.AUI_DOCKART_SASH_COLOUR | |
182 | AUI_DOCKART_ACTIVE_CAPTION_COLOUR = _aui.AUI_DOCKART_ACTIVE_CAPTION_COLOUR | |
183 | AUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR = _aui.AUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR | |
184 | AUI_DOCKART_INACTIVE_CAPTION_COLOUR = _aui.AUI_DOCKART_INACTIVE_CAPTION_COLOUR | |
185 | AUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR = _aui.AUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR | |
186 | AUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR = _aui.AUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR | |
187 | AUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR = _aui.AUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR | |
188 | AUI_DOCKART_BORDER_COLOUR = _aui.AUI_DOCKART_BORDER_COLOUR | |
189 | AUI_DOCKART_GRIPPER_COLOUR = _aui.AUI_DOCKART_GRIPPER_COLOUR | |
190 | AUI_DOCKART_CAPTION_FONT = _aui.AUI_DOCKART_CAPTION_FONT | |
191 | AUI_DOCKART_GRADIENT_TYPE = _aui.AUI_DOCKART_GRADIENT_TYPE | |
27e45892 RD |
192 | AUI_GRADIENT_NONE = _aui.AUI_GRADIENT_NONE |
193 | AUI_GRADIENT_VERTICAL = _aui.AUI_GRADIENT_VERTICAL | |
194 | AUI_GRADIENT_HORIZONTAL = _aui.AUI_GRADIENT_HORIZONTAL | |
195 | AUI_BUTTON_STATE_NORMAL = _aui.AUI_BUTTON_STATE_NORMAL | |
196 | AUI_BUTTON_STATE_HOVER = _aui.AUI_BUTTON_STATE_HOVER | |
197 | AUI_BUTTON_STATE_PRESSED = _aui.AUI_BUTTON_STATE_PRESSED | |
8f514ab4 RD |
198 | AUI_BUTTON_STATE_DISABLED = _aui.AUI_BUTTON_STATE_DISABLED |
199 | AUI_BUTTON_STATE_HIDDEN = _aui.AUI_BUTTON_STATE_HIDDEN | |
eccab1a7 | 200 | AUI_BUTTON_STATE_CHECKED = _aui.AUI_BUTTON_STATE_CHECKED |
8f514ab4 | 201 | AUI_BUTTON_CLOSE = _aui.AUI_BUTTON_CLOSE |
5eb8189c | 202 | AUI_BUTTON_MAXIMIZE_RESTORE = _aui.AUI_BUTTON_MAXIMIZE_RESTORE |
8f514ab4 RD |
203 | AUI_BUTTON_MINIMIZE = _aui.AUI_BUTTON_MINIMIZE |
204 | AUI_BUTTON_PIN = _aui.AUI_BUTTON_PIN | |
205 | AUI_BUTTON_OPTIONS = _aui.AUI_BUTTON_OPTIONS | |
26c4d26f | 206 | AUI_BUTTON_WINDOWLIST = _aui.AUI_BUTTON_WINDOWLIST |
8f514ab4 RD |
207 | AUI_BUTTON_LEFT = _aui.AUI_BUTTON_LEFT |
208 | AUI_BUTTON_RIGHT = _aui.AUI_BUTTON_RIGHT | |
209 | AUI_BUTTON_UP = _aui.AUI_BUTTON_UP | |
210 | AUI_BUTTON_DOWN = _aui.AUI_BUTTON_DOWN | |
211 | AUI_BUTTON_CUSTOM1 = _aui.AUI_BUTTON_CUSTOM1 | |
212 | AUI_BUTTON_CUSTOM2 = _aui.AUI_BUTTON_CUSTOM2 | |
213 | AUI_BUTTON_CUSTOM3 = _aui.AUI_BUTTON_CUSTOM3 | |
27e45892 RD |
214 | AUI_INSERT_PANE = _aui.AUI_INSERT_PANE |
215 | AUI_INSERT_ROW = _aui.AUI_INSERT_ROW | |
216 | AUI_INSERT_DOCK = _aui.AUI_INSERT_DOCK | |
5eb8189c RD |
217 | class AuiPaneInfo(object): |
218 | """Proxy of C++ AuiPaneInfo class""" | |
27e45892 RD |
219 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
220 | __repr__ = _swig_repr | |
221 | def __init__(self, *args, **kwargs): | |
5eb8189c RD |
222 | """__init__(self) -> AuiPaneInfo""" |
223 | _aui.AuiPaneInfo_swiginit(self,_aui.new_AuiPaneInfo(*args, **kwargs)) | |
224 | __swig_destroy__ = _aui.delete_AuiPaneInfo | |
27e45892 | 225 | __del__ = lambda self : None; |
10044bf1 | 226 | def SafeSet(*args, **kwargs): |
5eb8189c RD |
227 | """SafeSet(self, AuiPaneInfo source)""" |
228 | return _aui.AuiPaneInfo_SafeSet(*args, **kwargs) | |
10044bf1 | 229 | |
27e45892 | 230 | def IsOk(*args, **kwargs): |
5eb8189c RD |
231 | """IsOk(self) -> bool""" |
232 | return _aui.AuiPaneInfo_IsOk(*args, **kwargs) | |
27e45892 RD |
233 | |
234 | def IsFixed(*args, **kwargs): | |
5eb8189c RD |
235 | """IsFixed(self) -> bool""" |
236 | return _aui.AuiPaneInfo_IsFixed(*args, **kwargs) | |
27e45892 RD |
237 | |
238 | def IsResizable(*args, **kwargs): | |
5eb8189c RD |
239 | """IsResizable(self) -> bool""" |
240 | return _aui.AuiPaneInfo_IsResizable(*args, **kwargs) | |
27e45892 RD |
241 | |
242 | def IsShown(*args, **kwargs): | |
5eb8189c RD |
243 | """IsShown(self) -> bool""" |
244 | return _aui.AuiPaneInfo_IsShown(*args, **kwargs) | |
27e45892 RD |
245 | |
246 | def IsFloating(*args, **kwargs): | |
5eb8189c RD |
247 | """IsFloating(self) -> bool""" |
248 | return _aui.AuiPaneInfo_IsFloating(*args, **kwargs) | |
27e45892 RD |
249 | |
250 | def IsDocked(*args, **kwargs): | |
5eb8189c RD |
251 | """IsDocked(self) -> bool""" |
252 | return _aui.AuiPaneInfo_IsDocked(*args, **kwargs) | |
27e45892 RD |
253 | |
254 | def IsToolbar(*args, **kwargs): | |
5eb8189c RD |
255 | """IsToolbar(self) -> bool""" |
256 | return _aui.AuiPaneInfo_IsToolbar(*args, **kwargs) | |
27e45892 RD |
257 | |
258 | def IsTopDockable(*args, **kwargs): | |
5eb8189c RD |
259 | """IsTopDockable(self) -> bool""" |
260 | return _aui.AuiPaneInfo_IsTopDockable(*args, **kwargs) | |
27e45892 RD |
261 | |
262 | def IsBottomDockable(*args, **kwargs): | |
5eb8189c RD |
263 | """IsBottomDockable(self) -> bool""" |
264 | return _aui.AuiPaneInfo_IsBottomDockable(*args, **kwargs) | |
27e45892 RD |
265 | |
266 | def IsLeftDockable(*args, **kwargs): | |
5eb8189c RD |
267 | """IsLeftDockable(self) -> bool""" |
268 | return _aui.AuiPaneInfo_IsLeftDockable(*args, **kwargs) | |
27e45892 RD |
269 | |
270 | def IsRightDockable(*args, **kwargs): | |
5eb8189c RD |
271 | """IsRightDockable(self) -> bool""" |
272 | return _aui.AuiPaneInfo_IsRightDockable(*args, **kwargs) | |
27e45892 RD |
273 | |
274 | def IsFloatable(*args, **kwargs): | |
5eb8189c RD |
275 | """IsFloatable(self) -> bool""" |
276 | return _aui.AuiPaneInfo_IsFloatable(*args, **kwargs) | |
27e45892 RD |
277 | |
278 | def IsMovable(*args, **kwargs): | |
5eb8189c RD |
279 | """IsMovable(self) -> bool""" |
280 | return _aui.AuiPaneInfo_IsMovable(*args, **kwargs) | |
27e45892 | 281 | |
9b940138 RD |
282 | def IsDestroyOnClose(*args, **kwargs): |
283 | """IsDestroyOnClose(self) -> bool""" | |
5eb8189c | 284 | return _aui.AuiPaneInfo_IsDestroyOnClose(*args, **kwargs) |
9b940138 | 285 | |
5eb8189c RD |
286 | def IsMaximized(*args, **kwargs): |
287 | """IsMaximized(self) -> bool""" | |
288 | return _aui.AuiPaneInfo_IsMaximized(*args, **kwargs) | |
27e45892 | 289 | |
5eb8189c RD |
290 | def HasCaption(*args, **kwargs): |
291 | """HasCaption(self) -> bool""" | |
292 | return _aui.AuiPaneInfo_HasCaption(*args, **kwargs) | |
27e45892 RD |
293 | |
294 | def HasGripper(*args, **kwargs): | |
5eb8189c RD |
295 | """HasGripper(self) -> bool""" |
296 | return _aui.AuiPaneInfo_HasGripper(*args, **kwargs) | |
27e45892 RD |
297 | |
298 | def HasBorder(*args, **kwargs): | |
5eb8189c RD |
299 | """HasBorder(self) -> bool""" |
300 | return _aui.AuiPaneInfo_HasBorder(*args, **kwargs) | |
27e45892 RD |
301 | |
302 | def HasCloseButton(*args, **kwargs): | |
5eb8189c RD |
303 | """HasCloseButton(self) -> bool""" |
304 | return _aui.AuiPaneInfo_HasCloseButton(*args, **kwargs) | |
27e45892 RD |
305 | |
306 | def HasMaximizeButton(*args, **kwargs): | |
5eb8189c RD |
307 | """HasMaximizeButton(self) -> bool""" |
308 | return _aui.AuiPaneInfo_HasMaximizeButton(*args, **kwargs) | |
27e45892 RD |
309 | |
310 | def HasMinimizeButton(*args, **kwargs): | |
5eb8189c RD |
311 | """HasMinimizeButton(self) -> bool""" |
312 | return _aui.AuiPaneInfo_HasMinimizeButton(*args, **kwargs) | |
27e45892 RD |
313 | |
314 | def HasPinButton(*args, **kwargs): | |
5eb8189c RD |
315 | """HasPinButton(self) -> bool""" |
316 | return _aui.AuiPaneInfo_HasPinButton(*args, **kwargs) | |
27e45892 RD |
317 | |
318 | def HasGripperTop(*args, **kwargs): | |
319 | """HasGripperTop(self) -> bool""" | |
5eb8189c | 320 | return _aui.AuiPaneInfo_HasGripperTop(*args, **kwargs) |
27e45892 RD |
321 | |
322 | def Window(*args, **kwargs): | |
5eb8189c RD |
323 | """Window(self, Window w) -> AuiPaneInfo""" |
324 | return _aui.AuiPaneInfo_Window(*args, **kwargs) | |
27e45892 RD |
325 | |
326 | def Name(*args, **kwargs): | |
5eb8189c RD |
327 | """Name(self, String n) -> AuiPaneInfo""" |
328 | return _aui.AuiPaneInfo_Name(*args, **kwargs) | |
27e45892 RD |
329 | |
330 | def Caption(*args, **kwargs): | |
5eb8189c RD |
331 | """Caption(self, String c) -> AuiPaneInfo""" |
332 | return _aui.AuiPaneInfo_Caption(*args, **kwargs) | |
27e45892 RD |
333 | |
334 | def Left(*args, **kwargs): | |
5eb8189c RD |
335 | """Left(self) -> AuiPaneInfo""" |
336 | return _aui.AuiPaneInfo_Left(*args, **kwargs) | |
27e45892 RD |
337 | |
338 | def Right(*args, **kwargs): | |
5eb8189c RD |
339 | """Right(self) -> AuiPaneInfo""" |
340 | return _aui.AuiPaneInfo_Right(*args, **kwargs) | |
27e45892 RD |
341 | |
342 | def Top(*args, **kwargs): | |
5eb8189c RD |
343 | """Top(self) -> AuiPaneInfo""" |
344 | return _aui.AuiPaneInfo_Top(*args, **kwargs) | |
27e45892 RD |
345 | |
346 | def Bottom(*args, **kwargs): | |
5eb8189c RD |
347 | """Bottom(self) -> AuiPaneInfo""" |
348 | return _aui.AuiPaneInfo_Bottom(*args, **kwargs) | |
27e45892 RD |
349 | |
350 | def Center(*args, **kwargs): | |
5eb8189c RD |
351 | """Center(self) -> AuiPaneInfo""" |
352 | return _aui.AuiPaneInfo_Center(*args, **kwargs) | |
27e45892 RD |
353 | |
354 | def Centre(*args, **kwargs): | |
5eb8189c RD |
355 | """Centre(self) -> AuiPaneInfo""" |
356 | return _aui.AuiPaneInfo_Centre(*args, **kwargs) | |
27e45892 RD |
357 | |
358 | def Direction(*args, **kwargs): | |
5eb8189c RD |
359 | """Direction(self, int direction) -> AuiPaneInfo""" |
360 | return _aui.AuiPaneInfo_Direction(*args, **kwargs) | |
27e45892 RD |
361 | |
362 | def Layer(*args, **kwargs): | |
5eb8189c RD |
363 | """Layer(self, int layer) -> AuiPaneInfo""" |
364 | return _aui.AuiPaneInfo_Layer(*args, **kwargs) | |
27e45892 RD |
365 | |
366 | def Row(*args, **kwargs): | |
5eb8189c RD |
367 | """Row(self, int row) -> AuiPaneInfo""" |
368 | return _aui.AuiPaneInfo_Row(*args, **kwargs) | |
27e45892 RD |
369 | |
370 | def Position(*args, **kwargs): | |
5eb8189c RD |
371 | """Position(self, int pos) -> AuiPaneInfo""" |
372 | return _aui.AuiPaneInfo_Position(*args, **kwargs) | |
27e45892 RD |
373 | |
374 | def BestSize(*args, **kwargs): | |
5eb8189c RD |
375 | """BestSize(self, Size size) -> AuiPaneInfo""" |
376 | return _aui.AuiPaneInfo_BestSize(*args, **kwargs) | |
27e45892 RD |
377 | |
378 | def MinSize(*args, **kwargs): | |
5eb8189c RD |
379 | """MinSize(self, Size size) -> AuiPaneInfo""" |
380 | return _aui.AuiPaneInfo_MinSize(*args, **kwargs) | |
27e45892 RD |
381 | |
382 | def MaxSize(*args, **kwargs): | |
5eb8189c RD |
383 | """MaxSize(self, Size size) -> AuiPaneInfo""" |
384 | return _aui.AuiPaneInfo_MaxSize(*args, **kwargs) | |
27e45892 RD |
385 | |
386 | def FloatingPosition(*args, **kwargs): | |
5eb8189c RD |
387 | """FloatingPosition(self, Point pos) -> AuiPaneInfo""" |
388 | return _aui.AuiPaneInfo_FloatingPosition(*args, **kwargs) | |
27e45892 RD |
389 | |
390 | def FloatingSize(*args, **kwargs): | |
5eb8189c RD |
391 | """FloatingSize(self, Size size) -> AuiPaneInfo""" |
392 | return _aui.AuiPaneInfo_FloatingSize(*args, **kwargs) | |
27e45892 RD |
393 | |
394 | def Fixed(*args, **kwargs): | |
5eb8189c RD |
395 | """Fixed(self) -> AuiPaneInfo""" |
396 | return _aui.AuiPaneInfo_Fixed(*args, **kwargs) | |
27e45892 RD |
397 | |
398 | def Resizable(*args, **kwargs): | |
5eb8189c RD |
399 | """Resizable(self, bool resizable=True) -> AuiPaneInfo""" |
400 | return _aui.AuiPaneInfo_Resizable(*args, **kwargs) | |
27e45892 RD |
401 | |
402 | def Dock(*args, **kwargs): | |
5eb8189c RD |
403 | """Dock(self) -> AuiPaneInfo""" |
404 | return _aui.AuiPaneInfo_Dock(*args, **kwargs) | |
27e45892 RD |
405 | |
406 | def Float(*args, **kwargs): | |
5eb8189c RD |
407 | """Float(self) -> AuiPaneInfo""" |
408 | return _aui.AuiPaneInfo_Float(*args, **kwargs) | |
27e45892 RD |
409 | |
410 | def Hide(*args, **kwargs): | |
5eb8189c RD |
411 | """Hide(self) -> AuiPaneInfo""" |
412 | return _aui.AuiPaneInfo_Hide(*args, **kwargs) | |
27e45892 RD |
413 | |
414 | def Show(*args, **kwargs): | |
5eb8189c RD |
415 | """Show(self, bool show=True) -> AuiPaneInfo""" |
416 | return _aui.AuiPaneInfo_Show(*args, **kwargs) | |
27e45892 RD |
417 | |
418 | def CaptionVisible(*args, **kwargs): | |
5eb8189c RD |
419 | """CaptionVisible(self, bool visible=True) -> AuiPaneInfo""" |
420 | return _aui.AuiPaneInfo_CaptionVisible(*args, **kwargs) | |
27e45892 | 421 | |
5eb8189c RD |
422 | def Maximize(*args, **kwargs): |
423 | """Maximize(self) -> AuiPaneInfo""" | |
424 | return _aui.AuiPaneInfo_Maximize(*args, **kwargs) | |
27e45892 | 425 | |
5eb8189c RD |
426 | def Restore(*args, **kwargs): |
427 | """Restore(self) -> AuiPaneInfo""" | |
428 | return _aui.AuiPaneInfo_Restore(*args, **kwargs) | |
27e45892 RD |
429 | |
430 | def PaneBorder(*args, **kwargs): | |
5eb8189c RD |
431 | """PaneBorder(self, bool visible=True) -> AuiPaneInfo""" |
432 | return _aui.AuiPaneInfo_PaneBorder(*args, **kwargs) | |
27e45892 RD |
433 | |
434 | def Gripper(*args, **kwargs): | |
5eb8189c RD |
435 | """Gripper(self, bool visible=True) -> AuiPaneInfo""" |
436 | return _aui.AuiPaneInfo_Gripper(*args, **kwargs) | |
27e45892 RD |
437 | |
438 | def GripperTop(*args, **kwargs): | |
5eb8189c RD |
439 | """GripperTop(self, bool attop=True) -> AuiPaneInfo""" |
440 | return _aui.AuiPaneInfo_GripperTop(*args, **kwargs) | |
27e45892 RD |
441 | |
442 | def CloseButton(*args, **kwargs): | |
5eb8189c RD |
443 | """CloseButton(self, bool visible=True) -> AuiPaneInfo""" |
444 | return _aui.AuiPaneInfo_CloseButton(*args, **kwargs) | |
27e45892 RD |
445 | |
446 | def MaximizeButton(*args, **kwargs): | |
5eb8189c RD |
447 | """MaximizeButton(self, bool visible=True) -> AuiPaneInfo""" |
448 | return _aui.AuiPaneInfo_MaximizeButton(*args, **kwargs) | |
27e45892 RD |
449 | |
450 | def MinimizeButton(*args, **kwargs): | |
5eb8189c RD |
451 | """MinimizeButton(self, bool visible=True) -> AuiPaneInfo""" |
452 | return _aui.AuiPaneInfo_MinimizeButton(*args, **kwargs) | |
27e45892 RD |
453 | |
454 | def PinButton(*args, **kwargs): | |
5eb8189c RD |
455 | """PinButton(self, bool visible=True) -> AuiPaneInfo""" |
456 | return _aui.AuiPaneInfo_PinButton(*args, **kwargs) | |
27e45892 RD |
457 | |
458 | def DestroyOnClose(*args, **kwargs): | |
5eb8189c RD |
459 | """DestroyOnClose(self, bool b=True) -> AuiPaneInfo""" |
460 | return _aui.AuiPaneInfo_DestroyOnClose(*args, **kwargs) | |
27e45892 RD |
461 | |
462 | def TopDockable(*args, **kwargs): | |
5eb8189c RD |
463 | """TopDockable(self, bool b=True) -> AuiPaneInfo""" |
464 | return _aui.AuiPaneInfo_TopDockable(*args, **kwargs) | |
27e45892 RD |
465 | |
466 | def BottomDockable(*args, **kwargs): | |
5eb8189c RD |
467 | """BottomDockable(self, bool b=True) -> AuiPaneInfo""" |
468 | return _aui.AuiPaneInfo_BottomDockable(*args, **kwargs) | |
27e45892 RD |
469 | |
470 | def LeftDockable(*args, **kwargs): | |
5eb8189c RD |
471 | """LeftDockable(self, bool b=True) -> AuiPaneInfo""" |
472 | return _aui.AuiPaneInfo_LeftDockable(*args, **kwargs) | |
27e45892 RD |
473 | |
474 | def RightDockable(*args, **kwargs): | |
5eb8189c RD |
475 | """RightDockable(self, bool b=True) -> AuiPaneInfo""" |
476 | return _aui.AuiPaneInfo_RightDockable(*args, **kwargs) | |
27e45892 RD |
477 | |
478 | def Floatable(*args, **kwargs): | |
5eb8189c RD |
479 | """Floatable(self, bool b=True) -> AuiPaneInfo""" |
480 | return _aui.AuiPaneInfo_Floatable(*args, **kwargs) | |
27e45892 RD |
481 | |
482 | def Movable(*args, **kwargs): | |
5eb8189c RD |
483 | """Movable(self, bool b=True) -> AuiPaneInfo""" |
484 | return _aui.AuiPaneInfo_Movable(*args, **kwargs) | |
27e45892 | 485 | |
27e45892 | 486 | def Dockable(*args, **kwargs): |
5eb8189c RD |
487 | """Dockable(self, bool b=True) -> AuiPaneInfo""" |
488 | return _aui.AuiPaneInfo_Dockable(*args, **kwargs) | |
27e45892 RD |
489 | |
490 | def DefaultPane(*args, **kwargs): | |
5eb8189c RD |
491 | """DefaultPane(self) -> AuiPaneInfo""" |
492 | return _aui.AuiPaneInfo_DefaultPane(*args, **kwargs) | |
27e45892 RD |
493 | |
494 | def CentrePane(*args, **kwargs): | |
5eb8189c RD |
495 | """CentrePane(self) -> AuiPaneInfo""" |
496 | return _aui.AuiPaneInfo_CentrePane(*args, **kwargs) | |
27e45892 RD |
497 | |
498 | def CenterPane(*args, **kwargs): | |
5eb8189c RD |
499 | """CenterPane(self) -> AuiPaneInfo""" |
500 | return _aui.AuiPaneInfo_CenterPane(*args, **kwargs) | |
27e45892 RD |
501 | |
502 | def ToolbarPane(*args, **kwargs): | |
5eb8189c RD |
503 | """ToolbarPane(self) -> AuiPaneInfo""" |
504 | return _aui.AuiPaneInfo_ToolbarPane(*args, **kwargs) | |
27e45892 RD |
505 | |
506 | def SetFlag(*args, **kwargs): | |
5eb8189c RD |
507 | """SetFlag(self, int flag, bool option_state) -> AuiPaneInfo""" |
508 | return _aui.AuiPaneInfo_SetFlag(*args, **kwargs) | |
27e45892 RD |
509 | |
510 | def HasFlag(*args, **kwargs): | |
5eb8189c RD |
511 | """HasFlag(self, int flag) -> bool""" |
512 | return _aui.AuiPaneInfo_HasFlag(*args, **kwargs) | |
513 | ||
514 | optionFloating = _aui.AuiPaneInfo_optionFloating | |
515 | optionHidden = _aui.AuiPaneInfo_optionHidden | |
516 | optionLeftDockable = _aui.AuiPaneInfo_optionLeftDockable | |
517 | optionRightDockable = _aui.AuiPaneInfo_optionRightDockable | |
518 | optionTopDockable = _aui.AuiPaneInfo_optionTopDockable | |
519 | optionBottomDockable = _aui.AuiPaneInfo_optionBottomDockable | |
520 | optionFloatable = _aui.AuiPaneInfo_optionFloatable | |
521 | optionMovable = _aui.AuiPaneInfo_optionMovable | |
522 | optionResizable = _aui.AuiPaneInfo_optionResizable | |
523 | optionPaneBorder = _aui.AuiPaneInfo_optionPaneBorder | |
524 | optionCaption = _aui.AuiPaneInfo_optionCaption | |
525 | optionGripper = _aui.AuiPaneInfo_optionGripper | |
526 | optionDestroyOnClose = _aui.AuiPaneInfo_optionDestroyOnClose | |
527 | optionToolbar = _aui.AuiPaneInfo_optionToolbar | |
528 | optionActive = _aui.AuiPaneInfo_optionActive | |
529 | optionGripperTop = _aui.AuiPaneInfo_optionGripperTop | |
530 | optionMaximized = _aui.AuiPaneInfo_optionMaximized | |
5eb8189c RD |
531 | buttonClose = _aui.AuiPaneInfo_buttonClose |
532 | buttonMaximize = _aui.AuiPaneInfo_buttonMaximize | |
533 | buttonMinimize = _aui.AuiPaneInfo_buttonMinimize | |
534 | buttonPin = _aui.AuiPaneInfo_buttonPin | |
535 | buttonCustom1 = _aui.AuiPaneInfo_buttonCustom1 | |
536 | buttonCustom2 = _aui.AuiPaneInfo_buttonCustom2 | |
537 | buttonCustom3 = _aui.AuiPaneInfo_buttonCustom3 | |
9b881d36 | 538 | savedHiddenState = _aui.AuiPaneInfo_savedHiddenState |
5eb8189c RD |
539 | actionPane = _aui.AuiPaneInfo_actionPane |
540 | name = property(_aui.AuiPaneInfo_name_get, _aui.AuiPaneInfo_name_set) | |
541 | caption = property(_aui.AuiPaneInfo_caption_get, _aui.AuiPaneInfo_caption_set) | |
542 | window = property(_aui.AuiPaneInfo_window_get, _aui.AuiPaneInfo_window_set) | |
543 | frame = property(_aui.AuiPaneInfo_frame_get, _aui.AuiPaneInfo_frame_set) | |
544 | state = property(_aui.AuiPaneInfo_state_get, _aui.AuiPaneInfo_state_set) | |
545 | dock_direction = property(_aui.AuiPaneInfo_dock_direction_get, _aui.AuiPaneInfo_dock_direction_set) | |
546 | dock_layer = property(_aui.AuiPaneInfo_dock_layer_get, _aui.AuiPaneInfo_dock_layer_set) | |
547 | dock_row = property(_aui.AuiPaneInfo_dock_row_get, _aui.AuiPaneInfo_dock_row_set) | |
548 | dock_pos = property(_aui.AuiPaneInfo_dock_pos_get, _aui.AuiPaneInfo_dock_pos_set) | |
549 | best_size = property(_aui.AuiPaneInfo_best_size_get, _aui.AuiPaneInfo_best_size_set) | |
550 | min_size = property(_aui.AuiPaneInfo_min_size_get, _aui.AuiPaneInfo_min_size_set) | |
551 | max_size = property(_aui.AuiPaneInfo_max_size_get, _aui.AuiPaneInfo_max_size_set) | |
552 | floating_pos = property(_aui.AuiPaneInfo_floating_pos_get, _aui.AuiPaneInfo_floating_pos_set) | |
553 | floating_size = property(_aui.AuiPaneInfo_floating_size_get, _aui.AuiPaneInfo_floating_size_set) | |
554 | dock_proportion = property(_aui.AuiPaneInfo_dock_proportion_get, _aui.AuiPaneInfo_dock_proportion_set) | |
555 | buttons = property(_aui.AuiPaneInfo_buttons_get, _aui.AuiPaneInfo_buttons_set) | |
556 | rect = property(_aui.AuiPaneInfo_rect_get, _aui.AuiPaneInfo_rect_set) | |
557 | _aui.AuiPaneInfo_swigregister(AuiPaneInfo) | |
27e45892 RD |
558 | cvar = _aui.cvar |
559 | ||
5eb8189c RD |
560 | class AuiManager(_core.EvtHandler): |
561 | """Proxy of C++ AuiManager class""" | |
27e45892 RD |
562 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
563 | __repr__ = _swig_repr | |
564 | def __init__(self, *args, **kwargs): | |
5eb8189c RD |
565 | """__init__(self, Window managed_wnd=None, int flags=AUI_MGR_DEFAULT) -> AuiManager""" |
566 | _aui.AuiManager_swiginit(self,_aui.new_AuiManager(*args, **kwargs)) | |
567 | __swig_destroy__ = _aui.delete_AuiManager | |
27e45892 RD |
568 | __del__ = lambda self : None; |
569 | def UnInit(*args, **kwargs): | |
5eb8189c RD |
570 | """UnInit(self)""" |
571 | return _aui.AuiManager_UnInit(*args, **kwargs) | |
27e45892 RD |
572 | |
573 | def SetFlags(*args, **kwargs): | |
5eb8189c RD |
574 | """SetFlags(self, int flags)""" |
575 | return _aui.AuiManager_SetFlags(*args, **kwargs) | |
27e45892 RD |
576 | |
577 | def GetFlags(*args, **kwargs): | |
5eb8189c RD |
578 | """GetFlags(self) -> int""" |
579 | return _aui.AuiManager_GetFlags(*args, **kwargs) | |
27e45892 | 580 | |
10044bf1 | 581 | def SetManagedWindow(*args, **kwargs): |
5eb8189c RD |
582 | """SetManagedWindow(self, Window managed_wnd)""" |
583 | return _aui.AuiManager_SetManagedWindow(*args, **kwargs) | |
27e45892 | 584 | |
10044bf1 | 585 | def GetManagedWindow(*args, **kwargs): |
5eb8189c RD |
586 | """GetManagedWindow(self) -> Window""" |
587 | return _aui.AuiManager_GetManagedWindow(*args, **kwargs) | |
27e45892 | 588 | |
eccab1a7 RD |
589 | def GetManager(*args, **kwargs): |
590 | """GetManager(Window window) -> AuiManager""" | |
591 | return _aui.AuiManager_GetManager(*args, **kwargs) | |
592 | ||
593 | GetManager = staticmethod(GetManager) | |
27e45892 | 594 | def SetArtProvider(*args, **kwargs): |
5eb8189c RD |
595 | """SetArtProvider(self, AuiDockArt art_provider)""" |
596 | return _aui.AuiManager_SetArtProvider(*args, **kwargs) | |
27e45892 RD |
597 | |
598 | def GetArtProvider(*args, **kwargs): | |
5eb8189c RD |
599 | """GetArtProvider(self) -> AuiDockArt""" |
600 | return _aui.AuiManager_GetArtProvider(*args, **kwargs) | |
27e45892 RD |
601 | |
602 | def _GetPaneByWidget(*args, **kwargs): | |
5eb8189c RD |
603 | """_GetPaneByWidget(self, Window window) -> AuiPaneInfo""" |
604 | return _aui.AuiManager__GetPaneByWidget(*args, **kwargs) | |
27e45892 RD |
605 | |
606 | def _GetPaneByName(*args, **kwargs): | |
5eb8189c RD |
607 | """_GetPaneByName(self, String name) -> AuiPaneInfo""" |
608 | return _aui.AuiManager__GetPaneByName(*args, **kwargs) | |
27e45892 RD |
609 | |
610 | def GetAllPanes(*args, **kwargs): | |
5eb8189c RD |
611 | """GetAllPanes(self) -> wxAuiPaneInfoArray""" |
612 | return _aui.AuiManager_GetAllPanes(*args, **kwargs) | |
27e45892 RD |
613 | |
614 | def _AddPane1(*args, **kwargs): | |
5eb8189c RD |
615 | """_AddPane1(self, Window window, AuiPaneInfo pane_info) -> bool""" |
616 | return _aui.AuiManager__AddPane1(*args, **kwargs) | |
27e45892 | 617 | |
5eb8189c RD |
618 | def AddPane(*args, **kwargs): |
619 | """AddPane(self, Window window, AuiPaneInfo pane_info, Point drop_pos) -> bool""" | |
620 | return _aui.AuiManager_AddPane(*args, **kwargs) | |
10044bf1 | 621 | |
27e45892 RD |
622 | def _AddPane2(*args, **kwargs): |
623 | """_AddPane2(self, Window window, int direction=LEFT, String caption=wxEmptyString) -> bool""" | |
5eb8189c | 624 | return _aui.AuiManager__AddPane2(*args, **kwargs) |
27e45892 RD |
625 | |
626 | def InsertPane(*args, **kwargs): | |
5eb8189c RD |
627 | """InsertPane(self, Window window, AuiPaneInfo insert_location, int insert_level=AUI_INSERT_PANE) -> bool""" |
628 | return _aui.AuiManager_InsertPane(*args, **kwargs) | |
27e45892 RD |
629 | |
630 | def DetachPane(*args, **kwargs): | |
5eb8189c RD |
631 | """DetachPane(self, Window window) -> bool""" |
632 | return _aui.AuiManager_DetachPane(*args, **kwargs) | |
27e45892 | 633 | |
d7645bfd VZ |
634 | def Update(*args, **kwargs): |
635 | """Update(self)""" | |
636 | return _aui.AuiManager_Update(*args, **kwargs) | |
9b940138 | 637 | |
10044bf1 | 638 | def SavePaneInfo(*args, **kwargs): |
5eb8189c RD |
639 | """SavePaneInfo(self, AuiPaneInfo pane) -> String""" |
640 | return _aui.AuiManager_SavePaneInfo(*args, **kwargs) | |
10044bf1 RD |
641 | |
642 | def LoadPaneInfo(*args, **kwargs): | |
5eb8189c RD |
643 | """LoadPaneInfo(self, String pane_part, AuiPaneInfo pane)""" |
644 | return _aui.AuiManager_LoadPaneInfo(*args, **kwargs) | |
10044bf1 | 645 | |
27e45892 | 646 | def SavePerspective(*args, **kwargs): |
5eb8189c RD |
647 | """SavePerspective(self) -> String""" |
648 | return _aui.AuiManager_SavePerspective(*args, **kwargs) | |
27e45892 RD |
649 | |
650 | def LoadPerspective(*args, **kwargs): | |
5eb8189c RD |
651 | """LoadPerspective(self, String perspective, bool update=True) -> bool""" |
652 | return _aui.AuiManager_LoadPerspective(*args, **kwargs) | |
27e45892 | 653 | |
d7645bfd VZ |
654 | def SetDockSizeConstraint(*args, **kwargs): |
655 | """SetDockSizeConstraint(self, double width_pct, double height_pct)""" | |
656 | return _aui.AuiManager_SetDockSizeConstraint(*args, **kwargs) | |
657 | ||
658 | def GetDockSizeConstraint(*args, **kwargs): | |
659 | """GetDockSizeConstraint(self, double width_pct, double height_pct)""" | |
660 | return _aui.AuiManager_GetDockSizeConstraint(*args, **kwargs) | |
661 | ||
662 | def ClosePane(*args, **kwargs): | |
663 | """ClosePane(self, AuiPaneInfo pane_info)""" | |
664 | return _aui.AuiManager_ClosePane(*args, **kwargs) | |
665 | ||
666 | def MaximizePane(*args, **kwargs): | |
667 | """MaximizePane(self, AuiPaneInfo pane_info)""" | |
668 | return _aui.AuiManager_MaximizePane(*args, **kwargs) | |
669 | ||
670 | def RestorePane(*args, **kwargs): | |
671 | """RestorePane(self, AuiPaneInfo pane_info)""" | |
672 | return _aui.AuiManager_RestorePane(*args, **kwargs) | |
673 | ||
674 | def RestoreMaximizedPane(*args, **kwargs): | |
675 | """RestoreMaximizedPane(self)""" | |
676 | return _aui.AuiManager_RestoreMaximizedPane(*args, **kwargs) | |
27e45892 | 677 | |
9b940138 | 678 | def CreateFloatingFrame(*args, **kwargs): |
5eb8189c RD |
679 | """CreateFloatingFrame(self, Window parent, AuiPaneInfo p) -> AuiFloatingFrame""" |
680 | return _aui.AuiManager_CreateFloatingFrame(*args, **kwargs) | |
9b940138 | 681 | |
e7e9d1b8 RD |
682 | def StartPaneDrag(*args, **kwargs): |
683 | """StartPaneDrag(self, Window pane_window, Point offset)""" | |
684 | return _aui.AuiManager_StartPaneDrag(*args, **kwargs) | |
685 | ||
5172800e RD |
686 | def CalculateHintRect(*args, **kwargs): |
687 | """CalculateHintRect(self, Window pane_window, Point pt, Point offset) -> Rect""" | |
688 | return _aui.AuiManager_CalculateHintRect(*args, **kwargs) | |
689 | ||
10044bf1 RD |
690 | def DrawHintRect(*args, **kwargs): |
691 | """DrawHintRect(self, Window pane_window, Point pt, Point offset)""" | |
5eb8189c | 692 | return _aui.AuiManager_DrawHintRect(*args, **kwargs) |
10044bf1 RD |
693 | |
694 | def ShowHint(*args, **kwargs): | |
695 | """ShowHint(self, Rect rect)""" | |
5eb8189c | 696 | return _aui.AuiManager_ShowHint(*args, **kwargs) |
10044bf1 RD |
697 | |
698 | def HideHint(*args, **kwargs): | |
699 | """HideHint(self)""" | |
5eb8189c | 700 | return _aui.AuiManager_HideHint(*args, **kwargs) |
10044bf1 | 701 | |
81f5836b | 702 | def OnRender(*args, **kwargs): |
5eb8189c RD |
703 | """OnRender(self, AuiManagerEvent evt)""" |
704 | return _aui.AuiManager_OnRender(*args, **kwargs) | |
81f5836b RD |
705 | |
706 | def OnPaneButton(*args, **kwargs): | |
5eb8189c RD |
707 | """OnPaneButton(self, AuiManagerEvent evt)""" |
708 | return _aui.AuiManager_OnPaneButton(*args, **kwargs) | |
81f5836b | 709 | |
27e45892 RD |
710 | def GetPane(self, item): |
711 | """ | |
712 | GetPane(self, window_or_info item) -> PaneInfo | |
713 | ||
714 | GetPane is used to search for a `PaneInfo` object either by | |
715 | widget reference or by pane name, which acts as a unique id | |
716 | for a window pane. The returned `PaneInfo` object may then be | |
717 | modified to change a pane's look, state or position. After one | |
718 | or more modifications to the `PaneInfo`, `FrameManager.Update` | |
719 | should be called to realize the changes to the user interface. | |
720 | ||
721 | If the lookup failed (meaning the pane could not be found in | |
722 | the manager) GetPane returns an empty `PaneInfo`, a condition | |
723 | which can be checked by calling `PaneInfo.IsOk`. | |
724 | """ | |
725 | if isinstance(item, wx.Window): | |
726 | return self._GetPaneByWidget(item) | |
727 | else: | |
728 | return self._GetPaneByName(item) | |
729 | ||
730 | def AddPane(self, window, info=None, caption=None): | |
731 | """ | |
732 | AddPane(self, window, info=None, caption=None) -> bool | |
733 | ||
734 | AddPane tells the frame manager to start managing a child | |
735 | window. There are two versions of this function. The first | |
736 | verison accepts a `PaneInfo` object for the ``info`` parameter | |
737 | and allows the full spectrum of pane parameter | |
738 | possibilities. (Say that 3 times fast!) | |
739 | ||
740 | The second version is used for simpler user interfaces which | |
741 | do not require as much configuration. In this case the | |
742 | ``info`` parameter specifies the direction property of the | |
743 | pane info, and defaults to ``wx.LEFT``. The pane caption may | |
744 | also be specified as an extra parameter in this form. | |
745 | """ | |
5eb8189c | 746 | if type(info) == AuiPaneInfo: |
27e45892 RD |
747 | return self._AddPane1(window, info) |
748 | else: | |
749 | ||
750 | if info is None: | |
751 | info = wx.LEFT | |
752 | if caption is None: | |
753 | caption = "" | |
754 | return self._AddPane2(window, info, caption) | |
755 | ||
10044bf1 RD |
756 | SetFrame = wx._deprecated(SetManagedWindow, |
757 | "SetFrame is deprecated, use `SetManagedWindow` instead.") | |
758 | GetFrame = wx._deprecated(GetManagedWindow, | |
759 | "GetFrame is deprecated, use `GetManagedWindow` instead.") | |
760 | ||
777e547f RD |
761 | AllPanes = property(GetAllPanes,doc="See `GetAllPanes`") |
762 | ArtProvider = property(GetArtProvider,SetArtProvider,doc="See `GetArtProvider` and `SetArtProvider`") | |
763 | Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") | |
764 | ManagedWindow = property(GetManagedWindow,SetManagedWindow,doc="See `GetManagedWindow` and `SetManagedWindow`") | |
5eb8189c | 765 | _aui.AuiManager_swigregister(AuiManager) |
27e45892 | 766 | |
eccab1a7 RD |
767 | def AuiManager_GetManager(*args, **kwargs): |
768 | """AuiManager_GetManager(Window window) -> AuiManager""" | |
769 | return _aui.AuiManager_GetManager(*args, **kwargs) | |
770 | ||
5eb8189c RD |
771 | class AuiManagerEvent(_core.Event): |
772 | """Proxy of C++ AuiManagerEvent class""" | |
27e45892 RD |
773 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
774 | __repr__ = _swig_repr | |
775 | def __init__(self, *args, **kwargs): | |
5eb8189c RD |
776 | """__init__(self, EventType type=wxEVT_NULL) -> AuiManagerEvent""" |
777 | _aui.AuiManagerEvent_swiginit(self,_aui.new_AuiManagerEvent(*args, **kwargs)) | |
27e45892 RD |
778 | def Clone(*args, **kwargs): |
779 | """Clone(self) -> Event""" | |
5eb8189c | 780 | return _aui.AuiManagerEvent_Clone(*args, **kwargs) |
27e45892 | 781 | |
eccab1a7 RD |
782 | def SetManager(*args, **kwargs): |
783 | """SetManager(self, AuiManager mgr)""" | |
784 | return _aui.AuiManagerEvent_SetManager(*args, **kwargs) | |
785 | ||
27e45892 | 786 | def SetPane(*args, **kwargs): |
5eb8189c RD |
787 | """SetPane(self, AuiPaneInfo p)""" |
788 | return _aui.AuiManagerEvent_SetPane(*args, **kwargs) | |
27e45892 RD |
789 | |
790 | def SetButton(*args, **kwargs): | |
791 | """SetButton(self, int b)""" | |
5eb8189c | 792 | return _aui.AuiManagerEvent_SetButton(*args, **kwargs) |
27e45892 | 793 | |
81f5836b RD |
794 | def SetDC(*args, **kwargs): |
795 | """SetDC(self, DC pdc)""" | |
5eb8189c | 796 | return _aui.AuiManagerEvent_SetDC(*args, **kwargs) |
81f5836b | 797 | |
eccab1a7 RD |
798 | def GetManager(*args, **kwargs): |
799 | """GetManager(self) -> AuiManager""" | |
800 | return _aui.AuiManagerEvent_GetManager(*args, **kwargs) | |
801 | ||
27e45892 | 802 | def GetPane(*args, **kwargs): |
5eb8189c RD |
803 | """GetPane(self) -> AuiPaneInfo""" |
804 | return _aui.AuiManagerEvent_GetPane(*args, **kwargs) | |
27e45892 RD |
805 | |
806 | def GetButton(*args, **kwargs): | |
807 | """GetButton(self) -> int""" | |
5eb8189c | 808 | return _aui.AuiManagerEvent_GetButton(*args, **kwargs) |
27e45892 | 809 | |
81f5836b RD |
810 | def GetDC(*args, **kwargs): |
811 | """GetDC(self) -> DC""" | |
5eb8189c | 812 | return _aui.AuiManagerEvent_GetDC(*args, **kwargs) |
81f5836b | 813 | |
27e45892 RD |
814 | def Veto(*args, **kwargs): |
815 | """Veto(self, bool veto=True)""" | |
5eb8189c | 816 | return _aui.AuiManagerEvent_Veto(*args, **kwargs) |
27e45892 RD |
817 | |
818 | def GetVeto(*args, **kwargs): | |
819 | """GetVeto(self) -> bool""" | |
5eb8189c | 820 | return _aui.AuiManagerEvent_GetVeto(*args, **kwargs) |
27e45892 RD |
821 | |
822 | def SetCanVeto(*args, **kwargs): | |
823 | """SetCanVeto(self, bool can_veto)""" | |
5eb8189c | 824 | return _aui.AuiManagerEvent_SetCanVeto(*args, **kwargs) |
27e45892 RD |
825 | |
826 | def CanVeto(*args, **kwargs): | |
827 | """CanVeto(self) -> bool""" | |
5eb8189c | 828 | return _aui.AuiManagerEvent_CanVeto(*args, **kwargs) |
27e45892 | 829 | |
eccab1a7 | 830 | manager = property(_aui.AuiManagerEvent_manager_get, _aui.AuiManagerEvent_manager_set) |
5eb8189c RD |
831 | pane = property(_aui.AuiManagerEvent_pane_get, _aui.AuiManagerEvent_pane_set) |
832 | button = property(_aui.AuiManagerEvent_button_get, _aui.AuiManagerEvent_button_set) | |
833 | veto_flag = property(_aui.AuiManagerEvent_veto_flag_get, _aui.AuiManagerEvent_veto_flag_set) | |
834 | canveto_flag = property(_aui.AuiManagerEvent_canveto_flag_get, _aui.AuiManagerEvent_canveto_flag_set) | |
835 | dc = property(_aui.AuiManagerEvent_dc_get, _aui.AuiManagerEvent_dc_set) | |
777e547f RD |
836 | Button = property(GetButton,SetButton,doc="See `GetButton` and `SetButton`") |
837 | DC = property(GetDC,SetDC,doc="See `GetDC` and `SetDC`") | |
838 | Pane = property(GetPane,SetPane,doc="See `GetPane` and `SetPane`") | |
5eb8189c | 839 | _aui.AuiManagerEvent_swigregister(AuiManagerEvent) |
27e45892 | 840 | |
5eb8189c RD |
841 | class AuiDockInfo(object): |
842 | """Proxy of C++ AuiDockInfo class""" | |
27e45892 RD |
843 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
844 | __repr__ = _swig_repr | |
845 | def __init__(self, *args, **kwargs): | |
5eb8189c RD |
846 | """__init__(self) -> AuiDockInfo""" |
847 | _aui.AuiDockInfo_swiginit(self,_aui.new_AuiDockInfo(*args, **kwargs)) | |
27e45892 RD |
848 | def IsOk(*args, **kwargs): |
849 | """IsOk(self) -> bool""" | |
5eb8189c | 850 | return _aui.AuiDockInfo_IsOk(*args, **kwargs) |
27e45892 RD |
851 | |
852 | def IsHorizontal(*args, **kwargs): | |
853 | """IsHorizontal(self) -> bool""" | |
5eb8189c | 854 | return _aui.AuiDockInfo_IsHorizontal(*args, **kwargs) |
27e45892 RD |
855 | |
856 | def IsVertical(*args, **kwargs): | |
857 | """IsVertical(self) -> bool""" | |
5eb8189c RD |
858 | return _aui.AuiDockInfo_IsVertical(*args, **kwargs) |
859 | ||
860 | panes = property(_aui.AuiDockInfo_panes_get, _aui.AuiDockInfo_panes_set) | |
861 | rect = property(_aui.AuiDockInfo_rect_get, _aui.AuiDockInfo_rect_set) | |
862 | dock_direction = property(_aui.AuiDockInfo_dock_direction_get, _aui.AuiDockInfo_dock_direction_set) | |
863 | dock_layer = property(_aui.AuiDockInfo_dock_layer_get, _aui.AuiDockInfo_dock_layer_set) | |
864 | dock_row = property(_aui.AuiDockInfo_dock_row_get, _aui.AuiDockInfo_dock_row_set) | |
865 | size = property(_aui.AuiDockInfo_size_get, _aui.AuiDockInfo_size_set) | |
866 | min_size = property(_aui.AuiDockInfo_min_size_get, _aui.AuiDockInfo_min_size_set) | |
867 | resizable = property(_aui.AuiDockInfo_resizable_get, _aui.AuiDockInfo_resizable_set) | |
868 | toolbar = property(_aui.AuiDockInfo_toolbar_get, _aui.AuiDockInfo_toolbar_set) | |
869 | fixed = property(_aui.AuiDockInfo_fixed_get, _aui.AuiDockInfo_fixed_set) | |
cbdf0fb0 | 870 | reserved1 = property(_aui.AuiDockInfo_reserved1_get, _aui.AuiDockInfo_reserved1_set) |
5eb8189c | 871 | __swig_destroy__ = _aui.delete_AuiDockInfo |
72ef6efb | 872 | __del__ = lambda self : None; |
5eb8189c | 873 | _aui.AuiDockInfo_swigregister(AuiDockInfo) |
27e45892 | 874 | |
5eb8189c RD |
875 | class AuiDockUIPart(object): |
876 | """Proxy of C++ AuiDockUIPart class""" | |
27e45892 | 877 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
846c181b | 878 | def __init__(self): raise AttributeError, "No constructor defined" |
27e45892 | 879 | __repr__ = _swig_repr |
5eb8189c RD |
880 | typeCaption = _aui.AuiDockUIPart_typeCaption |
881 | typeGripper = _aui.AuiDockUIPart_typeGripper | |
882 | typeDock = _aui.AuiDockUIPart_typeDock | |
883 | typeDockSizer = _aui.AuiDockUIPart_typeDockSizer | |
884 | typePane = _aui.AuiDockUIPart_typePane | |
885 | typePaneSizer = _aui.AuiDockUIPart_typePaneSizer | |
886 | typeBackground = _aui.AuiDockUIPart_typeBackground | |
887 | typePaneBorder = _aui.AuiDockUIPart_typePaneBorder | |
888 | typePaneButton = _aui.AuiDockUIPart_typePaneButton | |
889 | type = property(_aui.AuiDockUIPart_type_get, _aui.AuiDockUIPart_type_set) | |
890 | orientation = property(_aui.AuiDockUIPart_orientation_get, _aui.AuiDockUIPart_orientation_set) | |
891 | dock = property(_aui.AuiDockUIPart_dock_get, _aui.AuiDockUIPart_dock_set) | |
892 | pane = property(_aui.AuiDockUIPart_pane_get, _aui.AuiDockUIPart_pane_set) | |
893 | button = property(_aui.AuiDockUIPart_button_get, _aui.AuiDockUIPart_button_set) | |
894 | cont_sizer = property(_aui.AuiDockUIPart_cont_sizer_get, _aui.AuiDockUIPart_cont_sizer_set) | |
895 | sizer_item = property(_aui.AuiDockUIPart_sizer_item_get, _aui.AuiDockUIPart_sizer_item_set) | |
896 | rect = property(_aui.AuiDockUIPart_rect_get, _aui.AuiDockUIPart_rect_set) | |
897 | __swig_destroy__ = _aui.delete_AuiDockUIPart | |
72ef6efb | 898 | __del__ = lambda self : None; |
5eb8189c | 899 | _aui.AuiDockUIPart_swigregister(AuiDockUIPart) |
27e45892 | 900 | |
5eb8189c RD |
901 | class AuiPaneButton(object): |
902 | """Proxy of C++ AuiPaneButton class""" | |
27e45892 | 903 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
846c181b | 904 | def __init__(self): raise AttributeError, "No constructor defined" |
27e45892 | 905 | __repr__ = _swig_repr |
5eb8189c RD |
906 | button_id = property(_aui.AuiPaneButton_button_id_get, _aui.AuiPaneButton_button_id_set) |
907 | __swig_destroy__ = _aui.delete_AuiPaneButton | |
72ef6efb | 908 | __del__ = lambda self : None; |
5eb8189c | 909 | _aui.AuiPaneButton_swigregister(AuiPaneButton) |
27e45892 | 910 | |
d7645bfd VZ |
911 | wxEVT_AUI_PANE_BUTTON = _aui.wxEVT_AUI_PANE_BUTTON |
912 | wxEVT_AUI_PANE_CLOSE = _aui.wxEVT_AUI_PANE_CLOSE | |
913 | wxEVT_AUI_PANE_MAXIMIZE = _aui.wxEVT_AUI_PANE_MAXIMIZE | |
914 | wxEVT_AUI_PANE_RESTORE = _aui.wxEVT_AUI_PANE_RESTORE | |
81f5836b | 915 | wxEVT_AUI_RENDER = _aui.wxEVT_AUI_RENDER |
d7645bfd VZ |
916 | wxEVT_AUI_FIND_MANAGER = _aui.wxEVT_AUI_FIND_MANAGER |
917 | EVT_AUI_PANE_BUTTON = wx.PyEventBinder( wxEVT_AUI_PANE_BUTTON ) | |
918 | EVT_AUI_PANE_CLOSE = wx.PyEventBinder( wxEVT_AUI_PANE_CLOSE ) | |
919 | EVT_AUI_PANE_MAXIMIZE = wx.PyEventBinder( wxEVT_AUI_PANE_MAXIMIZE ) | |
920 | EVT_AUI_PANE_RESTORE = wx.PyEventBinder( wxEVT_AUI_PANE_RESTORE ) | |
81f5836b | 921 | EVT_AUI_RENDER = wx.PyEventBinder( wxEVT_AUI_RENDER ) |
d7645bfd | 922 | EVT_AUI_FIND_MANAGER = wx.PyEventBinder( wxEVT_AUI_FIND_MANAGER ) |
27e45892 | 923 | |
5eb8189c RD |
924 | class AuiDockArt(object): |
925 | """Proxy of C++ AuiDockArt class""" | |
27e45892 RD |
926 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
927 | def __init__(self): raise AttributeError, "No constructor defined" | |
928 | __repr__ = _swig_repr | |
5eb8189c | 929 | __swig_destroy__ = _aui.delete_AuiDockArt |
27e45892 RD |
930 | __del__ = lambda self : None; |
931 | def GetMetric(*args, **kwargs): | |
932 | """GetMetric(self, int id) -> int""" | |
5eb8189c | 933 | return _aui.AuiDockArt_GetMetric(*args, **kwargs) |
27e45892 RD |
934 | |
935 | def SetMetric(*args, **kwargs): | |
936 | """SetMetric(self, int id, int new_val)""" | |
5eb8189c | 937 | return _aui.AuiDockArt_SetMetric(*args, **kwargs) |
27e45892 RD |
938 | |
939 | def SetFont(*args, **kwargs): | |
940 | """SetFont(self, int id, Font font)""" | |
5eb8189c | 941 | return _aui.AuiDockArt_SetFont(*args, **kwargs) |
27e45892 RD |
942 | |
943 | def GetFont(*args, **kwargs): | |
944 | """GetFont(self, int id) -> Font""" | |
5eb8189c | 945 | return _aui.AuiDockArt_GetFont(*args, **kwargs) |
27e45892 RD |
946 | |
947 | def GetColour(*args, **kwargs): | |
948 | """GetColour(self, int id) -> Colour""" | |
5eb8189c | 949 | return _aui.AuiDockArt_GetColour(*args, **kwargs) |
27e45892 RD |
950 | |
951 | def SetColour(*args, **kwargs): | |
59ccbf7f | 952 | """SetColour(self, int id, Colour colour)""" |
5eb8189c | 953 | return _aui.AuiDockArt_SetColour(*args, **kwargs) |
27e45892 RD |
954 | |
955 | def GetColor(*args, **kwargs): | |
956 | """GetColor(self, int id) -> Colour""" | |
5eb8189c | 957 | return _aui.AuiDockArt_GetColor(*args, **kwargs) |
27e45892 RD |
958 | |
959 | def SetColor(*args, **kwargs): | |
960 | """SetColor(self, int id, Colour color)""" | |
5eb8189c | 961 | return _aui.AuiDockArt_SetColor(*args, **kwargs) |
27e45892 RD |
962 | |
963 | def DrawSash(*args, **kwargs): | |
97ab0f6a | 964 | """DrawSash(self, DC dc, Window window, int orientation, Rect rect)""" |
5eb8189c | 965 | return _aui.AuiDockArt_DrawSash(*args, **kwargs) |
27e45892 RD |
966 | |
967 | def DrawBackground(*args, **kwargs): | |
97ab0f6a | 968 | """DrawBackground(self, DC dc, Window window, int orientation, Rect rect)""" |
5eb8189c | 969 | return _aui.AuiDockArt_DrawBackground(*args, **kwargs) |
27e45892 RD |
970 | |
971 | def DrawCaption(*args, **kwargs): | |
5eb8189c RD |
972 | """DrawCaption(self, DC dc, Window window, String text, Rect rect, AuiPaneInfo pane)""" |
973 | return _aui.AuiDockArt_DrawCaption(*args, **kwargs) | |
27e45892 RD |
974 | |
975 | def DrawGripper(*args, **kwargs): | |
5eb8189c RD |
976 | """DrawGripper(self, DC dc, Window window, Rect rect, AuiPaneInfo pane)""" |
977 | return _aui.AuiDockArt_DrawGripper(*args, **kwargs) | |
27e45892 RD |
978 | |
979 | def DrawBorder(*args, **kwargs): | |
5eb8189c RD |
980 | """DrawBorder(self, DC dc, Window window, Rect rect, AuiPaneInfo pane)""" |
981 | return _aui.AuiDockArt_DrawBorder(*args, **kwargs) | |
27e45892 RD |
982 | |
983 | def DrawPaneButton(*args, **kwargs): | |
97ab0f6a RD |
984 | """ |
985 | DrawPaneButton(self, DC dc, Window window, int button, int button_state, | |
5eb8189c | 986 | Rect rect, AuiPaneInfo pane) |
97ab0f6a | 987 | """ |
5eb8189c | 988 | return _aui.AuiDockArt_DrawPaneButton(*args, **kwargs) |
27e45892 | 989 | |
5eb8189c | 990 | _aui.AuiDockArt_swigregister(AuiDockArt) |
27e45892 | 991 | |
5eb8189c RD |
992 | class AuiDefaultDockArt(AuiDockArt): |
993 | """Proxy of C++ AuiDefaultDockArt class""" | |
27e45892 RD |
994 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
995 | __repr__ = _swig_repr | |
996 | def __init__(self, *args, **kwargs): | |
5eb8189c RD |
997 | """__init__(self) -> AuiDefaultDockArt""" |
998 | _aui.AuiDefaultDockArt_swiginit(self,_aui.new_AuiDefaultDockArt(*args, **kwargs)) | |
999 | _aui.AuiDefaultDockArt_swigregister(AuiDefaultDockArt) | |
27e45892 | 1000 | |
5eb8189c RD |
1001 | class AuiFloatingFrame(_windows.MiniFrame): |
1002 | """Proxy of C++ AuiFloatingFrame class""" | |
27e45892 RD |
1003 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1004 | __repr__ = _swig_repr | |
1005 | def __init__(self, *args, **kwargs): | |
1006 | """ | |
5eb8189c RD |
1007 | __init__(self, Window parent, AuiManager owner_mgr, AuiPaneInfo pane, |
1008 | int id=ID_ANY, long style=wxRESIZE_BORDER|wxSYSTEM_MENU|wxCAPTION|wxFRAME_NO_TASKBAR|wxFRAME_FLOAT_ON_PARENT|wxCLIP_CHILDREN) -> AuiFloatingFrame | |
27e45892 | 1009 | """ |
5eb8189c RD |
1010 | _aui.AuiFloatingFrame_swiginit(self,_aui.new_AuiFloatingFrame(*args, **kwargs)) |
1011 | __swig_destroy__ = _aui.delete_AuiFloatingFrame | |
27e45892 RD |
1012 | __del__ = lambda self : None; |
1013 | def SetPaneWindow(*args, **kwargs): | |
5eb8189c RD |
1014 | """SetPaneWindow(self, AuiPaneInfo pane)""" |
1015 | return _aui.AuiFloatingFrame_SetPaneWindow(*args, **kwargs) | |
1016 | ||
eccab1a7 RD |
1017 | def GetOwnerManager(*args, **kwargs): |
1018 | """GetOwnerManager(self) -> AuiManager""" | |
1019 | return _aui.AuiFloatingFrame_GetOwnerManager(*args, **kwargs) | |
1020 | ||
5eb8189c RD |
1021 | _aui.AuiFloatingFrame_swigregister(AuiFloatingFrame) |
1022 | ||
1023 | AUI_NB_TOP = _aui.AUI_NB_TOP | |
1024 | AUI_NB_LEFT = _aui.AUI_NB_LEFT | |
1025 | AUI_NB_RIGHT = _aui.AUI_NB_RIGHT | |
1026 | AUI_NB_BOTTOM = _aui.AUI_NB_BOTTOM | |
1027 | AUI_NB_TAB_SPLIT = _aui.AUI_NB_TAB_SPLIT | |
1028 | AUI_NB_TAB_MOVE = _aui.AUI_NB_TAB_MOVE | |
d95b9f2b | 1029 | AUI_NB_TAB_EXTERNAL_MOVE = _aui.AUI_NB_TAB_EXTERNAL_MOVE |
5172800e | 1030 | AUI_NB_TAB_FIXED_WIDTH = _aui.AUI_NB_TAB_FIXED_WIDTH |
5eb8189c | 1031 | AUI_NB_SCROLL_BUTTONS = _aui.AUI_NB_SCROLL_BUTTONS |
26c4d26f | 1032 | AUI_NB_WINDOWLIST_BUTTON = _aui.AUI_NB_WINDOWLIST_BUTTON |
36cb9ebe | 1033 | AUI_NB_CLOSE_BUTTON = _aui.AUI_NB_CLOSE_BUTTON |
5eb8189c RD |
1034 | AUI_NB_CLOSE_ON_ACTIVE_TAB = _aui.AUI_NB_CLOSE_ON_ACTIVE_TAB |
1035 | AUI_NB_CLOSE_ON_ALL_TABS = _aui.AUI_NB_CLOSE_ON_ALL_TABS | |
1036 | AUI_NB_DEFAULT_STYLE = _aui.AUI_NB_DEFAULT_STYLE | |
10044bf1 RD |
1037 | class AuiNotebookEvent(_core.NotifyEvent): |
1038 | """Proxy of C++ AuiNotebookEvent class""" | |
1039 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1040 | __repr__ = _swig_repr | |
1041 | def __init__(self, *args, **kwargs): | |
1042 | """__init__(self, EventType command_type=wxEVT_NULL, int win_id=0) -> AuiNotebookEvent""" | |
1043 | _aui.AuiNotebookEvent_swiginit(self,_aui.new_AuiNotebookEvent(*args, **kwargs)) | |
1044 | def SetSelection(*args, **kwargs): | |
1045 | """SetSelection(self, int s)""" | |
1046 | return _aui.AuiNotebookEvent_SetSelection(*args, **kwargs) | |
1047 | ||
10044bf1 RD |
1048 | def GetSelection(*args, **kwargs): |
1049 | """ | |
1050 | GetSelection(self) -> int | |
1051 | ||
1052 | Returns item index for a listbox or choice selection event (not valid | |
1053 | for a deselection). | |
1054 | """ | |
1055 | return _aui.AuiNotebookEvent_GetSelection(*args, **kwargs) | |
1056 | ||
d95b9f2b RD |
1057 | def SetOldSelection(*args, **kwargs): |
1058 | """SetOldSelection(self, int s)""" | |
1059 | return _aui.AuiNotebookEvent_SetOldSelection(*args, **kwargs) | |
1060 | ||
10044bf1 RD |
1061 | def GetOldSelection(*args, **kwargs): |
1062 | """GetOldSelection(self) -> int""" | |
1063 | return _aui.AuiNotebookEvent_GetOldSelection(*args, **kwargs) | |
1064 | ||
d95b9f2b RD |
1065 | def SetDragSource(*args, **kwargs): |
1066 | """SetDragSource(self, AuiNotebook s)""" | |
1067 | return _aui.AuiNotebookEvent_SetDragSource(*args, **kwargs) | |
1068 | ||
1069 | def GetDragSource(*args, **kwargs): | |
1070 | """GetDragSource(self) -> AuiNotebook""" | |
1071 | return _aui.AuiNotebookEvent_GetDragSource(*args, **kwargs) | |
1072 | ||
10044bf1 RD |
1073 | old_selection = property(_aui.AuiNotebookEvent_old_selection_get, _aui.AuiNotebookEvent_old_selection_set) |
1074 | selection = property(_aui.AuiNotebookEvent_selection_get, _aui.AuiNotebookEvent_selection_set) | |
d95b9f2b | 1075 | drag_source = property(_aui.AuiNotebookEvent_drag_source_get, _aui.AuiNotebookEvent_drag_source_set) |
777e547f RD |
1076 | OldSelection = property(GetOldSelection,SetOldSelection,doc="See `GetOldSelection` and `SetOldSelection`") |
1077 | Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") | |
10044bf1 RD |
1078 | _aui.AuiNotebookEvent_swigregister(AuiNotebookEvent) |
1079 | ||
1080 | class AuiNotebookPage(object): | |
1081 | """Proxy of C++ AuiNotebookPage class""" | |
1082 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1083 | def __init__(self): raise AttributeError, "No constructor defined" | |
1084 | __repr__ = _swig_repr | |
1085 | window = property(_aui.AuiNotebookPage_window_get, _aui.AuiNotebookPage_window_set) | |
1086 | caption = property(_aui.AuiNotebookPage_caption_get, _aui.AuiNotebookPage_caption_set) | |
1087 | bitmap = property(_aui.AuiNotebookPage_bitmap_get, _aui.AuiNotebookPage_bitmap_set) | |
1088 | rect = property(_aui.AuiNotebookPage_rect_get, _aui.AuiNotebookPage_rect_set) | |
1089 | active = property(_aui.AuiNotebookPage_active_get, _aui.AuiNotebookPage_active_set) | |
1090 | _aui.AuiNotebookPage_swigregister(AuiNotebookPage) | |
1091 | ||
1092 | class AuiTabContainerButton(object): | |
1093 | """Proxy of C++ AuiTabContainerButton class""" | |
1094 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1095 | def __init__(self): raise AttributeError, "No constructor defined" | |
1096 | __repr__ = _swig_repr | |
1097 | id = property(_aui.AuiTabContainerButton_id_get, _aui.AuiTabContainerButton_id_set) | |
1098 | cur_state = property(_aui.AuiTabContainerButton_cur_state_get, _aui.AuiTabContainerButton_cur_state_set) | |
5c8c7dd3 | 1099 | location = property(_aui.AuiTabContainerButton_location_get, _aui.AuiTabContainerButton_location_set) |
10044bf1 | 1100 | bitmap = property(_aui.AuiTabContainerButton_bitmap_get, _aui.AuiTabContainerButton_bitmap_set) |
8f514ab4 | 1101 | dis_bitmap = property(_aui.AuiTabContainerButton_dis_bitmap_get, _aui.AuiTabContainerButton_dis_bitmap_set) |
10044bf1 RD |
1102 | rect = property(_aui.AuiTabContainerButton_rect_get, _aui.AuiTabContainerButton_rect_set) |
1103 | _aui.AuiTabContainerButton_swigregister(AuiTabContainerButton) | |
1104 | ||
5172800e RD |
1105 | class AuiTabArt(object): |
1106 | """Proxy of C++ AuiTabArt class""" | |
1107 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1108 | def __init__(self): raise AttributeError, "No constructor defined" | |
1109 | __repr__ = _swig_repr | |
1110 | __swig_destroy__ = _aui.delete_AuiTabArt | |
1111 | __del__ = lambda self : None; | |
1112 | def Clone(*args, **kwargs): | |
1113 | """Clone(self) -> AuiTabArt""" | |
1114 | return _aui.AuiTabArt_Clone(*args, **kwargs) | |
1115 | ||
1116 | def SetFlags(*args, **kwargs): | |
1117 | """SetFlags(self, int flags)""" | |
1118 | return _aui.AuiTabArt_SetFlags(*args, **kwargs) | |
1119 | ||
1120 | def SetSizingInfo(*args, **kwargs): | |
1121 | """SetSizingInfo(self, Size tab_ctrl_size, size_t tab_count)""" | |
1122 | return _aui.AuiTabArt_SetSizingInfo(*args, **kwargs) | |
1123 | ||
1124 | def SetNormalFont(*args, **kwargs): | |
1125 | """SetNormalFont(self, Font font)""" | |
1126 | return _aui.AuiTabArt_SetNormalFont(*args, **kwargs) | |
1127 | ||
1128 | def SetSelectedFont(*args, **kwargs): | |
1129 | """SetSelectedFont(self, Font font)""" | |
1130 | return _aui.AuiTabArt_SetSelectedFont(*args, **kwargs) | |
1131 | ||
1132 | def SetMeasuringFont(*args, **kwargs): | |
1133 | """SetMeasuringFont(self, Font font)""" | |
1134 | return _aui.AuiTabArt_SetMeasuringFont(*args, **kwargs) | |
1135 | ||
1136 | def DrawBackground(*args, **kwargs): | |
1137 | """DrawBackground(self, DC dc, Window wnd, Rect rect)""" | |
1138 | return _aui.AuiTabArt_DrawBackground(*args, **kwargs) | |
1139 | ||
1140 | def DrawTab(*args, **kwargs): | |
1141 | """ | |
d754c85e RD |
1142 | DrawTab(self, DC dc, Window wnd, AuiNotebookPage pane, Rect in_rect, |
1143 | int close_button_state, Rect out_tab_rect, | |
1144 | Rect out_button_rect, int x_extent) | |
5172800e RD |
1145 | """ |
1146 | return _aui.AuiTabArt_DrawTab(*args, **kwargs) | |
1147 | ||
1148 | def DrawButton(*args, **kwargs): | |
1149 | """ | |
1150 | DrawButton(self, DC dc, Window wnd, Rect in_rect, int bitmap_id, int button_state, | |
d754c85e | 1151 | int orientation, Rect out_rect) |
5172800e RD |
1152 | """ |
1153 | return _aui.AuiTabArt_DrawButton(*args, **kwargs) | |
1154 | ||
5172800e RD |
1155 | def GetTabSize(*args, **kwargs): |
1156 | """ | |
1157 | GetTabSize(self, DC dc, Window wnd, String caption, Bitmap bitmap, bool active, | |
1158 | int close_button_state, int x_extent) -> Size | |
1159 | """ | |
1160 | return _aui.AuiTabArt_GetTabSize(*args, **kwargs) | |
1161 | ||
d754c85e RD |
1162 | def ShowDropDown(*args, **kwargs): |
1163 | """ShowDropDown(self, Window wnd, wxAuiNotebookPageArray items, int active_idx) -> int""" | |
1164 | return _aui.AuiTabArt_ShowDropDown(*args, **kwargs) | |
1165 | ||
1166 | def GetIndentSize(*args, **kwargs): | |
1167 | """GetIndentSize(self) -> int""" | |
1168 | return _aui.AuiTabArt_GetIndentSize(*args, **kwargs) | |
5172800e RD |
1169 | |
1170 | def GetBestTabCtrlSize(*args, **kwargs): | |
8287c33f | 1171 | """GetBestTabCtrlSize(self, Window wnd, wxAuiNotebookPageArray pages, Size required_bmp_size) -> int""" |
5172800e RD |
1172 | return _aui.AuiTabArt_GetBestTabCtrlSize(*args, **kwargs) |
1173 | ||
1174 | _aui.AuiTabArt_swigregister(AuiTabArt) | |
1175 | ||
1176 | class AuiDefaultTabArt(AuiTabArt): | |
1177 | """Proxy of C++ AuiDefaultTabArt class""" | |
1178 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1179 | __repr__ = _swig_repr | |
1180 | def __init__(self, *args, **kwargs): | |
1181 | """__init__(self) -> AuiDefaultTabArt""" | |
1182 | _aui.AuiDefaultTabArt_swiginit(self,_aui.new_AuiDefaultTabArt(*args, **kwargs)) | |
1183 | __swig_destroy__ = _aui.delete_AuiDefaultTabArt | |
1184 | __del__ = lambda self : None; | |
1185 | _aui.AuiDefaultTabArt_swigregister(AuiDefaultTabArt) | |
1186 | ||
1187 | class AuiSimpleTabArt(AuiTabArt): | |
1188 | """Proxy of C++ AuiSimpleTabArt class""" | |
1189 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1190 | __repr__ = _swig_repr | |
1191 | def __init__(self, *args, **kwargs): | |
1192 | """__init__(self) -> AuiSimpleTabArt""" | |
1193 | _aui.AuiSimpleTabArt_swiginit(self,_aui.new_AuiSimpleTabArt(*args, **kwargs)) | |
1194 | __swig_destroy__ = _aui.delete_AuiSimpleTabArt | |
1195 | __del__ = lambda self : None; | |
1196 | _aui.AuiSimpleTabArt_swigregister(AuiSimpleTabArt) | |
1197 | ||
10044bf1 RD |
1198 | class AuiTabContainer(object): |
1199 | """Proxy of C++ AuiTabContainer class""" | |
1200 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1201 | __repr__ = _swig_repr | |
1202 | def __init__(self, *args, **kwargs): | |
1203 | """__init__(self) -> AuiTabContainer""" | |
1204 | _aui.AuiTabContainer_swiginit(self,_aui.new_AuiTabContainer(*args, **kwargs)) | |
1205 | __swig_destroy__ = _aui.delete_AuiTabContainer | |
1206 | __del__ = lambda self : None; | |
5c8c7dd3 | 1207 | def SetArtProvider(*args, **kwargs): |
5eb8189c | 1208 | """SetArtProvider(self, AuiTabArt art)""" |
5c8c7dd3 RD |
1209 | return _aui.AuiTabContainer_SetArtProvider(*args, **kwargs) |
1210 | ||
1211 | def GetArtProvider(*args, **kwargs): | |
5eb8189c | 1212 | """GetArtProvider(self) -> AuiTabArt""" |
5c8c7dd3 RD |
1213 | return _aui.AuiTabContainer_GetArtProvider(*args, **kwargs) |
1214 | ||
5eb8189c RD |
1215 | def SetFlags(*args, **kwargs): |
1216 | """SetFlags(self, int flags)""" | |
1217 | return _aui.AuiTabContainer_SetFlags(*args, **kwargs) | |
1218 | ||
1219 | def GetFlags(*args, **kwargs): | |
1220 | """GetFlags(self) -> int""" | |
1221 | return _aui.AuiTabContainer_GetFlags(*args, **kwargs) | |
1222 | ||
10044bf1 RD |
1223 | def AddPage(*args, **kwargs): |
1224 | """AddPage(self, Window page, AuiNotebookPage info) -> bool""" | |
1225 | return _aui.AuiTabContainer_AddPage(*args, **kwargs) | |
1226 | ||
1227 | def InsertPage(*args, **kwargs): | |
1228 | """InsertPage(self, Window page, AuiNotebookPage info, size_t idx) -> bool""" | |
1229 | return _aui.AuiTabContainer_InsertPage(*args, **kwargs) | |
1230 | ||
580080c5 RD |
1231 | def MovePage(*args, **kwargs): |
1232 | """MovePage(self, Window page, size_t new_idx) -> bool""" | |
1233 | return _aui.AuiTabContainer_MovePage(*args, **kwargs) | |
1234 | ||
10044bf1 RD |
1235 | def RemovePage(*args, **kwargs): |
1236 | """RemovePage(self, Window page) -> bool""" | |
1237 | return _aui.AuiTabContainer_RemovePage(*args, **kwargs) | |
1238 | ||
1239 | def SetActivePage(*args): | |
1240 | """ | |
1241 | SetActivePage(self, Window page) -> bool | |
1242 | SetActivePage(self, size_t page) -> bool | |
1243 | """ | |
1244 | return _aui.AuiTabContainer_SetActivePage(*args) | |
1245 | ||
1246 | def SetNoneActive(*args, **kwargs): | |
1247 | """SetNoneActive(self)""" | |
1248 | return _aui.AuiTabContainer_SetNoneActive(*args, **kwargs) | |
1249 | ||
1250 | def GetActivePage(*args, **kwargs): | |
1251 | """GetActivePage(self) -> int""" | |
1252 | return _aui.AuiTabContainer_GetActivePage(*args, **kwargs) | |
1253 | ||
1254 | def TabHitTest(*args, **kwargs): | |
1255 | """TabHitTest(self, int x, int y, Window hit) -> bool""" | |
1256 | return _aui.AuiTabContainer_TabHitTest(*args, **kwargs) | |
1257 | ||
1258 | def ButtonHitTest(*args, **kwargs): | |
1259 | """ButtonHitTest(self, int x, int y, AuiTabContainerButton hit) -> bool""" | |
1260 | return _aui.AuiTabContainer_ButtonHitTest(*args, **kwargs) | |
1261 | ||
1262 | def GetWindowFromIdx(*args, **kwargs): | |
1263 | """GetWindowFromIdx(self, size_t idx) -> Window""" | |
1264 | return _aui.AuiTabContainer_GetWindowFromIdx(*args, **kwargs) | |
1265 | ||
1266 | def GetIdxFromWindow(*args, **kwargs): | |
1267 | """GetIdxFromWindow(self, Window page) -> int""" | |
1268 | return _aui.AuiTabContainer_GetIdxFromWindow(*args, **kwargs) | |
1269 | ||
1270 | def GetPageCount(*args, **kwargs): | |
1271 | """GetPageCount(self) -> size_t""" | |
1272 | return _aui.AuiTabContainer_GetPageCount(*args, **kwargs) | |
1273 | ||
d48ae46b RD |
1274 | def GetPage(*args, **kwargs): |
1275 | """GetPage(self, size_t idx) -> AuiNotebookPage""" | |
1276 | return _aui.AuiTabContainer_GetPage(*args, **kwargs) | |
10044bf1 RD |
1277 | |
1278 | def GetPages(*args, **kwargs): | |
1279 | """GetPages(self) -> wxAuiNotebookPageArray""" | |
1280 | return _aui.AuiTabContainer_GetPages(*args, **kwargs) | |
1281 | ||
1282 | def SetNormalFont(*args, **kwargs): | |
1283 | """SetNormalFont(self, Font normal_font)""" | |
1284 | return _aui.AuiTabContainer_SetNormalFont(*args, **kwargs) | |
1285 | ||
1286 | def SetSelectedFont(*args, **kwargs): | |
1287 | """SetSelectedFont(self, Font selected_font)""" | |
1288 | return _aui.AuiTabContainer_SetSelectedFont(*args, **kwargs) | |
1289 | ||
1290 | def SetMeasuringFont(*args, **kwargs): | |
1291 | """SetMeasuringFont(self, Font measuring_font)""" | |
1292 | return _aui.AuiTabContainer_SetMeasuringFont(*args, **kwargs) | |
1293 | ||
1294 | def DoShowHide(*args, **kwargs): | |
1295 | """DoShowHide(self)""" | |
1296 | return _aui.AuiTabContainer_DoShowHide(*args, **kwargs) | |
1297 | ||
1298 | def SetRect(*args, **kwargs): | |
1299 | """SetRect(self, Rect rect)""" | |
1300 | return _aui.AuiTabContainer_SetRect(*args, **kwargs) | |
1301 | ||
36cb9ebe RD |
1302 | def RemoveButton(*args, **kwargs): |
1303 | """RemoveButton(self, int id)""" | |
1304 | return _aui.AuiTabContainer_RemoveButton(*args, **kwargs) | |
1305 | ||
10044bf1 | 1306 | def AddButton(*args, **kwargs): |
8f514ab4 RD |
1307 | """ |
1308 | AddButton(self, int id, int location, Bitmap normal_bitmap=wxNullBitmap, | |
1309 | Bitmap disabled_bitmap=wxNullBitmap) | |
1310 | """ | |
10044bf1 RD |
1311 | return _aui.AuiTabContainer_AddButton(*args, **kwargs) |
1312 | ||
8f514ab4 RD |
1313 | def GetTabOffset(*args, **kwargs): |
1314 | """GetTabOffset(self) -> size_t""" | |
1315 | return _aui.AuiTabContainer_GetTabOffset(*args, **kwargs) | |
1316 | ||
1317 | def SetTabOffset(*args, **kwargs): | |
1318 | """SetTabOffset(self, size_t offset)""" | |
1319 | return _aui.AuiTabContainer_SetTabOffset(*args, **kwargs) | |
1320 | ||
777e547f RD |
1321 | ActivePage = property(GetActivePage,SetActivePage,doc="See `GetActivePage` and `SetActivePage`") |
1322 | PageCount = property(GetPageCount,doc="See `GetPageCount`") | |
1323 | Pages = property(GetPages,doc="See `GetPages`") | |
10044bf1 RD |
1324 | _aui.AuiTabContainer_swigregister(AuiTabContainer) |
1325 | ||
1326 | class AuiTabCtrl(_core.Control,AuiTabContainer): | |
1327 | """Proxy of C++ AuiTabCtrl class""" | |
1328 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1329 | __repr__ = _swig_repr | |
1330 | def __init__(self, *args, **kwargs): | |
1331 | """ | |
1332 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1333 | Size size=DefaultSize, long style=0) -> AuiTabCtrl | |
1334 | """ | |
1335 | _aui.AuiTabCtrl_swiginit(self,_aui.new_AuiTabCtrl(*args, **kwargs)) | |
1336 | self._setOORInfo(self) | |
1337 | ||
580080c5 RD |
1338 | __swig_destroy__ = _aui.delete_AuiTabCtrl |
1339 | __del__ = lambda self : None; | |
10044bf1 RD |
1340 | _aui.AuiTabCtrl_swigregister(AuiTabCtrl) |
1341 | ||
5eb8189c RD |
1342 | class AuiNotebook(_core.Control): |
1343 | """Proxy of C++ AuiNotebook class""" | |
10044bf1 RD |
1344 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1345 | __repr__ = _swig_repr | |
1346 | def __init__(self, *args, **kwargs): | |
1347 | """ | |
1348 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
5eb8189c | 1349 | Size size=DefaultSize, long style=AUI_NB_DEFAULT_STYLE) -> AuiNotebook |
10044bf1 | 1350 | """ |
5eb8189c | 1351 | _aui.AuiNotebook_swiginit(self,_aui.new_AuiNotebook(*args, **kwargs)) |
10044bf1 RD |
1352 | self._setOORInfo(self) |
1353 | ||
5eb8189c RD |
1354 | __swig_destroy__ = _aui.delete_AuiNotebook |
1355 | __del__ = lambda self : None; | |
10044bf1 RD |
1356 | def Create(*args, **kwargs): |
1357 | """ | |
1358 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1359 | Size size=DefaultSize, long style=0) -> bool | |
1360 | ||
1361 | Do the 2nd phase and create the GUI control. | |
1362 | """ | |
5eb8189c | 1363 | return _aui.AuiNotebook_Create(*args, **kwargs) |
10044bf1 | 1364 | |
a6927690 RD |
1365 | def SetArtProvider(*args, **kwargs): |
1366 | """SetArtProvider(self, AuiTabArt art)""" | |
1367 | return _aui.AuiNotebook_SetArtProvider(*args, **kwargs) | |
1368 | ||
1369 | def GetArtProvider(*args, **kwargs): | |
1370 | """GetArtProvider(self) -> AuiTabArt""" | |
1371 | return _aui.AuiNotebook_GetArtProvider(*args, **kwargs) | |
1372 | ||
1373 | def SetUniformBitmapSize(*args, **kwargs): | |
1374 | """SetUniformBitmapSize(self, Size size)""" | |
1375 | return _aui.AuiNotebook_SetUniformBitmapSize(*args, **kwargs) | |
1376 | ||
1377 | def SetTabCtrlHeight(*args, **kwargs): | |
1378 | """SetTabCtrlHeight(self, int height)""" | |
1379 | return _aui.AuiNotebook_SetTabCtrlHeight(*args, **kwargs) | |
1380 | ||
10044bf1 RD |
1381 | def AddPage(*args, **kwargs): |
1382 | """AddPage(self, Window page, String caption, bool select=False, Bitmap bitmap=wxNullBitmap) -> bool""" | |
5eb8189c | 1383 | return _aui.AuiNotebook_AddPage(*args, **kwargs) |
10044bf1 RD |
1384 | |
1385 | def InsertPage(*args, **kwargs): | |
1386 | """ | |
1387 | InsertPage(self, size_t page_idx, Window page, String caption, bool select=False, | |
1388 | Bitmap bitmap=wxNullBitmap) -> bool | |
1389 | """ | |
5eb8189c | 1390 | return _aui.AuiNotebook_InsertPage(*args, **kwargs) |
10044bf1 RD |
1391 | |
1392 | def DeletePage(*args, **kwargs): | |
1393 | """DeletePage(self, size_t page) -> bool""" | |
5eb8189c | 1394 | return _aui.AuiNotebook_DeletePage(*args, **kwargs) |
10044bf1 RD |
1395 | |
1396 | def RemovePage(*args, **kwargs): | |
1397 | """RemovePage(self, size_t page) -> bool""" | |
5eb8189c | 1398 | return _aui.AuiNotebook_RemovePage(*args, **kwargs) |
10044bf1 | 1399 | |
a6927690 RD |
1400 | def GetPageCount(*args, **kwargs): |
1401 | """GetPageCount(self) -> size_t""" | |
1402 | return _aui.AuiNotebook_GetPageCount(*args, **kwargs) | |
1403 | ||
1404 | def GetPage(*args, **kwargs): | |
1405 | """GetPage(self, size_t page_idx) -> Window""" | |
1406 | return _aui.AuiNotebook_GetPage(*args, **kwargs) | |
1407 | ||
1408 | def GetPageIndex(*args, **kwargs): | |
1409 | """GetPageIndex(self, Window page_wnd) -> int""" | |
1410 | return _aui.AuiNotebook_GetPageIndex(*args, **kwargs) | |
1411 | ||
10044bf1 RD |
1412 | def SetPageText(*args, **kwargs): |
1413 | """SetPageText(self, size_t page, String text) -> bool""" | |
5eb8189c | 1414 | return _aui.AuiNotebook_SetPageText(*args, **kwargs) |
10044bf1 | 1415 | |
a6927690 RD |
1416 | def GetPageText(*args, **kwargs): |
1417 | """GetPageText(self, size_t page_idx) -> String""" | |
1418 | return _aui.AuiNotebook_GetPageText(*args, **kwargs) | |
1419 | ||
5172800e RD |
1420 | def SetPageBitmap(*args, **kwargs): |
1421 | """SetPageBitmap(self, size_t page, Bitmap bitmap) -> bool""" | |
1422 | return _aui.AuiNotebook_SetPageBitmap(*args, **kwargs) | |
1423 | ||
a6927690 RD |
1424 | def GetPageBitmap(*args, **kwargs): |
1425 | """GetPageBitmap(self, size_t page_idx) -> Bitmap""" | |
1426 | return _aui.AuiNotebook_GetPageBitmap(*args, **kwargs) | |
1427 | ||
10044bf1 RD |
1428 | def SetSelection(*args, **kwargs): |
1429 | """SetSelection(self, size_t new_page) -> size_t""" | |
5eb8189c | 1430 | return _aui.AuiNotebook_SetSelection(*args, **kwargs) |
10044bf1 RD |
1431 | |
1432 | def GetSelection(*args, **kwargs): | |
1433 | """GetSelection(self) -> int""" | |
5eb8189c | 1434 | return _aui.AuiNotebook_GetSelection(*args, **kwargs) |
10044bf1 | 1435 | |
a6927690 RD |
1436 | def Split(*args, **kwargs): |
1437 | """Split(self, size_t page, int direction)""" | |
1438 | return _aui.AuiNotebook_Split(*args, **kwargs) | |
8287c33f | 1439 | |
777e547f RD |
1440 | PageCount = property(GetPageCount,doc="See `GetPageCount`") |
1441 | Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") | |
5eb8189c | 1442 | _aui.AuiNotebook_swigregister(AuiNotebook) |
10044bf1 | 1443 | |
5eb8189c RD |
1444 | def PreAuiNotebook(*args, **kwargs): |
1445 | """PreAuiNotebook() -> AuiNotebook""" | |
1446 | val = _aui.new_PreAuiNotebook(*args, **kwargs) | |
34d71f81 | 1447 | val._setOORInfo(val) |
10044bf1 RD |
1448 | return val |
1449 | ||
d95b9f2b | 1450 | wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE = _aui.wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE |
10044bf1 RD |
1451 | wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED = _aui.wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED |
1452 | wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING = _aui.wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING | |
1453 | wxEVT_COMMAND_AUINOTEBOOK_BUTTON = _aui.wxEVT_COMMAND_AUINOTEBOOK_BUTTON | |
1454 | wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG = _aui.wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG | |
1455 | wxEVT_COMMAND_AUINOTEBOOK_END_DRAG = _aui.wxEVT_COMMAND_AUINOTEBOOK_END_DRAG | |
1456 | wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION = _aui.wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION | |
d95b9f2b RD |
1457 | wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND = _aui.wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND |
1458 | EVT_AUINOTEBOOK_PAGE_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, 1 ) | |
10044bf1 RD |
1459 | EVT_AUINOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, 1 ) |
1460 | EVT_AUINOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, 1 ) | |
1461 | EVT_AUINOTEBOOK_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BUTTON, 1 ) | |
1462 | EVT_AUINOTEBOOK_BEGIN_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG, 1 ) | |
1463 | EVT_AUINOTEBOOK_END_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_END_DRAG, 1 ) | |
1464 | EVT_AUINOTEBOOK_DRAG_MOTION = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION, 1 ) | |
d95b9f2b | 1465 | EVT_AUINOTEBOOK_ALLOW_DND = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND, 1 ) |
10044bf1 | 1466 | |
34d71f81 RD |
1467 | class AuiMDIParentFrame(_windows.Frame): |
1468 | """Proxy of C++ AuiMDIParentFrame class""" | |
1469 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1470 | __repr__ = _swig_repr | |
1471 | def __init__(self, *args, **kwargs): | |
1472 | """ | |
1473 | __init__(self, Window parent, int winid, String title, Point pos=DefaultPosition, | |
1474 | Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, | |
1475 | String name=wxFrameNameStr) -> AuiMDIParentFrame | |
1476 | """ | |
1477 | _aui.AuiMDIParentFrame_swiginit(self,_aui.new_AuiMDIParentFrame(*args, **kwargs)) | |
1478 | self._setOORInfo(self) | |
1479 | ||
1480 | def Create(*args, **kwargs): | |
1481 | """ | |
1482 | Create(self, Window parent, int winid, String title, Point pos=DefaultPosition, | |
1483 | Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, | |
1484 | String name=wxFrameNameStr) -> bool | |
1485 | """ | |
1486 | return _aui.AuiMDIParentFrame_Create(*args, **kwargs) | |
1487 | ||
1488 | def SetArtProvider(*args, **kwargs): | |
1489 | """SetArtProvider(self, AuiTabArt provider)""" | |
1490 | return _aui.AuiMDIParentFrame_SetArtProvider(*args, **kwargs) | |
1491 | ||
1492 | def GetArtProvider(*args, **kwargs): | |
1493 | """GetArtProvider(self) -> AuiTabArt""" | |
1494 | return _aui.AuiMDIParentFrame_GetArtProvider(*args, **kwargs) | |
1495 | ||
1496 | def GetNotebook(*args, **kwargs): | |
1497 | """GetNotebook(self) -> AuiNotebook""" | |
1498 | return _aui.AuiMDIParentFrame_GetNotebook(*args, **kwargs) | |
1499 | ||
1500 | def GetWindowMenu(*args, **kwargs): | |
1501 | """GetWindowMenu(self) -> Menu""" | |
1502 | return _aui.AuiMDIParentFrame_GetWindowMenu(*args, **kwargs) | |
1503 | ||
1504 | def SetWindowMenu(*args, **kwargs): | |
1505 | """SetWindowMenu(self, Menu pMenu)""" | |
1506 | return _aui.AuiMDIParentFrame_SetWindowMenu(*args, **kwargs) | |
1507 | ||
1508 | def SetChildMenuBar(*args, **kwargs): | |
1509 | """SetChildMenuBar(self, AuiMDIChildFrame pChild)""" | |
1510 | return _aui.AuiMDIParentFrame_SetChildMenuBar(*args, **kwargs) | |
1511 | ||
1512 | def ProcessEvent(*args, **kwargs): | |
1513 | """ProcessEvent(self, Event event) -> bool""" | |
1514 | return _aui.AuiMDIParentFrame_ProcessEvent(*args, **kwargs) | |
1515 | ||
1516 | def GetActiveChild(*args, **kwargs): | |
1517 | """GetActiveChild(self) -> AuiMDIChildFrame""" | |
1518 | return _aui.AuiMDIParentFrame_GetActiveChild(*args, **kwargs) | |
1519 | ||
1520 | def SetActiveChild(*args, **kwargs): | |
1521 | """SetActiveChild(self, AuiMDIChildFrame pChildFrame)""" | |
1522 | return _aui.AuiMDIParentFrame_SetActiveChild(*args, **kwargs) | |
1523 | ||
1524 | def GetClientWindow(*args, **kwargs): | |
1525 | """GetClientWindow(self) -> AuiMDIClientWindow""" | |
1526 | return _aui.AuiMDIParentFrame_GetClientWindow(*args, **kwargs) | |
1527 | ||
1528 | def OnCreateClient(*args, **kwargs): | |
1529 | """OnCreateClient(self) -> AuiMDIClientWindow""" | |
1530 | return _aui.AuiMDIParentFrame_OnCreateClient(*args, **kwargs) | |
1531 | ||
1532 | def Cascade(*args, **kwargs): | |
1533 | """Cascade(self)""" | |
1534 | return _aui.AuiMDIParentFrame_Cascade(*args, **kwargs) | |
1535 | ||
1536 | def Tile(*args, **kwargs): | |
1537 | """Tile(self, int orient=HORIZONTAL)""" | |
1538 | return _aui.AuiMDIParentFrame_Tile(*args, **kwargs) | |
1539 | ||
1540 | def ArrangeIcons(*args, **kwargs): | |
1541 | """ArrangeIcons(self)""" | |
1542 | return _aui.AuiMDIParentFrame_ArrangeIcons(*args, **kwargs) | |
1543 | ||
1544 | def ActivateNext(*args, **kwargs): | |
1545 | """ActivateNext(self)""" | |
1546 | return _aui.AuiMDIParentFrame_ActivateNext(*args, **kwargs) | |
1547 | ||
1548 | def ActivatePrevious(*args, **kwargs): | |
1549 | """ActivatePrevious(self)""" | |
1550 | return _aui.AuiMDIParentFrame_ActivatePrevious(*args, **kwargs) | |
1551 | ||
1552 | _aui.AuiMDIParentFrame_swigregister(AuiMDIParentFrame) | |
1553 | ||
1554 | def PreAuiMDIParentFrame(*args, **kwargs): | |
1555 | """PreAuiMDIParentFrame() -> AuiMDIParentFrame""" | |
1556 | val = _aui.new_PreAuiMDIParentFrame(*args, **kwargs) | |
1557 | val._setOORInfo(val) | |
1558 | return val | |
1559 | ||
1560 | class AuiMDIChildFrame(_windows.Panel): | |
1561 | """Proxy of C++ AuiMDIChildFrame class""" | |
1562 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1563 | __repr__ = _swig_repr | |
1564 | def __init__(self, *args, **kwargs): | |
1565 | """ | |
1566 | __init__(self, AuiMDIParentFrame parent, int winid, String title, | |
1567 | Point pos=DefaultPosition, Size size=DefaultSize, | |
1568 | long style=DEFAULT_FRAME_STYLE, String name=wxFrameNameStr) -> AuiMDIChildFrame | |
1569 | """ | |
1570 | _aui.AuiMDIChildFrame_swiginit(self,_aui.new_AuiMDIChildFrame(*args, **kwargs)) | |
1571 | self._setOORInfo(self) | |
1572 | ||
1573 | def Create(*args, **kwargs): | |
1574 | """ | |
1575 | Create(self, AuiMDIParentFrame parent, int winid, String title, | |
1576 | Point pos=DefaultPosition, Size size=DefaultSize, | |
1577 | long style=DEFAULT_FRAME_STYLE, String name=wxFrameNameStr) -> bool | |
1578 | """ | |
1579 | return _aui.AuiMDIChildFrame_Create(*args, **kwargs) | |
1580 | ||
1581 | def SetMenuBar(*args, **kwargs): | |
1582 | """SetMenuBar(self, MenuBar menu_bar)""" | |
1583 | return _aui.AuiMDIChildFrame_SetMenuBar(*args, **kwargs) | |
1584 | ||
1585 | def GetMenuBar(*args, **kwargs): | |
1586 | """GetMenuBar(self) -> MenuBar""" | |
1587 | return _aui.AuiMDIChildFrame_GetMenuBar(*args, **kwargs) | |
1588 | ||
1589 | def SetTitle(*args, **kwargs): | |
1590 | """SetTitle(self, String title)""" | |
1591 | return _aui.AuiMDIChildFrame_SetTitle(*args, **kwargs) | |
1592 | ||
1593 | def GetTitle(*args, **kwargs): | |
1594 | """GetTitle(self) -> String""" | |
1595 | return _aui.AuiMDIChildFrame_GetTitle(*args, **kwargs) | |
1596 | ||
1597 | def SetIcons(*args, **kwargs): | |
1598 | """SetIcons(self, wxIconBundle icons)""" | |
1599 | return _aui.AuiMDIChildFrame_SetIcons(*args, **kwargs) | |
1600 | ||
1601 | def GetIcons(*args, **kwargs): | |
1602 | """GetIcons(self) -> wxIconBundle""" | |
1603 | return _aui.AuiMDIChildFrame_GetIcons(*args, **kwargs) | |
1604 | ||
1605 | def SetIcon(*args, **kwargs): | |
1606 | """SetIcon(self, Icon icon)""" | |
1607 | return _aui.AuiMDIChildFrame_SetIcon(*args, **kwargs) | |
1608 | ||
1609 | def GetIcon(*args, **kwargs): | |
1610 | """GetIcon(self) -> Icon""" | |
1611 | return _aui.AuiMDIChildFrame_GetIcon(*args, **kwargs) | |
1612 | ||
1613 | def Activate(*args, **kwargs): | |
1614 | """Activate(self)""" | |
1615 | return _aui.AuiMDIChildFrame_Activate(*args, **kwargs) | |
1616 | ||
1617 | def DoSetSizeHints(*args, **kwargs): | |
1618 | """ | |
1619 | DoSetSizeHints(self, int minW, int minH, int maxW=wxDefaultCoord, int maxH=wxDefaultCoord, | |
1620 | int incW=wxDefaultCoord, int incH=wxDefaultCoord) | |
1621 | """ | |
1622 | return _aui.AuiMDIChildFrame_DoSetSizeHints(*args, **kwargs) | |
1623 | ||
1624 | def Maximize(*args, **kwargs): | |
1625 | """Maximize(self, bool maximize=True)""" | |
1626 | return _aui.AuiMDIChildFrame_Maximize(*args, **kwargs) | |
1627 | ||
1628 | def Restore(*args, **kwargs): | |
1629 | """Restore(self)""" | |
1630 | return _aui.AuiMDIChildFrame_Restore(*args, **kwargs) | |
1631 | ||
1632 | def Iconize(*args, **kwargs): | |
1633 | """Iconize(self, bool iconize=True)""" | |
1634 | return _aui.AuiMDIChildFrame_Iconize(*args, **kwargs) | |
1635 | ||
1636 | def IsMaximized(*args, **kwargs): | |
1637 | """IsMaximized(self) -> bool""" | |
1638 | return _aui.AuiMDIChildFrame_IsMaximized(*args, **kwargs) | |
1639 | ||
1640 | def IsIconized(*args, **kwargs): | |
1641 | """IsIconized(self) -> bool""" | |
1642 | return _aui.AuiMDIChildFrame_IsIconized(*args, **kwargs) | |
1643 | ||
1644 | def ShowFullScreen(*args, **kwargs): | |
1645 | """ShowFullScreen(self, bool show, long style) -> bool""" | |
1646 | return _aui.AuiMDIChildFrame_ShowFullScreen(*args, **kwargs) | |
1647 | ||
1648 | def IsFullScreen(*args, **kwargs): | |
1649 | """IsFullScreen(self) -> bool""" | |
1650 | return _aui.AuiMDIChildFrame_IsFullScreen(*args, **kwargs) | |
1651 | ||
1652 | def OnMenuHighlight(*args, **kwargs): | |
1653 | """OnMenuHighlight(self, MenuEvent evt)""" | |
1654 | return _aui.AuiMDIChildFrame_OnMenuHighlight(*args, **kwargs) | |
1655 | ||
1656 | def OnActivate(*args, **kwargs): | |
1657 | """OnActivate(self, ActivateEvent evt)""" | |
1658 | return _aui.AuiMDIChildFrame_OnActivate(*args, **kwargs) | |
1659 | ||
1660 | def OnCloseWindow(*args, **kwargs): | |
1661 | """OnCloseWindow(self, CloseEvent evt)""" | |
1662 | return _aui.AuiMDIChildFrame_OnCloseWindow(*args, **kwargs) | |
1663 | ||
1664 | def SetMDIParentFrame(*args, **kwargs): | |
1665 | """SetMDIParentFrame(self, AuiMDIParentFrame parent)""" | |
1666 | return _aui.AuiMDIChildFrame_SetMDIParentFrame(*args, **kwargs) | |
1667 | ||
1668 | def GetMDIParentFrame(*args, **kwargs): | |
1669 | """GetMDIParentFrame(self) -> AuiMDIParentFrame""" | |
1670 | return _aui.AuiMDIChildFrame_GetMDIParentFrame(*args, **kwargs) | |
1671 | ||
1672 | def ApplyMDIChildFrameRect(*args, **kwargs): | |
1673 | """ApplyMDIChildFrameRect(self)""" | |
1674 | return _aui.AuiMDIChildFrame_ApplyMDIChildFrameRect(*args, **kwargs) | |
1675 | ||
1676 | def DoShow(*args, **kwargs): | |
1677 | """DoShow(self, bool show)""" | |
1678 | return _aui.AuiMDIChildFrame_DoShow(*args, **kwargs) | |
1679 | ||
1680 | _aui.AuiMDIChildFrame_swigregister(AuiMDIChildFrame) | |
1681 | ||
1682 | def PreAuiMDIChildFrame(*args, **kwargs): | |
1683 | """PreAuiMDIChildFrame() -> AuiMDIChildFrame""" | |
1684 | val = _aui.new_PreAuiMDIChildFrame(*args, **kwargs) | |
1685 | val._setOORInfo(val) | |
1686 | return val | |
1687 | ||
1688 | class AuiMDIClientWindow(AuiNotebook): | |
1689 | """Proxy of C++ AuiMDIClientWindow class""" | |
1690 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1691 | __repr__ = _swig_repr | |
1692 | def __init__(self, *args, **kwargs): | |
1693 | """__init__(self, AuiMDIParentFrame parent, long style=0) -> AuiMDIClientWindow""" | |
1694 | _aui.AuiMDIClientWindow_swiginit(self,_aui.new_AuiMDIClientWindow(*args, **kwargs)) | |
1695 | self._setOORInfo(self) | |
1696 | ||
1697 | def CreateClient(*args, **kwargs): | |
1698 | """CreateClient(self, AuiMDIParentFrame parent, long style=wxVSCROLL|wxHSCROLL) -> bool""" | |
1699 | return _aui.AuiMDIClientWindow_CreateClient(*args, **kwargs) | |
1700 | ||
1701 | def SetSelection(*args, **kwargs): | |
1702 | """SetSelection(self, size_t page) -> int""" | |
1703 | return _aui.AuiMDIClientWindow_SetSelection(*args, **kwargs) | |
1704 | ||
1705 | _aui.AuiMDIClientWindow_swigregister(AuiMDIClientWindow) | |
1706 | ||
1707 | def PreAuiMDIClientWindow(*args, **kwargs): | |
1708 | """PreAuiMDIClientWindow() -> AuiMDIClientWindow""" | |
1709 | val = _aui.new_PreAuiMDIClientWindow(*args, **kwargs) | |
1710 | val._setOORInfo(val) | |
1711 | return val | |
1712 | ||
5eb8189c | 1713 | class PyAuiDockArt(AuiDefaultDockArt): |
27e45892 | 1714 | """ |
5eb8189c | 1715 | This version of the `AuiDockArt` class has been instrumented to be |
27e45892 RD |
1716 | subclassable in Python and to reflect all calls to the C++ base class |
1717 | methods to the Python methods implemented in the derived class. | |
1718 | """ | |
1719 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1720 | def __init__(self): raise AttributeError, "No constructor defined" | |
1721 | __repr__ = _swig_repr | |
5eb8189c | 1722 | _aui.PyAuiDockArt_swigregister(PyAuiDockArt) |
27e45892 | 1723 | |
5eb8189c | 1724 | class PyAuiTabArt(AuiDefaultTabArt): |
5c8c7dd3 RD |
1725 | """ |
1726 | This version of the `TabArt` class has been instrumented to be | |
1727 | subclassable in Python and to reflect all calls to the C++ base class | |
1728 | methods to the Python methods implemented in the derived class. | |
1729 | """ | |
1730 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1731 | def __init__(self): raise AttributeError, "No constructor defined" | |
1732 | __repr__ = _swig_repr | |
5eb8189c | 1733 | _aui.PyAuiTabArt_swigregister(PyAuiTabArt) |
5c8c7dd3 | 1734 | |
27e45892 RD |
1735 | |
1736 |