]>
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 | ||
38 | **PyAUI adheres to the following principles** | |
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 | ||
63 | self._mgr = wx.aui.FrameManager(self) | |
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 | |
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 | |
70d7cb34 RD |
169 | AUI_MGR_VENETIAN_BLINDS_HINT = _aui.AUI_MGR_VENETIAN_BLINDS_HINT |
170 | AUI_MGR_RECTANGLE_HINT = _aui.AUI_MGR_RECTANGLE_HINT | |
171 | AUI_MGR_HINT_FADE = _aui.AUI_MGR_HINT_FADE | |
172 | AUI_MGR_NO_VENETIAN_BLINDS_FADE = _aui.AUI_MGR_NO_VENETIAN_BLINDS_FADE | |
27e45892 RD |
173 | AUI_MGR_DEFAULT = _aui.AUI_MGR_DEFAULT |
174 | AUI_ART_SASH_SIZE = _aui.AUI_ART_SASH_SIZE | |
175 | AUI_ART_CAPTION_SIZE = _aui.AUI_ART_CAPTION_SIZE | |
176 | AUI_ART_GRIPPER_SIZE = _aui.AUI_ART_GRIPPER_SIZE | |
177 | AUI_ART_PANE_BORDER_SIZE = _aui.AUI_ART_PANE_BORDER_SIZE | |
178 | AUI_ART_PANE_BUTTON_SIZE = _aui.AUI_ART_PANE_BUTTON_SIZE | |
179 | AUI_ART_BACKGROUND_COLOUR = _aui.AUI_ART_BACKGROUND_COLOUR | |
180 | AUI_ART_SASH_COLOUR = _aui.AUI_ART_SASH_COLOUR | |
181 | AUI_ART_ACTIVE_CAPTION_COLOUR = _aui.AUI_ART_ACTIVE_CAPTION_COLOUR | |
182 | AUI_ART_ACTIVE_CAPTION_GRADIENT_COLOUR = _aui.AUI_ART_ACTIVE_CAPTION_GRADIENT_COLOUR | |
183 | AUI_ART_INACTIVE_CAPTION_COLOUR = _aui.AUI_ART_INACTIVE_CAPTION_COLOUR | |
184 | AUI_ART_INACTIVE_CAPTION_GRADIENT_COLOUR = _aui.AUI_ART_INACTIVE_CAPTION_GRADIENT_COLOUR | |
185 | AUI_ART_ACTIVE_CAPTION_TEXT_COLOUR = _aui.AUI_ART_ACTIVE_CAPTION_TEXT_COLOUR | |
186 | AUI_ART_INACTIVE_CAPTION_TEXT_COLOUR = _aui.AUI_ART_INACTIVE_CAPTION_TEXT_COLOUR | |
187 | AUI_ART_BORDER_COLOUR = _aui.AUI_ART_BORDER_COLOUR | |
188 | AUI_ART_GRIPPER_COLOUR = _aui.AUI_ART_GRIPPER_COLOUR | |
189 | AUI_ART_CAPTION_FONT = _aui.AUI_ART_CAPTION_FONT | |
190 | AUI_ART_GRADIENT_TYPE = _aui.AUI_ART_GRADIENT_TYPE | |
191 | AUI_GRADIENT_NONE = _aui.AUI_GRADIENT_NONE | |
192 | AUI_GRADIENT_VERTICAL = _aui.AUI_GRADIENT_VERTICAL | |
193 | AUI_GRADIENT_HORIZONTAL = _aui.AUI_GRADIENT_HORIZONTAL | |
194 | AUI_BUTTON_STATE_NORMAL = _aui.AUI_BUTTON_STATE_NORMAL | |
195 | AUI_BUTTON_STATE_HOVER = _aui.AUI_BUTTON_STATE_HOVER | |
196 | AUI_BUTTON_STATE_PRESSED = _aui.AUI_BUTTON_STATE_PRESSED | |
197 | AUI_INSERT_PANE = _aui.AUI_INSERT_PANE | |
198 | AUI_INSERT_ROW = _aui.AUI_INSERT_ROW | |
199 | AUI_INSERT_DOCK = _aui.AUI_INSERT_DOCK | |
200 | class PaneInfo(object): | |
201 | """ | |
202 | PaneInfo specifies all the parameters for a pane for the | |
203 | `FrameManager`. These parameters specify where the pane is on the | |
204 | screen, whether it is docked or floating, or hidden. In addition, | |
205 | these parameters specify the pane's docked position, floating | |
206 | position, preferred size, minimum size, caption text among many other | |
207 | parameters. | |
208 | ||
209 | """ | |
210 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
211 | __repr__ = _swig_repr | |
212 | def __init__(self, *args, **kwargs): | |
213 | """ | |
214 | __init__(self) -> PaneInfo | |
215 | ||
216 | PaneInfo specifies all the parameters for a pane for the | |
217 | `FrameManager`. These parameters specify where the pane is on the | |
218 | screen, whether it is docked or floating, or hidden. In addition, | |
219 | these parameters specify the pane's docked position, floating | |
220 | position, preferred size, minimum size, caption text among many other | |
221 | parameters. | |
222 | ||
223 | """ | |
224 | _aui.PaneInfo_swiginit(self,_aui.new_PaneInfo(*args, **kwargs)) | |
225 | __swig_destroy__ = _aui.delete_PaneInfo | |
226 | __del__ = lambda self : None; | |
0f83f5da RD |
227 | def SafeSet(*args, **kwargs): |
228 | """SafeSet(self, PaneInfo source)""" | |
229 | return _aui.PaneInfo_SafeSet(*args, **kwargs) | |
230 | ||
27e45892 RD |
231 | def IsOk(*args, **kwargs): |
232 | """ | |
233 | IsOk(self) -> bool | |
234 | ||
235 | IsOk returns ``True`` if the PaneInfo structure is valid. | |
236 | ||
237 | """ | |
238 | return _aui.PaneInfo_IsOk(*args, **kwargs) | |
239 | ||
240 | def IsFixed(*args, **kwargs): | |
241 | """ | |
242 | IsFixed(self) -> bool | |
243 | ||
244 | IsFixed returns ``True`` if the pane cannot be resized. | |
245 | ||
246 | """ | |
247 | return _aui.PaneInfo_IsFixed(*args, **kwargs) | |
248 | ||
249 | def IsResizable(*args, **kwargs): | |
250 | """ | |
251 | IsResizable(self) -> bool | |
252 | ||
253 | IsResizeable returns ``True`` if the pane can be resized. | |
254 | ||
255 | """ | |
256 | return _aui.PaneInfo_IsResizable(*args, **kwargs) | |
257 | ||
258 | def IsShown(*args, **kwargs): | |
259 | """ | |
260 | IsShown(self) -> bool | |
261 | ||
262 | IsShown returns ``True`` if the pane should be drawn on the screen. | |
263 | ||
264 | """ | |
265 | return _aui.PaneInfo_IsShown(*args, **kwargs) | |
266 | ||
267 | def IsFloating(*args, **kwargs): | |
268 | """ | |
269 | IsFloating(self) -> bool | |
270 | ||
271 | IsFloating returns ``True`` if the pane is floating. | |
272 | ||
273 | """ | |
274 | return _aui.PaneInfo_IsFloating(*args, **kwargs) | |
275 | ||
276 | def IsDocked(*args, **kwargs): | |
277 | """ | |
278 | IsDocked(self) -> bool | |
279 | ||
280 | IsDocked returns ``True`` if the pane is docked. | |
281 | ||
282 | """ | |
283 | return _aui.PaneInfo_IsDocked(*args, **kwargs) | |
284 | ||
285 | def IsToolbar(*args, **kwargs): | |
286 | """ | |
287 | IsToolbar(self) -> bool | |
288 | ||
289 | IsToolbar returns ``True`` if the pane contains a toolbar. | |
290 | ||
291 | """ | |
292 | return _aui.PaneInfo_IsToolbar(*args, **kwargs) | |
293 | ||
294 | def IsTopDockable(*args, **kwargs): | |
295 | """ | |
296 | IsTopDockable(self) -> bool | |
297 | ||
298 | IsTopDockable returns ``True`` if the pane can be docked at the top of | |
299 | the managed frame. | |
300 | ||
301 | """ | |
302 | return _aui.PaneInfo_IsTopDockable(*args, **kwargs) | |
303 | ||
304 | def IsBottomDockable(*args, **kwargs): | |
305 | """ | |
306 | IsBottomDockable(self) -> bool | |
307 | ||
308 | IsBottomDockable returns ``True`` if the pane can be docked at the | |
309 | bottom of the managed frame. | |
310 | ||
311 | """ | |
312 | return _aui.PaneInfo_IsBottomDockable(*args, **kwargs) | |
313 | ||
314 | def IsLeftDockable(*args, **kwargs): | |
315 | """ | |
316 | IsLeftDockable(self) -> bool | |
317 | ||
318 | IsLeftDockable returns ``True`` if the pane can be docked on the left | |
319 | of the managed frame. | |
320 | ||
321 | """ | |
322 | return _aui.PaneInfo_IsLeftDockable(*args, **kwargs) | |
323 | ||
324 | def IsRightDockable(*args, **kwargs): | |
325 | """ | |
326 | IsRightDockable(self) -> bool | |
327 | ||
328 | IsRightDockable returns ``True`` if the pane can be docked on the | |
329 | right of the managed frame. | |
330 | ||
331 | """ | |
332 | return _aui.PaneInfo_IsRightDockable(*args, **kwargs) | |
333 | ||
334 | def IsFloatable(*args, **kwargs): | |
335 | """ | |
336 | IsFloatable(self) -> bool | |
337 | ||
338 | IsFloatable returns ``True`` if the pane can be undocked and displayed | |
339 | as a floating window. | |
340 | ||
341 | """ | |
342 | return _aui.PaneInfo_IsFloatable(*args, **kwargs) | |
343 | ||
344 | def IsMovable(*args, **kwargs): | |
345 | """ | |
346 | IsMovable(self) -> bool | |
347 | ||
348 | IsMoveable returns ``True`` if the docked frame can be undocked or moved | |
349 | to another dock position. | |
350 | ||
351 | """ | |
352 | return _aui.PaneInfo_IsMovable(*args, **kwargs) | |
353 | ||
9b940138 RD |
354 | def IsDestroyOnClose(*args, **kwargs): |
355 | """IsDestroyOnClose(self) -> bool""" | |
356 | return _aui.PaneInfo_IsDestroyOnClose(*args, **kwargs) | |
357 | ||
27e45892 RD |
358 | def HasCaption(*args, **kwargs): |
359 | """ | |
360 | HasCaption(self) -> bool | |
361 | ||
362 | HasCaption returns ``True`` if the pane displays a caption. | |
363 | ||
364 | """ | |
365 | return _aui.PaneInfo_HasCaption(*args, **kwargs) | |
366 | ||
367 | def HasGripper(*args, **kwargs): | |
368 | """ | |
369 | HasGripper(self) -> bool | |
370 | ||
371 | HasGripper returns ``True`` if the pane displays a gripper. | |
372 | ||
373 | """ | |
374 | return _aui.PaneInfo_HasGripper(*args, **kwargs) | |
375 | ||
376 | def HasBorder(*args, **kwargs): | |
377 | """ | |
378 | HasBorder(self) -> bool | |
379 | ||
380 | HasBorder returns ``True`` if the pane displays a border. | |
381 | ||
382 | """ | |
383 | return _aui.PaneInfo_HasBorder(*args, **kwargs) | |
384 | ||
385 | def HasCloseButton(*args, **kwargs): | |
386 | """ | |
387 | HasCloseButton(self) -> bool | |
388 | ||
389 | HasCloseButton returns ``True`` if the pane displays a button to close | |
390 | the pane. | |
391 | ||
392 | """ | |
393 | return _aui.PaneInfo_HasCloseButton(*args, **kwargs) | |
394 | ||
395 | def HasMaximizeButton(*args, **kwargs): | |
396 | """ | |
397 | HasMaximizeButton(self) -> bool | |
398 | ||
399 | HasMaximizeButton returns ``True`` if the pane displays a button to | |
400 | maximize the pane. | |
401 | ||
402 | """ | |
403 | return _aui.PaneInfo_HasMaximizeButton(*args, **kwargs) | |
404 | ||
405 | def HasMinimizeButton(*args, **kwargs): | |
406 | """ | |
407 | HasMinimizeButton(self) -> bool | |
408 | ||
409 | HasMinimizeButton returns ``True`` if the pane displays a button to | |
410 | minimize the pane. | |
411 | ||
412 | """ | |
413 | return _aui.PaneInfo_HasMinimizeButton(*args, **kwargs) | |
414 | ||
415 | def HasPinButton(*args, **kwargs): | |
416 | """ | |
417 | HasPinButton(self) -> bool | |
418 | ||
419 | HasPinButton returns ``True`` if the pane displays a button to float | |
420 | the pane. | |
421 | ||
422 | """ | |
423 | return _aui.PaneInfo_HasPinButton(*args, **kwargs) | |
424 | ||
425 | def HasGripperTop(*args, **kwargs): | |
426 | """HasGripperTop(self) -> bool""" | |
427 | return _aui.PaneInfo_HasGripperTop(*args, **kwargs) | |
428 | ||
429 | def Window(*args, **kwargs): | |
430 | """Window(self, Window w) -> PaneInfo""" | |
431 | return _aui.PaneInfo_Window(*args, **kwargs) | |
432 | ||
433 | def Name(*args, **kwargs): | |
434 | """ | |
435 | Name(self, String n) -> PaneInfo | |
436 | ||
437 | Name sets the name of the pane so it can be referenced in lookup | |
438 | functions. | |
439 | ||
440 | """ | |
441 | return _aui.PaneInfo_Name(*args, **kwargs) | |
442 | ||
443 | def Caption(*args, **kwargs): | |
444 | """ | |
445 | Caption(self, String c) -> PaneInfo | |
446 | ||
447 | Caption sets the caption of the pane. | |
448 | ||
449 | """ | |
450 | return _aui.PaneInfo_Caption(*args, **kwargs) | |
451 | ||
452 | def Left(*args, **kwargs): | |
453 | """ | |
454 | Left(self) -> PaneInfo | |
455 | ||
456 | Left sets the pane dock position to the left side of the frame. | |
457 | ||
458 | """ | |
459 | return _aui.PaneInfo_Left(*args, **kwargs) | |
460 | ||
461 | def Right(*args, **kwargs): | |
462 | """ | |
463 | Right(self) -> PaneInfo | |
464 | ||
465 | Right sets the pane dock position to the right side of the frame. | |
466 | ||
467 | """ | |
468 | return _aui.PaneInfo_Right(*args, **kwargs) | |
469 | ||
470 | def Top(*args, **kwargs): | |
471 | """ | |
472 | Top(self) -> PaneInfo | |
473 | ||
474 | Top sets the pane dock position to the top of the frame. | |
475 | ||
476 | """ | |
477 | return _aui.PaneInfo_Top(*args, **kwargs) | |
478 | ||
479 | def Bottom(*args, **kwargs): | |
480 | """ | |
481 | Bottom(self) -> PaneInfo | |
482 | ||
483 | Bottom sets the pane dock position to the bottom of the frame. | |
484 | ||
485 | """ | |
486 | return _aui.PaneInfo_Bottom(*args, **kwargs) | |
487 | ||
488 | def Center(*args, **kwargs): | |
489 | """ | |
490 | Center(self) -> PaneInfo | |
491 | ||
492 | Center sets the pane to the center position of the frame. | |
493 | ||
494 | """ | |
495 | return _aui.PaneInfo_Center(*args, **kwargs) | |
496 | ||
497 | def Centre(*args, **kwargs): | |
498 | """ | |
499 | Centre(self) -> PaneInfo | |
500 | ||
501 | Centre sets the pane to the center position of the frame. | |
502 | ||
503 | """ | |
504 | return _aui.PaneInfo_Centre(*args, **kwargs) | |
505 | ||
506 | def Direction(*args, **kwargs): | |
507 | """ | |
508 | Direction(self, int direction) -> PaneInfo | |
509 | ||
510 | Direction determines the direction of the docked pane. | |
511 | ||
512 | """ | |
513 | return _aui.PaneInfo_Direction(*args, **kwargs) | |
514 | ||
515 | def Layer(*args, **kwargs): | |
516 | """ | |
517 | Layer(self, int layer) -> PaneInfo | |
518 | ||
519 | Layer determines the layer of the docked pane. | |
520 | ||
521 | """ | |
522 | return _aui.PaneInfo_Layer(*args, **kwargs) | |
523 | ||
524 | def Row(*args, **kwargs): | |
525 | """ | |
526 | Row(self, int row) -> PaneInfo | |
527 | ||
528 | Row determines the row of the docked pane. | |
529 | ||
530 | """ | |
531 | return _aui.PaneInfo_Row(*args, **kwargs) | |
532 | ||
533 | def Position(*args, **kwargs): | |
534 | """ | |
535 | Position(self, int pos) -> PaneInfo | |
536 | ||
537 | Position determines the position of the docked pane. | |
538 | ||
539 | """ | |
540 | return _aui.PaneInfo_Position(*args, **kwargs) | |
541 | ||
542 | def BestSize(*args, **kwargs): | |
543 | """ | |
544 | BestSize(self, Size size) -> PaneInfo | |
545 | ||
546 | BestSize sets the ideal size for the pane. | |
547 | ||
548 | """ | |
549 | return _aui.PaneInfo_BestSize(*args, **kwargs) | |
550 | ||
551 | def MinSize(*args, **kwargs): | |
552 | """ | |
553 | MinSize(self, Size size) -> PaneInfo | |
554 | ||
555 | MinSize sets the minimum size of the pane. | |
556 | ||
557 | """ | |
558 | return _aui.PaneInfo_MinSize(*args, **kwargs) | |
559 | ||
560 | def MaxSize(*args, **kwargs): | |
561 | """ | |
562 | MaxSize(self, Size size) -> PaneInfo | |
563 | ||
564 | MaxSize sets the maximum size of the pane. | |
565 | ||
566 | """ | |
567 | return _aui.PaneInfo_MaxSize(*args, **kwargs) | |
568 | ||
569 | def FloatingPosition(*args, **kwargs): | |
570 | """ | |
571 | FloatingPosition(self, Point pos) -> PaneInfo | |
572 | ||
573 | FloatingPosition sets the position of the floating pane. | |
574 | ||
575 | """ | |
576 | return _aui.PaneInfo_FloatingPosition(*args, **kwargs) | |
577 | ||
578 | def FloatingSize(*args, **kwargs): | |
579 | """ | |
580 | FloatingSize(self, Size size) -> PaneInfo | |
581 | ||
582 | FloatingSize sets the size of the floating pane. | |
583 | ||
584 | """ | |
585 | return _aui.PaneInfo_FloatingSize(*args, **kwargs) | |
586 | ||
587 | def Fixed(*args, **kwargs): | |
588 | """ | |
589 | Fixed(self) -> PaneInfo | |
590 | ||
591 | Fixed forces a pane to be fixed size so that it cannot be resized. | |
592 | ||
593 | """ | |
594 | return _aui.PaneInfo_Fixed(*args, **kwargs) | |
595 | ||
596 | def Resizable(*args, **kwargs): | |
597 | """ | |
598 | Resizable(self, bool resizable=True) -> PaneInfo | |
599 | ||
600 | Resized allows a pane to be resized if resizable is true, and forces | |
601 | it to be a fixed size if resizeable is false. | |
602 | ||
603 | """ | |
604 | return _aui.PaneInfo_Resizable(*args, **kwargs) | |
605 | ||
606 | def Dock(*args, **kwargs): | |
607 | """ | |
608 | Dock(self) -> PaneInfo | |
609 | ||
610 | Dock indicates that a pane should be docked. | |
611 | ||
612 | """ | |
613 | return _aui.PaneInfo_Dock(*args, **kwargs) | |
614 | ||
615 | def Float(*args, **kwargs): | |
616 | """ | |
617 | Float(self) -> PaneInfo | |
618 | ||
619 | Float indicates that a pane should be floated. | |
620 | ||
621 | """ | |
622 | return _aui.PaneInfo_Float(*args, **kwargs) | |
623 | ||
624 | def Hide(*args, **kwargs): | |
625 | """ | |
626 | Hide(self) -> PaneInfo | |
627 | ||
628 | Hide indicates that a pane should be hidden. | |
629 | ||
630 | """ | |
631 | return _aui.PaneInfo_Hide(*args, **kwargs) | |
632 | ||
633 | def Show(*args, **kwargs): | |
634 | """ | |
635 | Show(self, bool show=True) -> PaneInfo | |
636 | ||
637 | Show indicates that a pane should be shown. | |
638 | ||
639 | """ | |
640 | return _aui.PaneInfo_Show(*args, **kwargs) | |
641 | ||
642 | def CaptionVisible(*args, **kwargs): | |
643 | """ | |
644 | CaptionVisible(self, bool visible=True) -> PaneInfo | |
645 | ||
646 | CaptionVisible indicates that a pane caption should be visible. | |
647 | ||
648 | """ | |
649 | return _aui.PaneInfo_CaptionVisible(*args, **kwargs) | |
650 | ||
651 | def PaneBorder(*args, **kwargs): | |
652 | """ | |
653 | PaneBorder(self, bool visible=True) -> PaneInfo | |
654 | ||
655 | PaneBorder indicates that a border should be drawn for the pane. | |
656 | ||
657 | """ | |
658 | return _aui.PaneInfo_PaneBorder(*args, **kwargs) | |
659 | ||
660 | def Gripper(*args, **kwargs): | |
661 | """ | |
662 | Gripper(self, bool visible=True) -> PaneInfo | |
663 | ||
664 | Gripper indicates that a gripper should be drawn for the pane.. | |
665 | ||
666 | """ | |
667 | return _aui.PaneInfo_Gripper(*args, **kwargs) | |
668 | ||
669 | def GripperTop(*args, **kwargs): | |
670 | """GripperTop(self, bool attop=True) -> PaneInfo""" | |
671 | return _aui.PaneInfo_GripperTop(*args, **kwargs) | |
672 | ||
673 | def CloseButton(*args, **kwargs): | |
674 | """ | |
675 | CloseButton(self, bool visible=True) -> PaneInfo | |
676 | ||
677 | CloseButton indicates that a close button should be drawn for the | |
678 | pane. | |
679 | ||
680 | """ | |
681 | return _aui.PaneInfo_CloseButton(*args, **kwargs) | |
682 | ||
683 | def MaximizeButton(*args, **kwargs): | |
684 | """ | |
685 | MaximizeButton(self, bool visible=True) -> PaneInfo | |
686 | ||
687 | MaximizeButton indicates that a maximize button should be drawn for | |
688 | the pane. | |
689 | ||
690 | """ | |
691 | return _aui.PaneInfo_MaximizeButton(*args, **kwargs) | |
692 | ||
693 | def MinimizeButton(*args, **kwargs): | |
694 | """ | |
695 | MinimizeButton(self, bool visible=True) -> PaneInfo | |
696 | ||
697 | MinimizeButton indicates that a minimize button should be drawn for | |
698 | the pane. | |
699 | ||
700 | """ | |
701 | return _aui.PaneInfo_MinimizeButton(*args, **kwargs) | |
702 | ||
703 | def PinButton(*args, **kwargs): | |
704 | """ | |
705 | PinButton(self, bool visible=True) -> PaneInfo | |
706 | ||
707 | PinButton indicates that a pin button should be drawn for the pane. | |
708 | ||
709 | """ | |
710 | return _aui.PaneInfo_PinButton(*args, **kwargs) | |
711 | ||
712 | def DestroyOnClose(*args, **kwargs): | |
713 | """ | |
714 | DestroyOnClose(self, bool b=True) -> PaneInfo | |
715 | ||
716 | DestroyOnClose indicates whether a pane should be detroyed when it is | |
717 | closed. | |
718 | ||
719 | """ | |
720 | return _aui.PaneInfo_DestroyOnClose(*args, **kwargs) | |
721 | ||
722 | def TopDockable(*args, **kwargs): | |
723 | """ | |
724 | TopDockable(self, bool b=True) -> PaneInfo | |
725 | ||
726 | TopDockable indicates whether a pane can be docked at the top of the | |
727 | frame. | |
728 | ||
729 | """ | |
730 | return _aui.PaneInfo_TopDockable(*args, **kwargs) | |
731 | ||
732 | def BottomDockable(*args, **kwargs): | |
733 | """ | |
734 | BottomDockable(self, bool b=True) -> PaneInfo | |
735 | ||
736 | BottomDockable indicates whether a pane can be docked at the bottom of | |
737 | the frame. | |
738 | ||
739 | """ | |
740 | return _aui.PaneInfo_BottomDockable(*args, **kwargs) | |
741 | ||
742 | def LeftDockable(*args, **kwargs): | |
743 | """ | |
744 | LeftDockable(self, bool b=True) -> PaneInfo | |
745 | ||
746 | LeftDockable indicates whether a pane can be docked on the left of the | |
747 | frame. | |
748 | ||
749 | """ | |
750 | return _aui.PaneInfo_LeftDockable(*args, **kwargs) | |
751 | ||
752 | def RightDockable(*args, **kwargs): | |
753 | """ | |
754 | RightDockable(self, bool b=True) -> PaneInfo | |
755 | ||
756 | RightDockable indicates whether a pane can be docked on the right of | |
757 | the frame. | |
758 | ||
759 | """ | |
760 | return _aui.PaneInfo_RightDockable(*args, **kwargs) | |
761 | ||
762 | def Floatable(*args, **kwargs): | |
763 | """ | |
764 | Floatable(self, bool b=True) -> PaneInfo | |
765 | ||
766 | Floatable indicates whether a frame can be floated. | |
767 | ||
768 | """ | |
769 | return _aui.PaneInfo_Floatable(*args, **kwargs) | |
770 | ||
771 | def Movable(*args, **kwargs): | |
772 | """ | |
773 | Movable(self, bool b=True) -> PaneInfo | |
774 | ||
775 | Movable indicates whether a frame can be moved. | |
776 | ||
777 | """ | |
778 | return _aui.PaneInfo_Movable(*args, **kwargs) | |
779 | ||
780 | def Dockable(*args, **kwargs): | |
781 | """ | |
782 | Dockable(self, bool b=True) -> PaneInfo | |
783 | ||
784 | Dockable indicates whether a pane can be docked at any position of the | |
785 | frame. | |
786 | ||
787 | """ | |
788 | return _aui.PaneInfo_Dockable(*args, **kwargs) | |
789 | ||
790 | def DefaultPane(*args, **kwargs): | |
791 | """ | |
792 | DefaultPane(self) -> PaneInfo | |
793 | ||
794 | DefaultPane specifies that the pane should adopt the default pane | |
795 | settings. | |
796 | ||
797 | """ | |
798 | return _aui.PaneInfo_DefaultPane(*args, **kwargs) | |
799 | ||
800 | def CentrePane(*args, **kwargs): | |
801 | """ | |
802 | CentrePane(self) -> PaneInfo | |
803 | ||
804 | CentrePane specifies that the pane should adopt the default center | |
805 | pane settings. | |
806 | ||
807 | """ | |
808 | return _aui.PaneInfo_CentrePane(*args, **kwargs) | |
809 | ||
810 | def CenterPane(*args, **kwargs): | |
811 | """ | |
812 | CenterPane(self) -> PaneInfo | |
813 | ||
814 | CenterPane specifies that the pane should adopt the default center | |
815 | pane settings. | |
816 | ||
817 | """ | |
818 | return _aui.PaneInfo_CenterPane(*args, **kwargs) | |
819 | ||
820 | def ToolbarPane(*args, **kwargs): | |
821 | """ | |
822 | ToolbarPane(self) -> PaneInfo | |
823 | ||
824 | ToolbarPane specifies that the pane should adopt the default toolbar | |
825 | pane settings. | |
826 | ||
827 | """ | |
828 | return _aui.PaneInfo_ToolbarPane(*args, **kwargs) | |
829 | ||
830 | def SetFlag(*args, **kwargs): | |
831 | """ | |
832 | SetFlag(self, int flag, bool option_state) -> PaneInfo | |
833 | ||
834 | SetFlag turns the property given by flag on or off with the | |
835 | option_state parameter. | |
836 | ||
837 | """ | |
838 | return _aui.PaneInfo_SetFlag(*args, **kwargs) | |
839 | ||
840 | def HasFlag(*args, **kwargs): | |
841 | """ | |
842 | HasFlag(self, int flag) -> bool | |
843 | ||
844 | HasFlag returns ``True`` if the the property specified by flag is | |
845 | active for the pane. | |
846 | ||
847 | """ | |
848 | return _aui.PaneInfo_HasFlag(*args, **kwargs) | |
849 | ||
850 | optionFloating = _aui.PaneInfo_optionFloating | |
851 | optionHidden = _aui.PaneInfo_optionHidden | |
852 | optionLeftDockable = _aui.PaneInfo_optionLeftDockable | |
853 | optionRightDockable = _aui.PaneInfo_optionRightDockable | |
854 | optionTopDockable = _aui.PaneInfo_optionTopDockable | |
855 | optionBottomDockable = _aui.PaneInfo_optionBottomDockable | |
856 | optionFloatable = _aui.PaneInfo_optionFloatable | |
857 | optionMovable = _aui.PaneInfo_optionMovable | |
858 | optionResizable = _aui.PaneInfo_optionResizable | |
859 | optionPaneBorder = _aui.PaneInfo_optionPaneBorder | |
860 | optionCaption = _aui.PaneInfo_optionCaption | |
861 | optionGripper = _aui.PaneInfo_optionGripper | |
862 | optionDestroyOnClose = _aui.PaneInfo_optionDestroyOnClose | |
863 | optionToolbar = _aui.PaneInfo_optionToolbar | |
864 | optionActive = _aui.PaneInfo_optionActive | |
865 | optionGripperTop = _aui.PaneInfo_optionGripperTop | |
866 | buttonClose = _aui.PaneInfo_buttonClose | |
867 | buttonMaximize = _aui.PaneInfo_buttonMaximize | |
868 | buttonMinimize = _aui.PaneInfo_buttonMinimize | |
869 | buttonPin = _aui.PaneInfo_buttonPin | |
870 | buttonCustom1 = _aui.PaneInfo_buttonCustom1 | |
871 | buttonCustom2 = _aui.PaneInfo_buttonCustom2 | |
872 | buttonCustom3 = _aui.PaneInfo_buttonCustom3 | |
873 | actionPane = _aui.PaneInfo_actionPane | |
874 | name = property(_aui.PaneInfo_name_get, _aui.PaneInfo_name_set) | |
875 | caption = property(_aui.PaneInfo_caption_get, _aui.PaneInfo_caption_set) | |
876 | window = property(_aui.PaneInfo_window_get, _aui.PaneInfo_window_set) | |
877 | frame = property(_aui.PaneInfo_frame_get, _aui.PaneInfo_frame_set) | |
878 | state = property(_aui.PaneInfo_state_get, _aui.PaneInfo_state_set) | |
879 | dock_direction = property(_aui.PaneInfo_dock_direction_get, _aui.PaneInfo_dock_direction_set) | |
880 | dock_layer = property(_aui.PaneInfo_dock_layer_get, _aui.PaneInfo_dock_layer_set) | |
881 | dock_row = property(_aui.PaneInfo_dock_row_get, _aui.PaneInfo_dock_row_set) | |
882 | dock_pos = property(_aui.PaneInfo_dock_pos_get, _aui.PaneInfo_dock_pos_set) | |
883 | best_size = property(_aui.PaneInfo_best_size_get, _aui.PaneInfo_best_size_set) | |
884 | min_size = property(_aui.PaneInfo_min_size_get, _aui.PaneInfo_min_size_set) | |
885 | max_size = property(_aui.PaneInfo_max_size_get, _aui.PaneInfo_max_size_set) | |
886 | floating_pos = property(_aui.PaneInfo_floating_pos_get, _aui.PaneInfo_floating_pos_set) | |
887 | floating_size = property(_aui.PaneInfo_floating_size_get, _aui.PaneInfo_floating_size_set) | |
888 | dock_proportion = property(_aui.PaneInfo_dock_proportion_get, _aui.PaneInfo_dock_proportion_set) | |
889 | buttons = property(_aui.PaneInfo_buttons_get, _aui.PaneInfo_buttons_set) | |
890 | rect = property(_aui.PaneInfo_rect_get, _aui.PaneInfo_rect_set) | |
891 | _aui.PaneInfo_swigregister(PaneInfo) | |
892 | cvar = _aui.cvar | |
893 | ||
894 | class FrameManager(_core.EvtHandler): | |
895 | """ | |
896 | FrameManager manages the panes associated with it for a particular | |
897 | `wx.Frame`, using a pane's `PaneInfo` information to determine each | |
898 | pane's docking and floating behavior. FrameManager uses wxWidgets' | |
899 | sizer mechanism to plan the layout of each frame. It uses a | |
900 | replaceable `DockArt` class to do all drawing, so all drawing is | |
901 | localized in one area, and may be customized depending on an | |
902 | application's specific needs. | |
903 | ||
904 | """ | |
905 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
906 | __repr__ = _swig_repr | |
907 | def __init__(self, *args, **kwargs): | |
908 | """ | |
10044bf1 | 909 | __init__(self, Window managed_wnd=None, int flags=AUI_MGR_DEFAULT) -> FrameManager |
27e45892 RD |
910 | |
911 | Constructor. | |
912 | ||
10044bf1 RD |
913 | :param managed_wnd: Specifies the `wx.Window` which should be |
914 | managed. If not set in the call to this constructor then | |
915 | `SetManagedWindow` should be called later. | |
27e45892 RD |
916 | |
917 | :param flags: Specifies options which allow the frame management | |
918 | behavior to be modified. | |
919 | ||
920 | """ | |
921 | _aui.FrameManager_swiginit(self,_aui.new_FrameManager(*args, **kwargs)) | |
922 | __swig_destroy__ = _aui.delete_FrameManager | |
923 | __del__ = lambda self : None; | |
924 | def UnInit(*args, **kwargs): | |
925 | """ | |
926 | UnInit(self) | |
927 | ||
928 | UnInit uninitializes the framework and should be called before a | |
929 | managed frame is destroyed. UnInit is usually called in the managed | |
10044bf1 | 930 | window's destructor. |
27e45892 RD |
931 | |
932 | """ | |
933 | return _aui.FrameManager_UnInit(*args, **kwargs) | |
934 | ||
935 | def SetFlags(*args, **kwargs): | |
936 | """ | |
937 | SetFlags(self, int flags) | |
938 | ||
939 | SetFlags is used to specify the FrameManager's behavioral | |
940 | settings. The flags parameter is described in the docs for `__init__` | |
941 | ||
942 | """ | |
943 | return _aui.FrameManager_SetFlags(*args, **kwargs) | |
944 | ||
945 | def GetFlags(*args, **kwargs): | |
946 | """ | |
947 | GetFlags(self) -> int | |
948 | ||
949 | GetFlags returns the current FrameManager's flags. | |
950 | ||
951 | """ | |
952 | return _aui.FrameManager_GetFlags(*args, **kwargs) | |
953 | ||
10044bf1 | 954 | def SetManagedWindow(*args, **kwargs): |
27e45892 | 955 | """ |
10044bf1 | 956 | SetManagedWindow(self, Window managed_wnd) |
27e45892 | 957 | |
10044bf1 RD |
958 | SetManagedWindow is called to specify the window which is to be |
959 | managed by the FrameManager. It is normally a `wx.Frame` but it is | |
960 | possible to also allow docking within any container window. This only | |
961 | needs to be called if the window was not given to the manager in the | |
962 | constructor. | |
27e45892 RD |
963 | |
964 | """ | |
10044bf1 | 965 | return _aui.FrameManager_SetManagedWindow(*args, **kwargs) |
27e45892 | 966 | |
10044bf1 | 967 | def GetManagedWindow(*args, **kwargs): |
27e45892 | 968 | """ |
10044bf1 | 969 | GetManagedWindow(self) -> Window |
27e45892 | 970 | |
10044bf1 | 971 | GetManagedWindow returns the window currently being managed by the |
27e45892 RD |
972 | FrameManager. |
973 | ||
974 | """ | |
10044bf1 | 975 | return _aui.FrameManager_GetManagedWindow(*args, **kwargs) |
27e45892 RD |
976 | |
977 | def SetArtProvider(*args, **kwargs): | |
978 | """ | |
979 | SetArtProvider(self, DockArt art_provider) | |
980 | ||
981 | SetArtProvider instructs FrameManager to use the art provider | |
982 | specified for all drawing calls. This allows plugable look-and-feel | |
983 | features. The previous art provider object, if any, will be destroyed | |
984 | by FrameManager. | |
985 | ||
986 | :note: If you wish to use a custom `DockArt` class to override drawing | |
987 | or metrics then you shoudl derive your class from the `PyDockArt` | |
988 | class, which has been instrumented for reflecting virtual calls to | |
989 | Python methods. | |
990 | ||
991 | """ | |
992 | return _aui.FrameManager_SetArtProvider(*args, **kwargs) | |
993 | ||
994 | def GetArtProvider(*args, **kwargs): | |
995 | """ | |
996 | GetArtProvider(self) -> DockArt | |
997 | ||
998 | GetArtProvider returns the current art provider being used. | |
999 | ||
1000 | """ | |
1001 | return _aui.FrameManager_GetArtProvider(*args, **kwargs) | |
1002 | ||
1003 | def _GetPaneByWidget(*args, **kwargs): | |
1004 | """_GetPaneByWidget(self, Window window) -> PaneInfo""" | |
1005 | return _aui.FrameManager__GetPaneByWidget(*args, **kwargs) | |
1006 | ||
1007 | def _GetPaneByName(*args, **kwargs): | |
1008 | """_GetPaneByName(self, String name) -> PaneInfo""" | |
1009 | return _aui.FrameManager__GetPaneByName(*args, **kwargs) | |
1010 | ||
1011 | def GetAllPanes(*args, **kwargs): | |
1012 | """ | |
1013 | GetAllPanes(self) -> list | |
1014 | ||
1015 | GetAllPanes returns a list of `PaneInfo` objects for all panes managed | |
1016 | by the frame manager. | |
1017 | ||
1018 | """ | |
1019 | return _aui.FrameManager_GetAllPanes(*args, **kwargs) | |
1020 | ||
1021 | def _AddPane1(*args, **kwargs): | |
1022 | """_AddPane1(self, Window window, PaneInfo pane_info) -> bool""" | |
1023 | return _aui.FrameManager__AddPane1(*args, **kwargs) | |
1024 | ||
10044bf1 RD |
1025 | def AddPaneAtPos(*args, **kwargs): |
1026 | """AddPaneAtPos(self, Window window, PaneInfo pane_info, Point drop_pos) -> bool""" | |
1027 | return _aui.FrameManager_AddPaneAtPos(*args, **kwargs) | |
1028 | ||
27e45892 RD |
1029 | def _AddPane2(*args, **kwargs): |
1030 | """_AddPane2(self, Window window, int direction=LEFT, String caption=wxEmptyString) -> bool""" | |
1031 | return _aui.FrameManager__AddPane2(*args, **kwargs) | |
1032 | ||
1033 | def InsertPane(*args, **kwargs): | |
1034 | """ | |
1035 | InsertPane(self, Window window, PaneInfo insert_location, int insert_level=AUI_INSERT_PANE) -> bool | |
1036 | ||
1037 | InsertPane is used to insert either a previously unmanaged pane window | |
1038 | into the frame manager, or to insert a currently managed pane | |
1039 | somewhere else. InsertPane will push all panes, rows, or docks aside | |
1040 | and insert the window into the position specified by | |
1041 | ``insert_location``. Because ``insert_location`` can specify either a pane, | |
1042 | dock row, or dock layer, the ``insert_level`` parameter is used to | |
1043 | disambiguate this. The parameter ``insert_level`` can take a value of | |
1044 | ``AUI_INSERT_PANE``, ``AUI_INSERT_ROW`` or ``AUI_INSERT_DOCK``. | |
1045 | ||
1046 | """ | |
1047 | return _aui.FrameManager_InsertPane(*args, **kwargs) | |
1048 | ||
1049 | def DetachPane(*args, **kwargs): | |
1050 | """ | |
1051 | DetachPane(self, Window window) -> bool | |
1052 | ||
1053 | DetachPane tells the FrameManager to stop managing the pane specified | |
1054 | by window. The window, if in a floated frame, is reparented to the | |
1055 | frame managed by FrameManager. | |
1056 | ||
1057 | """ | |
1058 | return _aui.FrameManager_DetachPane(*args, **kwargs) | |
1059 | ||
9b940138 RD |
1060 | def ClosePane(*args, **kwargs): |
1061 | """ClosePane(self, PaneInfo pane_info)""" | |
1062 | return _aui.FrameManager_ClosePane(*args, **kwargs) | |
1063 | ||
0f83f5da RD |
1064 | def SavePaneInfo(*args, **kwargs): |
1065 | """SavePaneInfo(self, PaneInfo pane) -> String""" | |
1066 | return _aui.FrameManager_SavePaneInfo(*args, **kwargs) | |
1067 | ||
1068 | def LoadPaneInfo(*args, **kwargs): | |
1069 | """LoadPaneInfo(self, String pane_part, PaneInfo pane)""" | |
1070 | return _aui.FrameManager_LoadPaneInfo(*args, **kwargs) | |
1071 | ||
27e45892 RD |
1072 | def SavePerspective(*args, **kwargs): |
1073 | """ | |
1074 | SavePerspective(self) -> String | |
1075 | ||
1076 | SavePerspective saves the entire user interface layout into an encoded | |
1077 | string, which can then be stored someplace by the application. When a | |
1078 | perspective is restored using `LoadPerspective`, the entire user | |
1079 | interface will return to the state it was when the perspective was | |
1080 | saved. | |
1081 | ||
1082 | """ | |
1083 | return _aui.FrameManager_SavePerspective(*args, **kwargs) | |
1084 | ||
1085 | def LoadPerspective(*args, **kwargs): | |
1086 | """ | |
1087 | LoadPerspective(self, String perspective, bool update=True) -> bool | |
1088 | ||
1089 | LoadPerspective loads a saved perspective. If ``update`` is ``True``, | |
1090 | `Update` is automatically invoked, thus realizing the saved | |
1091 | perspective on screen. | |
1092 | ||
1093 | """ | |
1094 | return _aui.FrameManager_LoadPerspective(*args, **kwargs) | |
1095 | ||
1096 | def Update(*args, **kwargs): | |
1097 | """ | |
1098 | Update(self) | |
1099 | ||
1100 | Update shoudl be called called after any number of changes are made to | |
1101 | any of the managed panes. Update must be invoked after `AddPane` or | |
1102 | `InsertPane` are called in order to "realize" or "commit" the | |
1103 | changes. In addition, any number of changes may be made to `PaneInfo` | |
1104 | structures (retrieved with `GetPane` or `GetAllPanes`), but to realize | |
1105 | the changes, Update must be called. This construction allows pane | |
1106 | flicker to be avoided by updating the whole layout at one time. | |
1107 | ||
1108 | """ | |
1109 | return _aui.FrameManager_Update(*args, **kwargs) | |
1110 | ||
9b940138 RD |
1111 | def CreateFloatingFrame(*args, **kwargs): |
1112 | """CreateFloatingFrame(self, Window parent, PaneInfo p) -> FloatingPane""" | |
1113 | return _aui.FrameManager_CreateFloatingFrame(*args, **kwargs) | |
1114 | ||
10044bf1 RD |
1115 | def DrawHintRect(*args, **kwargs): |
1116 | """DrawHintRect(self, Window pane_window, Point pt, Point offset)""" | |
1117 | return _aui.FrameManager_DrawHintRect(*args, **kwargs) | |
1118 | ||
1119 | def ShowHint(*args, **kwargs): | |
1120 | """ShowHint(self, Rect rect)""" | |
1121 | return _aui.FrameManager_ShowHint(*args, **kwargs) | |
1122 | ||
1123 | def HideHint(*args, **kwargs): | |
1124 | """HideHint(self)""" | |
1125 | return _aui.FrameManager_HideHint(*args, **kwargs) | |
1126 | ||
81f5836b RD |
1127 | def OnRender(*args, **kwargs): |
1128 | """OnRender(self, FrameManagerEvent evt)""" | |
1129 | return _aui.FrameManager_OnRender(*args, **kwargs) | |
1130 | ||
1131 | def OnPaneButton(*args, **kwargs): | |
1132 | """OnPaneButton(self, FrameManagerEvent evt)""" | |
1133 | return _aui.FrameManager_OnPaneButton(*args, **kwargs) | |
1134 | ||
27e45892 RD |
1135 | def GetPane(self, item): |
1136 | """ | |
1137 | GetPane(self, window_or_info item) -> PaneInfo | |
1138 | ||
1139 | GetPane is used to search for a `PaneInfo` object either by | |
1140 | widget reference or by pane name, which acts as a unique id | |
1141 | for a window pane. The returned `PaneInfo` object may then be | |
1142 | modified to change a pane's look, state or position. After one | |
1143 | or more modifications to the `PaneInfo`, `FrameManager.Update` | |
1144 | should be called to realize the changes to the user interface. | |
1145 | ||
1146 | If the lookup failed (meaning the pane could not be found in | |
1147 | the manager) GetPane returns an empty `PaneInfo`, a condition | |
1148 | which can be checked by calling `PaneInfo.IsOk`. | |
1149 | """ | |
1150 | if isinstance(item, wx.Window): | |
1151 | return self._GetPaneByWidget(item) | |
1152 | else: | |
1153 | return self._GetPaneByName(item) | |
1154 | ||
1155 | def AddPane(self, window, info=None, caption=None): | |
1156 | """ | |
1157 | AddPane(self, window, info=None, caption=None) -> bool | |
1158 | ||
1159 | AddPane tells the frame manager to start managing a child | |
1160 | window. There are two versions of this function. The first | |
1161 | verison accepts a `PaneInfo` object for the ``info`` parameter | |
1162 | and allows the full spectrum of pane parameter | |
1163 | possibilities. (Say that 3 times fast!) | |
1164 | ||
1165 | The second version is used for simpler user interfaces which | |
1166 | do not require as much configuration. In this case the | |
1167 | ``info`` parameter specifies the direction property of the | |
1168 | pane info, and defaults to ``wx.LEFT``. The pane caption may | |
1169 | also be specified as an extra parameter in this form. | |
1170 | """ | |
1171 | if type(info) == PaneInfo: | |
1172 | return self._AddPane1(window, info) | |
1173 | else: | |
1174 | ||
1175 | if info is None: | |
1176 | info = wx.LEFT | |
1177 | if caption is None: | |
1178 | caption = "" | |
1179 | return self._AddPane2(window, info, caption) | |
1180 | ||
10044bf1 RD |
1181 | SetFrame = wx._deprecated(SetManagedWindow, |
1182 | "SetFrame is deprecated, use `SetManagedWindow` instead.") | |
1183 | GetFrame = wx._deprecated(GetManagedWindow, | |
1184 | "GetFrame is deprecated, use `GetManagedWindow` instead.") | |
1185 | ||
777e547f RD |
1186 | AllPanes = property(GetAllPanes,doc="See `GetAllPanes`") |
1187 | ArtProvider = property(GetArtProvider,SetArtProvider,doc="See `GetArtProvider` and `SetArtProvider`") | |
1188 | Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") | |
1189 | ManagedWindow = property(GetManagedWindow,SetManagedWindow,doc="See `GetManagedWindow` and `SetManagedWindow`") | |
27e45892 RD |
1190 | _aui.FrameManager_swigregister(FrameManager) |
1191 | ||
1192 | class FrameManagerEvent(_core.Event): | |
1193 | """Proxy of C++ FrameManagerEvent class""" | |
1194 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1195 | __repr__ = _swig_repr | |
1196 | def __init__(self, *args, **kwargs): | |
1197 | """__init__(self, EventType type=wxEVT_NULL) -> FrameManagerEvent""" | |
1198 | _aui.FrameManagerEvent_swiginit(self,_aui.new_FrameManagerEvent(*args, **kwargs)) | |
1199 | def Clone(*args, **kwargs): | |
1200 | """Clone(self) -> Event""" | |
1201 | return _aui.FrameManagerEvent_Clone(*args, **kwargs) | |
1202 | ||
1203 | def SetPane(*args, **kwargs): | |
1204 | """SetPane(self, PaneInfo p)""" | |
1205 | return _aui.FrameManagerEvent_SetPane(*args, **kwargs) | |
1206 | ||
1207 | def SetButton(*args, **kwargs): | |
1208 | """SetButton(self, int b)""" | |
1209 | return _aui.FrameManagerEvent_SetButton(*args, **kwargs) | |
1210 | ||
81f5836b RD |
1211 | def SetDC(*args, **kwargs): |
1212 | """SetDC(self, DC pdc)""" | |
1213 | return _aui.FrameManagerEvent_SetDC(*args, **kwargs) | |
1214 | ||
27e45892 RD |
1215 | def GetPane(*args, **kwargs): |
1216 | """GetPane(self) -> PaneInfo""" | |
1217 | return _aui.FrameManagerEvent_GetPane(*args, **kwargs) | |
1218 | ||
1219 | def GetButton(*args, **kwargs): | |
1220 | """GetButton(self) -> int""" | |
1221 | return _aui.FrameManagerEvent_GetButton(*args, **kwargs) | |
1222 | ||
81f5836b RD |
1223 | def GetDC(*args, **kwargs): |
1224 | """GetDC(self) -> DC""" | |
1225 | return _aui.FrameManagerEvent_GetDC(*args, **kwargs) | |
1226 | ||
27e45892 RD |
1227 | def Veto(*args, **kwargs): |
1228 | """Veto(self, bool veto=True)""" | |
1229 | return _aui.FrameManagerEvent_Veto(*args, **kwargs) | |
1230 | ||
1231 | def GetVeto(*args, **kwargs): | |
1232 | """GetVeto(self) -> bool""" | |
1233 | return _aui.FrameManagerEvent_GetVeto(*args, **kwargs) | |
1234 | ||
1235 | def SetCanVeto(*args, **kwargs): | |
1236 | """SetCanVeto(self, bool can_veto)""" | |
1237 | return _aui.FrameManagerEvent_SetCanVeto(*args, **kwargs) | |
1238 | ||
1239 | def CanVeto(*args, **kwargs): | |
1240 | """CanVeto(self) -> bool""" | |
1241 | return _aui.FrameManagerEvent_CanVeto(*args, **kwargs) | |
1242 | ||
1243 | pane = property(_aui.FrameManagerEvent_pane_get, _aui.FrameManagerEvent_pane_set) | |
1244 | button = property(_aui.FrameManagerEvent_button_get, _aui.FrameManagerEvent_button_set) | |
1245 | veto_flag = property(_aui.FrameManagerEvent_veto_flag_get, _aui.FrameManagerEvent_veto_flag_set) | |
1246 | canveto_flag = property(_aui.FrameManagerEvent_canveto_flag_get, _aui.FrameManagerEvent_canveto_flag_set) | |
81f5836b | 1247 | dc = property(_aui.FrameManagerEvent_dc_get, _aui.FrameManagerEvent_dc_set) |
777e547f RD |
1248 | Button = property(GetButton,SetButton,doc="See `GetButton` and `SetButton`") |
1249 | DC = property(GetDC,SetDC,doc="See `GetDC` and `SetDC`") | |
1250 | Pane = property(GetPane,SetPane,doc="See `GetPane` and `SetPane`") | |
27e45892 RD |
1251 | _aui.FrameManagerEvent_swigregister(FrameManagerEvent) |
1252 | ||
1253 | class DockInfo(object): | |
1254 | """Proxy of C++ DockInfo class""" | |
1255 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1256 | __repr__ = _swig_repr | |
1257 | def __init__(self, *args, **kwargs): | |
1258 | """__init__(self) -> DockInfo""" | |
1259 | _aui.DockInfo_swiginit(self,_aui.new_DockInfo(*args, **kwargs)) | |
1260 | def IsOk(*args, **kwargs): | |
1261 | """IsOk(self) -> bool""" | |
1262 | return _aui.DockInfo_IsOk(*args, **kwargs) | |
1263 | ||
1264 | def IsHorizontal(*args, **kwargs): | |
1265 | """IsHorizontal(self) -> bool""" | |
1266 | return _aui.DockInfo_IsHorizontal(*args, **kwargs) | |
1267 | ||
1268 | def IsVertical(*args, **kwargs): | |
1269 | """IsVertical(self) -> bool""" | |
1270 | return _aui.DockInfo_IsVertical(*args, **kwargs) | |
1271 | ||
1272 | panes = property(_aui.DockInfo_panes_get, _aui.DockInfo_panes_set) | |
1273 | rect = property(_aui.DockInfo_rect_get, _aui.DockInfo_rect_set) | |
1274 | dock_direction = property(_aui.DockInfo_dock_direction_get, _aui.DockInfo_dock_direction_set) | |
1275 | dock_layer = property(_aui.DockInfo_dock_layer_get, _aui.DockInfo_dock_layer_set) | |
1276 | dock_row = property(_aui.DockInfo_dock_row_get, _aui.DockInfo_dock_row_set) | |
1277 | size = property(_aui.DockInfo_size_get, _aui.DockInfo_size_set) | |
1278 | min_size = property(_aui.DockInfo_min_size_get, _aui.DockInfo_min_size_set) | |
1279 | resizable = property(_aui.DockInfo_resizable_get, _aui.DockInfo_resizable_set) | |
1280 | toolbar = property(_aui.DockInfo_toolbar_get, _aui.DockInfo_toolbar_set) | |
1281 | fixed = property(_aui.DockInfo_fixed_get, _aui.DockInfo_fixed_set) | |
72ef6efb RD |
1282 | __swig_destroy__ = _aui.delete_DockInfo |
1283 | __del__ = lambda self : None; | |
27e45892 RD |
1284 | _aui.DockInfo_swigregister(DockInfo) |
1285 | ||
1286 | class DockUIPart(object): | |
1287 | """Proxy of C++ DockUIPart class""" | |
1288 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1289 | def __init__(self): raise AttributeError, "No constructor defined" | |
1290 | __repr__ = _swig_repr | |
1291 | typeCaption = _aui.DockUIPart_typeCaption | |
1292 | typeGripper = _aui.DockUIPart_typeGripper | |
1293 | typeDock = _aui.DockUIPart_typeDock | |
1294 | typeDockSizer = _aui.DockUIPart_typeDockSizer | |
1295 | typePane = _aui.DockUIPart_typePane | |
1296 | typePaneSizer = _aui.DockUIPart_typePaneSizer | |
1297 | typeBackground = _aui.DockUIPart_typeBackground | |
1298 | typePaneBorder = _aui.DockUIPart_typePaneBorder | |
1299 | typePaneButton = _aui.DockUIPart_typePaneButton | |
1300 | type = property(_aui.DockUIPart_type_get, _aui.DockUIPart_type_set) | |
1301 | orientation = property(_aui.DockUIPart_orientation_get, _aui.DockUIPart_orientation_set) | |
1302 | dock = property(_aui.DockUIPart_dock_get, _aui.DockUIPart_dock_set) | |
1303 | pane = property(_aui.DockUIPart_pane_get, _aui.DockUIPart_pane_set) | |
1304 | button = property(_aui.DockUIPart_button_get, _aui.DockUIPart_button_set) | |
1305 | cont_sizer = property(_aui.DockUIPart_cont_sizer_get, _aui.DockUIPart_cont_sizer_set) | |
1306 | sizer_item = property(_aui.DockUIPart_sizer_item_get, _aui.DockUIPart_sizer_item_set) | |
1307 | rect = property(_aui.DockUIPart_rect_get, _aui.DockUIPart_rect_set) | |
72ef6efb RD |
1308 | __swig_destroy__ = _aui.delete_DockUIPart |
1309 | __del__ = lambda self : None; | |
27e45892 RD |
1310 | _aui.DockUIPart_swigregister(DockUIPart) |
1311 | ||
1312 | class PaneButton(object): | |
1313 | """Proxy of C++ PaneButton class""" | |
1314 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1315 | def __init__(self): raise AttributeError, "No constructor defined" | |
1316 | __repr__ = _swig_repr | |
1317 | button_id = property(_aui.PaneButton_button_id_get, _aui.PaneButton_button_id_set) | |
72ef6efb RD |
1318 | __swig_destroy__ = _aui.delete_PaneButton |
1319 | __del__ = lambda self : None; | |
27e45892 RD |
1320 | _aui.PaneButton_swigregister(PaneButton) |
1321 | ||
1322 | wxEVT_AUI_PANEBUTTON = _aui.wxEVT_AUI_PANEBUTTON | |
1323 | wxEVT_AUI_PANECLOSE = _aui.wxEVT_AUI_PANECLOSE | |
81f5836b | 1324 | wxEVT_AUI_RENDER = _aui.wxEVT_AUI_RENDER |
27e45892 RD |
1325 | EVT_AUI_PANEBUTTON = wx.PyEventBinder( wxEVT_AUI_PANEBUTTON ) |
1326 | EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANECLOSE ) | |
81f5836b | 1327 | EVT_AUI_RENDER = wx.PyEventBinder( wxEVT_AUI_RENDER ) |
27e45892 RD |
1328 | |
1329 | class DockArt(object): | |
1330 | """ | |
1331 | DockArt is an art provider class which does all of the drawing for | |
1332 | `FrameManager`. This allows the library caller to customize or replace the | |
1333 | dock art and drawing routines by deriving a new class from `PyDockArt`. The | |
1334 | active dock art class can be set via `FrameManager.SetArtProvider`. | |
1335 | ||
1336 | """ | |
1337 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1338 | def __init__(self): raise AttributeError, "No constructor defined" | |
1339 | __repr__ = _swig_repr | |
1340 | __swig_destroy__ = _aui.delete_DockArt | |
1341 | __del__ = lambda self : None; | |
1342 | def GetMetric(*args, **kwargs): | |
1343 | """GetMetric(self, int id) -> int""" | |
1344 | return _aui.DockArt_GetMetric(*args, **kwargs) | |
1345 | ||
1346 | def SetMetric(*args, **kwargs): | |
1347 | """SetMetric(self, int id, int new_val)""" | |
1348 | return _aui.DockArt_SetMetric(*args, **kwargs) | |
1349 | ||
1350 | def SetFont(*args, **kwargs): | |
1351 | """SetFont(self, int id, Font font)""" | |
1352 | return _aui.DockArt_SetFont(*args, **kwargs) | |
1353 | ||
1354 | def GetFont(*args, **kwargs): | |
1355 | """GetFont(self, int id) -> Font""" | |
1356 | return _aui.DockArt_GetFont(*args, **kwargs) | |
1357 | ||
1358 | def GetColour(*args, **kwargs): | |
1359 | """GetColour(self, int id) -> Colour""" | |
1360 | return _aui.DockArt_GetColour(*args, **kwargs) | |
1361 | ||
1362 | def SetColour(*args, **kwargs): | |
1363 | """SetColour(self, int id, wxColor colour)""" | |
1364 | return _aui.DockArt_SetColour(*args, **kwargs) | |
1365 | ||
1366 | def GetColor(*args, **kwargs): | |
1367 | """GetColor(self, int id) -> Colour""" | |
1368 | return _aui.DockArt_GetColor(*args, **kwargs) | |
1369 | ||
1370 | def SetColor(*args, **kwargs): | |
1371 | """SetColor(self, int id, Colour color)""" | |
1372 | return _aui.DockArt_SetColor(*args, **kwargs) | |
1373 | ||
1374 | def DrawSash(*args, **kwargs): | |
97ab0f6a | 1375 | """DrawSash(self, DC dc, Window window, int orientation, Rect rect)""" |
27e45892 RD |
1376 | return _aui.DockArt_DrawSash(*args, **kwargs) |
1377 | ||
1378 | def DrawBackground(*args, **kwargs): | |
97ab0f6a | 1379 | """DrawBackground(self, DC dc, Window window, int orientation, Rect rect)""" |
27e45892 RD |
1380 | return _aui.DockArt_DrawBackground(*args, **kwargs) |
1381 | ||
1382 | def DrawCaption(*args, **kwargs): | |
97ab0f6a | 1383 | """DrawCaption(self, DC dc, Window window, String text, Rect rect, PaneInfo pane)""" |
27e45892 RD |
1384 | return _aui.DockArt_DrawCaption(*args, **kwargs) |
1385 | ||
1386 | def DrawGripper(*args, **kwargs): | |
97ab0f6a | 1387 | """DrawGripper(self, DC dc, Window window, Rect rect, PaneInfo pane)""" |
27e45892 RD |
1388 | return _aui.DockArt_DrawGripper(*args, **kwargs) |
1389 | ||
1390 | def DrawBorder(*args, **kwargs): | |
97ab0f6a | 1391 | """DrawBorder(self, DC dc, Window window, Rect rect, PaneInfo pane)""" |
27e45892 RD |
1392 | return _aui.DockArt_DrawBorder(*args, **kwargs) |
1393 | ||
1394 | def DrawPaneButton(*args, **kwargs): | |
97ab0f6a RD |
1395 | """ |
1396 | DrawPaneButton(self, DC dc, Window window, int button, int button_state, | |
1397 | Rect rect, PaneInfo pane) | |
1398 | """ | |
27e45892 RD |
1399 | return _aui.DockArt_DrawPaneButton(*args, **kwargs) |
1400 | ||
1401 | _aui.DockArt_swigregister(DockArt) | |
1402 | ||
1403 | class DefaultDockArt(DockArt): | |
1404 | """ | |
1405 | DefaultDockArt is the type of art class constructed by default for the | |
1406 | `FrameManager`. | |
1407 | """ | |
1408 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1409 | __repr__ = _swig_repr | |
1410 | def __init__(self, *args, **kwargs): | |
1411 | """ | |
1412 | __init__(self) -> DefaultDockArt | |
1413 | ||
1414 | DefaultDockArt is the type of art class constructed by default for the | |
1415 | `FrameManager`. | |
1416 | """ | |
1417 | _aui.DefaultDockArt_swiginit(self,_aui.new_DefaultDockArt(*args, **kwargs)) | |
1418 | _aui.DefaultDockArt_swigregister(DefaultDockArt) | |
1419 | ||
1420 | class FloatingPane(_windows.MiniFrame): | |
1421 | """Proxy of C++ FloatingPane class""" | |
1422 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1423 | __repr__ = _swig_repr | |
1424 | def __init__(self, *args, **kwargs): | |
1425 | """ | |
1426 | __init__(self, Window parent, FrameManager owner_mgr, PaneInfo pane, | |
9b940138 | 1427 | int id=ID_ANY, long style=wxRESIZE_BORDER|wxSYSTEM_MENU|wxCAPTION|wxFRAME_NO_TASKBAR|wxFRAME_FLOAT_ON_PARENT|wxCLIP_CHILDREN) -> FloatingPane |
27e45892 RD |
1428 | """ |
1429 | _aui.FloatingPane_swiginit(self,_aui.new_FloatingPane(*args, **kwargs)) | |
1430 | __swig_destroy__ = _aui.delete_FloatingPane | |
1431 | __del__ = lambda self : None; | |
1432 | def SetPaneWindow(*args, **kwargs): | |
1433 | """SetPaneWindow(self, PaneInfo pane)""" | |
1434 | return _aui.FloatingPane_SetPaneWindow(*args, **kwargs) | |
1435 | ||
1436 | _aui.FloatingPane_swigregister(FloatingPane) | |
1437 | ||
5c8c7dd3 RD |
1438 | class TabArt(object): |
1439 | """Proxy of C++ TabArt class""" | |
1440 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1441 | def __init__(self): raise AttributeError, "No constructor defined" | |
1442 | __repr__ = _swig_repr | |
1443 | __swig_destroy__ = _aui.delete_TabArt | |
1444 | __del__ = lambda self : None; | |
1445 | def DrawBackground(*args, **kwargs): | |
1446 | """DrawBackground(self, DC dc, Rect rect)""" | |
1447 | return _aui.TabArt_DrawBackground(*args, **kwargs) | |
1448 | ||
1449 | def DrawTab(*args, **kwargs): | |
1450 | """ | |
1451 | DrawTab(self, DC dc, Rect in_rect, String caption, bool active, Rect out_rect, | |
1452 | int x_extent) | |
1453 | """ | |
1454 | return _aui.TabArt_DrawTab(*args, **kwargs) | |
1455 | ||
1456 | def SetNormalFont(*args, **kwargs): | |
1457 | """SetNormalFont(self, Font font)""" | |
1458 | return _aui.TabArt_SetNormalFont(*args, **kwargs) | |
1459 | ||
1460 | def SetSelectedFont(*args, **kwargs): | |
1461 | """SetSelectedFont(self, Font font)""" | |
1462 | return _aui.TabArt_SetSelectedFont(*args, **kwargs) | |
1463 | ||
1464 | def SetMeasuringFont(*args, **kwargs): | |
1465 | """SetMeasuringFont(self, Font font)""" | |
1466 | return _aui.TabArt_SetMeasuringFont(*args, **kwargs) | |
1467 | ||
1468 | _aui.TabArt_swigregister(TabArt) | |
1469 | ||
1470 | class DefaultTabArt(TabArt): | |
1471 | """Proxy of C++ DefaultTabArt class""" | |
1472 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1473 | __repr__ = _swig_repr | |
1474 | def __init__(self, *args, **kwargs): | |
1475 | """__init__(self) -> DefaultTabArt""" | |
1476 | _aui.DefaultTabArt_swiginit(self,_aui.new_DefaultTabArt(*args, **kwargs)) | |
1477 | __swig_destroy__ = _aui.delete_DefaultTabArt | |
1478 | __del__ = lambda self : None; | |
1479 | _aui.DefaultTabArt_swigregister(DefaultTabArt) | |
1480 | ||
10044bf1 RD |
1481 | class AuiNotebookEvent(_core.NotifyEvent): |
1482 | """Proxy of C++ AuiNotebookEvent class""" | |
1483 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1484 | __repr__ = _swig_repr | |
1485 | def __init__(self, *args, **kwargs): | |
1486 | """__init__(self, EventType command_type=wxEVT_NULL, int win_id=0) -> AuiNotebookEvent""" | |
1487 | _aui.AuiNotebookEvent_swiginit(self,_aui.new_AuiNotebookEvent(*args, **kwargs)) | |
1488 | def SetSelection(*args, **kwargs): | |
1489 | """SetSelection(self, int s)""" | |
1490 | return _aui.AuiNotebookEvent_SetSelection(*args, **kwargs) | |
1491 | ||
1492 | def SetOldSelection(*args, **kwargs): | |
1493 | """SetOldSelection(self, int s)""" | |
1494 | return _aui.AuiNotebookEvent_SetOldSelection(*args, **kwargs) | |
1495 | ||
1496 | def GetSelection(*args, **kwargs): | |
1497 | """ | |
1498 | GetSelection(self) -> int | |
1499 | ||
1500 | Returns item index for a listbox or choice selection event (not valid | |
1501 | for a deselection). | |
1502 | """ | |
1503 | return _aui.AuiNotebookEvent_GetSelection(*args, **kwargs) | |
1504 | ||
1505 | def GetOldSelection(*args, **kwargs): | |
1506 | """GetOldSelection(self) -> int""" | |
1507 | return _aui.AuiNotebookEvent_GetOldSelection(*args, **kwargs) | |
1508 | ||
1509 | old_selection = property(_aui.AuiNotebookEvent_old_selection_get, _aui.AuiNotebookEvent_old_selection_set) | |
1510 | selection = property(_aui.AuiNotebookEvent_selection_get, _aui.AuiNotebookEvent_selection_set) | |
777e547f RD |
1511 | OldSelection = property(GetOldSelection,SetOldSelection,doc="See `GetOldSelection` and `SetOldSelection`") |
1512 | Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") | |
10044bf1 RD |
1513 | _aui.AuiNotebookEvent_swigregister(AuiNotebookEvent) |
1514 | ||
1515 | class AuiNotebookPage(object): | |
1516 | """Proxy of C++ AuiNotebookPage class""" | |
1517 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1518 | def __init__(self): raise AttributeError, "No constructor defined" | |
1519 | __repr__ = _swig_repr | |
1520 | window = property(_aui.AuiNotebookPage_window_get, _aui.AuiNotebookPage_window_set) | |
1521 | caption = property(_aui.AuiNotebookPage_caption_get, _aui.AuiNotebookPage_caption_set) | |
1522 | bitmap = property(_aui.AuiNotebookPage_bitmap_get, _aui.AuiNotebookPage_bitmap_set) | |
1523 | rect = property(_aui.AuiNotebookPage_rect_get, _aui.AuiNotebookPage_rect_set) | |
1524 | active = property(_aui.AuiNotebookPage_active_get, _aui.AuiNotebookPage_active_set) | |
1525 | _aui.AuiNotebookPage_swigregister(AuiNotebookPage) | |
1526 | ||
1527 | class AuiTabContainerButton(object): | |
1528 | """Proxy of C++ AuiTabContainerButton class""" | |
1529 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1530 | def __init__(self): raise AttributeError, "No constructor defined" | |
1531 | __repr__ = _swig_repr | |
1532 | id = property(_aui.AuiTabContainerButton_id_get, _aui.AuiTabContainerButton_id_set) | |
1533 | cur_state = property(_aui.AuiTabContainerButton_cur_state_get, _aui.AuiTabContainerButton_cur_state_set) | |
5c8c7dd3 | 1534 | location = property(_aui.AuiTabContainerButton_location_get, _aui.AuiTabContainerButton_location_set) |
10044bf1 RD |
1535 | bitmap = property(_aui.AuiTabContainerButton_bitmap_get, _aui.AuiTabContainerButton_bitmap_set) |
1536 | rect = property(_aui.AuiTabContainerButton_rect_get, _aui.AuiTabContainerButton_rect_set) | |
1537 | _aui.AuiTabContainerButton_swigregister(AuiTabContainerButton) | |
1538 | ||
1539 | class AuiTabContainer(object): | |
1540 | """Proxy of C++ AuiTabContainer class""" | |
1541 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1542 | __repr__ = _swig_repr | |
1543 | def __init__(self, *args, **kwargs): | |
1544 | """__init__(self) -> AuiTabContainer""" | |
1545 | _aui.AuiTabContainer_swiginit(self,_aui.new_AuiTabContainer(*args, **kwargs)) | |
1546 | __swig_destroy__ = _aui.delete_AuiTabContainer | |
1547 | __del__ = lambda self : None; | |
5c8c7dd3 RD |
1548 | def SetArtProvider(*args, **kwargs): |
1549 | """SetArtProvider(self, TabArt art)""" | |
1550 | return _aui.AuiTabContainer_SetArtProvider(*args, **kwargs) | |
1551 | ||
1552 | def GetArtProvider(*args, **kwargs): | |
1553 | """GetArtProvider(self) -> TabArt""" | |
1554 | return _aui.AuiTabContainer_GetArtProvider(*args, **kwargs) | |
1555 | ||
10044bf1 RD |
1556 | def AddPage(*args, **kwargs): |
1557 | """AddPage(self, Window page, AuiNotebookPage info) -> bool""" | |
1558 | return _aui.AuiTabContainer_AddPage(*args, **kwargs) | |
1559 | ||
1560 | def InsertPage(*args, **kwargs): | |
1561 | """InsertPage(self, Window page, AuiNotebookPage info, size_t idx) -> bool""" | |
1562 | return _aui.AuiTabContainer_InsertPage(*args, **kwargs) | |
1563 | ||
1564 | def RemovePage(*args, **kwargs): | |
1565 | """RemovePage(self, Window page) -> bool""" | |
1566 | return _aui.AuiTabContainer_RemovePage(*args, **kwargs) | |
1567 | ||
1568 | def SetActivePage(*args): | |
1569 | """ | |
1570 | SetActivePage(self, Window page) -> bool | |
1571 | SetActivePage(self, size_t page) -> bool | |
1572 | """ | |
1573 | return _aui.AuiTabContainer_SetActivePage(*args) | |
1574 | ||
1575 | def SetNoneActive(*args, **kwargs): | |
1576 | """SetNoneActive(self)""" | |
1577 | return _aui.AuiTabContainer_SetNoneActive(*args, **kwargs) | |
1578 | ||
1579 | def GetActivePage(*args, **kwargs): | |
1580 | """GetActivePage(self) -> int""" | |
1581 | return _aui.AuiTabContainer_GetActivePage(*args, **kwargs) | |
1582 | ||
1583 | def TabHitTest(*args, **kwargs): | |
1584 | """TabHitTest(self, int x, int y, Window hit) -> bool""" | |
1585 | return _aui.AuiTabContainer_TabHitTest(*args, **kwargs) | |
1586 | ||
1587 | def ButtonHitTest(*args, **kwargs): | |
1588 | """ButtonHitTest(self, int x, int y, AuiTabContainerButton hit) -> bool""" | |
1589 | return _aui.AuiTabContainer_ButtonHitTest(*args, **kwargs) | |
1590 | ||
1591 | def GetWindowFromIdx(*args, **kwargs): | |
1592 | """GetWindowFromIdx(self, size_t idx) -> Window""" | |
1593 | return _aui.AuiTabContainer_GetWindowFromIdx(*args, **kwargs) | |
1594 | ||
1595 | def GetIdxFromWindow(*args, **kwargs): | |
1596 | """GetIdxFromWindow(self, Window page) -> int""" | |
1597 | return _aui.AuiTabContainer_GetIdxFromWindow(*args, **kwargs) | |
1598 | ||
1599 | def GetPageCount(*args, **kwargs): | |
1600 | """GetPageCount(self) -> size_t""" | |
1601 | return _aui.AuiTabContainer_GetPageCount(*args, **kwargs) | |
1602 | ||
1603 | def GetPage(*args, **kwargs): | |
1604 | """GetPage(self, size_t idx) -> AuiNotebookPage""" | |
1605 | return _aui.AuiTabContainer_GetPage(*args, **kwargs) | |
1606 | ||
1607 | def GetPages(*args, **kwargs): | |
1608 | """GetPages(self) -> wxAuiNotebookPageArray""" | |
1609 | return _aui.AuiTabContainer_GetPages(*args, **kwargs) | |
1610 | ||
1611 | def SetNormalFont(*args, **kwargs): | |
1612 | """SetNormalFont(self, Font normal_font)""" | |
1613 | return _aui.AuiTabContainer_SetNormalFont(*args, **kwargs) | |
1614 | ||
1615 | def SetSelectedFont(*args, **kwargs): | |
1616 | """SetSelectedFont(self, Font selected_font)""" | |
1617 | return _aui.AuiTabContainer_SetSelectedFont(*args, **kwargs) | |
1618 | ||
1619 | def SetMeasuringFont(*args, **kwargs): | |
1620 | """SetMeasuringFont(self, Font measuring_font)""" | |
1621 | return _aui.AuiTabContainer_SetMeasuringFont(*args, **kwargs) | |
1622 | ||
1623 | def DoShowHide(*args, **kwargs): | |
1624 | """DoShowHide(self)""" | |
1625 | return _aui.AuiTabContainer_DoShowHide(*args, **kwargs) | |
1626 | ||
1627 | def SetRect(*args, **kwargs): | |
1628 | """SetRect(self, Rect rect)""" | |
1629 | return _aui.AuiTabContainer_SetRect(*args, **kwargs) | |
1630 | ||
1631 | def AddButton(*args, **kwargs): | |
5c8c7dd3 | 1632 | """AddButton(self, int id, int location, Bitmap bmp)""" |
10044bf1 RD |
1633 | return _aui.AuiTabContainer_AddButton(*args, **kwargs) |
1634 | ||
777e547f RD |
1635 | ActivePage = property(GetActivePage,SetActivePage,doc="See `GetActivePage` and `SetActivePage`") |
1636 | PageCount = property(GetPageCount,doc="See `GetPageCount`") | |
1637 | Pages = property(GetPages,doc="See `GetPages`") | |
10044bf1 RD |
1638 | _aui.AuiTabContainer_swigregister(AuiTabContainer) |
1639 | ||
1640 | class AuiTabCtrl(_core.Control,AuiTabContainer): | |
1641 | """Proxy of C++ AuiTabCtrl class""" | |
1642 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1643 | __repr__ = _swig_repr | |
1644 | def __init__(self, *args, **kwargs): | |
1645 | """ | |
1646 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1647 | Size size=DefaultSize, long style=0) -> AuiTabCtrl | |
1648 | """ | |
1649 | _aui.AuiTabCtrl_swiginit(self,_aui.new_AuiTabCtrl(*args, **kwargs)) | |
1650 | self._setOORInfo(self) | |
1651 | ||
1652 | _aui.AuiTabCtrl_swigregister(AuiTabCtrl) | |
1653 | ||
1654 | class AuiMultiNotebook(_core.Control): | |
1655 | """Proxy of C++ AuiMultiNotebook class""" | |
1656 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1657 | __repr__ = _swig_repr | |
1658 | def __init__(self, *args, **kwargs): | |
1659 | """ | |
1660 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1661 | Size size=DefaultSize, long style=0) -> AuiMultiNotebook | |
1662 | """ | |
1663 | _aui.AuiMultiNotebook_swiginit(self,_aui.new_AuiMultiNotebook(*args, **kwargs)) | |
1664 | self._setOORInfo(self) | |
1665 | ||
1666 | def Create(*args, **kwargs): | |
1667 | """ | |
1668 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1669 | Size size=DefaultSize, long style=0) -> bool | |
1670 | ||
1671 | Do the 2nd phase and create the GUI control. | |
1672 | """ | |
1673 | return _aui.AuiMultiNotebook_Create(*args, **kwargs) | |
1674 | ||
1675 | def AddPage(*args, **kwargs): | |
1676 | """AddPage(self, Window page, String caption, bool select=False, Bitmap bitmap=wxNullBitmap) -> bool""" | |
1677 | return _aui.AuiMultiNotebook_AddPage(*args, **kwargs) | |
1678 | ||
1679 | def InsertPage(*args, **kwargs): | |
1680 | """ | |
1681 | InsertPage(self, size_t page_idx, Window page, String caption, bool select=False, | |
1682 | Bitmap bitmap=wxNullBitmap) -> bool | |
1683 | """ | |
1684 | return _aui.AuiMultiNotebook_InsertPage(*args, **kwargs) | |
1685 | ||
1686 | def DeletePage(*args, **kwargs): | |
1687 | """DeletePage(self, size_t page) -> bool""" | |
1688 | return _aui.AuiMultiNotebook_DeletePage(*args, **kwargs) | |
1689 | ||
1690 | def RemovePage(*args, **kwargs): | |
1691 | """RemovePage(self, size_t page) -> bool""" | |
1692 | return _aui.AuiMultiNotebook_RemovePage(*args, **kwargs) | |
1693 | ||
1694 | def SetPageText(*args, **kwargs): | |
1695 | """SetPageText(self, size_t page, String text) -> bool""" | |
1696 | return _aui.AuiMultiNotebook_SetPageText(*args, **kwargs) | |
1697 | ||
1698 | def SetSelection(*args, **kwargs): | |
1699 | """SetSelection(self, size_t new_page) -> size_t""" | |
1700 | return _aui.AuiMultiNotebook_SetSelection(*args, **kwargs) | |
1701 | ||
1702 | def GetSelection(*args, **kwargs): | |
1703 | """GetSelection(self) -> int""" | |
1704 | return _aui.AuiMultiNotebook_GetSelection(*args, **kwargs) | |
1705 | ||
1706 | def GetPageCount(*args, **kwargs): | |
1707 | """GetPageCount(self) -> size_t""" | |
1708 | return _aui.AuiMultiNotebook_GetPageCount(*args, **kwargs) | |
1709 | ||
1710 | def GetPage(*args, **kwargs): | |
1711 | """GetPage(self, size_t page_idx) -> Window""" | |
1712 | return _aui.AuiMultiNotebook_GetPage(*args, **kwargs) | |
1713 | ||
5c8c7dd3 RD |
1714 | def SetArtProvider(*args, **kwargs): |
1715 | """SetArtProvider(self, TabArt art)""" | |
1716 | return _aui.AuiMultiNotebook_SetArtProvider(*args, **kwargs) | |
1717 | ||
1718 | def GetArtProvider(*args, **kwargs): | |
1719 | """GetArtProvider(self) -> TabArt""" | |
1720 | return _aui.AuiMultiNotebook_GetArtProvider(*args, **kwargs) | |
1721 | ||
777e547f RD |
1722 | PageCount = property(GetPageCount,doc="See `GetPageCount`") |
1723 | Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") | |
10044bf1 RD |
1724 | _aui.AuiMultiNotebook_swigregister(AuiMultiNotebook) |
1725 | ||
1726 | def PreAuiMultiNotebook(*args, **kwargs): | |
1727 | """PreAuiMultiNotebook() -> AuiMultiNotebook""" | |
1728 | val = _aui.new_PreAuiMultiNotebook(*args, **kwargs) | |
1729 | self._setOORInfo(self) | |
1730 | return val | |
1731 | ||
1732 | wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED = _aui.wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED | |
1733 | wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING = _aui.wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING | |
1734 | wxEVT_COMMAND_AUINOTEBOOK_BUTTON = _aui.wxEVT_COMMAND_AUINOTEBOOK_BUTTON | |
1735 | wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG = _aui.wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG | |
1736 | wxEVT_COMMAND_AUINOTEBOOK_END_DRAG = _aui.wxEVT_COMMAND_AUINOTEBOOK_END_DRAG | |
1737 | wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION = _aui.wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION | |
1738 | EVT_AUINOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, 1 ) | |
1739 | EVT_AUINOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, 1 ) | |
1740 | EVT_AUINOTEBOOK_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BUTTON, 1 ) | |
1741 | EVT_AUINOTEBOOK_BEGIN_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG, 1 ) | |
1742 | EVT_AUINOTEBOOK_END_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_END_DRAG, 1 ) | |
0f83f5da | 1743 | EVT_AUINOTEBOOK_DRAG_MOTION = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION, 1 ) |
10044bf1 | 1744 | |
27e45892 RD |
1745 | class PyDockArt(DefaultDockArt): |
1746 | """ | |
1747 | This version of the `DockArt` class has been instrumented to be | |
1748 | subclassable in Python and to reflect all calls to the C++ base class | |
1749 | methods to the Python methods implemented in the derived class. | |
1750 | """ | |
1751 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1752 | def __init__(self): raise AttributeError, "No constructor defined" | |
1753 | __repr__ = _swig_repr | |
1754 | _aui.PyDockArt_swigregister(PyDockArt) | |
1755 | ||
5c8c7dd3 RD |
1756 | class PyTabArt(DefaultTabArt): |
1757 | """ | |
1758 | This version of the `TabArt` class has been instrumented to be | |
1759 | subclassable in Python and to reflect all calls to the C++ base class | |
1760 | methods to the Python methods implemented in the derived class. | |
1761 | """ | |
1762 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1763 | def __init__(self): raise AttributeError, "No constructor defined" | |
1764 | __repr__ = _swig_repr | |
1765 | _aui.PyTabArt_swigregister(PyTabArt) | |
1766 | ||
27e45892 RD |
1767 | |
1768 |