]>
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 | |
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 | |
8f514ab4 RD |
197 | AUI_BUTTON_STATE_DISABLED = _aui.AUI_BUTTON_STATE_DISABLED |
198 | AUI_BUTTON_STATE_HIDDEN = _aui.AUI_BUTTON_STATE_HIDDEN | |
199 | AUI_BUTTON_CLOSE = _aui.AUI_BUTTON_CLOSE | |
5eb8189c | 200 | AUI_BUTTON_MAXIMIZE_RESTORE = _aui.AUI_BUTTON_MAXIMIZE_RESTORE |
8f514ab4 RD |
201 | AUI_BUTTON_MINIMIZE = _aui.AUI_BUTTON_MINIMIZE |
202 | AUI_BUTTON_PIN = _aui.AUI_BUTTON_PIN | |
203 | AUI_BUTTON_OPTIONS = _aui.AUI_BUTTON_OPTIONS | |
204 | AUI_BUTTON_LEFT = _aui.AUI_BUTTON_LEFT | |
205 | AUI_BUTTON_RIGHT = _aui.AUI_BUTTON_RIGHT | |
206 | AUI_BUTTON_UP = _aui.AUI_BUTTON_UP | |
207 | AUI_BUTTON_DOWN = _aui.AUI_BUTTON_DOWN | |
208 | AUI_BUTTON_CUSTOM1 = _aui.AUI_BUTTON_CUSTOM1 | |
209 | AUI_BUTTON_CUSTOM2 = _aui.AUI_BUTTON_CUSTOM2 | |
210 | AUI_BUTTON_CUSTOM3 = _aui.AUI_BUTTON_CUSTOM3 | |
27e45892 RD |
211 | AUI_INSERT_PANE = _aui.AUI_INSERT_PANE |
212 | AUI_INSERT_ROW = _aui.AUI_INSERT_ROW | |
213 | AUI_INSERT_DOCK = _aui.AUI_INSERT_DOCK | |
5eb8189c RD |
214 | class AuiPaneInfo(object): |
215 | """Proxy of C++ AuiPaneInfo class""" | |
27e45892 RD |
216 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
217 | __repr__ = _swig_repr | |
218 | def __init__(self, *args, **kwargs): | |
5eb8189c RD |
219 | """__init__(self) -> AuiPaneInfo""" |
220 | _aui.AuiPaneInfo_swiginit(self,_aui.new_AuiPaneInfo(*args, **kwargs)) | |
221 | __swig_destroy__ = _aui.delete_AuiPaneInfo | |
27e45892 | 222 | __del__ = lambda self : None; |
10044bf1 | 223 | def SafeSet(*args, **kwargs): |
5eb8189c RD |
224 | """SafeSet(self, AuiPaneInfo source)""" |
225 | return _aui.AuiPaneInfo_SafeSet(*args, **kwargs) | |
10044bf1 | 226 | |
27e45892 | 227 | def IsOk(*args, **kwargs): |
5eb8189c RD |
228 | """IsOk(self) -> bool""" |
229 | return _aui.AuiPaneInfo_IsOk(*args, **kwargs) | |
27e45892 RD |
230 | |
231 | def IsFixed(*args, **kwargs): | |
5eb8189c RD |
232 | """IsFixed(self) -> bool""" |
233 | return _aui.AuiPaneInfo_IsFixed(*args, **kwargs) | |
27e45892 RD |
234 | |
235 | def IsResizable(*args, **kwargs): | |
5eb8189c RD |
236 | """IsResizable(self) -> bool""" |
237 | return _aui.AuiPaneInfo_IsResizable(*args, **kwargs) | |
27e45892 RD |
238 | |
239 | def IsShown(*args, **kwargs): | |
5eb8189c RD |
240 | """IsShown(self) -> bool""" |
241 | return _aui.AuiPaneInfo_IsShown(*args, **kwargs) | |
27e45892 RD |
242 | |
243 | def IsFloating(*args, **kwargs): | |
5eb8189c RD |
244 | """IsFloating(self) -> bool""" |
245 | return _aui.AuiPaneInfo_IsFloating(*args, **kwargs) | |
27e45892 RD |
246 | |
247 | def IsDocked(*args, **kwargs): | |
5eb8189c RD |
248 | """IsDocked(self) -> bool""" |
249 | return _aui.AuiPaneInfo_IsDocked(*args, **kwargs) | |
27e45892 RD |
250 | |
251 | def IsToolbar(*args, **kwargs): | |
5eb8189c RD |
252 | """IsToolbar(self) -> bool""" |
253 | return _aui.AuiPaneInfo_IsToolbar(*args, **kwargs) | |
27e45892 RD |
254 | |
255 | def IsTopDockable(*args, **kwargs): | |
5eb8189c RD |
256 | """IsTopDockable(self) -> bool""" |
257 | return _aui.AuiPaneInfo_IsTopDockable(*args, **kwargs) | |
27e45892 RD |
258 | |
259 | def IsBottomDockable(*args, **kwargs): | |
5eb8189c RD |
260 | """IsBottomDockable(self) -> bool""" |
261 | return _aui.AuiPaneInfo_IsBottomDockable(*args, **kwargs) | |
27e45892 RD |
262 | |
263 | def IsLeftDockable(*args, **kwargs): | |
5eb8189c RD |
264 | """IsLeftDockable(self) -> bool""" |
265 | return _aui.AuiPaneInfo_IsLeftDockable(*args, **kwargs) | |
27e45892 RD |
266 | |
267 | def IsRightDockable(*args, **kwargs): | |
5eb8189c RD |
268 | """IsRightDockable(self) -> bool""" |
269 | return _aui.AuiPaneInfo_IsRightDockable(*args, **kwargs) | |
27e45892 RD |
270 | |
271 | def IsFloatable(*args, **kwargs): | |
5eb8189c RD |
272 | """IsFloatable(self) -> bool""" |
273 | return _aui.AuiPaneInfo_IsFloatable(*args, **kwargs) | |
27e45892 RD |
274 | |
275 | def IsMovable(*args, **kwargs): | |
5eb8189c RD |
276 | """IsMovable(self) -> bool""" |
277 | return _aui.AuiPaneInfo_IsMovable(*args, **kwargs) | |
27e45892 | 278 | |
9b940138 RD |
279 | def IsDestroyOnClose(*args, **kwargs): |
280 | """IsDestroyOnClose(self) -> bool""" | |
5eb8189c | 281 | return _aui.AuiPaneInfo_IsDestroyOnClose(*args, **kwargs) |
9b940138 | 282 | |
5eb8189c RD |
283 | def IsMaximized(*args, **kwargs): |
284 | """IsMaximized(self) -> bool""" | |
285 | return _aui.AuiPaneInfo_IsMaximized(*args, **kwargs) | |
27e45892 | 286 | |
5eb8189c RD |
287 | def HasCaption(*args, **kwargs): |
288 | """HasCaption(self) -> bool""" | |
289 | return _aui.AuiPaneInfo_HasCaption(*args, **kwargs) | |
27e45892 RD |
290 | |
291 | def HasGripper(*args, **kwargs): | |
5eb8189c RD |
292 | """HasGripper(self) -> bool""" |
293 | return _aui.AuiPaneInfo_HasGripper(*args, **kwargs) | |
27e45892 RD |
294 | |
295 | def HasBorder(*args, **kwargs): | |
5eb8189c RD |
296 | """HasBorder(self) -> bool""" |
297 | return _aui.AuiPaneInfo_HasBorder(*args, **kwargs) | |
27e45892 RD |
298 | |
299 | def HasCloseButton(*args, **kwargs): | |
5eb8189c RD |
300 | """HasCloseButton(self) -> bool""" |
301 | return _aui.AuiPaneInfo_HasCloseButton(*args, **kwargs) | |
27e45892 RD |
302 | |
303 | def HasMaximizeButton(*args, **kwargs): | |
5eb8189c RD |
304 | """HasMaximizeButton(self) -> bool""" |
305 | return _aui.AuiPaneInfo_HasMaximizeButton(*args, **kwargs) | |
27e45892 RD |
306 | |
307 | def HasMinimizeButton(*args, **kwargs): | |
5eb8189c RD |
308 | """HasMinimizeButton(self) -> bool""" |
309 | return _aui.AuiPaneInfo_HasMinimizeButton(*args, **kwargs) | |
27e45892 RD |
310 | |
311 | def HasPinButton(*args, **kwargs): | |
5eb8189c RD |
312 | """HasPinButton(self) -> bool""" |
313 | return _aui.AuiPaneInfo_HasPinButton(*args, **kwargs) | |
27e45892 RD |
314 | |
315 | def HasGripperTop(*args, **kwargs): | |
316 | """HasGripperTop(self) -> bool""" | |
5eb8189c | 317 | return _aui.AuiPaneInfo_HasGripperTop(*args, **kwargs) |
27e45892 RD |
318 | |
319 | def Window(*args, **kwargs): | |
5eb8189c RD |
320 | """Window(self, Window w) -> AuiPaneInfo""" |
321 | return _aui.AuiPaneInfo_Window(*args, **kwargs) | |
27e45892 RD |
322 | |
323 | def Name(*args, **kwargs): | |
5eb8189c RD |
324 | """Name(self, String n) -> AuiPaneInfo""" |
325 | return _aui.AuiPaneInfo_Name(*args, **kwargs) | |
27e45892 RD |
326 | |
327 | def Caption(*args, **kwargs): | |
5eb8189c RD |
328 | """Caption(self, String c) -> AuiPaneInfo""" |
329 | return _aui.AuiPaneInfo_Caption(*args, **kwargs) | |
27e45892 RD |
330 | |
331 | def Left(*args, **kwargs): | |
5eb8189c RD |
332 | """Left(self) -> AuiPaneInfo""" |
333 | return _aui.AuiPaneInfo_Left(*args, **kwargs) | |
27e45892 RD |
334 | |
335 | def Right(*args, **kwargs): | |
5eb8189c RD |
336 | """Right(self) -> AuiPaneInfo""" |
337 | return _aui.AuiPaneInfo_Right(*args, **kwargs) | |
27e45892 RD |
338 | |
339 | def Top(*args, **kwargs): | |
5eb8189c RD |
340 | """Top(self) -> AuiPaneInfo""" |
341 | return _aui.AuiPaneInfo_Top(*args, **kwargs) | |
27e45892 RD |
342 | |
343 | def Bottom(*args, **kwargs): | |
5eb8189c RD |
344 | """Bottom(self) -> AuiPaneInfo""" |
345 | return _aui.AuiPaneInfo_Bottom(*args, **kwargs) | |
27e45892 RD |
346 | |
347 | def Center(*args, **kwargs): | |
5eb8189c RD |
348 | """Center(self) -> AuiPaneInfo""" |
349 | return _aui.AuiPaneInfo_Center(*args, **kwargs) | |
27e45892 RD |
350 | |
351 | def Centre(*args, **kwargs): | |
5eb8189c RD |
352 | """Centre(self) -> AuiPaneInfo""" |
353 | return _aui.AuiPaneInfo_Centre(*args, **kwargs) | |
27e45892 RD |
354 | |
355 | def Direction(*args, **kwargs): | |
5eb8189c RD |
356 | """Direction(self, int direction) -> AuiPaneInfo""" |
357 | return _aui.AuiPaneInfo_Direction(*args, **kwargs) | |
27e45892 RD |
358 | |
359 | def Layer(*args, **kwargs): | |
5eb8189c RD |
360 | """Layer(self, int layer) -> AuiPaneInfo""" |
361 | return _aui.AuiPaneInfo_Layer(*args, **kwargs) | |
27e45892 RD |
362 | |
363 | def Row(*args, **kwargs): | |
5eb8189c RD |
364 | """Row(self, int row) -> AuiPaneInfo""" |
365 | return _aui.AuiPaneInfo_Row(*args, **kwargs) | |
27e45892 RD |
366 | |
367 | def Position(*args, **kwargs): | |
5eb8189c RD |
368 | """Position(self, int pos) -> AuiPaneInfo""" |
369 | return _aui.AuiPaneInfo_Position(*args, **kwargs) | |
27e45892 RD |
370 | |
371 | def BestSize(*args, **kwargs): | |
5eb8189c RD |
372 | """BestSize(self, Size size) -> AuiPaneInfo""" |
373 | return _aui.AuiPaneInfo_BestSize(*args, **kwargs) | |
27e45892 RD |
374 | |
375 | def MinSize(*args, **kwargs): | |
5eb8189c RD |
376 | """MinSize(self, Size size) -> AuiPaneInfo""" |
377 | return _aui.AuiPaneInfo_MinSize(*args, **kwargs) | |
27e45892 RD |
378 | |
379 | def MaxSize(*args, **kwargs): | |
5eb8189c RD |
380 | """MaxSize(self, Size size) -> AuiPaneInfo""" |
381 | return _aui.AuiPaneInfo_MaxSize(*args, **kwargs) | |
27e45892 RD |
382 | |
383 | def FloatingPosition(*args, **kwargs): | |
5eb8189c RD |
384 | """FloatingPosition(self, Point pos) -> AuiPaneInfo""" |
385 | return _aui.AuiPaneInfo_FloatingPosition(*args, **kwargs) | |
27e45892 RD |
386 | |
387 | def FloatingSize(*args, **kwargs): | |
5eb8189c RD |
388 | """FloatingSize(self, Size size) -> AuiPaneInfo""" |
389 | return _aui.AuiPaneInfo_FloatingSize(*args, **kwargs) | |
27e45892 RD |
390 | |
391 | def Fixed(*args, **kwargs): | |
5eb8189c RD |
392 | """Fixed(self) -> AuiPaneInfo""" |
393 | return _aui.AuiPaneInfo_Fixed(*args, **kwargs) | |
27e45892 RD |
394 | |
395 | def Resizable(*args, **kwargs): | |
5eb8189c RD |
396 | """Resizable(self, bool resizable=True) -> AuiPaneInfo""" |
397 | return _aui.AuiPaneInfo_Resizable(*args, **kwargs) | |
27e45892 RD |
398 | |
399 | def Dock(*args, **kwargs): | |
5eb8189c RD |
400 | """Dock(self) -> AuiPaneInfo""" |
401 | return _aui.AuiPaneInfo_Dock(*args, **kwargs) | |
27e45892 RD |
402 | |
403 | def Float(*args, **kwargs): | |
5eb8189c RD |
404 | """Float(self) -> AuiPaneInfo""" |
405 | return _aui.AuiPaneInfo_Float(*args, **kwargs) | |
27e45892 RD |
406 | |
407 | def Hide(*args, **kwargs): | |
5eb8189c RD |
408 | """Hide(self) -> AuiPaneInfo""" |
409 | return _aui.AuiPaneInfo_Hide(*args, **kwargs) | |
27e45892 RD |
410 | |
411 | def Show(*args, **kwargs): | |
5eb8189c RD |
412 | """Show(self, bool show=True) -> AuiPaneInfo""" |
413 | return _aui.AuiPaneInfo_Show(*args, **kwargs) | |
27e45892 RD |
414 | |
415 | def CaptionVisible(*args, **kwargs): | |
5eb8189c RD |
416 | """CaptionVisible(self, bool visible=True) -> AuiPaneInfo""" |
417 | return _aui.AuiPaneInfo_CaptionVisible(*args, **kwargs) | |
27e45892 | 418 | |
5eb8189c RD |
419 | def Maximize(*args, **kwargs): |
420 | """Maximize(self) -> AuiPaneInfo""" | |
421 | return _aui.AuiPaneInfo_Maximize(*args, **kwargs) | |
27e45892 | 422 | |
5eb8189c RD |
423 | def Restore(*args, **kwargs): |
424 | """Restore(self) -> AuiPaneInfo""" | |
425 | return _aui.AuiPaneInfo_Restore(*args, **kwargs) | |
27e45892 RD |
426 | |
427 | def PaneBorder(*args, **kwargs): | |
5eb8189c RD |
428 | """PaneBorder(self, bool visible=True) -> AuiPaneInfo""" |
429 | return _aui.AuiPaneInfo_PaneBorder(*args, **kwargs) | |
27e45892 RD |
430 | |
431 | def Gripper(*args, **kwargs): | |
5eb8189c RD |
432 | """Gripper(self, bool visible=True) -> AuiPaneInfo""" |
433 | return _aui.AuiPaneInfo_Gripper(*args, **kwargs) | |
27e45892 RD |
434 | |
435 | def GripperTop(*args, **kwargs): | |
5eb8189c RD |
436 | """GripperTop(self, bool attop=True) -> AuiPaneInfo""" |
437 | return _aui.AuiPaneInfo_GripperTop(*args, **kwargs) | |
27e45892 RD |
438 | |
439 | def CloseButton(*args, **kwargs): | |
5eb8189c RD |
440 | """CloseButton(self, bool visible=True) -> AuiPaneInfo""" |
441 | return _aui.AuiPaneInfo_CloseButton(*args, **kwargs) | |
27e45892 RD |
442 | |
443 | def MaximizeButton(*args, **kwargs): | |
5eb8189c RD |
444 | """MaximizeButton(self, bool visible=True) -> AuiPaneInfo""" |
445 | return _aui.AuiPaneInfo_MaximizeButton(*args, **kwargs) | |
27e45892 RD |
446 | |
447 | def MinimizeButton(*args, **kwargs): | |
5eb8189c RD |
448 | """MinimizeButton(self, bool visible=True) -> AuiPaneInfo""" |
449 | return _aui.AuiPaneInfo_MinimizeButton(*args, **kwargs) | |
27e45892 RD |
450 | |
451 | def PinButton(*args, **kwargs): | |
5eb8189c RD |
452 | """PinButton(self, bool visible=True) -> AuiPaneInfo""" |
453 | return _aui.AuiPaneInfo_PinButton(*args, **kwargs) | |
27e45892 RD |
454 | |
455 | def DestroyOnClose(*args, **kwargs): | |
5eb8189c RD |
456 | """DestroyOnClose(self, bool b=True) -> AuiPaneInfo""" |
457 | return _aui.AuiPaneInfo_DestroyOnClose(*args, **kwargs) | |
27e45892 RD |
458 | |
459 | def TopDockable(*args, **kwargs): | |
5eb8189c RD |
460 | """TopDockable(self, bool b=True) -> AuiPaneInfo""" |
461 | return _aui.AuiPaneInfo_TopDockable(*args, **kwargs) | |
27e45892 RD |
462 | |
463 | def BottomDockable(*args, **kwargs): | |
5eb8189c RD |
464 | """BottomDockable(self, bool b=True) -> AuiPaneInfo""" |
465 | return _aui.AuiPaneInfo_BottomDockable(*args, **kwargs) | |
27e45892 RD |
466 | |
467 | def LeftDockable(*args, **kwargs): | |
5eb8189c RD |
468 | """LeftDockable(self, bool b=True) -> AuiPaneInfo""" |
469 | return _aui.AuiPaneInfo_LeftDockable(*args, **kwargs) | |
27e45892 RD |
470 | |
471 | def RightDockable(*args, **kwargs): | |
5eb8189c RD |
472 | """RightDockable(self, bool b=True) -> AuiPaneInfo""" |
473 | return _aui.AuiPaneInfo_RightDockable(*args, **kwargs) | |
27e45892 RD |
474 | |
475 | def Floatable(*args, **kwargs): | |
5eb8189c RD |
476 | """Floatable(self, bool b=True) -> AuiPaneInfo""" |
477 | return _aui.AuiPaneInfo_Floatable(*args, **kwargs) | |
27e45892 RD |
478 | |
479 | def Movable(*args, **kwargs): | |
5eb8189c RD |
480 | """Movable(self, bool b=True) -> AuiPaneInfo""" |
481 | return _aui.AuiPaneInfo_Movable(*args, **kwargs) | |
27e45892 | 482 | |
5eb8189c RD |
483 | def SaveHidden(*args, **kwargs): |
484 | """SaveHidden(self) -> AuiPaneInfo""" | |
485 | return _aui.AuiPaneInfo_SaveHidden(*args, **kwargs) | |
27e45892 | 486 | |
5eb8189c RD |
487 | def RestoreHidden(*args, **kwargs): |
488 | """RestoreHidden(self) -> AuiPaneInfo""" | |
489 | return _aui.AuiPaneInfo_RestoreHidden(*args, **kwargs) | |
27e45892 RD |
490 | |
491 | def Dockable(*args, **kwargs): | |
5eb8189c RD |
492 | """Dockable(self, bool b=True) -> AuiPaneInfo""" |
493 | return _aui.AuiPaneInfo_Dockable(*args, **kwargs) | |
27e45892 RD |
494 | |
495 | def DefaultPane(*args, **kwargs): | |
5eb8189c RD |
496 | """DefaultPane(self) -> AuiPaneInfo""" |
497 | return _aui.AuiPaneInfo_DefaultPane(*args, **kwargs) | |
27e45892 RD |
498 | |
499 | def CentrePane(*args, **kwargs): | |
5eb8189c RD |
500 | """CentrePane(self) -> AuiPaneInfo""" |
501 | return _aui.AuiPaneInfo_CentrePane(*args, **kwargs) | |
27e45892 RD |
502 | |
503 | def CenterPane(*args, **kwargs): | |
5eb8189c RD |
504 | """CenterPane(self) -> AuiPaneInfo""" |
505 | return _aui.AuiPaneInfo_CenterPane(*args, **kwargs) | |
27e45892 RD |
506 | |
507 | def ToolbarPane(*args, **kwargs): | |
5eb8189c RD |
508 | """ToolbarPane(self) -> AuiPaneInfo""" |
509 | return _aui.AuiPaneInfo_ToolbarPane(*args, **kwargs) | |
27e45892 RD |
510 | |
511 | def SetFlag(*args, **kwargs): | |
5eb8189c RD |
512 | """SetFlag(self, int flag, bool option_state) -> AuiPaneInfo""" |
513 | return _aui.AuiPaneInfo_SetFlag(*args, **kwargs) | |
27e45892 RD |
514 | |
515 | def HasFlag(*args, **kwargs): | |
5eb8189c RD |
516 | """HasFlag(self, int flag) -> bool""" |
517 | return _aui.AuiPaneInfo_HasFlag(*args, **kwargs) | |
518 | ||
519 | optionFloating = _aui.AuiPaneInfo_optionFloating | |
520 | optionHidden = _aui.AuiPaneInfo_optionHidden | |
521 | optionLeftDockable = _aui.AuiPaneInfo_optionLeftDockable | |
522 | optionRightDockable = _aui.AuiPaneInfo_optionRightDockable | |
523 | optionTopDockable = _aui.AuiPaneInfo_optionTopDockable | |
524 | optionBottomDockable = _aui.AuiPaneInfo_optionBottomDockable | |
525 | optionFloatable = _aui.AuiPaneInfo_optionFloatable | |
526 | optionMovable = _aui.AuiPaneInfo_optionMovable | |
527 | optionResizable = _aui.AuiPaneInfo_optionResizable | |
528 | optionPaneBorder = _aui.AuiPaneInfo_optionPaneBorder | |
529 | optionCaption = _aui.AuiPaneInfo_optionCaption | |
530 | optionGripper = _aui.AuiPaneInfo_optionGripper | |
531 | optionDestroyOnClose = _aui.AuiPaneInfo_optionDestroyOnClose | |
532 | optionToolbar = _aui.AuiPaneInfo_optionToolbar | |
533 | optionActive = _aui.AuiPaneInfo_optionActive | |
534 | optionGripperTop = _aui.AuiPaneInfo_optionGripperTop | |
535 | optionMaximized = _aui.AuiPaneInfo_optionMaximized | |
536 | optionSavedHidden = _aui.AuiPaneInfo_optionSavedHidden | |
537 | buttonClose = _aui.AuiPaneInfo_buttonClose | |
538 | buttonMaximize = _aui.AuiPaneInfo_buttonMaximize | |
539 | buttonMinimize = _aui.AuiPaneInfo_buttonMinimize | |
540 | buttonPin = _aui.AuiPaneInfo_buttonPin | |
541 | buttonCustom1 = _aui.AuiPaneInfo_buttonCustom1 | |
542 | buttonCustom2 = _aui.AuiPaneInfo_buttonCustom2 | |
543 | buttonCustom3 = _aui.AuiPaneInfo_buttonCustom3 | |
544 | actionPane = _aui.AuiPaneInfo_actionPane | |
545 | name = property(_aui.AuiPaneInfo_name_get, _aui.AuiPaneInfo_name_set) | |
546 | caption = property(_aui.AuiPaneInfo_caption_get, _aui.AuiPaneInfo_caption_set) | |
547 | window = property(_aui.AuiPaneInfo_window_get, _aui.AuiPaneInfo_window_set) | |
548 | frame = property(_aui.AuiPaneInfo_frame_get, _aui.AuiPaneInfo_frame_set) | |
549 | state = property(_aui.AuiPaneInfo_state_get, _aui.AuiPaneInfo_state_set) | |
550 | dock_direction = property(_aui.AuiPaneInfo_dock_direction_get, _aui.AuiPaneInfo_dock_direction_set) | |
551 | dock_layer = property(_aui.AuiPaneInfo_dock_layer_get, _aui.AuiPaneInfo_dock_layer_set) | |
552 | dock_row = property(_aui.AuiPaneInfo_dock_row_get, _aui.AuiPaneInfo_dock_row_set) | |
553 | dock_pos = property(_aui.AuiPaneInfo_dock_pos_get, _aui.AuiPaneInfo_dock_pos_set) | |
554 | best_size = property(_aui.AuiPaneInfo_best_size_get, _aui.AuiPaneInfo_best_size_set) | |
555 | min_size = property(_aui.AuiPaneInfo_min_size_get, _aui.AuiPaneInfo_min_size_set) | |
556 | max_size = property(_aui.AuiPaneInfo_max_size_get, _aui.AuiPaneInfo_max_size_set) | |
557 | floating_pos = property(_aui.AuiPaneInfo_floating_pos_get, _aui.AuiPaneInfo_floating_pos_set) | |
558 | floating_size = property(_aui.AuiPaneInfo_floating_size_get, _aui.AuiPaneInfo_floating_size_set) | |
559 | dock_proportion = property(_aui.AuiPaneInfo_dock_proportion_get, _aui.AuiPaneInfo_dock_proportion_set) | |
560 | buttons = property(_aui.AuiPaneInfo_buttons_get, _aui.AuiPaneInfo_buttons_set) | |
561 | rect = property(_aui.AuiPaneInfo_rect_get, _aui.AuiPaneInfo_rect_set) | |
562 | _aui.AuiPaneInfo_swigregister(AuiPaneInfo) | |
27e45892 RD |
563 | cvar = _aui.cvar |
564 | ||
5eb8189c RD |
565 | class AuiManager(_core.EvtHandler): |
566 | """Proxy of C++ AuiManager class""" | |
27e45892 RD |
567 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
568 | __repr__ = _swig_repr | |
569 | def __init__(self, *args, **kwargs): | |
5eb8189c RD |
570 | """__init__(self, Window managed_wnd=None, int flags=AUI_MGR_DEFAULT) -> AuiManager""" |
571 | _aui.AuiManager_swiginit(self,_aui.new_AuiManager(*args, **kwargs)) | |
572 | __swig_destroy__ = _aui.delete_AuiManager | |
27e45892 RD |
573 | __del__ = lambda self : None; |
574 | def UnInit(*args, **kwargs): | |
5eb8189c RD |
575 | """UnInit(self)""" |
576 | return _aui.AuiManager_UnInit(*args, **kwargs) | |
27e45892 RD |
577 | |
578 | def SetFlags(*args, **kwargs): | |
5eb8189c RD |
579 | """SetFlags(self, int flags)""" |
580 | return _aui.AuiManager_SetFlags(*args, **kwargs) | |
27e45892 RD |
581 | |
582 | def GetFlags(*args, **kwargs): | |
5eb8189c RD |
583 | """GetFlags(self) -> int""" |
584 | return _aui.AuiManager_GetFlags(*args, **kwargs) | |
27e45892 | 585 | |
10044bf1 | 586 | def SetManagedWindow(*args, **kwargs): |
5eb8189c RD |
587 | """SetManagedWindow(self, Window managed_wnd)""" |
588 | return _aui.AuiManager_SetManagedWindow(*args, **kwargs) | |
27e45892 | 589 | |
10044bf1 | 590 | def GetManagedWindow(*args, **kwargs): |
5eb8189c RD |
591 | """GetManagedWindow(self) -> Window""" |
592 | return _aui.AuiManager_GetManagedWindow(*args, **kwargs) | |
27e45892 RD |
593 | |
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 | |
5eb8189c RD |
634 | def ClosePane(*args, **kwargs): |
635 | """ClosePane(self, AuiPaneInfo pane_info)""" | |
636 | return _aui.AuiManager_ClosePane(*args, **kwargs) | |
27e45892 | 637 | |
5eb8189c RD |
638 | def MaximizePane(*args, **kwargs): |
639 | """MaximizePane(self, AuiPaneInfo pane_info)""" | |
640 | return _aui.AuiManager_MaximizePane(*args, **kwargs) | |
27e45892 | 641 | |
5eb8189c RD |
642 | def RestorePane(*args, **kwargs): |
643 | """RestorePane(self, AuiPaneInfo pane_info)""" | |
644 | return _aui.AuiManager_RestorePane(*args, **kwargs) | |
645 | ||
646 | def RestoreMaximizedPane(*args, **kwargs): | |
647 | """RestoreMaximizedPane(self)""" | |
648 | return _aui.AuiManager_RestoreMaximizedPane(*args, **kwargs) | |
9b940138 | 649 | |
10044bf1 | 650 | def SavePaneInfo(*args, **kwargs): |
5eb8189c RD |
651 | """SavePaneInfo(self, AuiPaneInfo pane) -> String""" |
652 | return _aui.AuiManager_SavePaneInfo(*args, **kwargs) | |
10044bf1 RD |
653 | |
654 | def LoadPaneInfo(*args, **kwargs): | |
5eb8189c RD |
655 | """LoadPaneInfo(self, String pane_part, AuiPaneInfo pane)""" |
656 | return _aui.AuiManager_LoadPaneInfo(*args, **kwargs) | |
10044bf1 | 657 | |
27e45892 | 658 | def SavePerspective(*args, **kwargs): |
5eb8189c RD |
659 | """SavePerspective(self) -> String""" |
660 | return _aui.AuiManager_SavePerspective(*args, **kwargs) | |
27e45892 RD |
661 | |
662 | def LoadPerspective(*args, **kwargs): | |
5eb8189c RD |
663 | """LoadPerspective(self, String perspective, bool update=True) -> bool""" |
664 | return _aui.AuiManager_LoadPerspective(*args, **kwargs) | |
27e45892 RD |
665 | |
666 | def Update(*args, **kwargs): | |
5eb8189c RD |
667 | """Update(self)""" |
668 | return _aui.AuiManager_Update(*args, **kwargs) | |
27e45892 | 669 | |
9b940138 | 670 | def CreateFloatingFrame(*args, **kwargs): |
5eb8189c RD |
671 | """CreateFloatingFrame(self, Window parent, AuiPaneInfo p) -> AuiFloatingFrame""" |
672 | return _aui.AuiManager_CreateFloatingFrame(*args, **kwargs) | |
9b940138 | 673 | |
10044bf1 RD |
674 | def DrawHintRect(*args, **kwargs): |
675 | """DrawHintRect(self, Window pane_window, Point pt, Point offset)""" | |
5eb8189c | 676 | return _aui.AuiManager_DrawHintRect(*args, **kwargs) |
10044bf1 RD |
677 | |
678 | def ShowHint(*args, **kwargs): | |
679 | """ShowHint(self, Rect rect)""" | |
5eb8189c | 680 | return _aui.AuiManager_ShowHint(*args, **kwargs) |
10044bf1 RD |
681 | |
682 | def HideHint(*args, **kwargs): | |
683 | """HideHint(self)""" | |
5eb8189c | 684 | return _aui.AuiManager_HideHint(*args, **kwargs) |
10044bf1 | 685 | |
81f5836b | 686 | def OnRender(*args, **kwargs): |
5eb8189c RD |
687 | """OnRender(self, AuiManagerEvent evt)""" |
688 | return _aui.AuiManager_OnRender(*args, **kwargs) | |
81f5836b RD |
689 | |
690 | def OnPaneButton(*args, **kwargs): | |
5eb8189c RD |
691 | """OnPaneButton(self, AuiManagerEvent evt)""" |
692 | return _aui.AuiManager_OnPaneButton(*args, **kwargs) | |
81f5836b | 693 | |
27e45892 RD |
694 | def GetPane(self, item): |
695 | """ | |
696 | GetPane(self, window_or_info item) -> PaneInfo | |
697 | ||
698 | GetPane is used to search for a `PaneInfo` object either by | |
699 | widget reference or by pane name, which acts as a unique id | |
700 | for a window pane. The returned `PaneInfo` object may then be | |
701 | modified to change a pane's look, state or position. After one | |
702 | or more modifications to the `PaneInfo`, `FrameManager.Update` | |
703 | should be called to realize the changes to the user interface. | |
704 | ||
705 | If the lookup failed (meaning the pane could not be found in | |
706 | the manager) GetPane returns an empty `PaneInfo`, a condition | |
707 | which can be checked by calling `PaneInfo.IsOk`. | |
708 | """ | |
709 | if isinstance(item, wx.Window): | |
710 | return self._GetPaneByWidget(item) | |
711 | else: | |
712 | return self._GetPaneByName(item) | |
713 | ||
714 | def AddPane(self, window, info=None, caption=None): | |
715 | """ | |
716 | AddPane(self, window, info=None, caption=None) -> bool | |
717 | ||
718 | AddPane tells the frame manager to start managing a child | |
719 | window. There are two versions of this function. The first | |
720 | verison accepts a `PaneInfo` object for the ``info`` parameter | |
721 | and allows the full spectrum of pane parameter | |
722 | possibilities. (Say that 3 times fast!) | |
723 | ||
724 | The second version is used for simpler user interfaces which | |
725 | do not require as much configuration. In this case the | |
726 | ``info`` parameter specifies the direction property of the | |
727 | pane info, and defaults to ``wx.LEFT``. The pane caption may | |
728 | also be specified as an extra parameter in this form. | |
729 | """ | |
5eb8189c | 730 | if type(info) == AuiPaneInfo: |
27e45892 RD |
731 | return self._AddPane1(window, info) |
732 | else: | |
733 | ||
734 | if info is None: | |
735 | info = wx.LEFT | |
736 | if caption is None: | |
737 | caption = "" | |
738 | return self._AddPane2(window, info, caption) | |
739 | ||
10044bf1 RD |
740 | SetFrame = wx._deprecated(SetManagedWindow, |
741 | "SetFrame is deprecated, use `SetManagedWindow` instead.") | |
742 | GetFrame = wx._deprecated(GetManagedWindow, | |
743 | "GetFrame is deprecated, use `GetManagedWindow` instead.") | |
744 | ||
777e547f RD |
745 | AllPanes = property(GetAllPanes,doc="See `GetAllPanes`") |
746 | ArtProvider = property(GetArtProvider,SetArtProvider,doc="See `GetArtProvider` and `SetArtProvider`") | |
747 | Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") | |
748 | ManagedWindow = property(GetManagedWindow,SetManagedWindow,doc="See `GetManagedWindow` and `SetManagedWindow`") | |
5eb8189c | 749 | _aui.AuiManager_swigregister(AuiManager) |
27e45892 | 750 | |
5eb8189c RD |
751 | class AuiManagerEvent(_core.Event): |
752 | """Proxy of C++ AuiManagerEvent class""" | |
27e45892 RD |
753 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
754 | __repr__ = _swig_repr | |
755 | def __init__(self, *args, **kwargs): | |
5eb8189c RD |
756 | """__init__(self, EventType type=wxEVT_NULL) -> AuiManagerEvent""" |
757 | _aui.AuiManagerEvent_swiginit(self,_aui.new_AuiManagerEvent(*args, **kwargs)) | |
27e45892 RD |
758 | def Clone(*args, **kwargs): |
759 | """Clone(self) -> Event""" | |
5eb8189c | 760 | return _aui.AuiManagerEvent_Clone(*args, **kwargs) |
27e45892 RD |
761 | |
762 | def SetPane(*args, **kwargs): | |
5eb8189c RD |
763 | """SetPane(self, AuiPaneInfo p)""" |
764 | return _aui.AuiManagerEvent_SetPane(*args, **kwargs) | |
27e45892 RD |
765 | |
766 | def SetButton(*args, **kwargs): | |
767 | """SetButton(self, int b)""" | |
5eb8189c | 768 | return _aui.AuiManagerEvent_SetButton(*args, **kwargs) |
27e45892 | 769 | |
81f5836b RD |
770 | def SetDC(*args, **kwargs): |
771 | """SetDC(self, DC pdc)""" | |
5eb8189c | 772 | return _aui.AuiManagerEvent_SetDC(*args, **kwargs) |
81f5836b | 773 | |
27e45892 | 774 | def GetPane(*args, **kwargs): |
5eb8189c RD |
775 | """GetPane(self) -> AuiPaneInfo""" |
776 | return _aui.AuiManagerEvent_GetPane(*args, **kwargs) | |
27e45892 RD |
777 | |
778 | def GetButton(*args, **kwargs): | |
779 | """GetButton(self) -> int""" | |
5eb8189c | 780 | return _aui.AuiManagerEvent_GetButton(*args, **kwargs) |
27e45892 | 781 | |
81f5836b RD |
782 | def GetDC(*args, **kwargs): |
783 | """GetDC(self) -> DC""" | |
5eb8189c | 784 | return _aui.AuiManagerEvent_GetDC(*args, **kwargs) |
81f5836b | 785 | |
27e45892 RD |
786 | def Veto(*args, **kwargs): |
787 | """Veto(self, bool veto=True)""" | |
5eb8189c | 788 | return _aui.AuiManagerEvent_Veto(*args, **kwargs) |
27e45892 RD |
789 | |
790 | def GetVeto(*args, **kwargs): | |
791 | """GetVeto(self) -> bool""" | |
5eb8189c | 792 | return _aui.AuiManagerEvent_GetVeto(*args, **kwargs) |
27e45892 RD |
793 | |
794 | def SetCanVeto(*args, **kwargs): | |
795 | """SetCanVeto(self, bool can_veto)""" | |
5eb8189c | 796 | return _aui.AuiManagerEvent_SetCanVeto(*args, **kwargs) |
27e45892 RD |
797 | |
798 | def CanVeto(*args, **kwargs): | |
799 | """CanVeto(self) -> bool""" | |
5eb8189c | 800 | return _aui.AuiManagerEvent_CanVeto(*args, **kwargs) |
27e45892 | 801 | |
5eb8189c RD |
802 | pane = property(_aui.AuiManagerEvent_pane_get, _aui.AuiManagerEvent_pane_set) |
803 | button = property(_aui.AuiManagerEvent_button_get, _aui.AuiManagerEvent_button_set) | |
804 | veto_flag = property(_aui.AuiManagerEvent_veto_flag_get, _aui.AuiManagerEvent_veto_flag_set) | |
805 | canveto_flag = property(_aui.AuiManagerEvent_canveto_flag_get, _aui.AuiManagerEvent_canveto_flag_set) | |
806 | dc = property(_aui.AuiManagerEvent_dc_get, _aui.AuiManagerEvent_dc_set) | |
777e547f RD |
807 | Button = property(GetButton,SetButton,doc="See `GetButton` and `SetButton`") |
808 | DC = property(GetDC,SetDC,doc="See `GetDC` and `SetDC`") | |
809 | Pane = property(GetPane,SetPane,doc="See `GetPane` and `SetPane`") | |
5eb8189c | 810 | _aui.AuiManagerEvent_swigregister(AuiManagerEvent) |
27e45892 | 811 | |
5eb8189c RD |
812 | class AuiDockInfo(object): |
813 | """Proxy of C++ AuiDockInfo class""" | |
27e45892 RD |
814 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
815 | __repr__ = _swig_repr | |
816 | def __init__(self, *args, **kwargs): | |
5eb8189c RD |
817 | """__init__(self) -> AuiDockInfo""" |
818 | _aui.AuiDockInfo_swiginit(self,_aui.new_AuiDockInfo(*args, **kwargs)) | |
27e45892 RD |
819 | def IsOk(*args, **kwargs): |
820 | """IsOk(self) -> bool""" | |
5eb8189c | 821 | return _aui.AuiDockInfo_IsOk(*args, **kwargs) |
27e45892 RD |
822 | |
823 | def IsHorizontal(*args, **kwargs): | |
824 | """IsHorizontal(self) -> bool""" | |
5eb8189c | 825 | return _aui.AuiDockInfo_IsHorizontal(*args, **kwargs) |
27e45892 RD |
826 | |
827 | def IsVertical(*args, **kwargs): | |
828 | """IsVertical(self) -> bool""" | |
5eb8189c RD |
829 | return _aui.AuiDockInfo_IsVertical(*args, **kwargs) |
830 | ||
831 | panes = property(_aui.AuiDockInfo_panes_get, _aui.AuiDockInfo_panes_set) | |
832 | rect = property(_aui.AuiDockInfo_rect_get, _aui.AuiDockInfo_rect_set) | |
833 | dock_direction = property(_aui.AuiDockInfo_dock_direction_get, _aui.AuiDockInfo_dock_direction_set) | |
834 | dock_layer = property(_aui.AuiDockInfo_dock_layer_get, _aui.AuiDockInfo_dock_layer_set) | |
835 | dock_row = property(_aui.AuiDockInfo_dock_row_get, _aui.AuiDockInfo_dock_row_set) | |
836 | size = property(_aui.AuiDockInfo_size_get, _aui.AuiDockInfo_size_set) | |
837 | min_size = property(_aui.AuiDockInfo_min_size_get, _aui.AuiDockInfo_min_size_set) | |
838 | resizable = property(_aui.AuiDockInfo_resizable_get, _aui.AuiDockInfo_resizable_set) | |
839 | toolbar = property(_aui.AuiDockInfo_toolbar_get, _aui.AuiDockInfo_toolbar_set) | |
840 | fixed = property(_aui.AuiDockInfo_fixed_get, _aui.AuiDockInfo_fixed_set) | |
841 | __swig_destroy__ = _aui.delete_AuiDockInfo | |
72ef6efb | 842 | __del__ = lambda self : None; |
5eb8189c | 843 | _aui.AuiDockInfo_swigregister(AuiDockInfo) |
27e45892 | 844 | |
5eb8189c RD |
845 | class AuiDockUIPart(object): |
846 | """Proxy of C++ AuiDockUIPart class""" | |
27e45892 | 847 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
846c181b | 848 | def __init__(self): raise AttributeError, "No constructor defined" |
27e45892 | 849 | __repr__ = _swig_repr |
5eb8189c RD |
850 | typeCaption = _aui.AuiDockUIPart_typeCaption |
851 | typeGripper = _aui.AuiDockUIPart_typeGripper | |
852 | typeDock = _aui.AuiDockUIPart_typeDock | |
853 | typeDockSizer = _aui.AuiDockUIPart_typeDockSizer | |
854 | typePane = _aui.AuiDockUIPart_typePane | |
855 | typePaneSizer = _aui.AuiDockUIPart_typePaneSizer | |
856 | typeBackground = _aui.AuiDockUIPart_typeBackground | |
857 | typePaneBorder = _aui.AuiDockUIPart_typePaneBorder | |
858 | typePaneButton = _aui.AuiDockUIPart_typePaneButton | |
859 | type = property(_aui.AuiDockUIPart_type_get, _aui.AuiDockUIPart_type_set) | |
860 | orientation = property(_aui.AuiDockUIPart_orientation_get, _aui.AuiDockUIPart_orientation_set) | |
861 | dock = property(_aui.AuiDockUIPart_dock_get, _aui.AuiDockUIPart_dock_set) | |
862 | pane = property(_aui.AuiDockUIPart_pane_get, _aui.AuiDockUIPart_pane_set) | |
863 | button = property(_aui.AuiDockUIPart_button_get, _aui.AuiDockUIPart_button_set) | |
864 | cont_sizer = property(_aui.AuiDockUIPart_cont_sizer_get, _aui.AuiDockUIPart_cont_sizer_set) | |
865 | sizer_item = property(_aui.AuiDockUIPart_sizer_item_get, _aui.AuiDockUIPart_sizer_item_set) | |
866 | rect = property(_aui.AuiDockUIPart_rect_get, _aui.AuiDockUIPart_rect_set) | |
867 | __swig_destroy__ = _aui.delete_AuiDockUIPart | |
72ef6efb | 868 | __del__ = lambda self : None; |
5eb8189c | 869 | _aui.AuiDockUIPart_swigregister(AuiDockUIPart) |
27e45892 | 870 | |
5eb8189c RD |
871 | class AuiPaneButton(object): |
872 | """Proxy of C++ AuiPaneButton class""" | |
27e45892 | 873 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
846c181b | 874 | def __init__(self): raise AttributeError, "No constructor defined" |
27e45892 | 875 | __repr__ = _swig_repr |
5eb8189c RD |
876 | button_id = property(_aui.AuiPaneButton_button_id_get, _aui.AuiPaneButton_button_id_set) |
877 | __swig_destroy__ = _aui.delete_AuiPaneButton | |
72ef6efb | 878 | __del__ = lambda self : None; |
5eb8189c | 879 | _aui.AuiPaneButton_swigregister(AuiPaneButton) |
27e45892 RD |
880 | |
881 | wxEVT_AUI_PANEBUTTON = _aui.wxEVT_AUI_PANEBUTTON | |
882 | wxEVT_AUI_PANECLOSE = _aui.wxEVT_AUI_PANECLOSE | |
5eb8189c RD |
883 | wxEVT_AUI_PANEMAXIMIZE = _aui.wxEVT_AUI_PANEMAXIMIZE |
884 | wxEVT_AUI_PANERESTORE = _aui.wxEVT_AUI_PANERESTORE | |
81f5836b | 885 | wxEVT_AUI_RENDER = _aui.wxEVT_AUI_RENDER |
27e45892 RD |
886 | EVT_AUI_PANEBUTTON = wx.PyEventBinder( wxEVT_AUI_PANEBUTTON ) |
887 | EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANECLOSE ) | |
5eb8189c RD |
888 | EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANEMAXIMIZE ) |
889 | EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANERESTORE ) | |
81f5836b | 890 | EVT_AUI_RENDER = wx.PyEventBinder( wxEVT_AUI_RENDER ) |
27e45892 | 891 | |
5eb8189c RD |
892 | class AuiDockArt(object): |
893 | """Proxy of C++ AuiDockArt class""" | |
27e45892 RD |
894 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
895 | def __init__(self): raise AttributeError, "No constructor defined" | |
896 | __repr__ = _swig_repr | |
5eb8189c | 897 | __swig_destroy__ = _aui.delete_AuiDockArt |
27e45892 RD |
898 | __del__ = lambda self : None; |
899 | def GetMetric(*args, **kwargs): | |
900 | """GetMetric(self, int id) -> int""" | |
5eb8189c | 901 | return _aui.AuiDockArt_GetMetric(*args, **kwargs) |
27e45892 RD |
902 | |
903 | def SetMetric(*args, **kwargs): | |
904 | """SetMetric(self, int id, int new_val)""" | |
5eb8189c | 905 | return _aui.AuiDockArt_SetMetric(*args, **kwargs) |
27e45892 RD |
906 | |
907 | def SetFont(*args, **kwargs): | |
908 | """SetFont(self, int id, Font font)""" | |
5eb8189c | 909 | return _aui.AuiDockArt_SetFont(*args, **kwargs) |
27e45892 RD |
910 | |
911 | def GetFont(*args, **kwargs): | |
912 | """GetFont(self, int id) -> Font""" | |
5eb8189c | 913 | return _aui.AuiDockArt_GetFont(*args, **kwargs) |
27e45892 RD |
914 | |
915 | def GetColour(*args, **kwargs): | |
916 | """GetColour(self, int id) -> Colour""" | |
5eb8189c | 917 | return _aui.AuiDockArt_GetColour(*args, **kwargs) |
27e45892 RD |
918 | |
919 | def SetColour(*args, **kwargs): | |
920 | """SetColour(self, int id, wxColor colour)""" | |
5eb8189c | 921 | return _aui.AuiDockArt_SetColour(*args, **kwargs) |
27e45892 RD |
922 | |
923 | def GetColor(*args, **kwargs): | |
924 | """GetColor(self, int id) -> Colour""" | |
5eb8189c | 925 | return _aui.AuiDockArt_GetColor(*args, **kwargs) |
27e45892 RD |
926 | |
927 | def SetColor(*args, **kwargs): | |
928 | """SetColor(self, int id, Colour color)""" | |
5eb8189c | 929 | return _aui.AuiDockArt_SetColor(*args, **kwargs) |
27e45892 RD |
930 | |
931 | def DrawSash(*args, **kwargs): | |
97ab0f6a | 932 | """DrawSash(self, DC dc, Window window, int orientation, Rect rect)""" |
5eb8189c | 933 | return _aui.AuiDockArt_DrawSash(*args, **kwargs) |
27e45892 RD |
934 | |
935 | def DrawBackground(*args, **kwargs): | |
97ab0f6a | 936 | """DrawBackground(self, DC dc, Window window, int orientation, Rect rect)""" |
5eb8189c | 937 | return _aui.AuiDockArt_DrawBackground(*args, **kwargs) |
27e45892 RD |
938 | |
939 | def DrawCaption(*args, **kwargs): | |
5eb8189c RD |
940 | """DrawCaption(self, DC dc, Window window, String text, Rect rect, AuiPaneInfo pane)""" |
941 | return _aui.AuiDockArt_DrawCaption(*args, **kwargs) | |
27e45892 RD |
942 | |
943 | def DrawGripper(*args, **kwargs): | |
5eb8189c RD |
944 | """DrawGripper(self, DC dc, Window window, Rect rect, AuiPaneInfo pane)""" |
945 | return _aui.AuiDockArt_DrawGripper(*args, **kwargs) | |
27e45892 RD |
946 | |
947 | def DrawBorder(*args, **kwargs): | |
5eb8189c RD |
948 | """DrawBorder(self, DC dc, Window window, Rect rect, AuiPaneInfo pane)""" |
949 | return _aui.AuiDockArt_DrawBorder(*args, **kwargs) | |
27e45892 RD |
950 | |
951 | def DrawPaneButton(*args, **kwargs): | |
97ab0f6a RD |
952 | """ |
953 | DrawPaneButton(self, DC dc, Window window, int button, int button_state, | |
5eb8189c | 954 | Rect rect, AuiPaneInfo pane) |
97ab0f6a | 955 | """ |
5eb8189c | 956 | return _aui.AuiDockArt_DrawPaneButton(*args, **kwargs) |
27e45892 | 957 | |
5eb8189c | 958 | _aui.AuiDockArt_swigregister(AuiDockArt) |
27e45892 | 959 | |
5eb8189c RD |
960 | class AuiDefaultDockArt(AuiDockArt): |
961 | """Proxy of C++ AuiDefaultDockArt class""" | |
27e45892 RD |
962 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
963 | __repr__ = _swig_repr | |
964 | def __init__(self, *args, **kwargs): | |
5eb8189c RD |
965 | """__init__(self) -> AuiDefaultDockArt""" |
966 | _aui.AuiDefaultDockArt_swiginit(self,_aui.new_AuiDefaultDockArt(*args, **kwargs)) | |
967 | _aui.AuiDefaultDockArt_swigregister(AuiDefaultDockArt) | |
27e45892 | 968 | |
5eb8189c RD |
969 | class AuiFloatingFrame(_windows.MiniFrame): |
970 | """Proxy of C++ AuiFloatingFrame class""" | |
27e45892 RD |
971 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
972 | __repr__ = _swig_repr | |
973 | def __init__(self, *args, **kwargs): | |
974 | """ | |
5eb8189c RD |
975 | __init__(self, Window parent, AuiManager owner_mgr, AuiPaneInfo pane, |
976 | int id=ID_ANY, long style=wxRESIZE_BORDER|wxSYSTEM_MENU|wxCAPTION|wxFRAME_NO_TASKBAR|wxFRAME_FLOAT_ON_PARENT|wxCLIP_CHILDREN) -> AuiFloatingFrame | |
27e45892 | 977 | """ |
5eb8189c RD |
978 | _aui.AuiFloatingFrame_swiginit(self,_aui.new_AuiFloatingFrame(*args, **kwargs)) |
979 | __swig_destroy__ = _aui.delete_AuiFloatingFrame | |
27e45892 RD |
980 | __del__ = lambda self : None; |
981 | def SetPaneWindow(*args, **kwargs): | |
5eb8189c RD |
982 | """SetPaneWindow(self, AuiPaneInfo pane)""" |
983 | return _aui.AuiFloatingFrame_SetPaneWindow(*args, **kwargs) | |
984 | ||
985 | _aui.AuiFloatingFrame_swigregister(AuiFloatingFrame) | |
986 | ||
987 | AUI_NB_TOP = _aui.AUI_NB_TOP | |
988 | AUI_NB_LEFT = _aui.AUI_NB_LEFT | |
989 | AUI_NB_RIGHT = _aui.AUI_NB_RIGHT | |
990 | AUI_NB_BOTTOM = _aui.AUI_NB_BOTTOM | |
991 | AUI_NB_TAB_SPLIT = _aui.AUI_NB_TAB_SPLIT | |
992 | AUI_NB_TAB_MOVE = _aui.AUI_NB_TAB_MOVE | |
993 | AUI_NB_SCROLL_BUTTONS = _aui.AUI_NB_SCROLL_BUTTONS | |
5eb8189c | 994 | AUI_NB_PAGELIST_BUTTON = _aui.AUI_NB_PAGELIST_BUTTON |
36cb9ebe | 995 | AUI_NB_CLOSE_BUTTON = _aui.AUI_NB_CLOSE_BUTTON |
5eb8189c RD |
996 | AUI_NB_CLOSE_ON_ACTIVE_TAB = _aui.AUI_NB_CLOSE_ON_ACTIVE_TAB |
997 | AUI_NB_CLOSE_ON_ALL_TABS = _aui.AUI_NB_CLOSE_ON_ALL_TABS | |
998 | AUI_NB_DEFAULT_STYLE = _aui.AUI_NB_DEFAULT_STYLE | |
999 | class AuiTabArt(object): | |
1000 | """Proxy of C++ AuiTabArt class""" | |
5c8c7dd3 RD |
1001 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1002 | def __init__(self): raise AttributeError, "No constructor defined" | |
1003 | __repr__ = _swig_repr | |
5eb8189c | 1004 | __swig_destroy__ = _aui.delete_AuiTabArt |
5c8c7dd3 | 1005 | __del__ = lambda self : None; |
8f514ab4 RD |
1006 | def SetNormalFont(*args, **kwargs): |
1007 | """SetNormalFont(self, Font font)""" | |
5eb8189c | 1008 | return _aui.AuiTabArt_SetNormalFont(*args, **kwargs) |
8f514ab4 RD |
1009 | |
1010 | def SetSelectedFont(*args, **kwargs): | |
1011 | """SetSelectedFont(self, Font font)""" | |
5eb8189c | 1012 | return _aui.AuiTabArt_SetSelectedFont(*args, **kwargs) |
8f514ab4 RD |
1013 | |
1014 | def SetMeasuringFont(*args, **kwargs): | |
1015 | """SetMeasuringFont(self, Font font)""" | |
5eb8189c | 1016 | return _aui.AuiTabArt_SetMeasuringFont(*args, **kwargs) |
8f514ab4 | 1017 | |
5c8c7dd3 RD |
1018 | def DrawBackground(*args, **kwargs): |
1019 | """DrawBackground(self, DC dc, Rect rect)""" | |
5eb8189c | 1020 | return _aui.AuiTabArt_DrawBackground(*args, **kwargs) |
5c8c7dd3 RD |
1021 | |
1022 | def DrawTab(*args, **kwargs): | |
1023 | """ | |
36cb9ebe RD |
1024 | DrawTab(self, DC dc, Rect in_rect, String caption, bool active, int close_button_state, |
1025 | Rect out_tab_rect, Rect out_button_rect, | |
1026 | int x_extent) | |
5c8c7dd3 | 1027 | """ |
5eb8189c | 1028 | return _aui.AuiTabArt_DrawTab(*args, **kwargs) |
5c8c7dd3 | 1029 | |
8f514ab4 RD |
1030 | def DrawButton(*args, **kwargs): |
1031 | """ | |
1032 | DrawButton(self, DC dc, Rect in_rect, int bitmap_id, int button_state, | |
1033 | int orientation, Bitmap bitmap_override, Rect out_rect) | |
1034 | """ | |
5eb8189c | 1035 | return _aui.AuiTabArt_DrawButton(*args, **kwargs) |
5c8c7dd3 | 1036 | |
8f514ab4 | 1037 | def GetTabSize(*args, **kwargs): |
5eb8189c | 1038 | """ |
36cb9ebe | 1039 | GetTabSize(self, DC dc, String caption, bool active, int close_button_state, |
5eb8189c RD |
1040 | int x_extent) -> Size |
1041 | """ | |
1042 | return _aui.AuiTabArt_GetTabSize(*args, **kwargs) | |
5c8c7dd3 | 1043 | |
8f514ab4 RD |
1044 | def GetBestTabCtrlSize(*args, **kwargs): |
1045 | """GetBestTabCtrlSize(self, Window wnd) -> int""" | |
5eb8189c | 1046 | return _aui.AuiTabArt_GetBestTabCtrlSize(*args, **kwargs) |
5c8c7dd3 | 1047 | |
5eb8189c | 1048 | _aui.AuiTabArt_swigregister(AuiTabArt) |
5c8c7dd3 | 1049 | |
5eb8189c RD |
1050 | class AuiDefaultTabArt(AuiTabArt): |
1051 | """Proxy of C++ AuiDefaultTabArt class""" | |
5c8c7dd3 RD |
1052 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1053 | __repr__ = _swig_repr | |
1054 | def __init__(self, *args, **kwargs): | |
5eb8189c RD |
1055 | """__init__(self) -> AuiDefaultTabArt""" |
1056 | _aui.AuiDefaultTabArt_swiginit(self,_aui.new_AuiDefaultTabArt(*args, **kwargs)) | |
1057 | __swig_destroy__ = _aui.delete_AuiDefaultTabArt | |
5c8c7dd3 | 1058 | __del__ = lambda self : None; |
5eb8189c | 1059 | _aui.AuiDefaultTabArt_swigregister(AuiDefaultTabArt) |
5c8c7dd3 | 1060 | |
10044bf1 RD |
1061 | class AuiNotebookEvent(_core.NotifyEvent): |
1062 | """Proxy of C++ AuiNotebookEvent class""" | |
1063 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1064 | __repr__ = _swig_repr | |
1065 | def __init__(self, *args, **kwargs): | |
1066 | """__init__(self, EventType command_type=wxEVT_NULL, int win_id=0) -> AuiNotebookEvent""" | |
1067 | _aui.AuiNotebookEvent_swiginit(self,_aui.new_AuiNotebookEvent(*args, **kwargs)) | |
1068 | def SetSelection(*args, **kwargs): | |
1069 | """SetSelection(self, int s)""" | |
1070 | return _aui.AuiNotebookEvent_SetSelection(*args, **kwargs) | |
1071 | ||
1072 | def SetOldSelection(*args, **kwargs): | |
1073 | """SetOldSelection(self, int s)""" | |
1074 | return _aui.AuiNotebookEvent_SetOldSelection(*args, **kwargs) | |
1075 | ||
1076 | def GetSelection(*args, **kwargs): | |
1077 | """ | |
1078 | GetSelection(self) -> int | |
1079 | ||
1080 | Returns item index for a listbox or choice selection event (not valid | |
1081 | for a deselection). | |
1082 | """ | |
1083 | return _aui.AuiNotebookEvent_GetSelection(*args, **kwargs) | |
1084 | ||
1085 | def GetOldSelection(*args, **kwargs): | |
1086 | """GetOldSelection(self) -> int""" | |
1087 | return _aui.AuiNotebookEvent_GetOldSelection(*args, **kwargs) | |
1088 | ||
1089 | old_selection = property(_aui.AuiNotebookEvent_old_selection_get, _aui.AuiNotebookEvent_old_selection_set) | |
1090 | selection = property(_aui.AuiNotebookEvent_selection_get, _aui.AuiNotebookEvent_selection_set) | |
777e547f RD |
1091 | OldSelection = property(GetOldSelection,SetOldSelection,doc="See `GetOldSelection` and `SetOldSelection`") |
1092 | Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") | |
10044bf1 RD |
1093 | _aui.AuiNotebookEvent_swigregister(AuiNotebookEvent) |
1094 | ||
1095 | class AuiNotebookPage(object): | |
1096 | """Proxy of C++ AuiNotebookPage class""" | |
1097 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1098 | def __init__(self): raise AttributeError, "No constructor defined" | |
1099 | __repr__ = _swig_repr | |
1100 | window = property(_aui.AuiNotebookPage_window_get, _aui.AuiNotebookPage_window_set) | |
1101 | caption = property(_aui.AuiNotebookPage_caption_get, _aui.AuiNotebookPage_caption_set) | |
1102 | bitmap = property(_aui.AuiNotebookPage_bitmap_get, _aui.AuiNotebookPage_bitmap_set) | |
1103 | rect = property(_aui.AuiNotebookPage_rect_get, _aui.AuiNotebookPage_rect_set) | |
1104 | active = property(_aui.AuiNotebookPage_active_get, _aui.AuiNotebookPage_active_set) | |
1105 | _aui.AuiNotebookPage_swigregister(AuiNotebookPage) | |
1106 | ||
1107 | class AuiTabContainerButton(object): | |
1108 | """Proxy of C++ AuiTabContainerButton class""" | |
1109 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1110 | def __init__(self): raise AttributeError, "No constructor defined" | |
1111 | __repr__ = _swig_repr | |
1112 | id = property(_aui.AuiTabContainerButton_id_get, _aui.AuiTabContainerButton_id_set) | |
1113 | cur_state = property(_aui.AuiTabContainerButton_cur_state_get, _aui.AuiTabContainerButton_cur_state_set) | |
5c8c7dd3 | 1114 | location = property(_aui.AuiTabContainerButton_location_get, _aui.AuiTabContainerButton_location_set) |
10044bf1 | 1115 | bitmap = property(_aui.AuiTabContainerButton_bitmap_get, _aui.AuiTabContainerButton_bitmap_set) |
8f514ab4 | 1116 | dis_bitmap = property(_aui.AuiTabContainerButton_dis_bitmap_get, _aui.AuiTabContainerButton_dis_bitmap_set) |
10044bf1 RD |
1117 | rect = property(_aui.AuiTabContainerButton_rect_get, _aui.AuiTabContainerButton_rect_set) |
1118 | _aui.AuiTabContainerButton_swigregister(AuiTabContainerButton) | |
1119 | ||
1120 | class AuiTabContainer(object): | |
1121 | """Proxy of C++ AuiTabContainer class""" | |
1122 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1123 | __repr__ = _swig_repr | |
1124 | def __init__(self, *args, **kwargs): | |
1125 | """__init__(self) -> AuiTabContainer""" | |
1126 | _aui.AuiTabContainer_swiginit(self,_aui.new_AuiTabContainer(*args, **kwargs)) | |
1127 | __swig_destroy__ = _aui.delete_AuiTabContainer | |
1128 | __del__ = lambda self : None; | |
5c8c7dd3 | 1129 | def SetArtProvider(*args, **kwargs): |
5eb8189c | 1130 | """SetArtProvider(self, AuiTabArt art)""" |
5c8c7dd3 RD |
1131 | return _aui.AuiTabContainer_SetArtProvider(*args, **kwargs) |
1132 | ||
1133 | def GetArtProvider(*args, **kwargs): | |
5eb8189c | 1134 | """GetArtProvider(self) -> AuiTabArt""" |
5c8c7dd3 RD |
1135 | return _aui.AuiTabContainer_GetArtProvider(*args, **kwargs) |
1136 | ||
5eb8189c RD |
1137 | def SetFlags(*args, **kwargs): |
1138 | """SetFlags(self, int flags)""" | |
1139 | return _aui.AuiTabContainer_SetFlags(*args, **kwargs) | |
1140 | ||
1141 | def GetFlags(*args, **kwargs): | |
1142 | """GetFlags(self) -> int""" | |
1143 | return _aui.AuiTabContainer_GetFlags(*args, **kwargs) | |
1144 | ||
10044bf1 RD |
1145 | def AddPage(*args, **kwargs): |
1146 | """AddPage(self, Window page, AuiNotebookPage info) -> bool""" | |
1147 | return _aui.AuiTabContainer_AddPage(*args, **kwargs) | |
1148 | ||
1149 | def InsertPage(*args, **kwargs): | |
1150 | """InsertPage(self, Window page, AuiNotebookPage info, size_t idx) -> bool""" | |
1151 | return _aui.AuiTabContainer_InsertPage(*args, **kwargs) | |
1152 | ||
580080c5 RD |
1153 | def MovePage(*args, **kwargs): |
1154 | """MovePage(self, Window page, size_t new_idx) -> bool""" | |
1155 | return _aui.AuiTabContainer_MovePage(*args, **kwargs) | |
1156 | ||
10044bf1 RD |
1157 | def RemovePage(*args, **kwargs): |
1158 | """RemovePage(self, Window page) -> bool""" | |
1159 | return _aui.AuiTabContainer_RemovePage(*args, **kwargs) | |
1160 | ||
1161 | def SetActivePage(*args): | |
1162 | """ | |
1163 | SetActivePage(self, Window page) -> bool | |
1164 | SetActivePage(self, size_t page) -> bool | |
1165 | """ | |
1166 | return _aui.AuiTabContainer_SetActivePage(*args) | |
1167 | ||
1168 | def SetNoneActive(*args, **kwargs): | |
1169 | """SetNoneActive(self)""" | |
1170 | return _aui.AuiTabContainer_SetNoneActive(*args, **kwargs) | |
1171 | ||
1172 | def GetActivePage(*args, **kwargs): | |
1173 | """GetActivePage(self) -> int""" | |
1174 | return _aui.AuiTabContainer_GetActivePage(*args, **kwargs) | |
1175 | ||
1176 | def TabHitTest(*args, **kwargs): | |
1177 | """TabHitTest(self, int x, int y, Window hit) -> bool""" | |
1178 | return _aui.AuiTabContainer_TabHitTest(*args, **kwargs) | |
1179 | ||
1180 | def ButtonHitTest(*args, **kwargs): | |
1181 | """ButtonHitTest(self, int x, int y, AuiTabContainerButton hit) -> bool""" | |
1182 | return _aui.AuiTabContainer_ButtonHitTest(*args, **kwargs) | |
1183 | ||
1184 | def GetWindowFromIdx(*args, **kwargs): | |
1185 | """GetWindowFromIdx(self, size_t idx) -> Window""" | |
1186 | return _aui.AuiTabContainer_GetWindowFromIdx(*args, **kwargs) | |
1187 | ||
1188 | def GetIdxFromWindow(*args, **kwargs): | |
1189 | """GetIdxFromWindow(self, Window page) -> int""" | |
1190 | return _aui.AuiTabContainer_GetIdxFromWindow(*args, **kwargs) | |
1191 | ||
1192 | def GetPageCount(*args, **kwargs): | |
1193 | """GetPageCount(self) -> size_t""" | |
1194 | return _aui.AuiTabContainer_GetPageCount(*args, **kwargs) | |
1195 | ||
1196 | def GetPage(*args, **kwargs): | |
1197 | """GetPage(self, size_t idx) -> AuiNotebookPage""" | |
1198 | return _aui.AuiTabContainer_GetPage(*args, **kwargs) | |
1199 | ||
1200 | def GetPages(*args, **kwargs): | |
1201 | """GetPages(self) -> wxAuiNotebookPageArray""" | |
1202 | return _aui.AuiTabContainer_GetPages(*args, **kwargs) | |
1203 | ||
1204 | def SetNormalFont(*args, **kwargs): | |
1205 | """SetNormalFont(self, Font normal_font)""" | |
1206 | return _aui.AuiTabContainer_SetNormalFont(*args, **kwargs) | |
1207 | ||
1208 | def SetSelectedFont(*args, **kwargs): | |
1209 | """SetSelectedFont(self, Font selected_font)""" | |
1210 | return _aui.AuiTabContainer_SetSelectedFont(*args, **kwargs) | |
1211 | ||
1212 | def SetMeasuringFont(*args, **kwargs): | |
1213 | """SetMeasuringFont(self, Font measuring_font)""" | |
1214 | return _aui.AuiTabContainer_SetMeasuringFont(*args, **kwargs) | |
1215 | ||
1216 | def DoShowHide(*args, **kwargs): | |
1217 | """DoShowHide(self)""" | |
1218 | return _aui.AuiTabContainer_DoShowHide(*args, **kwargs) | |
1219 | ||
1220 | def SetRect(*args, **kwargs): | |
1221 | """SetRect(self, Rect rect)""" | |
1222 | return _aui.AuiTabContainer_SetRect(*args, **kwargs) | |
1223 | ||
36cb9ebe RD |
1224 | def RemoveButton(*args, **kwargs): |
1225 | """RemoveButton(self, int id)""" | |
1226 | return _aui.AuiTabContainer_RemoveButton(*args, **kwargs) | |
1227 | ||
10044bf1 | 1228 | def AddButton(*args, **kwargs): |
8f514ab4 RD |
1229 | """ |
1230 | AddButton(self, int id, int location, Bitmap normal_bitmap=wxNullBitmap, | |
1231 | Bitmap disabled_bitmap=wxNullBitmap) | |
1232 | """ | |
10044bf1 RD |
1233 | return _aui.AuiTabContainer_AddButton(*args, **kwargs) |
1234 | ||
8f514ab4 RD |
1235 | def GetTabOffset(*args, **kwargs): |
1236 | """GetTabOffset(self) -> size_t""" | |
1237 | return _aui.AuiTabContainer_GetTabOffset(*args, **kwargs) | |
1238 | ||
1239 | def SetTabOffset(*args, **kwargs): | |
1240 | """SetTabOffset(self, size_t offset)""" | |
1241 | return _aui.AuiTabContainer_SetTabOffset(*args, **kwargs) | |
1242 | ||
777e547f RD |
1243 | ActivePage = property(GetActivePage,SetActivePage,doc="See `GetActivePage` and `SetActivePage`") |
1244 | PageCount = property(GetPageCount,doc="See `GetPageCount`") | |
1245 | Pages = property(GetPages,doc="See `GetPages`") | |
10044bf1 RD |
1246 | _aui.AuiTabContainer_swigregister(AuiTabContainer) |
1247 | ||
1248 | class AuiTabCtrl(_core.Control,AuiTabContainer): | |
1249 | """Proxy of C++ AuiTabCtrl class""" | |
1250 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1251 | __repr__ = _swig_repr | |
1252 | def __init__(self, *args, **kwargs): | |
1253 | """ | |
1254 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1255 | Size size=DefaultSize, long style=0) -> AuiTabCtrl | |
1256 | """ | |
1257 | _aui.AuiTabCtrl_swiginit(self,_aui.new_AuiTabCtrl(*args, **kwargs)) | |
1258 | self._setOORInfo(self) | |
1259 | ||
580080c5 RD |
1260 | __swig_destroy__ = _aui.delete_AuiTabCtrl |
1261 | __del__ = lambda self : None; | |
10044bf1 RD |
1262 | _aui.AuiTabCtrl_swigregister(AuiTabCtrl) |
1263 | ||
5eb8189c RD |
1264 | class AuiNotebook(_core.Control): |
1265 | """Proxy of C++ AuiNotebook class""" | |
10044bf1 RD |
1266 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1267 | __repr__ = _swig_repr | |
1268 | def __init__(self, *args, **kwargs): | |
1269 | """ | |
1270 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
5eb8189c | 1271 | Size size=DefaultSize, long style=AUI_NB_DEFAULT_STYLE) -> AuiNotebook |
10044bf1 | 1272 | """ |
5eb8189c | 1273 | _aui.AuiNotebook_swiginit(self,_aui.new_AuiNotebook(*args, **kwargs)) |
10044bf1 RD |
1274 | self._setOORInfo(self) |
1275 | ||
5eb8189c RD |
1276 | __swig_destroy__ = _aui.delete_AuiNotebook |
1277 | __del__ = lambda self : None; | |
10044bf1 RD |
1278 | def Create(*args, **kwargs): |
1279 | """ | |
1280 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1281 | Size size=DefaultSize, long style=0) -> bool | |
1282 | ||
1283 | Do the 2nd phase and create the GUI control. | |
1284 | """ | |
5eb8189c | 1285 | return _aui.AuiNotebook_Create(*args, **kwargs) |
10044bf1 RD |
1286 | |
1287 | def AddPage(*args, **kwargs): | |
1288 | """AddPage(self, Window page, String caption, bool select=False, Bitmap bitmap=wxNullBitmap) -> bool""" | |
5eb8189c | 1289 | return _aui.AuiNotebook_AddPage(*args, **kwargs) |
10044bf1 RD |
1290 | |
1291 | def InsertPage(*args, **kwargs): | |
1292 | """ | |
1293 | InsertPage(self, size_t page_idx, Window page, String caption, bool select=False, | |
1294 | Bitmap bitmap=wxNullBitmap) -> bool | |
1295 | """ | |
5eb8189c | 1296 | return _aui.AuiNotebook_InsertPage(*args, **kwargs) |
10044bf1 RD |
1297 | |
1298 | def DeletePage(*args, **kwargs): | |
1299 | """DeletePage(self, size_t page) -> bool""" | |
5eb8189c | 1300 | return _aui.AuiNotebook_DeletePage(*args, **kwargs) |
10044bf1 RD |
1301 | |
1302 | def RemovePage(*args, **kwargs): | |
1303 | """RemovePage(self, size_t page) -> bool""" | |
5eb8189c | 1304 | return _aui.AuiNotebook_RemovePage(*args, **kwargs) |
10044bf1 RD |
1305 | |
1306 | def SetPageText(*args, **kwargs): | |
1307 | """SetPageText(self, size_t page, String text) -> bool""" | |
5eb8189c | 1308 | return _aui.AuiNotebook_SetPageText(*args, **kwargs) |
10044bf1 RD |
1309 | |
1310 | def SetSelection(*args, **kwargs): | |
1311 | """SetSelection(self, size_t new_page) -> size_t""" | |
5eb8189c | 1312 | return _aui.AuiNotebook_SetSelection(*args, **kwargs) |
10044bf1 RD |
1313 | |
1314 | def GetSelection(*args, **kwargs): | |
1315 | """GetSelection(self) -> int""" | |
5eb8189c | 1316 | return _aui.AuiNotebook_GetSelection(*args, **kwargs) |
10044bf1 RD |
1317 | |
1318 | def GetPageCount(*args, **kwargs): | |
1319 | """GetPageCount(self) -> size_t""" | |
5eb8189c | 1320 | return _aui.AuiNotebook_GetPageCount(*args, **kwargs) |
10044bf1 RD |
1321 | |
1322 | def GetPage(*args, **kwargs): | |
1323 | """GetPage(self, size_t page_idx) -> Window""" | |
5eb8189c | 1324 | return _aui.AuiNotebook_GetPage(*args, **kwargs) |
10044bf1 | 1325 | |
5c8c7dd3 | 1326 | def SetArtProvider(*args, **kwargs): |
5eb8189c RD |
1327 | """SetArtProvider(self, AuiTabArt art)""" |
1328 | return _aui.AuiNotebook_SetArtProvider(*args, **kwargs) | |
5c8c7dd3 RD |
1329 | |
1330 | def GetArtProvider(*args, **kwargs): | |
5eb8189c RD |
1331 | """GetArtProvider(self) -> AuiTabArt""" |
1332 | return _aui.AuiNotebook_GetArtProvider(*args, **kwargs) | |
5c8c7dd3 | 1333 | |
777e547f RD |
1334 | PageCount = property(GetPageCount,doc="See `GetPageCount`") |
1335 | Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") | |
5eb8189c | 1336 | _aui.AuiNotebook_swigregister(AuiNotebook) |
10044bf1 | 1337 | |
5eb8189c RD |
1338 | def PreAuiNotebook(*args, **kwargs): |
1339 | """PreAuiNotebook() -> AuiNotebook""" | |
1340 | val = _aui.new_PreAuiNotebook(*args, **kwargs) | |
10044bf1 RD |
1341 | self._setOORInfo(self) |
1342 | return val | |
1343 | ||
1344 | wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED = _aui.wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED | |
1345 | wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING = _aui.wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING | |
1346 | wxEVT_COMMAND_AUINOTEBOOK_BUTTON = _aui.wxEVT_COMMAND_AUINOTEBOOK_BUTTON | |
1347 | wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG = _aui.wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG | |
1348 | wxEVT_COMMAND_AUINOTEBOOK_END_DRAG = _aui.wxEVT_COMMAND_AUINOTEBOOK_END_DRAG | |
1349 | wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION = _aui.wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION | |
1350 | EVT_AUINOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, 1 ) | |
1351 | EVT_AUINOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, 1 ) | |
1352 | EVT_AUINOTEBOOK_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BUTTON, 1 ) | |
1353 | EVT_AUINOTEBOOK_BEGIN_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG, 1 ) | |
1354 | EVT_AUINOTEBOOK_END_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_END_DRAG, 1 ) | |
1355 | EVT_AUINOTEBOOK_DRAG_MOTION = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION, 1 ) | |
1356 | ||
5eb8189c | 1357 | class PyAuiDockArt(AuiDefaultDockArt): |
27e45892 | 1358 | """ |
5eb8189c | 1359 | This version of the `AuiDockArt` class has been instrumented to be |
27e45892 RD |
1360 | subclassable in Python and to reflect all calls to the C++ base class |
1361 | methods to the Python methods implemented in the derived class. | |
1362 | """ | |
1363 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1364 | def __init__(self): raise AttributeError, "No constructor defined" | |
1365 | __repr__ = _swig_repr | |
5eb8189c | 1366 | _aui.PyAuiDockArt_swigregister(PyAuiDockArt) |
27e45892 | 1367 | |
5eb8189c | 1368 | class PyAuiTabArt(AuiDefaultTabArt): |
5c8c7dd3 RD |
1369 | """ |
1370 | This version of the `TabArt` class has been instrumented to be | |
1371 | subclassable in Python and to reflect all calls to the C++ base class | |
1372 | methods to the Python methods implemented in the derived class. | |
1373 | """ | |
1374 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
1375 | def __init__(self): raise AttributeError, "No constructor defined" | |
1376 | __repr__ = _swig_repr | |
5eb8189c | 1377 | _aui.PyAuiTabArt_swigregister(PyAuiTabArt) |
5c8c7dd3 | 1378 | |
27e45892 RD |
1379 | |
1380 |