]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | # This file was created automatically by SWIG. |
2 | # Don't modify this file, modify the SWIG interface instead. | |
3 | ||
4 | import _windows_ | |
5 | ||
6 | import _core | |
7 | wx = _core | |
d55e5bfc RD |
8 | #--------------------------------------------------------------------------- |
9 | ||
10 | class Panel(_core.Window): | |
11 | def __repr__(self): | |
12 | return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
13 | def __init__(self, *args, **kwargs): | |
14 | """ | |
15 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
16 | Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, | |
17 | String name=PanelNameStr) -> Panel | |
18 | """ | |
19 | newobj = _windows_.new_Panel(*args, **kwargs) | |
20 | self.this = newobj.this | |
21 | self.thisown = 1 | |
22 | del newobj.thisown | |
23 | self._setOORInfo(self) | |
24 | ||
25 | def Create(*args, **kwargs): | |
26 | """ | |
27 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
28 | Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, | |
29 | String name=PanelNameStr) -> bool | |
01ac03ba RD |
30 | |
31 | Create the GUI part of the Window for 2-phase creation mode. | |
d55e5bfc RD |
32 | """ |
33 | return _windows_.Panel_Create(*args, **kwargs) | |
34 | ||
35 | def InitDialog(*args, **kwargs): | |
36 | """ | |
37 | InitDialog(self) | |
38 | ||
15817c7e RD |
39 | Sends an EVT_INIT_DIALOG event, whose handler usually transfers data |
40 | to the dialog via validators. | |
d55e5bfc RD |
41 | """ |
42 | return _windows_.Panel_InitDialog(*args, **kwargs) | |
43 | ||
5cbf236d RD |
44 | def SetFocus(*args, **kwargs): |
45 | """ | |
46 | SetFocus(self) | |
47 | ||
48 | Overrides `wx.Window.SetFocus`. This method uses the (undocumented) | |
49 | mix-in class wxControlContainer which manages the focus and TAB logic | |
50 | for controls which usually have child controls. In practice, if you | |
51 | call this method and the panel has at least one child window, then the | |
52 | focus will be given to the child window. | |
53 | """ | |
54 | return _windows_.Panel_SetFocus(*args, **kwargs) | |
55 | ||
56 | def SetFocusIgnoringChildren(*args, **kwargs): | |
57 | """ | |
58 | SetFocusIgnoringChildren(self) | |
59 | ||
60 | In contrast to `SetFocus` (see above) this will set the focus to the | |
61 | panel even of there are child windows in the panel. This is only | |
62 | rarely needed. | |
63 | """ | |
64 | return _windows_.Panel_SetFocusIgnoringChildren(*args, **kwargs) | |
65 | ||
f20a2e1f RD |
66 | def GetClassDefaultAttributes(*args, **kwargs): |
67 | """ | |
68 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
69 | ||
15817c7e RD |
70 | Get the default attributes for this class. This is useful if you want |
71 | to use the same font or colour in your own control as in a standard | |
72 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
73 | colours or fonts which might look completely out of place on the |
74 | user's system, especially if it uses themes. | |
f20a2e1f RD |
75 | |
76 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 77 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
78 | the returned font. See `wx.Window.SetWindowVariant` for more about |
79 | this. | |
f20a2e1f RD |
80 | """ |
81 | return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs) | |
82 | ||
83 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
d55e5bfc RD |
84 | |
85 | class PanelPtr(Panel): | |
86 | def __init__(self, this): | |
87 | self.this = this | |
88 | if not hasattr(self,"thisown"): self.thisown = 0 | |
89 | self.__class__ = Panel | |
90 | _windows_.Panel_swigregister(PanelPtr) | |
91 | ||
92 | def PrePanel(*args, **kwargs): | |
93 | """PrePanel() -> Panel""" | |
94 | val = _windows_.new_PrePanel(*args, **kwargs) | |
95 | val.thisown = 1 | |
96 | return val | |
97 | ||
f20a2e1f RD |
98 | def Panel_GetClassDefaultAttributes(*args, **kwargs): |
99 | """ | |
100 | Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
101 | ||
15817c7e RD |
102 | Get the default attributes for this class. This is useful if you want |
103 | to use the same font or colour in your own control as in a standard | |
104 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
105 | colours or fonts which might look completely out of place on the |
106 | user's system, especially if it uses themes. | |
f20a2e1f RD |
107 | |
108 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 109 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
110 | the returned font. See `wx.Window.SetWindowVariant` for more about |
111 | this. | |
f20a2e1f RD |
112 | """ |
113 | return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs) | |
114 | ||
d55e5bfc RD |
115 | #--------------------------------------------------------------------------- |
116 | ||
117 | class ScrolledWindow(Panel): | |
118 | def __repr__(self): | |
119 | return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
120 | def __init__(self, *args, **kwargs): | |
121 | """ | |
122 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
123 | Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, | |
124 | String name=PanelNameStr) -> ScrolledWindow | |
125 | """ | |
126 | newobj = _windows_.new_ScrolledWindow(*args, **kwargs) | |
127 | self.this = newobj.this | |
128 | self.thisown = 1 | |
129 | del newobj.thisown | |
130 | self._setOORInfo(self) | |
131 | ||
132 | def Create(*args, **kwargs): | |
133 | """ | |
134 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
135 | Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, | |
136 | String name=PanelNameStr) -> bool | |
01ac03ba RD |
137 | |
138 | Create the GUI part of the Window for 2-phase creation mode. | |
d55e5bfc RD |
139 | """ |
140 | return _windows_.ScrolledWindow_Create(*args, **kwargs) | |
141 | ||
142 | def SetScrollbars(*args, **kwargs): | |
143 | """ | |
144 | SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, | |
145 | int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False) | |
146 | """ | |
147 | return _windows_.ScrolledWindow_SetScrollbars(*args, **kwargs) | |
148 | ||
149 | def Scroll(*args, **kwargs): | |
150 | """Scroll(self, int x, int y)""" | |
151 | return _windows_.ScrolledWindow_Scroll(*args, **kwargs) | |
152 | ||
153 | def GetScrollPageSize(*args, **kwargs): | |
154 | """GetScrollPageSize(self, int orient) -> int""" | |
155 | return _windows_.ScrolledWindow_GetScrollPageSize(*args, **kwargs) | |
156 | ||
157 | def SetScrollPageSize(*args, **kwargs): | |
158 | """SetScrollPageSize(self, int orient, int pageSize)""" | |
159 | return _windows_.ScrolledWindow_SetScrollPageSize(*args, **kwargs) | |
160 | ||
161 | def SetScrollRate(*args, **kwargs): | |
162 | """SetScrollRate(self, int xstep, int ystep)""" | |
163 | return _windows_.ScrolledWindow_SetScrollRate(*args, **kwargs) | |
164 | ||
165 | def GetScrollPixelsPerUnit(*args, **kwargs): | |
a001823c RD |
166 | """ |
167 | GetScrollPixelsPerUnit() -> (xUnit, yUnit) | |
168 | ||
169 | Get the size of one logical unit in physical units. | |
170 | """ | |
d55e5bfc RD |
171 | return _windows_.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs) |
172 | ||
173 | def EnableScrolling(*args, **kwargs): | |
174 | """EnableScrolling(self, bool x_scrolling, bool y_scrolling)""" | |
175 | return _windows_.ScrolledWindow_EnableScrolling(*args, **kwargs) | |
176 | ||
177 | def GetViewStart(*args, **kwargs): | |
a001823c RD |
178 | """ |
179 | GetViewStart() -> (x,y) | |
180 | ||
181 | Get the view start | |
182 | """ | |
d55e5bfc RD |
183 | return _windows_.ScrolledWindow_GetViewStart(*args, **kwargs) |
184 | ||
185 | def SetScale(*args, **kwargs): | |
186 | """SetScale(self, double xs, double ys)""" | |
187 | return _windows_.ScrolledWindow_SetScale(*args, **kwargs) | |
188 | ||
189 | def GetScaleX(*args, **kwargs): | |
190 | """GetScaleX(self) -> double""" | |
191 | return _windows_.ScrolledWindow_GetScaleX(*args, **kwargs) | |
192 | ||
193 | def GetScaleY(*args, **kwargs): | |
194 | """GetScaleY(self) -> double""" | |
195 | return _windows_.ScrolledWindow_GetScaleY(*args, **kwargs) | |
196 | ||
197 | def CalcScrolledPosition(*args): | |
198 | """ | |
199 | CalcScrolledPosition(self, Point pt) -> Point | |
200 | CalcScrolledPosition(int x, int y) -> (sx, sy) | |
201 | ||
202 | Translate between scrolled and unscrolled coordinates. | |
203 | """ | |
204 | return _windows_.ScrolledWindow_CalcScrolledPosition(*args) | |
205 | ||
206 | def CalcUnscrolledPosition(*args): | |
207 | """ | |
208 | CalcUnscrolledPosition(self, Point pt) -> Point | |
209 | CalcUnscrolledPosition(int x, int y) -> (ux, uy) | |
210 | ||
211 | Translate between scrolled and unscrolled coordinates. | |
212 | """ | |
213 | return _windows_.ScrolledWindow_CalcUnscrolledPosition(*args) | |
214 | ||
215 | def AdjustScrollbars(*args, **kwargs): | |
216 | """AdjustScrollbars(self)""" | |
217 | return _windows_.ScrolledWindow_AdjustScrollbars(*args, **kwargs) | |
218 | ||
219 | def CalcScrollInc(*args, **kwargs): | |
220 | """CalcScrollInc(self, ScrollWinEvent event) -> int""" | |
221 | return _windows_.ScrolledWindow_CalcScrollInc(*args, **kwargs) | |
222 | ||
223 | def SetTargetWindow(*args, **kwargs): | |
224 | """SetTargetWindow(self, Window target)""" | |
225 | return _windows_.ScrolledWindow_SetTargetWindow(*args, **kwargs) | |
226 | ||
227 | def GetTargetWindow(*args, **kwargs): | |
228 | """GetTargetWindow(self) -> Window""" | |
229 | return _windows_.ScrolledWindow_GetTargetWindow(*args, **kwargs) | |
230 | ||
231 | def SetTargetRect(*args, **kwargs): | |
232 | """SetTargetRect(self, Rect rect)""" | |
233 | return _windows_.ScrolledWindow_SetTargetRect(*args, **kwargs) | |
234 | ||
235 | def GetTargetRect(*args, **kwargs): | |
236 | """GetTargetRect(self) -> Rect""" | |
237 | return _windows_.ScrolledWindow_GetTargetRect(*args, **kwargs) | |
238 | ||
f5b96ee1 RD |
239 | def DoPrepareDC(*args, **kwargs): |
240 | """ | |
241 | DoPrepareDC(self, DC dc) | |
242 | ||
243 | Normally what is called by `PrepareDC`. | |
244 | """ | |
245 | return _windows_.ScrolledWindow_DoPrepareDC(*args, **kwargs) | |
246 | ||
f20a2e1f RD |
247 | def GetClassDefaultAttributes(*args, **kwargs): |
248 | """ | |
249 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
250 | ||
15817c7e RD |
251 | Get the default attributes for this class. This is useful if you want |
252 | to use the same font or colour in your own control as in a standard | |
253 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
254 | colours or fonts which might look completely out of place on the |
255 | user's system, especially if it uses themes. | |
f20a2e1f RD |
256 | |
257 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 258 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
259 | the returned font. See `wx.Window.SetWindowVariant` for more about |
260 | this. | |
f20a2e1f RD |
261 | """ |
262 | return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs) | |
263 | ||
264 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
d55e5bfc RD |
265 | |
266 | class ScrolledWindowPtr(ScrolledWindow): | |
267 | def __init__(self, this): | |
268 | self.this = this | |
269 | if not hasattr(self,"thisown"): self.thisown = 0 | |
270 | self.__class__ = ScrolledWindow | |
271 | _windows_.ScrolledWindow_swigregister(ScrolledWindowPtr) | |
272 | ||
273 | def PreScrolledWindow(*args, **kwargs): | |
274 | """PreScrolledWindow() -> ScrolledWindow""" | |
275 | val = _windows_.new_PreScrolledWindow(*args, **kwargs) | |
276 | val.thisown = 1 | |
277 | return val | |
278 | ||
f20a2e1f RD |
279 | def ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs): |
280 | """ | |
281 | ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
282 | ||
15817c7e RD |
283 | Get the default attributes for this class. This is useful if you want |
284 | to use the same font or colour in your own control as in a standard | |
285 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
286 | colours or fonts which might look completely out of place on the |
287 | user's system, especially if it uses themes. | |
f20a2e1f RD |
288 | |
289 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 290 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
291 | the returned font. See `wx.Window.SetWindowVariant` for more about |
292 | this. | |
f20a2e1f RD |
293 | """ |
294 | return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs) | |
295 | ||
d55e5bfc RD |
296 | #--------------------------------------------------------------------------- |
297 | ||
298 | STAY_ON_TOP = _windows_.STAY_ON_TOP | |
299 | ICONIZE = _windows_.ICONIZE | |
300 | MINIMIZE = _windows_.MINIMIZE | |
301 | MAXIMIZE = _windows_.MAXIMIZE | |
302 | CLOSE_BOX = _windows_.CLOSE_BOX | |
303 | THICK_FRAME = _windows_.THICK_FRAME | |
304 | SYSTEM_MENU = _windows_.SYSTEM_MENU | |
305 | MINIMIZE_BOX = _windows_.MINIMIZE_BOX | |
306 | MAXIMIZE_BOX = _windows_.MAXIMIZE_BOX | |
307 | TINY_CAPTION_HORIZ = _windows_.TINY_CAPTION_HORIZ | |
308 | TINY_CAPTION_VERT = _windows_.TINY_CAPTION_VERT | |
309 | RESIZE_BOX = _windows_.RESIZE_BOX | |
310 | RESIZE_BORDER = _windows_.RESIZE_BORDER | |
311 | DIALOG_NO_PARENT = _windows_.DIALOG_NO_PARENT | |
312 | DEFAULT_FRAME_STYLE = _windows_.DEFAULT_FRAME_STYLE | |
313 | DEFAULT_DIALOG_STYLE = _windows_.DEFAULT_DIALOG_STYLE | |
314 | FRAME_TOOL_WINDOW = _windows_.FRAME_TOOL_WINDOW | |
315 | FRAME_FLOAT_ON_PARENT = _windows_.FRAME_FLOAT_ON_PARENT | |
316 | FRAME_NO_WINDOW_MENU = _windows_.FRAME_NO_WINDOW_MENU | |
317 | FRAME_NO_TASKBAR = _windows_.FRAME_NO_TASKBAR | |
318 | FRAME_SHAPED = _windows_.FRAME_SHAPED | |
b411df4a | 319 | FRAME_DRAWER = _windows_.FRAME_DRAWER |
d55e5bfc RD |
320 | DIALOG_MODAL = _windows_.DIALOG_MODAL |
321 | DIALOG_MODELESS = _windows_.DIALOG_MODELESS | |
322 | USER_COLOURS = _windows_.USER_COLOURS | |
323 | NO_3D = _windows_.NO_3D | |
324 | FULLSCREEN_NOMENUBAR = _windows_.FULLSCREEN_NOMENUBAR | |
325 | FULLSCREEN_NOTOOLBAR = _windows_.FULLSCREEN_NOTOOLBAR | |
326 | FULLSCREEN_NOSTATUSBAR = _windows_.FULLSCREEN_NOSTATUSBAR | |
327 | FULLSCREEN_NOBORDER = _windows_.FULLSCREEN_NOBORDER | |
328 | FULLSCREEN_NOCAPTION = _windows_.FULLSCREEN_NOCAPTION | |
329 | FULLSCREEN_ALL = _windows_.FULLSCREEN_ALL | |
330 | TOPLEVEL_EX_DIALOG = _windows_.TOPLEVEL_EX_DIALOG | |
c370783e RD |
331 | USER_ATTENTION_INFO = _windows_.USER_ATTENTION_INFO |
332 | USER_ATTENTION_ERROR = _windows_.USER_ATTENTION_ERROR | |
d55e5bfc RD |
333 | class TopLevelWindow(_core.Window): |
334 | def __init__(self): raise RuntimeError, "No constructor defined" | |
335 | def __repr__(self): | |
336 | return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
337 | def Maximize(*args, **kwargs): | |
338 | """Maximize(self, bool maximize=True)""" | |
339 | return _windows_.TopLevelWindow_Maximize(*args, **kwargs) | |
340 | ||
341 | def Restore(*args, **kwargs): | |
342 | """Restore(self)""" | |
343 | return _windows_.TopLevelWindow_Restore(*args, **kwargs) | |
344 | ||
345 | def Iconize(*args, **kwargs): | |
346 | """Iconize(self, bool iconize=True)""" | |
347 | return _windows_.TopLevelWindow_Iconize(*args, **kwargs) | |
348 | ||
349 | def IsMaximized(*args, **kwargs): | |
350 | """IsMaximized(self) -> bool""" | |
351 | return _windows_.TopLevelWindow_IsMaximized(*args, **kwargs) | |
352 | ||
353 | def IsIconized(*args, **kwargs): | |
354 | """IsIconized(self) -> bool""" | |
355 | return _windows_.TopLevelWindow_IsIconized(*args, **kwargs) | |
356 | ||
357 | def GetIcon(*args, **kwargs): | |
358 | """GetIcon(self) -> Icon""" | |
359 | return _windows_.TopLevelWindow_GetIcon(*args, **kwargs) | |
360 | ||
361 | def SetIcon(*args, **kwargs): | |
362 | """SetIcon(self, Icon icon)""" | |
363 | return _windows_.TopLevelWindow_SetIcon(*args, **kwargs) | |
364 | ||
365 | def SetIcons(*args, **kwargs): | |
366 | """SetIcons(self, wxIconBundle icons)""" | |
367 | return _windows_.TopLevelWindow_SetIcons(*args, **kwargs) | |
368 | ||
369 | def ShowFullScreen(*args, **kwargs): | |
370 | """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool""" | |
371 | return _windows_.TopLevelWindow_ShowFullScreen(*args, **kwargs) | |
372 | ||
373 | def IsFullScreen(*args, **kwargs): | |
374 | """IsFullScreen(self) -> bool""" | |
375 | return _windows_.TopLevelWindow_IsFullScreen(*args, **kwargs) | |
376 | ||
377 | def SetTitle(*args, **kwargs): | |
378 | """ | |
379 | SetTitle(self, String title) | |
380 | ||
381 | Sets the window's title. Applicable only to frames and dialogs. | |
382 | """ | |
383 | return _windows_.TopLevelWindow_SetTitle(*args, **kwargs) | |
384 | ||
385 | def GetTitle(*args, **kwargs): | |
386 | """ | |
387 | GetTitle(self) -> String | |
388 | ||
389 | Gets the window's title. Applicable only to frames and dialogs. | |
390 | """ | |
391 | return _windows_.TopLevelWindow_GetTitle(*args, **kwargs) | |
392 | ||
393 | def SetShape(*args, **kwargs): | |
394 | """SetShape(self, Region region) -> bool""" | |
395 | return _windows_.TopLevelWindow_SetShape(*args, **kwargs) | |
396 | ||
c370783e RD |
397 | def RequestUserAttention(*args, **kwargs): |
398 | """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)""" | |
399 | return _windows_.TopLevelWindow_RequestUserAttention(*args, **kwargs) | |
400 | ||
5e483524 RD |
401 | def IsActive(*args, **kwargs): |
402 | """IsActive(self) -> bool""" | |
403 | return _windows_.TopLevelWindow_IsActive(*args, **kwargs) | |
404 | ||
d55e5bfc RD |
405 | def MacSetMetalAppearance(*args, **kwargs): |
406 | """MacSetMetalAppearance(self, bool on)""" | |
407 | return _windows_.TopLevelWindow_MacSetMetalAppearance(*args, **kwargs) | |
408 | ||
409 | def MacGetMetalAppearance(*args, **kwargs): | |
410 | """MacGetMetalAppearance(self) -> bool""" | |
411 | return _windows_.TopLevelWindow_MacGetMetalAppearance(*args, **kwargs) | |
412 | ||
413 | ||
414 | class TopLevelWindowPtr(TopLevelWindow): | |
415 | def __init__(self, this): | |
416 | self.this = this | |
417 | if not hasattr(self,"thisown"): self.thisown = 0 | |
418 | self.__class__ = TopLevelWindow | |
419 | _windows_.TopLevelWindow_swigregister(TopLevelWindowPtr) | |
420 | cvar = _windows_.cvar | |
421 | FrameNameStr = cvar.FrameNameStr | |
422 | DialogNameStr = cvar.DialogNameStr | |
423 | StatusLineNameStr = cvar.StatusLineNameStr | |
424 | ToolBarNameStr = cvar.ToolBarNameStr | |
425 | ||
426 | #--------------------------------------------------------------------------- | |
427 | ||
428 | class Frame(TopLevelWindow): | |
429 | def __repr__(self): | |
430 | return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
431 | def __init__(self, *args, **kwargs): | |
432 | """ | |
bfddbb17 RD |
433 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
434 | Point pos=DefaultPosition, Size size=DefaultSize, | |
435 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame | |
d55e5bfc RD |
436 | """ |
437 | newobj = _windows_.new_Frame(*args, **kwargs) | |
438 | self.this = newobj.this | |
439 | self.thisown = 1 | |
440 | del newobj.thisown | |
441 | self._setOORInfo(self) | |
442 | ||
443 | def Create(*args, **kwargs): | |
444 | """ | |
bfddbb17 RD |
445 | Create(self, Window parent, int id=-1, String title=EmptyString, |
446 | Point pos=DefaultPosition, Size size=DefaultSize, | |
447 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool | |
d55e5bfc RD |
448 | """ |
449 | return _windows_.Frame_Create(*args, **kwargs) | |
450 | ||
451 | def GetClientAreaOrigin(*args, **kwargs): | |
452 | """ | |
453 | GetClientAreaOrigin(self) -> Point | |
454 | ||
455 | Get the origin of the client area of the window relative to the | |
456 | window's top left corner (the client area may be shifted because of | |
457 | the borders, scrollbars, other decorations...) | |
458 | """ | |
459 | return _windows_.Frame_GetClientAreaOrigin(*args, **kwargs) | |
460 | ||
461 | def SendSizeEvent(*args, **kwargs): | |
462 | """SendSizeEvent(self)""" | |
463 | return _windows_.Frame_SendSizeEvent(*args, **kwargs) | |
464 | ||
465 | def SetMenuBar(*args, **kwargs): | |
466 | """SetMenuBar(self, MenuBar menubar)""" | |
467 | return _windows_.Frame_SetMenuBar(*args, **kwargs) | |
468 | ||
469 | def GetMenuBar(*args, **kwargs): | |
470 | """GetMenuBar(self) -> MenuBar""" | |
471 | return _windows_.Frame_GetMenuBar(*args, **kwargs) | |
472 | ||
473 | def ProcessCommand(*args, **kwargs): | |
474 | """ProcessCommand(self, int winid) -> bool""" | |
475 | return _windows_.Frame_ProcessCommand(*args, **kwargs) | |
476 | ||
477 | Command = ProcessCommand | |
478 | def CreateStatusBar(*args, **kwargs): | |
479 | """ | |
480 | CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0, | |
481 | String name=StatusLineNameStr) -> StatusBar | |
482 | """ | |
483 | return _windows_.Frame_CreateStatusBar(*args, **kwargs) | |
484 | ||
485 | def GetStatusBar(*args, **kwargs): | |
486 | """GetStatusBar(self) -> StatusBar""" | |
487 | return _windows_.Frame_GetStatusBar(*args, **kwargs) | |
488 | ||
489 | def SetStatusBar(*args, **kwargs): | |
490 | """SetStatusBar(self, StatusBar statBar)""" | |
491 | return _windows_.Frame_SetStatusBar(*args, **kwargs) | |
492 | ||
493 | def SetStatusText(*args, **kwargs): | |
494 | """SetStatusText(self, String text, int number=0)""" | |
495 | return _windows_.Frame_SetStatusText(*args, **kwargs) | |
496 | ||
497 | def SetStatusWidths(*args, **kwargs): | |
498 | """SetStatusWidths(self, int widths, int widths_field)""" | |
499 | return _windows_.Frame_SetStatusWidths(*args, **kwargs) | |
500 | ||
501 | def PushStatusText(*args, **kwargs): | |
502 | """PushStatusText(self, String text, int number=0)""" | |
503 | return _windows_.Frame_PushStatusText(*args, **kwargs) | |
504 | ||
505 | def PopStatusText(*args, **kwargs): | |
506 | """PopStatusText(self, int number=0)""" | |
507 | return _windows_.Frame_PopStatusText(*args, **kwargs) | |
508 | ||
509 | def SetStatusBarPane(*args, **kwargs): | |
510 | """SetStatusBarPane(self, int n)""" | |
511 | return _windows_.Frame_SetStatusBarPane(*args, **kwargs) | |
512 | ||
513 | def GetStatusBarPane(*args, **kwargs): | |
514 | """GetStatusBarPane(self) -> int""" | |
515 | return _windows_.Frame_GetStatusBarPane(*args, **kwargs) | |
516 | ||
517 | def CreateToolBar(*args, **kwargs): | |
518 | """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar""" | |
519 | return _windows_.Frame_CreateToolBar(*args, **kwargs) | |
520 | ||
521 | def GetToolBar(*args, **kwargs): | |
522 | """GetToolBar(self) -> wxToolBar""" | |
523 | return _windows_.Frame_GetToolBar(*args, **kwargs) | |
524 | ||
525 | def SetToolBar(*args, **kwargs): | |
526 | """SetToolBar(self, wxToolBar toolbar)""" | |
527 | return _windows_.Frame_SetToolBar(*args, **kwargs) | |
528 | ||
529 | def DoGiveHelp(*args, **kwargs): | |
530 | """DoGiveHelp(self, String text, bool show)""" | |
531 | return _windows_.Frame_DoGiveHelp(*args, **kwargs) | |
532 | ||
533 | def DoMenuUpdates(*args, **kwargs): | |
534 | """DoMenuUpdates(self, Menu menu=None)""" | |
535 | return _windows_.Frame_DoMenuUpdates(*args, **kwargs) | |
536 | ||
f20a2e1f RD |
537 | def GetClassDefaultAttributes(*args, **kwargs): |
538 | """ | |
539 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
540 | ||
15817c7e RD |
541 | Get the default attributes for this class. This is useful if you want |
542 | to use the same font or colour in your own control as in a standard | |
543 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
544 | colours or fonts which might look completely out of place on the |
545 | user's system, especially if it uses themes. | |
f20a2e1f RD |
546 | |
547 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 548 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
549 | the returned font. See `wx.Window.SetWindowVariant` for more about |
550 | this. | |
f20a2e1f RD |
551 | """ |
552 | return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs) | |
553 | ||
554 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
d55e5bfc RD |
555 | |
556 | class FramePtr(Frame): | |
557 | def __init__(self, this): | |
558 | self.this = this | |
559 | if not hasattr(self,"thisown"): self.thisown = 0 | |
560 | self.__class__ = Frame | |
561 | _windows_.Frame_swigregister(FramePtr) | |
562 | ||
563 | def PreFrame(*args, **kwargs): | |
564 | """PreFrame() -> Frame""" | |
565 | val = _windows_.new_PreFrame(*args, **kwargs) | |
566 | val.thisown = 1 | |
567 | return val | |
568 | ||
f20a2e1f RD |
569 | def Frame_GetClassDefaultAttributes(*args, **kwargs): |
570 | """ | |
571 | Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
572 | ||
15817c7e RD |
573 | Get the default attributes for this class. This is useful if you want |
574 | to use the same font or colour in your own control as in a standard | |
575 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
576 | colours or fonts which might look completely out of place on the |
577 | user's system, especially if it uses themes. | |
f20a2e1f RD |
578 | |
579 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 580 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
581 | the returned font. See `wx.Window.SetWindowVariant` for more about |
582 | this. | |
f20a2e1f RD |
583 | """ |
584 | return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs) | |
585 | ||
d55e5bfc RD |
586 | #--------------------------------------------------------------------------- |
587 | ||
588 | class Dialog(TopLevelWindow): | |
589 | def __repr__(self): | |
590 | return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
591 | def __init__(self, *args, **kwargs): | |
592 | """ | |
bfddbb17 RD |
593 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
594 | Point pos=DefaultPosition, Size size=DefaultSize, | |
595 | long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog | |
d55e5bfc RD |
596 | """ |
597 | newobj = _windows_.new_Dialog(*args, **kwargs) | |
598 | self.this = newobj.this | |
599 | self.thisown = 1 | |
600 | del newobj.thisown | |
601 | self._setOORInfo(self) | |
602 | ||
603 | def Create(*args, **kwargs): | |
604 | """ | |
bfddbb17 RD |
605 | Create(self, Window parent, int id=-1, String title=EmptyString, |
606 | Point pos=DefaultPosition, Size size=DefaultSize, | |
607 | long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool | |
d55e5bfc RD |
608 | """ |
609 | return _windows_.Dialog_Create(*args, **kwargs) | |
610 | ||
611 | def SetReturnCode(*args, **kwargs): | |
612 | """SetReturnCode(self, int returnCode)""" | |
613 | return _windows_.Dialog_SetReturnCode(*args, **kwargs) | |
614 | ||
615 | def GetReturnCode(*args, **kwargs): | |
616 | """GetReturnCode(self) -> int""" | |
617 | return _windows_.Dialog_GetReturnCode(*args, **kwargs) | |
618 | ||
619 | def CreateTextSizer(*args, **kwargs): | |
620 | """CreateTextSizer(self, String message) -> Sizer""" | |
621 | return _windows_.Dialog_CreateTextSizer(*args, **kwargs) | |
622 | ||
623 | def CreateButtonSizer(*args, **kwargs): | |
624 | """CreateButtonSizer(self, long flags) -> Sizer""" | |
625 | return _windows_.Dialog_CreateButtonSizer(*args, **kwargs) | |
626 | ||
627 | def IsModal(*args, **kwargs): | |
628 | """IsModal(self) -> bool""" | |
629 | return _windows_.Dialog_IsModal(*args, **kwargs) | |
630 | ||
631 | def ShowModal(*args, **kwargs): | |
632 | """ShowModal(self) -> int""" | |
633 | return _windows_.Dialog_ShowModal(*args, **kwargs) | |
634 | ||
635 | def EndModal(*args, **kwargs): | |
636 | """EndModal(self, int retCode)""" | |
637 | return _windows_.Dialog_EndModal(*args, **kwargs) | |
638 | ||
f20a2e1f RD |
639 | def GetClassDefaultAttributes(*args, **kwargs): |
640 | """ | |
641 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
642 | ||
15817c7e RD |
643 | Get the default attributes for this class. This is useful if you want |
644 | to use the same font or colour in your own control as in a standard | |
645 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
646 | colours or fonts which might look completely out of place on the |
647 | user's system, especially if it uses themes. | |
f20a2e1f RD |
648 | |
649 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 650 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
651 | the returned font. See `wx.Window.SetWindowVariant` for more about |
652 | this. | |
f20a2e1f RD |
653 | """ |
654 | return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs) | |
655 | ||
656 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
bf26d883 RD |
657 | def SendSizeEvent(self): |
658 | self.ProcessEvent(wx.SizeEvent((-1,-1))) | |
659 | ||
d55e5bfc RD |
660 | |
661 | class DialogPtr(Dialog): | |
662 | def __init__(self, this): | |
663 | self.this = this | |
664 | if not hasattr(self,"thisown"): self.thisown = 0 | |
665 | self.__class__ = Dialog | |
666 | _windows_.Dialog_swigregister(DialogPtr) | |
667 | ||
668 | def PreDialog(*args, **kwargs): | |
669 | """PreDialog() -> Dialog""" | |
670 | val = _windows_.new_PreDialog(*args, **kwargs) | |
671 | val.thisown = 1 | |
672 | return val | |
673 | ||
f20a2e1f RD |
674 | def Dialog_GetClassDefaultAttributes(*args, **kwargs): |
675 | """ | |
676 | Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
677 | ||
15817c7e RD |
678 | Get the default attributes for this class. This is useful if you want |
679 | to use the same font or colour in your own control as in a standard | |
680 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
681 | colours or fonts which might look completely out of place on the |
682 | user's system, especially if it uses themes. | |
f20a2e1f RD |
683 | |
684 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 685 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
686 | the returned font. See `wx.Window.SetWindowVariant` for more about |
687 | this. | |
f20a2e1f RD |
688 | """ |
689 | return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs) | |
690 | ||
d55e5bfc RD |
691 | #--------------------------------------------------------------------------- |
692 | ||
693 | class MiniFrame(Frame): | |
694 | def __repr__(self): | |
695 | return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
696 | def __init__(self, *args, **kwargs): | |
697 | """ | |
bfddbb17 RD |
698 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
699 | Point pos=DefaultPosition, Size size=DefaultSize, | |
700 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame | |
d55e5bfc RD |
701 | """ |
702 | newobj = _windows_.new_MiniFrame(*args, **kwargs) | |
703 | self.this = newobj.this | |
704 | self.thisown = 1 | |
705 | del newobj.thisown | |
706 | self._setOORInfo(self) | |
707 | ||
708 | def Create(*args, **kwargs): | |
709 | """ | |
bfddbb17 RD |
710 | Create(self, Window parent, int id=-1, String title=EmptyString, |
711 | Point pos=DefaultPosition, Size size=DefaultSize, | |
712 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool | |
d55e5bfc RD |
713 | """ |
714 | return _windows_.MiniFrame_Create(*args, **kwargs) | |
715 | ||
716 | ||
717 | class MiniFramePtr(MiniFrame): | |
718 | def __init__(self, this): | |
719 | self.this = this | |
720 | if not hasattr(self,"thisown"): self.thisown = 0 | |
721 | self.__class__ = MiniFrame | |
722 | _windows_.MiniFrame_swigregister(MiniFramePtr) | |
723 | ||
724 | def PreMiniFrame(*args, **kwargs): | |
725 | """PreMiniFrame() -> MiniFrame""" | |
726 | val = _windows_.new_PreMiniFrame(*args, **kwargs) | |
727 | val.thisown = 1 | |
728 | return val | |
729 | ||
730 | #--------------------------------------------------------------------------- | |
731 | ||
732 | SPLASH_CENTRE_ON_PARENT = _windows_.SPLASH_CENTRE_ON_PARENT | |
733 | SPLASH_CENTRE_ON_SCREEN = _windows_.SPLASH_CENTRE_ON_SCREEN | |
734 | SPLASH_NO_CENTRE = _windows_.SPLASH_NO_CENTRE | |
735 | SPLASH_TIMEOUT = _windows_.SPLASH_TIMEOUT | |
736 | SPLASH_NO_TIMEOUT = _windows_.SPLASH_NO_TIMEOUT | |
737 | class SplashScreenWindow(_core.Window): | |
738 | def __repr__(self): | |
739 | return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
740 | def __init__(self, *args, **kwargs): | |
741 | """ | |
742 | __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition, | |
743 | Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow | |
744 | """ | |
745 | newobj = _windows_.new_SplashScreenWindow(*args, **kwargs) | |
746 | self.this = newobj.this | |
747 | self.thisown = 1 | |
748 | del newobj.thisown | |
749 | self._setOORInfo(self) | |
750 | ||
751 | def SetBitmap(*args, **kwargs): | |
752 | """SetBitmap(self, Bitmap bitmap)""" | |
753 | return _windows_.SplashScreenWindow_SetBitmap(*args, **kwargs) | |
754 | ||
755 | def GetBitmap(*args, **kwargs): | |
756 | """GetBitmap(self) -> Bitmap""" | |
757 | return _windows_.SplashScreenWindow_GetBitmap(*args, **kwargs) | |
758 | ||
759 | ||
760 | class SplashScreenWindowPtr(SplashScreenWindow): | |
761 | def __init__(self, this): | |
762 | self.this = this | |
763 | if not hasattr(self,"thisown"): self.thisown = 0 | |
764 | self.__class__ = SplashScreenWindow | |
765 | _windows_.SplashScreenWindow_swigregister(SplashScreenWindowPtr) | |
766 | ||
767 | class SplashScreen(Frame): | |
768 | def __repr__(self): | |
769 | return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
770 | def __init__(self, *args, **kwargs): | |
771 | """ | |
772 | __init__(self, Bitmap bitmap, long splashStyle, int milliseconds, | |
bfddbb17 | 773 | Window parent, int id=-1, Point pos=DefaultPosition, |
d55e5bfc RD |
774 | Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen |
775 | """ | |
776 | newobj = _windows_.new_SplashScreen(*args, **kwargs) | |
777 | self.this = newobj.this | |
778 | self.thisown = 1 | |
779 | del newobj.thisown | |
780 | self._setOORInfo(self) | |
781 | ||
782 | def GetSplashStyle(*args, **kwargs): | |
783 | """GetSplashStyle(self) -> long""" | |
784 | return _windows_.SplashScreen_GetSplashStyle(*args, **kwargs) | |
785 | ||
786 | def GetSplashWindow(*args, **kwargs): | |
787 | """GetSplashWindow(self) -> SplashScreenWindow""" | |
788 | return _windows_.SplashScreen_GetSplashWindow(*args, **kwargs) | |
789 | ||
790 | def GetTimeout(*args, **kwargs): | |
791 | """GetTimeout(self) -> int""" | |
792 | return _windows_.SplashScreen_GetTimeout(*args, **kwargs) | |
793 | ||
794 | ||
795 | class SplashScreenPtr(SplashScreen): | |
796 | def __init__(self, this): | |
797 | self.this = this | |
798 | if not hasattr(self,"thisown"): self.thisown = 0 | |
799 | self.__class__ = SplashScreen | |
800 | _windows_.SplashScreen_swigregister(SplashScreenPtr) | |
801 | ||
802 | #--------------------------------------------------------------------------- | |
803 | ||
03837c5c RD |
804 | SB_NORMAL = _windows_.SB_NORMAL |
805 | SB_FLAT = _windows_.SB_FLAT | |
806 | SB_RAISED = _windows_.SB_RAISED | |
d55e5bfc RD |
807 | class StatusBar(_core.Window): |
808 | def __repr__(self): | |
809 | return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
810 | def __init__(self, *args, **kwargs): | |
811 | """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar""" | |
812 | newobj = _windows_.new_StatusBar(*args, **kwargs) | |
813 | self.this = newobj.this | |
814 | self.thisown = 1 | |
815 | del newobj.thisown | |
816 | self._setOORInfo(self) | |
817 | ||
818 | def Create(*args, **kwargs): | |
bfddbb17 | 819 | """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool""" |
d55e5bfc RD |
820 | return _windows_.StatusBar_Create(*args, **kwargs) |
821 | ||
822 | def SetFieldsCount(*args, **kwargs): | |
823 | """SetFieldsCount(self, int number=1)""" | |
824 | return _windows_.StatusBar_SetFieldsCount(*args, **kwargs) | |
825 | ||
826 | def GetFieldsCount(*args, **kwargs): | |
827 | """GetFieldsCount(self) -> int""" | |
828 | return _windows_.StatusBar_GetFieldsCount(*args, **kwargs) | |
829 | ||
830 | def SetStatusText(*args, **kwargs): | |
831 | """SetStatusText(self, String text, int number=0)""" | |
832 | return _windows_.StatusBar_SetStatusText(*args, **kwargs) | |
833 | ||
834 | def GetStatusText(*args, **kwargs): | |
835 | """GetStatusText(self, int number=0) -> String""" | |
836 | return _windows_.StatusBar_GetStatusText(*args, **kwargs) | |
837 | ||
838 | def PushStatusText(*args, **kwargs): | |
839 | """PushStatusText(self, String text, int number=0)""" | |
840 | return _windows_.StatusBar_PushStatusText(*args, **kwargs) | |
841 | ||
842 | def PopStatusText(*args, **kwargs): | |
843 | """PopStatusText(self, int number=0)""" | |
844 | return _windows_.StatusBar_PopStatusText(*args, **kwargs) | |
845 | ||
846 | def SetStatusWidths(*args, **kwargs): | |
847 | """SetStatusWidths(self, int widths, int widths_field)""" | |
848 | return _windows_.StatusBar_SetStatusWidths(*args, **kwargs) | |
849 | ||
03837c5c RD |
850 | def SetStatusStyles(*args, **kwargs): |
851 | """SetStatusStyles(self, int styles, int styles_field)""" | |
852 | return _windows_.StatusBar_SetStatusStyles(*args, **kwargs) | |
853 | ||
d55e5bfc RD |
854 | def GetFieldRect(*args, **kwargs): |
855 | """GetFieldRect(self, int i) -> Rect""" | |
856 | return _windows_.StatusBar_GetFieldRect(*args, **kwargs) | |
857 | ||
858 | def SetMinHeight(*args, **kwargs): | |
859 | """SetMinHeight(self, int height)""" | |
860 | return _windows_.StatusBar_SetMinHeight(*args, **kwargs) | |
861 | ||
862 | def GetBorderX(*args, **kwargs): | |
863 | """GetBorderX(self) -> int""" | |
864 | return _windows_.StatusBar_GetBorderX(*args, **kwargs) | |
865 | ||
866 | def GetBorderY(*args, **kwargs): | |
867 | """GetBorderY(self) -> int""" | |
868 | return _windows_.StatusBar_GetBorderY(*args, **kwargs) | |
869 | ||
f20a2e1f RD |
870 | def GetClassDefaultAttributes(*args, **kwargs): |
871 | """ | |
872 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
873 | ||
15817c7e RD |
874 | Get the default attributes for this class. This is useful if you want |
875 | to use the same font or colour in your own control as in a standard | |
876 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
877 | colours or fonts which might look completely out of place on the |
878 | user's system, especially if it uses themes. | |
f20a2e1f RD |
879 | |
880 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 881 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
882 | the returned font. See `wx.Window.SetWindowVariant` for more about |
883 | this. | |
f20a2e1f RD |
884 | """ |
885 | return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs) | |
886 | ||
887 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
d55e5bfc RD |
888 | |
889 | class StatusBarPtr(StatusBar): | |
890 | def __init__(self, this): | |
891 | self.this = this | |
892 | if not hasattr(self,"thisown"): self.thisown = 0 | |
893 | self.__class__ = StatusBar | |
894 | _windows_.StatusBar_swigregister(StatusBarPtr) | |
895 | ||
896 | def PreStatusBar(*args, **kwargs): | |
897 | """PreStatusBar() -> StatusBar""" | |
898 | val = _windows_.new_PreStatusBar(*args, **kwargs) | |
899 | val.thisown = 1 | |
900 | return val | |
901 | ||
f20a2e1f RD |
902 | def StatusBar_GetClassDefaultAttributes(*args, **kwargs): |
903 | """ | |
904 | StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
905 | ||
15817c7e RD |
906 | Get the default attributes for this class. This is useful if you want |
907 | to use the same font or colour in your own control as in a standard | |
908 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
909 | colours or fonts which might look completely out of place on the |
910 | user's system, especially if it uses themes. | |
f20a2e1f RD |
911 | |
912 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 913 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
914 | the returned font. See `wx.Window.SetWindowVariant` for more about |
915 | this. | |
f20a2e1f RD |
916 | """ |
917 | return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs) | |
918 | ||
d55e5bfc RD |
919 | #--------------------------------------------------------------------------- |
920 | ||
921 | SP_NOBORDER = _windows_.SP_NOBORDER | |
922 | SP_NOSASH = _windows_.SP_NOSASH | |
923 | SP_PERMIT_UNSPLIT = _windows_.SP_PERMIT_UNSPLIT | |
924 | SP_LIVE_UPDATE = _windows_.SP_LIVE_UPDATE | |
925 | SP_3DSASH = _windows_.SP_3DSASH | |
926 | SP_3DBORDER = _windows_.SP_3DBORDER | |
927 | SP_NO_XP_THEME = _windows_.SP_NO_XP_THEME | |
928 | SP_BORDER = _windows_.SP_BORDER | |
929 | SP_3D = _windows_.SP_3D | |
930 | SPLIT_HORIZONTAL = _windows_.SPLIT_HORIZONTAL | |
931 | SPLIT_VERTICAL = _windows_.SPLIT_VERTICAL | |
932 | SPLIT_DRAG_NONE = _windows_.SPLIT_DRAG_NONE | |
933 | SPLIT_DRAG_DRAGGING = _windows_.SPLIT_DRAG_DRAGGING | |
934 | SPLIT_DRAG_LEFT_DOWN = _windows_.SPLIT_DRAG_LEFT_DOWN | |
935 | class SplitterWindow(_core.Window): | |
936 | """ | |
15817c7e RD |
937 | wx.SplitterWindow manages up to two subwindows or panes, with an |
938 | optional vertical or horizontal split which can be used with the mouse | |
939 | or programmatically. | |
d55e5bfc RD |
940 | """ |
941 | def __repr__(self): | |
942 | return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
943 | def __init__(self, *args, **kwargs): | |
944 | """ | |
945 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
946 | Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow | |
947 | ||
948 | Constructor. Creates and shows a SplitterWindow. | |
949 | """ | |
950 | if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] | |
951 | newobj = _windows_.new_SplitterWindow(*args, **kwargs) | |
952 | self.this = newobj.this | |
953 | self.thisown = 1 | |
954 | del newobj.thisown | |
955 | self._setOORInfo(self) | |
956 | ||
957 | def Create(*args, **kwargs): | |
958 | """ | |
959 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
960 | Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool | |
961 | ||
962 | Create the GUI part of the SplitterWindow for the 2-phase create. | |
963 | """ | |
964 | return _windows_.SplitterWindow_Create(*args, **kwargs) | |
965 | ||
966 | def GetWindow1(*args, **kwargs): | |
967 | """ | |
968 | GetWindow1(self) -> Window | |
969 | ||
970 | Gets the only or left/top pane. | |
971 | """ | |
972 | return _windows_.SplitterWindow_GetWindow1(*args, **kwargs) | |
973 | ||
974 | def GetWindow2(*args, **kwargs): | |
975 | """ | |
976 | GetWindow2(self) -> Window | |
977 | ||
978 | Gets the right/bottom pane. | |
979 | """ | |
980 | return _windows_.SplitterWindow_GetWindow2(*args, **kwargs) | |
981 | ||
982 | def SetSplitMode(*args, **kwargs): | |
983 | """ | |
984 | SetSplitMode(self, int mode) | |
985 | ||
986 | Sets the split mode. The mode can be wx.SPLIT_VERTICAL or | |
15817c7e RD |
987 | wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not |
988 | update the display. | |
d55e5bfc RD |
989 | """ |
990 | return _windows_.SplitterWindow_SetSplitMode(*args, **kwargs) | |
991 | ||
992 | def GetSplitMode(*args, **kwargs): | |
993 | """ | |
994 | GetSplitMode(self) -> int | |
995 | ||
996 | Gets the split mode | |
997 | """ | |
998 | return _windows_.SplitterWindow_GetSplitMode(*args, **kwargs) | |
999 | ||
1000 | def Initialize(*args, **kwargs): | |
1001 | """ | |
1002 | Initialize(self, Window window) | |
1003 | ||
15817c7e RD |
1004 | Initializes the splitter window to have one pane. This should be |
1005 | called if you wish to initially view only a single pane in the | |
1006 | splitter window. | |
d55e5bfc RD |
1007 | """ |
1008 | return _windows_.SplitterWindow_Initialize(*args, **kwargs) | |
1009 | ||
1010 | def SplitVertically(*args, **kwargs): | |
1011 | """ | |
1012 | SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool | |
1013 | ||
1014 | Initializes the left and right panes of the splitter window. | |
d55e5bfc RD |
1015 | """ |
1016 | return _windows_.SplitterWindow_SplitVertically(*args, **kwargs) | |
1017 | ||
1018 | def SplitHorizontally(*args, **kwargs): | |
1019 | """ | |
1020 | SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool | |
1021 | ||
1022 | Initializes the top and bottom panes of the splitter window. | |
d55e5bfc RD |
1023 | """ |
1024 | return _windows_.SplitterWindow_SplitHorizontally(*args, **kwargs) | |
1025 | ||
1026 | def Unsplit(*args, **kwargs): | |
1027 | """ | |
1028 | Unsplit(self, Window toRemove=None) -> bool | |
1029 | ||
15817c7e RD |
1030 | Unsplits the window. Pass the pane to remove, or None to remove the |
1031 | right or bottom pane. Returns True if successful, False otherwise (the | |
1032 | window was not split). | |
d55e5bfc RD |
1033 | |
1034 | This function will not actually delete the pane being | |
1035 | removed; it sends EVT_SPLITTER_UNSPLIT which can be handled | |
1036 | for the desired behaviour. By default, the pane being | |
1037 | removed is only hidden. | |
1038 | """ | |
1039 | return _windows_.SplitterWindow_Unsplit(*args, **kwargs) | |
1040 | ||
1041 | def ReplaceWindow(*args, **kwargs): | |
1042 | """ | |
1043 | ReplaceWindow(self, Window winOld, Window winNew) -> bool | |
1044 | ||
1045 | This function replaces one of the windows managed by the | |
15817c7e RD |
1046 | SplitterWindow with another one. It is in general better to use it |
1047 | instead of calling Unsplit() and then resplitting the window back | |
1048 | because it will provoke much less flicker. It is valid to call this | |
1049 | function whether the splitter has two windows or only one. | |
1050 | ||
1051 | Both parameters should be non-None and winOld must specify one of the | |
1052 | windows managed by the splitter. If the parameters are incorrect or | |
1053 | the window couldn't be replaced, False is returned. Otherwise the | |
1054 | function will return True, but please notice that it will not Destroy | |
1055 | the replaced window and you may wish to do it yourself. | |
d55e5bfc RD |
1056 | """ |
1057 | return _windows_.SplitterWindow_ReplaceWindow(*args, **kwargs) | |
1058 | ||
1059 | def UpdateSize(*args, **kwargs): | |
1060 | """ | |
1061 | UpdateSize(self) | |
1062 | ||
15817c7e RD |
1063 | Causes any pending sizing of the sash and child panes to take place |
1064 | immediately. | |
d55e5bfc | 1065 | |
15817c7e RD |
1066 | Such resizing normally takes place in idle time, in order to wait for |
1067 | layout to be completed. However, this can cause unacceptable flicker | |
1068 | as the panes are resized after the window has been shown. To work | |
1069 | around this, you can perform window layout (for example by sending a | |
1070 | size event to the parent window), and then call this function, before | |
1071 | showing the top-level window. | |
d55e5bfc RD |
1072 | """ |
1073 | return _windows_.SplitterWindow_UpdateSize(*args, **kwargs) | |
1074 | ||
1075 | def IsSplit(*args, **kwargs): | |
1076 | """ | |
1077 | IsSplit(self) -> bool | |
1078 | ||
1079 | Is the window split? | |
1080 | """ | |
1081 | return _windows_.SplitterWindow_IsSplit(*args, **kwargs) | |
1082 | ||
1083 | def SetSashSize(*args, **kwargs): | |
1084 | """ | |
1085 | SetSashSize(self, int width) | |
1086 | ||
6e0de3df | 1087 | Sets the sash size. Currently a NOP. |
d55e5bfc RD |
1088 | """ |
1089 | return _windows_.SplitterWindow_SetSashSize(*args, **kwargs) | |
1090 | ||
1091 | def SetBorderSize(*args, **kwargs): | |
1092 | """ | |
1093 | SetBorderSize(self, int width) | |
1094 | ||
6e0de3df | 1095 | Sets the border size. Currently a NOP. |
d55e5bfc RD |
1096 | """ |
1097 | return _windows_.SplitterWindow_SetBorderSize(*args, **kwargs) | |
1098 | ||
1099 | def GetSashSize(*args, **kwargs): | |
1100 | """ | |
1101 | GetSashSize(self) -> int | |
1102 | ||
1103 | Gets the sash size | |
1104 | """ | |
1105 | return _windows_.SplitterWindow_GetSashSize(*args, **kwargs) | |
1106 | ||
1107 | def GetBorderSize(*args, **kwargs): | |
1108 | """ | |
1109 | GetBorderSize(self) -> int | |
1110 | ||
1111 | Gets the border size | |
1112 | """ | |
1113 | return _windows_.SplitterWindow_GetBorderSize(*args, **kwargs) | |
1114 | ||
1115 | def SetSashPosition(*args, **kwargs): | |
1116 | """ | |
1117 | SetSashPosition(self, int position, bool redraw=True) | |
1118 | ||
15817c7e RD |
1119 | Sets the sash position, in pixels. If redraw is Ttrue then the panes |
1120 | are resized and the sash and border are redrawn. | |
d55e5bfc RD |
1121 | """ |
1122 | return _windows_.SplitterWindow_SetSashPosition(*args, **kwargs) | |
1123 | ||
1124 | def GetSashPosition(*args, **kwargs): | |
1125 | """ | |
1126 | GetSashPosition(self) -> int | |
1127 | ||
1128 | Returns the surrent sash position. | |
1129 | """ | |
1130 | return _windows_.SplitterWindow_GetSashPosition(*args, **kwargs) | |
1131 | ||
5cbf236d RD |
1132 | def SetSashGravity(*args, **kwargs): |
1133 | """ | |
1134 | SetSashGravity(self, double gravity) | |
1135 | ||
1136 | Set the sash gravity. Gravity is a floating-point factor between 0.0 | |
1137 | and 1.0 which controls position of sash while resizing the | |
1138 | `wx.SplitterWindow`. The gravity specifies how much the left/top | |
1139 | window will grow while resizing. | |
1140 | """ | |
1141 | return _windows_.SplitterWindow_SetSashGravity(*args, **kwargs) | |
1142 | ||
1143 | def GetSashGravity(*args, **kwargs): | |
1144 | """ | |
1145 | GetSashGravity(self) -> double | |
1146 | ||
1147 | Gets the sash gravity. | |
1148 | ||
1149 | :see: `SetSashGravity` | |
1150 | ||
1151 | """ | |
1152 | return _windows_.SplitterWindow_GetSashGravity(*args, **kwargs) | |
1153 | ||
d55e5bfc RD |
1154 | def SetMinimumPaneSize(*args, **kwargs): |
1155 | """ | |
1156 | SetMinimumPaneSize(self, int min) | |
1157 | ||
1158 | Sets the minimum pane size in pixels. | |
1159 | ||
15817c7e RD |
1160 | The default minimum pane size is zero, which means that either pane |
1161 | can be reduced to zero by dragging the sash, thus removing one of the | |
1162 | panes. To prevent this behaviour (and veto out-of-range sash | |
1163 | dragging), set a minimum size, for example 20 pixels. If the | |
1164 | wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created, | |
1165 | the window may be unsplit even if minimum size is non-zero. | |
d55e5bfc RD |
1166 | """ |
1167 | return _windows_.SplitterWindow_SetMinimumPaneSize(*args, **kwargs) | |
1168 | ||
1169 | def GetMinimumPaneSize(*args, **kwargs): | |
1170 | """ | |
1171 | GetMinimumPaneSize(self) -> int | |
1172 | ||
1173 | Gets the minimum pane size in pixels. | |
1174 | """ | |
1175 | return _windows_.SplitterWindow_GetMinimumPaneSize(*args, **kwargs) | |
1176 | ||
1177 | def SashHitTest(*args, **kwargs): | |
1178 | """ | |
1179 | SashHitTest(self, int x, int y, int tolerance=5) -> bool | |
1180 | ||
1181 | Tests for x, y over the sash | |
1182 | """ | |
1183 | return _windows_.SplitterWindow_SashHitTest(*args, **kwargs) | |
1184 | ||
1185 | def SizeWindows(*args, **kwargs): | |
1186 | """ | |
1187 | SizeWindows(self) | |
1188 | ||
1189 | Resizes subwindows | |
1190 | """ | |
1191 | return _windows_.SplitterWindow_SizeWindows(*args, **kwargs) | |
1192 | ||
1193 | def SetNeedUpdating(*args, **kwargs): | |
1194 | """SetNeedUpdating(self, bool needUpdating)""" | |
1195 | return _windows_.SplitterWindow_SetNeedUpdating(*args, **kwargs) | |
1196 | ||
1197 | def GetNeedUpdating(*args, **kwargs): | |
1198 | """GetNeedUpdating(self) -> bool""" | |
1199 | return _windows_.SplitterWindow_GetNeedUpdating(*args, **kwargs) | |
1200 | ||
f20a2e1f RD |
1201 | def GetClassDefaultAttributes(*args, **kwargs): |
1202 | """ | |
1203 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1204 | ||
15817c7e RD |
1205 | Get the default attributes for this class. This is useful if you want |
1206 | to use the same font or colour in your own control as in a standard | |
1207 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
1208 | colours or fonts which might look completely out of place on the |
1209 | user's system, especially if it uses themes. | |
f20a2e1f RD |
1210 | |
1211 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 1212 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
1213 | the returned font. See `wx.Window.SetWindowVariant` for more about |
1214 | this. | |
f20a2e1f RD |
1215 | """ |
1216 | return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs) | |
1217 | ||
1218 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
d55e5bfc RD |
1219 | |
1220 | class SplitterWindowPtr(SplitterWindow): | |
1221 | def __init__(self, this): | |
1222 | self.this = this | |
1223 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1224 | self.__class__ = SplitterWindow | |
1225 | _windows_.SplitterWindow_swigregister(SplitterWindowPtr) | |
1226 | SplitterNameStr = cvar.SplitterNameStr | |
1227 | ||
1228 | def PreSplitterWindow(*args, **kwargs): | |
1229 | """ | |
1230 | PreSplitterWindow() -> SplitterWindow | |
1231 | ||
1232 | Precreate a SplitterWindow for 2-phase creation. | |
1233 | """ | |
1234 | val = _windows_.new_PreSplitterWindow(*args, **kwargs) | |
1235 | val.thisown = 1 | |
1236 | return val | |
1237 | ||
f20a2e1f RD |
1238 | def SplitterWindow_GetClassDefaultAttributes(*args, **kwargs): |
1239 | """ | |
1240 | SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1241 | ||
15817c7e RD |
1242 | Get the default attributes for this class. This is useful if you want |
1243 | to use the same font or colour in your own control as in a standard | |
1244 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
1245 | colours or fonts which might look completely out of place on the |
1246 | user's system, especially if it uses themes. | |
f20a2e1f RD |
1247 | |
1248 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 1249 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
1250 | the returned font. See `wx.Window.SetWindowVariant` for more about |
1251 | this. | |
f20a2e1f RD |
1252 | """ |
1253 | return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs) | |
1254 | ||
d55e5bfc RD |
1255 | class SplitterEvent(_core.NotifyEvent): |
1256 | """This class represents the events generated by a splitter control.""" | |
1257 | def __repr__(self): | |
1258 | return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1259 | def __init__(self, *args, **kwargs): | |
1260 | """ | |
1261 | __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent | |
1262 | ||
1263 | This class represents the events generated by a splitter control. | |
1264 | """ | |
1265 | newobj = _windows_.new_SplitterEvent(*args, **kwargs) | |
1266 | self.this = newobj.this | |
1267 | self.thisown = 1 | |
1268 | del newobj.thisown | |
1269 | def SetSashPosition(*args, **kwargs): | |
1270 | """ | |
1271 | SetSashPosition(self, int pos) | |
1272 | ||
15817c7e RD |
1273 | This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING |
1274 | and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED | |
1275 | events, sets the the new sash position. In the case of _CHANGING | |
1276 | events, sets the new tracking bar position so visual feedback during | |
1277 | dragging will represent that change that will actually take place. Set | |
1278 | to -1 from the event handler code to prevent repositioning. | |
d55e5bfc RD |
1279 | """ |
1280 | return _windows_.SplitterEvent_SetSashPosition(*args, **kwargs) | |
1281 | ||
1282 | def GetSashPosition(*args, **kwargs): | |
1283 | """ | |
1284 | GetSashPosition(self) -> int | |
1285 | ||
15817c7e RD |
1286 | Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING |
1287 | and EVT_SPLITTER_SASH_POS_CHANGED events. | |
d55e5bfc RD |
1288 | """ |
1289 | return _windows_.SplitterEvent_GetSashPosition(*args, **kwargs) | |
1290 | ||
1291 | def GetWindowBeingRemoved(*args, **kwargs): | |
1292 | """ | |
1293 | GetWindowBeingRemoved(self) -> Window | |
1294 | ||
15817c7e RD |
1295 | Returns a pointer to the window being removed when a splitter window |
1296 | is unsplit. | |
d55e5bfc RD |
1297 | """ |
1298 | return _windows_.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs) | |
1299 | ||
1300 | def GetX(*args, **kwargs): | |
1301 | """ | |
1302 | GetX(self) -> int | |
1303 | ||
1304 | Returns the x coordinate of the double-click point in a | |
1305 | EVT_SPLITTER_DCLICK event. | |
1306 | """ | |
1307 | return _windows_.SplitterEvent_GetX(*args, **kwargs) | |
1308 | ||
1309 | def GetY(*args, **kwargs): | |
1310 | """ | |
1311 | GetY(self) -> int | |
1312 | ||
1313 | Returns the y coordinate of the double-click point in a | |
1314 | EVT_SPLITTER_DCLICK event. | |
1315 | """ | |
1316 | return _windows_.SplitterEvent_GetY(*args, **kwargs) | |
1317 | ||
1318 | ||
1319 | class SplitterEventPtr(SplitterEvent): | |
1320 | def __init__(self, this): | |
1321 | self.this = this | |
1322 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1323 | self.__class__ = SplitterEvent | |
1324 | _windows_.SplitterEvent_swigregister(SplitterEventPtr) | |
1325 | ||
1326 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED | |
1327 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING | |
1328 | wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows_.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED | |
1329 | wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows_.wxEVT_COMMAND_SPLITTER_UNSPLIT | |
1330 | EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 ) | |
1331 | EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 ) | |
1332 | EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 ) | |
1333 | EVT_SPLITTER_UNSPLIT = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT, 1 ) | |
1334 | EVT_SPLITTER_DCLICK = EVT_SPLITTER_DOUBLECLICKED | |
1335 | ||
1336 | #--------------------------------------------------------------------------- | |
1337 | ||
1338 | SASH_DRAG_NONE = _windows_.SASH_DRAG_NONE | |
1339 | SASH_DRAG_DRAGGING = _windows_.SASH_DRAG_DRAGGING | |
1340 | SASH_DRAG_LEFT_DOWN = _windows_.SASH_DRAG_LEFT_DOWN | |
1341 | SW_NOBORDER = _windows_.SW_NOBORDER | |
1342 | SW_BORDER = _windows_.SW_BORDER | |
1343 | SW_3DSASH = _windows_.SW_3DSASH | |
1344 | SW_3DBORDER = _windows_.SW_3DBORDER | |
1345 | SW_3D = _windows_.SW_3D | |
1346 | SASH_TOP = _windows_.SASH_TOP | |
1347 | SASH_RIGHT = _windows_.SASH_RIGHT | |
1348 | SASH_BOTTOM = _windows_.SASH_BOTTOM | |
1349 | SASH_LEFT = _windows_.SASH_LEFT | |
1350 | SASH_NONE = _windows_.SASH_NONE | |
1351 | class SashWindow(_core.Window): | |
1352 | def __repr__(self): | |
1353 | return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1354 | def __init__(self, *args, **kwargs): | |
1355 | """ | |
bfddbb17 RD |
1356 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1357 | Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, | |
d55e5bfc RD |
1358 | String name=SashNameStr) -> SashWindow |
1359 | """ | |
1360 | newobj = _windows_.new_SashWindow(*args, **kwargs) | |
1361 | self.this = newobj.this | |
1362 | self.thisown = 1 | |
1363 | del newobj.thisown | |
1364 | self._setOORInfo(self) | |
1365 | ||
1366 | def Create(*args, **kwargs): | |
1367 | """ | |
bfddbb17 RD |
1368 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1369 | Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, | |
d55e5bfc RD |
1370 | String name=SashNameStr) -> bool |
1371 | """ | |
1372 | return _windows_.SashWindow_Create(*args, **kwargs) | |
1373 | ||
1374 | def SetSashVisible(*args, **kwargs): | |
1375 | """SetSashVisible(self, int edge, bool sash)""" | |
1376 | return _windows_.SashWindow_SetSashVisible(*args, **kwargs) | |
1377 | ||
1378 | def GetSashVisible(*args, **kwargs): | |
1379 | """GetSashVisible(self, int edge) -> bool""" | |
1380 | return _windows_.SashWindow_GetSashVisible(*args, **kwargs) | |
1381 | ||
1382 | def SetSashBorder(*args, **kwargs): | |
1383 | """SetSashBorder(self, int edge, bool border)""" | |
1384 | return _windows_.SashWindow_SetSashBorder(*args, **kwargs) | |
1385 | ||
1386 | def HasBorder(*args, **kwargs): | |
1387 | """HasBorder(self, int edge) -> bool""" | |
1388 | return _windows_.SashWindow_HasBorder(*args, **kwargs) | |
1389 | ||
1390 | def GetEdgeMargin(*args, **kwargs): | |
1391 | """GetEdgeMargin(self, int edge) -> int""" | |
1392 | return _windows_.SashWindow_GetEdgeMargin(*args, **kwargs) | |
1393 | ||
1394 | def SetDefaultBorderSize(*args, **kwargs): | |
1395 | """SetDefaultBorderSize(self, int width)""" | |
1396 | return _windows_.SashWindow_SetDefaultBorderSize(*args, **kwargs) | |
1397 | ||
1398 | def GetDefaultBorderSize(*args, **kwargs): | |
1399 | """GetDefaultBorderSize(self) -> int""" | |
1400 | return _windows_.SashWindow_GetDefaultBorderSize(*args, **kwargs) | |
1401 | ||
1402 | def SetExtraBorderSize(*args, **kwargs): | |
1403 | """SetExtraBorderSize(self, int width)""" | |
1404 | return _windows_.SashWindow_SetExtraBorderSize(*args, **kwargs) | |
1405 | ||
1406 | def GetExtraBorderSize(*args, **kwargs): | |
1407 | """GetExtraBorderSize(self) -> int""" | |
1408 | return _windows_.SashWindow_GetExtraBorderSize(*args, **kwargs) | |
1409 | ||
1410 | def SetMinimumSizeX(*args, **kwargs): | |
1411 | """SetMinimumSizeX(self, int min)""" | |
1412 | return _windows_.SashWindow_SetMinimumSizeX(*args, **kwargs) | |
1413 | ||
1414 | def SetMinimumSizeY(*args, **kwargs): | |
1415 | """SetMinimumSizeY(self, int min)""" | |
1416 | return _windows_.SashWindow_SetMinimumSizeY(*args, **kwargs) | |
1417 | ||
1418 | def GetMinimumSizeX(*args, **kwargs): | |
1419 | """GetMinimumSizeX(self) -> int""" | |
1420 | return _windows_.SashWindow_GetMinimumSizeX(*args, **kwargs) | |
1421 | ||
1422 | def GetMinimumSizeY(*args, **kwargs): | |
1423 | """GetMinimumSizeY(self) -> int""" | |
1424 | return _windows_.SashWindow_GetMinimumSizeY(*args, **kwargs) | |
1425 | ||
1426 | def SetMaximumSizeX(*args, **kwargs): | |
1427 | """SetMaximumSizeX(self, int max)""" | |
1428 | return _windows_.SashWindow_SetMaximumSizeX(*args, **kwargs) | |
1429 | ||
1430 | def SetMaximumSizeY(*args, **kwargs): | |
1431 | """SetMaximumSizeY(self, int max)""" | |
1432 | return _windows_.SashWindow_SetMaximumSizeY(*args, **kwargs) | |
1433 | ||
1434 | def GetMaximumSizeX(*args, **kwargs): | |
1435 | """GetMaximumSizeX(self) -> int""" | |
1436 | return _windows_.SashWindow_GetMaximumSizeX(*args, **kwargs) | |
1437 | ||
1438 | def GetMaximumSizeY(*args, **kwargs): | |
1439 | """GetMaximumSizeY(self) -> int""" | |
1440 | return _windows_.SashWindow_GetMaximumSizeY(*args, **kwargs) | |
1441 | ||
1442 | def SashHitTest(*args, **kwargs): | |
1443 | """SashHitTest(self, int x, int y, int tolerance=2) -> int""" | |
1444 | return _windows_.SashWindow_SashHitTest(*args, **kwargs) | |
1445 | ||
1446 | def SizeWindows(*args, **kwargs): | |
1447 | """SizeWindows(self)""" | |
1448 | return _windows_.SashWindow_SizeWindows(*args, **kwargs) | |
1449 | ||
1450 | ||
1451 | class SashWindowPtr(SashWindow): | |
1452 | def __init__(self, this): | |
1453 | self.this = this | |
1454 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1455 | self.__class__ = SashWindow | |
1456 | _windows_.SashWindow_swigregister(SashWindowPtr) | |
1457 | SashNameStr = cvar.SashNameStr | |
1458 | SashLayoutNameStr = cvar.SashLayoutNameStr | |
1459 | ||
1460 | def PreSashWindow(*args, **kwargs): | |
1461 | """PreSashWindow() -> SashWindow""" | |
1462 | val = _windows_.new_PreSashWindow(*args, **kwargs) | |
1463 | val.thisown = 1 | |
1464 | return val | |
1465 | ||
1466 | SASH_STATUS_OK = _windows_.SASH_STATUS_OK | |
1467 | SASH_STATUS_OUT_OF_RANGE = _windows_.SASH_STATUS_OUT_OF_RANGE | |
1468 | class SashEvent(_core.CommandEvent): | |
1469 | def __repr__(self): | |
1470 | return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1471 | def __init__(self, *args, **kwargs): | |
1472 | """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent""" | |
1473 | newobj = _windows_.new_SashEvent(*args, **kwargs) | |
1474 | self.this = newobj.this | |
1475 | self.thisown = 1 | |
1476 | del newobj.thisown | |
1477 | def SetEdge(*args, **kwargs): | |
1478 | """SetEdge(self, int edge)""" | |
1479 | return _windows_.SashEvent_SetEdge(*args, **kwargs) | |
1480 | ||
1481 | def GetEdge(*args, **kwargs): | |
1482 | """GetEdge(self) -> int""" | |
1483 | return _windows_.SashEvent_GetEdge(*args, **kwargs) | |
1484 | ||
1485 | def SetDragRect(*args, **kwargs): | |
1486 | """SetDragRect(self, Rect rect)""" | |
1487 | return _windows_.SashEvent_SetDragRect(*args, **kwargs) | |
1488 | ||
1489 | def GetDragRect(*args, **kwargs): | |
1490 | """GetDragRect(self) -> Rect""" | |
1491 | return _windows_.SashEvent_GetDragRect(*args, **kwargs) | |
1492 | ||
1493 | def SetDragStatus(*args, **kwargs): | |
1494 | """SetDragStatus(self, int status)""" | |
1495 | return _windows_.SashEvent_SetDragStatus(*args, **kwargs) | |
1496 | ||
1497 | def GetDragStatus(*args, **kwargs): | |
1498 | """GetDragStatus(self) -> int""" | |
1499 | return _windows_.SashEvent_GetDragStatus(*args, **kwargs) | |
1500 | ||
1501 | ||
1502 | class SashEventPtr(SashEvent): | |
1503 | def __init__(self, this): | |
1504 | self.this = this | |
1505 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1506 | self.__class__ = SashEvent | |
1507 | _windows_.SashEvent_swigregister(SashEventPtr) | |
1508 | ||
1509 | wxEVT_SASH_DRAGGED = _windows_.wxEVT_SASH_DRAGGED | |
1510 | EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 ) | |
1511 | EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 ) | |
1512 | ||
1513 | #--------------------------------------------------------------------------- | |
1514 | ||
1515 | LAYOUT_HORIZONTAL = _windows_.LAYOUT_HORIZONTAL | |
1516 | LAYOUT_VERTICAL = _windows_.LAYOUT_VERTICAL | |
1517 | LAYOUT_NONE = _windows_.LAYOUT_NONE | |
1518 | LAYOUT_TOP = _windows_.LAYOUT_TOP | |
1519 | LAYOUT_LEFT = _windows_.LAYOUT_LEFT | |
1520 | LAYOUT_RIGHT = _windows_.LAYOUT_RIGHT | |
1521 | LAYOUT_BOTTOM = _windows_.LAYOUT_BOTTOM | |
1522 | LAYOUT_LENGTH_Y = _windows_.LAYOUT_LENGTH_Y | |
1523 | LAYOUT_LENGTH_X = _windows_.LAYOUT_LENGTH_X | |
1524 | LAYOUT_MRU_LENGTH = _windows_.LAYOUT_MRU_LENGTH | |
1525 | LAYOUT_QUERY = _windows_.LAYOUT_QUERY | |
1526 | wxEVT_QUERY_LAYOUT_INFO = _windows_.wxEVT_QUERY_LAYOUT_INFO | |
1527 | wxEVT_CALCULATE_LAYOUT = _windows_.wxEVT_CALCULATE_LAYOUT | |
1528 | class QueryLayoutInfoEvent(_core.Event): | |
1529 | def __repr__(self): | |
1530 | return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1531 | def __init__(self, *args, **kwargs): | |
1532 | """__init__(self, int id=0) -> QueryLayoutInfoEvent""" | |
1533 | newobj = _windows_.new_QueryLayoutInfoEvent(*args, **kwargs) | |
1534 | self.this = newobj.this | |
1535 | self.thisown = 1 | |
1536 | del newobj.thisown | |
1537 | def SetRequestedLength(*args, **kwargs): | |
1538 | """SetRequestedLength(self, int length)""" | |
1539 | return _windows_.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs) | |
1540 | ||
1541 | def GetRequestedLength(*args, **kwargs): | |
1542 | """GetRequestedLength(self) -> int""" | |
1543 | return _windows_.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs) | |
1544 | ||
1545 | def SetFlags(*args, **kwargs): | |
1546 | """SetFlags(self, int flags)""" | |
1547 | return _windows_.QueryLayoutInfoEvent_SetFlags(*args, **kwargs) | |
1548 | ||
1549 | def GetFlags(*args, **kwargs): | |
1550 | """GetFlags(self) -> int""" | |
1551 | return _windows_.QueryLayoutInfoEvent_GetFlags(*args, **kwargs) | |
1552 | ||
1553 | def SetSize(*args, **kwargs): | |
1554 | """SetSize(self, Size size)""" | |
1555 | return _windows_.QueryLayoutInfoEvent_SetSize(*args, **kwargs) | |
1556 | ||
1557 | def GetSize(*args, **kwargs): | |
1558 | """GetSize(self) -> Size""" | |
1559 | return _windows_.QueryLayoutInfoEvent_GetSize(*args, **kwargs) | |
1560 | ||
1561 | def SetOrientation(*args, **kwargs): | |
1562 | """SetOrientation(self, int orient)""" | |
1563 | return _windows_.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs) | |
1564 | ||
1565 | def GetOrientation(*args, **kwargs): | |
1566 | """GetOrientation(self) -> int""" | |
1567 | return _windows_.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs) | |
1568 | ||
1569 | def SetAlignment(*args, **kwargs): | |
1570 | """SetAlignment(self, int align)""" | |
1571 | return _windows_.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs) | |
1572 | ||
1573 | def GetAlignment(*args, **kwargs): | |
1574 | """GetAlignment(self) -> int""" | |
1575 | return _windows_.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs) | |
1576 | ||
1577 | ||
1578 | class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent): | |
1579 | def __init__(self, this): | |
1580 | self.this = this | |
1581 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1582 | self.__class__ = QueryLayoutInfoEvent | |
1583 | _windows_.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr) | |
1584 | ||
1585 | class CalculateLayoutEvent(_core.Event): | |
1586 | def __repr__(self): | |
1587 | return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1588 | def __init__(self, *args, **kwargs): | |
1589 | """__init__(self, int id=0) -> CalculateLayoutEvent""" | |
1590 | newobj = _windows_.new_CalculateLayoutEvent(*args, **kwargs) | |
1591 | self.this = newobj.this | |
1592 | self.thisown = 1 | |
1593 | del newobj.thisown | |
1594 | def SetFlags(*args, **kwargs): | |
1595 | """SetFlags(self, int flags)""" | |
1596 | return _windows_.CalculateLayoutEvent_SetFlags(*args, **kwargs) | |
1597 | ||
1598 | def GetFlags(*args, **kwargs): | |
1599 | """GetFlags(self) -> int""" | |
1600 | return _windows_.CalculateLayoutEvent_GetFlags(*args, **kwargs) | |
1601 | ||
1602 | def SetRect(*args, **kwargs): | |
1603 | """SetRect(self, Rect rect)""" | |
1604 | return _windows_.CalculateLayoutEvent_SetRect(*args, **kwargs) | |
1605 | ||
1606 | def GetRect(*args, **kwargs): | |
1607 | """GetRect(self) -> Rect""" | |
1608 | return _windows_.CalculateLayoutEvent_GetRect(*args, **kwargs) | |
1609 | ||
1610 | ||
1611 | class CalculateLayoutEventPtr(CalculateLayoutEvent): | |
1612 | def __init__(self, this): | |
1613 | self.this = this | |
1614 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1615 | self.__class__ = CalculateLayoutEvent | |
1616 | _windows_.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr) | |
1617 | ||
1618 | EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO ) | |
1619 | EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT ) | |
1620 | ||
1621 | class SashLayoutWindow(SashWindow): | |
1622 | def __repr__(self): | |
1623 | return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1624 | def __init__(self, *args, **kwargs): | |
1625 | """ | |
bfddbb17 RD |
1626 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1627 | Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, | |
d55e5bfc RD |
1628 | String name=SashLayoutNameStr) -> SashLayoutWindow |
1629 | """ | |
1630 | newobj = _windows_.new_SashLayoutWindow(*args, **kwargs) | |
1631 | self.this = newobj.this | |
1632 | self.thisown = 1 | |
1633 | del newobj.thisown | |
1634 | self._setOORInfo(self) | |
1635 | ||
1636 | def Create(*args, **kwargs): | |
1637 | """ | |
bfddbb17 RD |
1638 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1639 | Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, | |
d55e5bfc RD |
1640 | String name=SashLayoutNameStr) -> bool |
1641 | """ | |
1642 | return _windows_.SashLayoutWindow_Create(*args, **kwargs) | |
1643 | ||
1644 | def GetAlignment(*args, **kwargs): | |
1645 | """GetAlignment(self) -> int""" | |
1646 | return _windows_.SashLayoutWindow_GetAlignment(*args, **kwargs) | |
1647 | ||
1648 | def GetOrientation(*args, **kwargs): | |
1649 | """GetOrientation(self) -> int""" | |
1650 | return _windows_.SashLayoutWindow_GetOrientation(*args, **kwargs) | |
1651 | ||
1652 | def SetAlignment(*args, **kwargs): | |
1653 | """SetAlignment(self, int alignment)""" | |
1654 | return _windows_.SashLayoutWindow_SetAlignment(*args, **kwargs) | |
1655 | ||
1656 | def SetDefaultSize(*args, **kwargs): | |
1657 | """SetDefaultSize(self, Size size)""" | |
1658 | return _windows_.SashLayoutWindow_SetDefaultSize(*args, **kwargs) | |
1659 | ||
1660 | def SetOrientation(*args, **kwargs): | |
1661 | """SetOrientation(self, int orientation)""" | |
1662 | return _windows_.SashLayoutWindow_SetOrientation(*args, **kwargs) | |
1663 | ||
1664 | ||
1665 | class SashLayoutWindowPtr(SashLayoutWindow): | |
1666 | def __init__(self, this): | |
1667 | self.this = this | |
1668 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1669 | self.__class__ = SashLayoutWindow | |
1670 | _windows_.SashLayoutWindow_swigregister(SashLayoutWindowPtr) | |
1671 | ||
1672 | def PreSashLayoutWindow(*args, **kwargs): | |
1673 | """PreSashLayoutWindow() -> SashLayoutWindow""" | |
1674 | val = _windows_.new_PreSashLayoutWindow(*args, **kwargs) | |
1675 | val.thisown = 1 | |
1676 | return val | |
1677 | ||
1678 | class LayoutAlgorithm(_core.Object): | |
1679 | def __repr__(self): | |
1680 | return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1681 | def __init__(self, *args, **kwargs): | |
1682 | """__init__(self) -> LayoutAlgorithm""" | |
1683 | newobj = _windows_.new_LayoutAlgorithm(*args, **kwargs) | |
1684 | self.this = newobj.this | |
1685 | self.thisown = 1 | |
1686 | del newobj.thisown | |
1687 | def __del__(self, destroy=_windows_.delete_LayoutAlgorithm): | |
1688 | """__del__(self)""" | |
1689 | try: | |
1690 | if self.thisown: destroy(self) | |
1691 | except: pass | |
1692 | ||
1693 | def LayoutMDIFrame(*args, **kwargs): | |
1694 | """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool""" | |
1695 | return _windows_.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs) | |
1696 | ||
1697 | def LayoutFrame(*args, **kwargs): | |
1698 | """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool""" | |
1699 | return _windows_.LayoutAlgorithm_LayoutFrame(*args, **kwargs) | |
1700 | ||
1701 | def LayoutWindow(*args, **kwargs): | |
1702 | """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool""" | |
1703 | return _windows_.LayoutAlgorithm_LayoutWindow(*args, **kwargs) | |
1704 | ||
1705 | ||
1706 | class LayoutAlgorithmPtr(LayoutAlgorithm): | |
1707 | def __init__(self, this): | |
1708 | self.this = this | |
1709 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1710 | self.__class__ = LayoutAlgorithm | |
1711 | _windows_.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr) | |
1712 | ||
1713 | class PopupWindow(_core.Window): | |
1714 | def __repr__(self): | |
1715 | return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1716 | def __init__(self, *args, **kwargs): | |
1717 | """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow""" | |
1718 | newobj = _windows_.new_PopupWindow(*args, **kwargs) | |
1719 | self.this = newobj.this | |
1720 | self.thisown = 1 | |
1721 | del newobj.thisown | |
1722 | ||
1723 | class PopupWindowPtr(PopupWindow): | |
1724 | def __init__(self, this): | |
1725 | self.this = this | |
1726 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1727 | self.__class__ = PopupWindow | |
1728 | _windows_.PopupWindow_swigregister(PopupWindowPtr) | |
1729 | ||
1730 | def PrePopupWindow(*args, **kwargs): | |
1731 | """PrePopupWindow() -> PopupWindow""" | |
1732 | val = _windows_.new_PrePopupWindow(*args, **kwargs) | |
1733 | val.thisown = 1 | |
1734 | return val | |
1735 | ||
1736 | class PopupTransientWindow(PopupWindow): | |
1737 | def __repr__(self): | |
1738 | return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1739 | def __init__(self, *args, **kwargs): | |
1740 | """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow""" | |
1741 | newobj = _windows_.new_PopupTransientWindow(*args, **kwargs) | |
1742 | self.this = newobj.this | |
1743 | self.thisown = 1 | |
1744 | del newobj.thisown | |
1745 | ||
1746 | class PopupTransientWindowPtr(PopupTransientWindow): | |
1747 | def __init__(self, this): | |
1748 | self.this = this | |
1749 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1750 | self.__class__ = PopupTransientWindow | |
1751 | _windows_.PopupTransientWindow_swigregister(PopupTransientWindowPtr) | |
1752 | ||
1753 | def PrePopupTransientWindow(*args, **kwargs): | |
1754 | """PrePopupTransientWindow() -> PopupTransientWindow""" | |
1755 | val = _windows_.new_PrePopupTransientWindow(*args, **kwargs) | |
1756 | val.thisown = 1 | |
1757 | return val | |
1758 | ||
1759 | #--------------------------------------------------------------------------- | |
1760 | ||
1761 | class TipWindow(Frame): | |
1762 | def __repr__(self): | |
1763 | return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1764 | def __init__(self, *args, **kwargs): | |
1765 | """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow""" | |
1766 | newobj = _windows_.new_TipWindow(*args, **kwargs) | |
1767 | self.this = newobj.this | |
1768 | self.thisown = 1 | |
1769 | del newobj.thisown | |
1770 | self._setOORInfo(self) | |
1771 | ||
1772 | def SetBoundingRect(*args, **kwargs): | |
1773 | """SetBoundingRect(self, Rect rectBound)""" | |
1774 | return _windows_.TipWindow_SetBoundingRect(*args, **kwargs) | |
1775 | ||
1776 | def Close(*args, **kwargs): | |
1777 | """Close(self)""" | |
1778 | return _windows_.TipWindow_Close(*args, **kwargs) | |
1779 | ||
1780 | ||
1781 | class TipWindowPtr(TipWindow): | |
1782 | def __init__(self, this): | |
1783 | self.this = this | |
1784 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1785 | self.__class__ = TipWindow | |
1786 | _windows_.TipWindow_swigregister(TipWindowPtr) | |
1787 | ||
1788 | #--------------------------------------------------------------------------- | |
1789 | ||
1790 | class VScrolledWindow(Panel): | |
1791 | def __repr__(self): | |
1792 | return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1793 | def __init__(self, *args, **kwargs): | |
1794 | """ | |
1795 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1796 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow | |
1797 | """ | |
1798 | newobj = _windows_.new_VScrolledWindow(*args, **kwargs) | |
1799 | self.this = newobj.this | |
1800 | self.thisown = 1 | |
1801 | del newobj.thisown | |
1802 | self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow) | |
1803 | ||
1804 | def _setCallbackInfo(*args, **kwargs): | |
1805 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
1806 | return _windows_.VScrolledWindow__setCallbackInfo(*args, **kwargs) | |
1807 | ||
1808 | def Create(*args, **kwargs): | |
1809 | """ | |
1810 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1811 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool | |
1812 | """ | |
1813 | return _windows_.VScrolledWindow_Create(*args, **kwargs) | |
1814 | ||
1815 | def SetLineCount(*args, **kwargs): | |
1816 | """SetLineCount(self, size_t count)""" | |
1817 | return _windows_.VScrolledWindow_SetLineCount(*args, **kwargs) | |
1818 | ||
1819 | def ScrollToLine(*args, **kwargs): | |
1820 | """ScrollToLine(self, size_t line) -> bool""" | |
1821 | return _windows_.VScrolledWindow_ScrollToLine(*args, **kwargs) | |
1822 | ||
1823 | def ScrollLines(*args, **kwargs): | |
01ac03ba RD |
1824 | """ |
1825 | ScrollLines(self, int lines) -> bool | |
1826 | ||
1827 | If the platform and window class supports it, scrolls the window by | |
1828 | the given number of lines down, if lines is positive, or up if lines | |
1829 | is negative. Returns True if the window was scrolled, False if it was | |
1830 | already on top/bottom and nothing was done. | |
1831 | """ | |
d55e5bfc RD |
1832 | return _windows_.VScrolledWindow_ScrollLines(*args, **kwargs) |
1833 | ||
1834 | def ScrollPages(*args, **kwargs): | |
1835 | """ | |
1836 | ScrollPages(self, int pages) -> bool | |
1837 | ||
15817c7e | 1838 | If the platform and window class supports it, scrolls the window by |
d55e5bfc RD |
1839 | the given number of pages down, if pages is positive, or up if pages |
1840 | is negative. Returns True if the window was scrolled, False if it was | |
1841 | already on top/bottom and nothing was done. | |
1842 | """ | |
1843 | return _windows_.VScrolledWindow_ScrollPages(*args, **kwargs) | |
1844 | ||
1845 | def RefreshLine(*args, **kwargs): | |
1846 | """RefreshLine(self, size_t line)""" | |
1847 | return _windows_.VScrolledWindow_RefreshLine(*args, **kwargs) | |
1848 | ||
1849 | def RefreshLines(*args, **kwargs): | |
1850 | """RefreshLines(self, size_t from, size_t to)""" | |
1851 | return _windows_.VScrolledWindow_RefreshLines(*args, **kwargs) | |
1852 | ||
03ee685a RD |
1853 | def HitTestXY(*args, **kwargs): |
1854 | """ | |
1855 | HitTestXY(self, int x, int y) -> int | |
1856 | ||
1857 | Test where the given (in client coords) point lies | |
1858 | """ | |
1859 | return _windows_.VScrolledWindow_HitTestXY(*args, **kwargs) | |
d55e5bfc RD |
1860 | |
1861 | def HitTest(*args, **kwargs): | |
03ee685a RD |
1862 | """ |
1863 | HitTest(self, Point pt) -> int | |
1864 | ||
1865 | Test where the given (in client coords) point lies | |
1866 | """ | |
d55e5bfc RD |
1867 | return _windows_.VScrolledWindow_HitTest(*args, **kwargs) |
1868 | ||
1869 | def RefreshAll(*args, **kwargs): | |
1870 | """RefreshAll(self)""" | |
1871 | return _windows_.VScrolledWindow_RefreshAll(*args, **kwargs) | |
1872 | ||
1873 | def GetLineCount(*args, **kwargs): | |
1874 | """GetLineCount(self) -> size_t""" | |
1875 | return _windows_.VScrolledWindow_GetLineCount(*args, **kwargs) | |
1876 | ||
1877 | def GetFirstVisibleLine(*args, **kwargs): | |
1878 | """GetFirstVisibleLine(self) -> size_t""" | |
1879 | return _windows_.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs) | |
1880 | ||
1881 | def GetLastVisibleLine(*args, **kwargs): | |
1882 | """GetLastVisibleLine(self) -> size_t""" | |
1883 | return _windows_.VScrolledWindow_GetLastVisibleLine(*args, **kwargs) | |
1884 | ||
1885 | def IsVisible(*args, **kwargs): | |
1886 | """IsVisible(self, size_t line) -> bool""" | |
1887 | return _windows_.VScrolledWindow_IsVisible(*args, **kwargs) | |
1888 | ||
1889 | ||
1890 | class VScrolledWindowPtr(VScrolledWindow): | |
1891 | def __init__(self, this): | |
1892 | self.this = this | |
1893 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1894 | self.__class__ = VScrolledWindow | |
1895 | _windows_.VScrolledWindow_swigregister(VScrolledWindowPtr) | |
1896 | ||
1897 | def PreVScrolledWindow(*args, **kwargs): | |
1898 | """PreVScrolledWindow() -> VScrolledWindow""" | |
1899 | val = _windows_.new_PreVScrolledWindow(*args, **kwargs) | |
1900 | val.thisown = 1 | |
1901 | return val | |
1902 | ||
1903 | class VListBox(VScrolledWindow): | |
1904 | def __repr__(self): | |
1905 | return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1906 | def __init__(self, *args, **kwargs): | |
1907 | """ | |
1908 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1909 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox | |
1910 | """ | |
1911 | newobj = _windows_.new_VListBox(*args, **kwargs) | |
1912 | self.this = newobj.this | |
1913 | self.thisown = 1 | |
1914 | del newobj.thisown | |
1915 | self._setOORInfo(self);self._setCallbackInfo(self, VListBox) | |
1916 | ||
1917 | def _setCallbackInfo(*args, **kwargs): | |
1918 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
1919 | return _windows_.VListBox__setCallbackInfo(*args, **kwargs) | |
1920 | ||
1921 | def Create(*args, **kwargs): | |
1922 | """ | |
1923 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1924 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool | |
1925 | """ | |
1926 | return _windows_.VListBox_Create(*args, **kwargs) | |
1927 | ||
1928 | def GetItemCount(*args, **kwargs): | |
1929 | """GetItemCount(self) -> size_t""" | |
1930 | return _windows_.VListBox_GetItemCount(*args, **kwargs) | |
1931 | ||
1932 | def HasMultipleSelection(*args, **kwargs): | |
1933 | """HasMultipleSelection(self) -> bool""" | |
1934 | return _windows_.VListBox_HasMultipleSelection(*args, **kwargs) | |
1935 | ||
1936 | def GetSelection(*args, **kwargs): | |
1937 | """GetSelection(self) -> int""" | |
1938 | return _windows_.VListBox_GetSelection(*args, **kwargs) | |
1939 | ||
1940 | def IsCurrent(*args, **kwargs): | |
1941 | """IsCurrent(self, size_t item) -> bool""" | |
1942 | return _windows_.VListBox_IsCurrent(*args, **kwargs) | |
1943 | ||
1944 | def IsSelected(*args, **kwargs): | |
1945 | """IsSelected(self, size_t item) -> bool""" | |
1946 | return _windows_.VListBox_IsSelected(*args, **kwargs) | |
1947 | ||
1948 | def GetSelectedCount(*args, **kwargs): | |
1949 | """GetSelectedCount(self) -> size_t""" | |
1950 | return _windows_.VListBox_GetSelectedCount(*args, **kwargs) | |
1951 | ||
1952 | def GetFirstSelected(*args, **kwargs): | |
09c21d3b | 1953 | """GetFirstSelected(self) -> PyObject""" |
d55e5bfc RD |
1954 | return _windows_.VListBox_GetFirstSelected(*args, **kwargs) |
1955 | ||
1956 | def GetNextSelected(*args, **kwargs): | |
09c21d3b | 1957 | """GetNextSelected(self, unsigned long cookie) -> PyObject""" |
d55e5bfc RD |
1958 | return _windows_.VListBox_GetNextSelected(*args, **kwargs) |
1959 | ||
1960 | def GetMargins(*args, **kwargs): | |
1961 | """GetMargins(self) -> Point""" | |
1962 | return _windows_.VListBox_GetMargins(*args, **kwargs) | |
1963 | ||
1964 | def GetSelectionBackground(*args, **kwargs): | |
1965 | """GetSelectionBackground(self) -> Colour""" | |
1966 | return _windows_.VListBox_GetSelectionBackground(*args, **kwargs) | |
1967 | ||
1968 | def SetItemCount(*args, **kwargs): | |
1969 | """SetItemCount(self, size_t count)""" | |
1970 | return _windows_.VListBox_SetItemCount(*args, **kwargs) | |
1971 | ||
1972 | def Clear(*args, **kwargs): | |
1973 | """Clear(self)""" | |
1974 | return _windows_.VListBox_Clear(*args, **kwargs) | |
1975 | ||
1976 | def SetSelection(*args, **kwargs): | |
1977 | """SetSelection(self, int selection)""" | |
1978 | return _windows_.VListBox_SetSelection(*args, **kwargs) | |
1979 | ||
1980 | def Select(*args, **kwargs): | |
1981 | """Select(self, size_t item, bool select=True) -> bool""" | |
1982 | return _windows_.VListBox_Select(*args, **kwargs) | |
1983 | ||
1984 | def SelectRange(*args, **kwargs): | |
1985 | """SelectRange(self, size_t from, size_t to) -> bool""" | |
1986 | return _windows_.VListBox_SelectRange(*args, **kwargs) | |
1987 | ||
1988 | def Toggle(*args, **kwargs): | |
1989 | """Toggle(self, size_t item)""" | |
1990 | return _windows_.VListBox_Toggle(*args, **kwargs) | |
1991 | ||
1992 | def SelectAll(*args, **kwargs): | |
1993 | """SelectAll(self) -> bool""" | |
1994 | return _windows_.VListBox_SelectAll(*args, **kwargs) | |
1995 | ||
1996 | def DeselectAll(*args, **kwargs): | |
1997 | """DeselectAll(self) -> bool""" | |
1998 | return _windows_.VListBox_DeselectAll(*args, **kwargs) | |
1999 | ||
2000 | def SetMargins(*args, **kwargs): | |
2001 | """SetMargins(self, Point pt)""" | |
2002 | return _windows_.VListBox_SetMargins(*args, **kwargs) | |
2003 | ||
2004 | def SetMarginsXY(*args, **kwargs): | |
2005 | """SetMarginsXY(self, int x, int y)""" | |
2006 | return _windows_.VListBox_SetMarginsXY(*args, **kwargs) | |
2007 | ||
2008 | def SetSelectionBackground(*args, **kwargs): | |
2009 | """SetSelectionBackground(self, Colour col)""" | |
2010 | return _windows_.VListBox_SetSelectionBackground(*args, **kwargs) | |
2011 | ||
2012 | ||
2013 | class VListBoxPtr(VListBox): | |
2014 | def __init__(self, this): | |
2015 | self.this = this | |
2016 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2017 | self.__class__ = VListBox | |
2018 | _windows_.VListBox_swigregister(VListBoxPtr) | |
2019 | VListBoxNameStr = cvar.VListBoxNameStr | |
2020 | ||
2021 | def PreVListBox(*args, **kwargs): | |
2022 | """PreVListBox() -> VListBox""" | |
2023 | val = _windows_.new_PreVListBox(*args, **kwargs) | |
2024 | val.thisown = 1 | |
2025 | return val | |
2026 | ||
2027 | class HtmlListBox(VListBox): | |
2028 | def __repr__(self): | |
2029 | return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2030 | def __init__(self, *args, **kwargs): | |
2031 | """ | |
2032 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
2033 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox | |
2034 | """ | |
2035 | newobj = _windows_.new_HtmlListBox(*args, **kwargs) | |
2036 | self.this = newobj.this | |
2037 | self.thisown = 1 | |
2038 | del newobj.thisown | |
2039 | self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox) | |
2040 | ||
2041 | def _setCallbackInfo(*args, **kwargs): | |
2042 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
2043 | return _windows_.HtmlListBox__setCallbackInfo(*args, **kwargs) | |
2044 | ||
2045 | def Create(*args, **kwargs): | |
2046 | """ | |
2047 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
2048 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool | |
2049 | """ | |
2050 | return _windows_.HtmlListBox_Create(*args, **kwargs) | |
2051 | ||
2052 | def RefreshAll(*args, **kwargs): | |
2053 | """RefreshAll(self)""" | |
2054 | return _windows_.HtmlListBox_RefreshAll(*args, **kwargs) | |
2055 | ||
2056 | def SetItemCount(*args, **kwargs): | |
2057 | """SetItemCount(self, size_t count)""" | |
2058 | return _windows_.HtmlListBox_SetItemCount(*args, **kwargs) | |
2059 | ||
d6c14a4c RD |
2060 | def GetFileSystem(*args, **kwargs): |
2061 | """GetFileSystem(self) -> FileSystem""" | |
2062 | return _windows_.HtmlListBox_GetFileSystem(*args, **kwargs) | |
2063 | ||
d55e5bfc RD |
2064 | |
2065 | class HtmlListBoxPtr(HtmlListBox): | |
2066 | def __init__(self, this): | |
2067 | self.this = this | |
2068 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2069 | self.__class__ = HtmlListBox | |
2070 | _windows_.HtmlListBox_swigregister(HtmlListBoxPtr) | |
2071 | ||
2072 | def PreHtmlListBox(*args, **kwargs): | |
2073 | """PreHtmlListBox() -> HtmlListBox""" | |
2074 | val = _windows_.new_PreHtmlListBox(*args, **kwargs) | |
2075 | val.thisown = 1 | |
2076 | return val | |
2077 | ||
2078 | #--------------------------------------------------------------------------- | |
2079 | ||
2080 | class TaskBarIcon(_core.EvtHandler): | |
2081 | def __repr__(self): | |
5e483524 | 2082 | return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
d55e5bfc RD |
2083 | def __init__(self, *args, **kwargs): |
2084 | """__init__(self) -> TaskBarIcon""" | |
2085 | newobj = _windows_.new_TaskBarIcon(*args, **kwargs) | |
2086 | self.this = newobj.this | |
2087 | self.thisown = 1 | |
2088 | del newobj.thisown | |
5e483524 RD |
2089 | self._setCallbackInfo(self, TaskBarIcon, 0) |
2090 | ||
2091 | def _setCallbackInfo(*args, **kwargs): | |
2092 | """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)""" | |
2093 | return _windows_.TaskBarIcon__setCallbackInfo(*args, **kwargs) | |
d55e5bfc RD |
2094 | |
2095 | def Destroy(*args, **kwargs): | |
2096 | """ | |
2097 | Destroy(self) | |
2098 | ||
2099 | Deletes the C++ object this Python object is a proxy for. | |
2100 | """ | |
2101 | return _windows_.TaskBarIcon_Destroy(*args, **kwargs) | |
2102 | ||
b411df4a RD |
2103 | def IsOk(*args, **kwargs): |
2104 | """IsOk(self) -> bool""" | |
2105 | return _windows_.TaskBarIcon_IsOk(*args, **kwargs) | |
2106 | ||
2107 | def __nonzero__(self): return self.IsOk() | |
2108 | def IsIconInstalled(*args, **kwargs): | |
2109 | """IsIconInstalled(self) -> bool""" | |
2110 | return _windows_.TaskBarIcon_IsIconInstalled(*args, **kwargs) | |
2111 | ||
2112 | def SetIcon(*args, **kwargs): | |
2113 | """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool""" | |
2114 | return _windows_.TaskBarIcon_SetIcon(*args, **kwargs) | |
2115 | ||
2116 | def RemoveIcon(*args, **kwargs): | |
2117 | """RemoveIcon(self) -> bool""" | |
2118 | return _windows_.TaskBarIcon_RemoveIcon(*args, **kwargs) | |
2119 | ||
2120 | def PopupMenu(*args, **kwargs): | |
2121 | """PopupMenu(self, Menu menu) -> bool""" | |
2122 | return _windows_.TaskBarIcon_PopupMenu(*args, **kwargs) | |
2123 | ||
d55e5bfc RD |
2124 | |
2125 | class TaskBarIconPtr(TaskBarIcon): | |
2126 | def __init__(self, this): | |
2127 | self.this = this | |
2128 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2129 | self.__class__ = TaskBarIcon | |
2130 | _windows_.TaskBarIcon_swigregister(TaskBarIconPtr) | |
2131 | ||
2132 | class TaskBarIconEvent(_core.Event): | |
2133 | def __repr__(self): | |
2134 | return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2135 | def __init__(self, *args, **kwargs): | |
5e483524 | 2136 | """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent""" |
d55e5bfc RD |
2137 | newobj = _windows_.new_TaskBarIconEvent(*args, **kwargs) |
2138 | self.this = newobj.this | |
2139 | self.thisown = 1 | |
2140 | del newobj.thisown | |
2141 | ||
2142 | class TaskBarIconEventPtr(TaskBarIconEvent): | |
2143 | def __init__(self, this): | |
2144 | self.this = this | |
2145 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2146 | self.__class__ = TaskBarIconEvent | |
2147 | _windows_.TaskBarIconEvent_swigregister(TaskBarIconEventPtr) | |
2148 | ||
2149 | wxEVT_TASKBAR_MOVE = _windows_.wxEVT_TASKBAR_MOVE | |
2150 | wxEVT_TASKBAR_LEFT_DOWN = _windows_.wxEVT_TASKBAR_LEFT_DOWN | |
2151 | wxEVT_TASKBAR_LEFT_UP = _windows_.wxEVT_TASKBAR_LEFT_UP | |
2152 | wxEVT_TASKBAR_RIGHT_DOWN = _windows_.wxEVT_TASKBAR_RIGHT_DOWN | |
2153 | wxEVT_TASKBAR_RIGHT_UP = _windows_.wxEVT_TASKBAR_RIGHT_UP | |
2154 | wxEVT_TASKBAR_LEFT_DCLICK = _windows_.wxEVT_TASKBAR_LEFT_DCLICK | |
2155 | wxEVT_TASKBAR_RIGHT_DCLICK = _windows_.wxEVT_TASKBAR_RIGHT_DCLICK | |
2156 | EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE ) | |
2157 | EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN ) | |
2158 | EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP ) | |
2159 | EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN ) | |
2160 | EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP ) | |
2161 | EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK ) | |
2162 | EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK ) | |
2163 | ||
2164 | #--------------------------------------------------------------------------- | |
2165 | ||
2166 | class ColourData(_core.Object): | |
d6c14a4c RD |
2167 | """ |
2168 | This class holds a variety of information related to the colour | |
2169 | chooser dialog, used to transfer settings and results to and from the | |
2170 | `wx.ColourDialog`. | |
2171 | """ | |
d55e5bfc RD |
2172 | def __repr__(self): |
2173 | return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2174 | def __init__(self, *args, **kwargs): | |
2175 | """ | |
2176 | __init__(self) -> ColourData | |
2177 | ||
2178 | Constructor, sets default values. | |
2179 | """ | |
2180 | newobj = _windows_.new_ColourData(*args, **kwargs) | |
2181 | self.this = newobj.this | |
2182 | self.thisown = 1 | |
2183 | del newobj.thisown | |
2184 | def __del__(self, destroy=_windows_.delete_ColourData): | |
2185 | """__del__(self)""" | |
2186 | try: | |
2187 | if self.thisown: destroy(self) | |
2188 | except: pass | |
2189 | ||
2190 | def GetChooseFull(*args, **kwargs): | |
2191 | """ | |
2192 | GetChooseFull(self) -> bool | |
2193 | ||
d6c14a4c RD |
2194 | Under Windows, determines whether the Windows colour dialog will |
2195 | display the full dialog with custom colour selection controls. Has no | |
2196 | meaning under other platforms. The default value is true. | |
d55e5bfc RD |
2197 | """ |
2198 | return _windows_.ColourData_GetChooseFull(*args, **kwargs) | |
2199 | ||
2200 | def GetColour(*args, **kwargs): | |
2201 | """ | |
2202 | GetColour(self) -> Colour | |
2203 | ||
2204 | Gets the colour (pre)selected by the dialog. | |
2205 | """ | |
2206 | return _windows_.ColourData_GetColour(*args, **kwargs) | |
2207 | ||
2208 | def GetCustomColour(*args, **kwargs): | |
2209 | """ | |
2210 | GetCustomColour(self, int i) -> Colour | |
2211 | ||
d6c14a4c RD |
2212 | Gets the i'th custom colour associated with the colour dialog. i |
2213 | should be an integer between 0 and 15. The default custom colours are | |
bfddbb17 | 2214 | all invalid colours. |
d55e5bfc RD |
2215 | """ |
2216 | return _windows_.ColourData_GetCustomColour(*args, **kwargs) | |
2217 | ||
2218 | def SetChooseFull(*args, **kwargs): | |
2219 | """ | |
2220 | SetChooseFull(self, int flag) | |
2221 | ||
d6c14a4c RD |
2222 | Under Windows, tells the Windows colour dialog to display the full |
2223 | dialog with custom colour selection controls. Under other platforms, | |
2224 | has no effect. The default value is true. | |
d55e5bfc RD |
2225 | """ |
2226 | return _windows_.ColourData_SetChooseFull(*args, **kwargs) | |
2227 | ||
2228 | def SetColour(*args, **kwargs): | |
2229 | """ | |
2230 | SetColour(self, Colour colour) | |
2231 | ||
d6c14a4c RD |
2232 | Sets the default colour for the colour dialog. The default colour is |
2233 | black. | |
d55e5bfc RD |
2234 | """ |
2235 | return _windows_.ColourData_SetColour(*args, **kwargs) | |
2236 | ||
2237 | def SetCustomColour(*args, **kwargs): | |
2238 | """ | |
2239 | SetCustomColour(self, int i, Colour colour) | |
2240 | ||
d6c14a4c | 2241 | Sets the i'th custom colour for the colour dialog. i should be an |
bfddbb17 | 2242 | integer between 0 and 15. The default custom colours are all invalid colours. |
d55e5bfc RD |
2243 | """ |
2244 | return _windows_.ColourData_SetCustomColour(*args, **kwargs) | |
2245 | ||
2246 | ||
2247 | class ColourDataPtr(ColourData): | |
2248 | def __init__(self, this): | |
2249 | self.this = this | |
2250 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2251 | self.__class__ = ColourData | |
2252 | _windows_.ColourData_swigregister(ColourDataPtr) | |
2253 | FileSelectorPromptStr = cvar.FileSelectorPromptStr | |
2254 | DirSelectorPromptStr = cvar.DirSelectorPromptStr | |
2255 | DirDialogNameStr = cvar.DirDialogNameStr | |
2256 | FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr | |
2257 | GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr | |
2258 | MessageBoxCaptionStr = cvar.MessageBoxCaptionStr | |
2259 | ||
2260 | class ColourDialog(Dialog): | |
2261 | """This class represents the colour chooser dialog.""" | |
2262 | def __repr__(self): | |
2263 | return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2264 | def __init__(self, *args, **kwargs): | |
2265 | """ | |
2266 | __init__(self, Window parent, ColourData data=None) -> ColourDialog | |
2267 | ||
d6c14a4c RD |
2268 | Constructor. Pass a parent window, and optionally a `wx.ColourData`, |
2269 | which will be copied to the colour dialog's internal ColourData | |
2270 | instance. | |
d55e5bfc RD |
2271 | """ |
2272 | newobj = _windows_.new_ColourDialog(*args, **kwargs) | |
2273 | self.this = newobj.this | |
2274 | self.thisown = 1 | |
2275 | del newobj.thisown | |
2276 | self._setOORInfo(self) | |
2277 | ||
2278 | def GetColourData(*args, **kwargs): | |
2279 | """ | |
2280 | GetColourData(self) -> ColourData | |
2281 | ||
d6c14a4c | 2282 | Returns a reference to the `wx.ColourData` used by the dialog. |
d55e5bfc RD |
2283 | """ |
2284 | return _windows_.ColourDialog_GetColourData(*args, **kwargs) | |
2285 | ||
2286 | ||
2287 | class ColourDialogPtr(ColourDialog): | |
2288 | def __init__(self, this): | |
2289 | self.this = this | |
2290 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2291 | self.__class__ = ColourDialog | |
2292 | _windows_.ColourDialog_swigregister(ColourDialogPtr) | |
2293 | ||
2294 | class DirDialog(Dialog): | |
d6c14a4c RD |
2295 | """ |
2296 | wx.DirDialog allows the user to select a directory by browising the | |
2297 | file system. | |
d6c14a4c | 2298 | """ |
d55e5bfc RD |
2299 | def __repr__(self): |
2300 | return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2301 | def __init__(self, *args, **kwargs): | |
2302 | """ | |
2303 | __init__(self, Window parent, String message=DirSelectorPromptStr, | |
2304 | String defaultPath=EmptyString, long style=0, | |
2305 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2306 | String name=DirDialogNameStr) -> DirDialog | |
2307 | ||
2308 | Constructor. Use ShowModal method to show the dialog. | |
2309 | """ | |
2310 | newobj = _windows_.new_DirDialog(*args, **kwargs) | |
2311 | self.this = newobj.this | |
2312 | self.thisown = 1 | |
2313 | del newobj.thisown | |
2314 | self._setOORInfo(self) | |
2315 | ||
2316 | def GetPath(*args, **kwargs): | |
2317 | """ | |
2318 | GetPath(self) -> String | |
2319 | ||
2320 | Returns the default or user-selected path. | |
2321 | """ | |
2322 | return _windows_.DirDialog_GetPath(*args, **kwargs) | |
2323 | ||
2324 | def GetMessage(*args, **kwargs): | |
2325 | """ | |
2326 | GetMessage(self) -> String | |
2327 | ||
2328 | Returns the message that will be displayed on the dialog. | |
2329 | """ | |
2330 | return _windows_.DirDialog_GetMessage(*args, **kwargs) | |
2331 | ||
2332 | def GetStyle(*args, **kwargs): | |
2333 | """ | |
2334 | GetStyle(self) -> long | |
2335 | ||
2336 | Returns the dialog style. | |
2337 | """ | |
2338 | return _windows_.DirDialog_GetStyle(*args, **kwargs) | |
2339 | ||
2340 | def SetMessage(*args, **kwargs): | |
2341 | """ | |
2342 | SetMessage(self, String message) | |
2343 | ||
2344 | Sets the message that will be displayed on the dialog. | |
2345 | """ | |
2346 | return _windows_.DirDialog_SetMessage(*args, **kwargs) | |
2347 | ||
2348 | def SetPath(*args, **kwargs): | |
2349 | """ | |
2350 | SetPath(self, String path) | |
2351 | ||
2352 | Sets the default path. | |
2353 | """ | |
2354 | return _windows_.DirDialog_SetPath(*args, **kwargs) | |
2355 | ||
2356 | ||
2357 | class DirDialogPtr(DirDialog): | |
2358 | def __init__(self, this): | |
2359 | self.this = this | |
2360 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2361 | self.__class__ = DirDialog | |
2362 | _windows_.DirDialog_swigregister(DirDialogPtr) | |
2363 | ||
2364 | class FileDialog(Dialog): | |
d6c14a4c RD |
2365 | """ |
2366 | wx.FileDialog allows the user to select one or more files from the | |
2367 | filesystem. | |
d6c14a4c | 2368 | """ |
d55e5bfc RD |
2369 | def __repr__(self): |
2370 | return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2371 | def __init__(self, *args, **kwargs): | |
2372 | """ | |
2373 | __init__(self, Window parent, String message=FileSelectorPromptStr, | |
2374 | String defaultDir=EmptyString, String defaultFile=EmptyString, | |
2375 | String wildcard=FileSelectorDefaultWildcardStr, | |
2376 | long style=0, Point pos=DefaultPosition) -> FileDialog | |
2377 | ||
2378 | Constructor. Use ShowModal method to show the dialog. | |
2379 | """ | |
2380 | newobj = _windows_.new_FileDialog(*args, **kwargs) | |
2381 | self.this = newobj.this | |
2382 | self.thisown = 1 | |
2383 | del newobj.thisown | |
2384 | self._setOORInfo(self) | |
2385 | ||
2386 | def SetMessage(*args, **kwargs): | |
2387 | """ | |
2388 | SetMessage(self, String message) | |
2389 | ||
2390 | Sets the message that will be displayed on the dialog. | |
2391 | """ | |
2392 | return _windows_.FileDialog_SetMessage(*args, **kwargs) | |
2393 | ||
2394 | def SetPath(*args, **kwargs): | |
2395 | """ | |
2396 | SetPath(self, String path) | |
2397 | ||
d6c14a4c RD |
2398 | Sets the path (the combined directory and filename that will be |
2399 | returned when the dialog is dismissed). | |
d55e5bfc RD |
2400 | """ |
2401 | return _windows_.FileDialog_SetPath(*args, **kwargs) | |
2402 | ||
2403 | def SetDirectory(*args, **kwargs): | |
2404 | """ | |
2405 | SetDirectory(self, String dir) | |
2406 | ||
2407 | Sets the default directory. | |
2408 | """ | |
2409 | return _windows_.FileDialog_SetDirectory(*args, **kwargs) | |
2410 | ||
2411 | def SetFilename(*args, **kwargs): | |
2412 | """ | |
2413 | SetFilename(self, String name) | |
2414 | ||
2415 | Sets the default filename. | |
2416 | """ | |
2417 | return _windows_.FileDialog_SetFilename(*args, **kwargs) | |
2418 | ||
2419 | def SetWildcard(*args, **kwargs): | |
2420 | """ | |
2421 | SetWildcard(self, String wildCard) | |
2422 | ||
d6c14a4c RD |
2423 | Sets the wildcard, which can contain multiple file types, for |
2424 | example:: | |
2425 | ||
d55e5bfc | 2426 | "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif" |
d6c14a4c | 2427 | |
d55e5bfc RD |
2428 | """ |
2429 | return _windows_.FileDialog_SetWildcard(*args, **kwargs) | |
2430 | ||
2431 | def SetStyle(*args, **kwargs): | |
2432 | """ | |
2433 | SetStyle(self, long style) | |
2434 | ||
2435 | Sets the dialog style. | |
2436 | """ | |
2437 | return _windows_.FileDialog_SetStyle(*args, **kwargs) | |
2438 | ||
2439 | def SetFilterIndex(*args, **kwargs): | |
2440 | """ | |
2441 | SetFilterIndex(self, int filterIndex) | |
2442 | ||
2443 | Sets the default filter index, starting from zero. | |
2444 | """ | |
2445 | return _windows_.FileDialog_SetFilterIndex(*args, **kwargs) | |
2446 | ||
2447 | def GetMessage(*args, **kwargs): | |
2448 | """ | |
2449 | GetMessage(self) -> String | |
2450 | ||
2451 | Returns the message that will be displayed on the dialog. | |
2452 | """ | |
2453 | return _windows_.FileDialog_GetMessage(*args, **kwargs) | |
2454 | ||
2455 | def GetPath(*args, **kwargs): | |
2456 | """ | |
2457 | GetPath(self) -> String | |
2458 | ||
2459 | Returns the full path (directory and filename) of the selected file. | |
2460 | """ | |
2461 | return _windows_.FileDialog_GetPath(*args, **kwargs) | |
2462 | ||
2463 | def GetDirectory(*args, **kwargs): | |
2464 | """ | |
2465 | GetDirectory(self) -> String | |
2466 | ||
2467 | Returns the default directory. | |
2468 | """ | |
2469 | return _windows_.FileDialog_GetDirectory(*args, **kwargs) | |
2470 | ||
2471 | def GetFilename(*args, **kwargs): | |
2472 | """ | |
2473 | GetFilename(self) -> String | |
2474 | ||
2475 | Returns the default filename. | |
2476 | """ | |
2477 | return _windows_.FileDialog_GetFilename(*args, **kwargs) | |
2478 | ||
2479 | def GetWildcard(*args, **kwargs): | |
2480 | """ | |
2481 | GetWildcard(self) -> String | |
2482 | ||
2483 | Returns the file dialog wildcard. | |
2484 | """ | |
2485 | return _windows_.FileDialog_GetWildcard(*args, **kwargs) | |
2486 | ||
2487 | def GetStyle(*args, **kwargs): | |
2488 | """ | |
2489 | GetStyle(self) -> long | |
2490 | ||
2491 | Returns the dialog style. | |
2492 | """ | |
2493 | return _windows_.FileDialog_GetStyle(*args, **kwargs) | |
2494 | ||
2495 | def GetFilterIndex(*args, **kwargs): | |
2496 | """ | |
2497 | GetFilterIndex(self) -> int | |
2498 | ||
2499 | Returns the index into the list of filters supplied, optionally, in | |
2500 | the wildcard parameter. Before the dialog is shown, this is the index | |
d6c14a4c RD |
2501 | which will be used when the dialog is first displayed. After the |
2502 | dialog is shown, this is the index selected by the user. | |
d55e5bfc RD |
2503 | """ |
2504 | return _windows_.FileDialog_GetFilterIndex(*args, **kwargs) | |
2505 | ||
2506 | def GetFilenames(*args, **kwargs): | |
2507 | """ | |
2508 | GetFilenames(self) -> PyObject | |
2509 | ||
d6c14a4c RD |
2510 | Returns a list of filenames chosen in the dialog. This function |
2511 | should only be used with the dialogs which have wx.MULTIPLE style, use | |
d55e5bfc RD |
2512 | GetFilename for the others. |
2513 | """ | |
2514 | return _windows_.FileDialog_GetFilenames(*args, **kwargs) | |
2515 | ||
2516 | def GetPaths(*args, **kwargs): | |
2517 | """ | |
2518 | GetPaths(self) -> PyObject | |
2519 | ||
2520 | Fills the array paths with the full paths of the files chosen. This | |
d6c14a4c RD |
2521 | function should only be used with the dialogs which have wx.MULTIPLE |
2522 | style, use GetPath for the others. | |
d55e5bfc RD |
2523 | """ |
2524 | return _windows_.FileDialog_GetPaths(*args, **kwargs) | |
2525 | ||
2526 | ||
2527 | class FileDialogPtr(FileDialog): | |
2528 | def __init__(self, this): | |
2529 | self.this = this | |
2530 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2531 | self.__class__ = FileDialog | |
2532 | _windows_.FileDialog_swigregister(FileDialogPtr) | |
2533 | ||
2534 | CHOICEDLG_STYLE = _windows_.CHOICEDLG_STYLE | |
2535 | class MultiChoiceDialog(Dialog): | |
2536 | """A simple dialog with a multi selection listbox.""" | |
2537 | def __repr__(self): | |
2538 | return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2539 | def __init__(self, *args, **kwargs): | |
2540 | """ | |
2541 | __init__(Window parent, String message, String caption, | |
2542 | List choices=[], long style=CHOICEDLG_STYLE, | |
2543 | Point pos=DefaultPosition) -> MultiChoiceDialog | |
2544 | ||
2545 | Constructor. Use ShowModal method to show the dialog. | |
2546 | """ | |
2547 | newobj = _windows_.new_MultiChoiceDialog(*args, **kwargs) | |
2548 | self.this = newobj.this | |
2549 | self.thisown = 1 | |
2550 | del newobj.thisown | |
2551 | self._setOORInfo(self) | |
2552 | ||
2553 | def SetSelections(*args, **kwargs): | |
a001823c RD |
2554 | """ |
2555 | SetSelections(List selections) | |
2556 | ||
2557 | Specify the items in the list that should be selected, using a list of | |
2558 | integers. | |
2559 | """ | |
d55e5bfc RD |
2560 | return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs) |
2561 | ||
2562 | def GetSelections(*args, **kwargs): | |
2563 | """ | |
2564 | GetSelections() -> [selections] | |
2565 | ||
2566 | Returns a list of integers representing the items that are selected. | |
2567 | """ | |
2568 | return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs) | |
2569 | ||
2570 | ||
2571 | class MultiChoiceDialogPtr(MultiChoiceDialog): | |
2572 | def __init__(self, this): | |
2573 | self.this = this | |
2574 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2575 | self.__class__ = MultiChoiceDialog | |
2576 | _windows_.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr) | |
2577 | ||
2578 | class SingleChoiceDialog(Dialog): | |
2579 | """A simple dialog with a single selection listbox.""" | |
2580 | def __repr__(self): | |
2581 | return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2582 | def __init__(self, *args, **kwargs): | |
2583 | """ | |
2584 | __init__(Window parent, String message, String caption, | |
2585 | List choices=[], long style=CHOICEDLG_STYLE, | |
2586 | Point pos=DefaultPosition) -> SingleChoiceDialog | |
2587 | ||
2588 | Constructor. Use ShowModal method to show the dialog. | |
2589 | """ | |
2590 | newobj = _windows_.new_SingleChoiceDialog(*args, **kwargs) | |
2591 | self.this = newobj.this | |
2592 | self.thisown = 1 | |
2593 | del newobj.thisown | |
2594 | self._setOORInfo(self) | |
2595 | ||
2596 | def GetSelection(*args, **kwargs): | |
2597 | """ | |
2598 | GetSelection(self) -> int | |
2599 | ||
2600 | Get the index of teh currently selected item. | |
2601 | """ | |
2602 | return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs) | |
2603 | ||
2604 | def GetStringSelection(*args, **kwargs): | |
2605 | """ | |
2606 | GetStringSelection(self) -> String | |
2607 | ||
2608 | Returns the string value of the currently selected item | |
2609 | """ | |
2610 | return _windows_.SingleChoiceDialog_GetStringSelection(*args, **kwargs) | |
2611 | ||
2612 | def SetSelection(*args, **kwargs): | |
2613 | """ | |
2614 | SetSelection(self, int sel) | |
2615 | ||
2616 | Set the current selected item to sel | |
2617 | """ | |
2618 | return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs) | |
2619 | ||
2620 | ||
2621 | class SingleChoiceDialogPtr(SingleChoiceDialog): | |
2622 | def __init__(self, this): | |
2623 | self.this = this | |
2624 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2625 | self.__class__ = SingleChoiceDialog | |
2626 | _windows_.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr) | |
2627 | ||
03e46024 | 2628 | TextEntryDialogStyle = _windows_.TextEntryDialogStyle |
d55e5bfc RD |
2629 | class TextEntryDialog(Dialog): |
2630 | """A dialog with text control, [ok] and [cancel] buttons""" | |
2631 | def __repr__(self): | |
2632 | return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2633 | def __init__(self, *args, **kwargs): | |
2634 | """ | |
2635 | __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr, | |
2636 | String defaultValue=EmptyString, | |
03e46024 | 2637 | long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog |
d55e5bfc RD |
2638 | |
2639 | Constructor. Use ShowModal method to show the dialog. | |
2640 | """ | |
2641 | newobj = _windows_.new_TextEntryDialog(*args, **kwargs) | |
2642 | self.this = newobj.this | |
2643 | self.thisown = 1 | |
2644 | del newobj.thisown | |
2645 | self._setOORInfo(self) | |
2646 | ||
2647 | def GetValue(*args, **kwargs): | |
2648 | """ | |
2649 | GetValue(self) -> String | |
2650 | ||
2651 | Returns the text that the user has entered if the user has pressed OK, | |
2652 | or the original value if the user has pressed Cancel. | |
2653 | """ | |
2654 | return _windows_.TextEntryDialog_GetValue(*args, **kwargs) | |
2655 | ||
2656 | def SetValue(*args, **kwargs): | |
2657 | """ | |
2658 | SetValue(self, String value) | |
2659 | ||
2660 | Sets the default text value. | |
2661 | """ | |
2662 | return _windows_.TextEntryDialog_SetValue(*args, **kwargs) | |
2663 | ||
2664 | ||
2665 | class TextEntryDialogPtr(TextEntryDialog): | |
2666 | def __init__(self, this): | |
2667 | self.this = this | |
2668 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2669 | self.__class__ = TextEntryDialog | |
2670 | _windows_.TextEntryDialog_swigregister(TextEntryDialogPtr) | |
2671 | ||
070c48b4 RD |
2672 | class PasswordEntryDialog(TextEntryDialog): |
2673 | def __repr__(self): | |
2674 | return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2675 | def __init__(self, *args, **kwargs): | |
2676 | """ | |
2677 | __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr, | |
2678 | String value=EmptyString, | |
03e46024 | 2679 | long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog |
070c48b4 RD |
2680 | """ |
2681 | newobj = _windows_.new_PasswordEntryDialog(*args, **kwargs) | |
2682 | self.this = newobj.this | |
2683 | self.thisown = 1 | |
2684 | del newobj.thisown | |
2685 | ||
2686 | class PasswordEntryDialogPtr(PasswordEntryDialog): | |
2687 | def __init__(self, this): | |
2688 | self.this = this | |
2689 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2690 | self.__class__ = PasswordEntryDialog | |
2691 | _windows_.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr) | |
2692 | GetPasswordFromUserPromptStr = cvar.GetPasswordFromUserPromptStr | |
2693 | ||
d55e5bfc | 2694 | class FontData(_core.Object): |
d6c14a4c RD |
2695 | """ |
2696 | This class holds a variety of information related to font dialogs and | |
2697 | is used to transfer settings to and results from a `wx.FontDialog`. | |
2698 | """ | |
d55e5bfc RD |
2699 | def __repr__(self): |
2700 | return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2701 | def __init__(self, *args, **kwargs): | |
2702 | """ | |
2703 | __init__(self) -> FontData | |
2704 | ||
d6c14a4c RD |
2705 | This class holds a variety of information related to font dialogs and |
2706 | is used to transfer settings to and results from a `wx.FontDialog`. | |
d55e5bfc RD |
2707 | """ |
2708 | newobj = _windows_.new_FontData(*args, **kwargs) | |
2709 | self.this = newobj.this | |
2710 | self.thisown = 1 | |
2711 | del newobj.thisown | |
2712 | def __del__(self, destroy=_windows_.delete_FontData): | |
2713 | """__del__(self)""" | |
2714 | try: | |
2715 | if self.thisown: destroy(self) | |
2716 | except: pass | |
2717 | ||
2718 | def EnableEffects(*args, **kwargs): | |
2719 | """ | |
2720 | EnableEffects(self, bool enable) | |
2721 | ||
d6c14a4c RD |
2722 | Enables or disables 'effects' under MS Windows only. This refers to |
2723 | the controls for manipulating colour, strikeout and underline | |
d55e5bfc RD |
2724 | properties. The default value is true. |
2725 | """ | |
2726 | return _windows_.FontData_EnableEffects(*args, **kwargs) | |
2727 | ||
2728 | def GetAllowSymbols(*args, **kwargs): | |
2729 | """ | |
2730 | GetAllowSymbols(self) -> bool | |
2731 | ||
d6c14a4c RD |
2732 | Under MS Windows, returns a flag determining whether symbol fonts can |
2733 | be selected. Has no effect on other platforms. The default value is | |
2734 | true. | |
d55e5bfc RD |
2735 | """ |
2736 | return _windows_.FontData_GetAllowSymbols(*args, **kwargs) | |
2737 | ||
2738 | def GetColour(*args, **kwargs): | |
2739 | """ | |
2740 | GetColour(self) -> Colour | |
2741 | ||
d6c14a4c RD |
2742 | Gets the colour associated with the font dialog. The default value is |
2743 | black. | |
d55e5bfc RD |
2744 | """ |
2745 | return _windows_.FontData_GetColour(*args, **kwargs) | |
2746 | ||
2747 | def GetChosenFont(*args, **kwargs): | |
2748 | """ | |
2749 | GetChosenFont(self) -> Font | |
2750 | ||
2751 | Gets the font chosen by the user. | |
2752 | """ | |
2753 | return _windows_.FontData_GetChosenFont(*args, **kwargs) | |
2754 | ||
2755 | def GetEnableEffects(*args, **kwargs): | |
2756 | """ | |
2757 | GetEnableEffects(self) -> bool | |
2758 | ||
2759 | Determines whether 'effects' are enabled under Windows. | |
2760 | """ | |
2761 | return _windows_.FontData_GetEnableEffects(*args, **kwargs) | |
2762 | ||
2763 | def GetInitialFont(*args, **kwargs): | |
2764 | """ | |
2765 | GetInitialFont(self) -> Font | |
2766 | ||
d6c14a4c RD |
2767 | Gets the font that will be initially used by the font dialog. This |
2768 | should have previously been set by the application. | |
d55e5bfc RD |
2769 | """ |
2770 | return _windows_.FontData_GetInitialFont(*args, **kwargs) | |
2771 | ||
2772 | def GetShowHelp(*args, **kwargs): | |
2773 | """ | |
2774 | GetShowHelp(self) -> bool | |
2775 | ||
d6c14a4c RD |
2776 | Returns true if the Help button will be shown (Windows only). The |
2777 | default value is false. | |
d55e5bfc RD |
2778 | """ |
2779 | return _windows_.FontData_GetShowHelp(*args, **kwargs) | |
2780 | ||
2781 | def SetAllowSymbols(*args, **kwargs): | |
2782 | """ | |
2783 | SetAllowSymbols(self, bool allowSymbols) | |
2784 | ||
d6c14a4c RD |
2785 | Under MS Windows, determines whether symbol fonts can be selected. Has |
2786 | no effect on other platforms. The default value is true. | |
d55e5bfc RD |
2787 | """ |
2788 | return _windows_.FontData_SetAllowSymbols(*args, **kwargs) | |
2789 | ||
2790 | def SetChosenFont(*args, **kwargs): | |
2791 | """ | |
2792 | SetChosenFont(self, Font font) | |
2793 | ||
d6c14a4c RD |
2794 | Sets the font that will be returned to the user (normally for internal |
2795 | use only). | |
d55e5bfc RD |
2796 | """ |
2797 | return _windows_.FontData_SetChosenFont(*args, **kwargs) | |
2798 | ||
2799 | def SetColour(*args, **kwargs): | |
2800 | """ | |
2801 | SetColour(self, Colour colour) | |
2802 | ||
d6c14a4c RD |
2803 | Sets the colour that will be used for the font foreground colour. The |
2804 | default colour is black. | |
d55e5bfc RD |
2805 | """ |
2806 | return _windows_.FontData_SetColour(*args, **kwargs) | |
2807 | ||
2808 | def SetInitialFont(*args, **kwargs): | |
2809 | """ | |
2810 | SetInitialFont(self, Font font) | |
2811 | ||
2812 | Sets the font that will be initially used by the font dialog. | |
2813 | """ | |
2814 | return _windows_.FontData_SetInitialFont(*args, **kwargs) | |
2815 | ||
2816 | def SetRange(*args, **kwargs): | |
2817 | """ | |
2818 | SetRange(self, int min, int max) | |
2819 | ||
d6c14a4c RD |
2820 | Sets the valid range for the font point size (Windows only). The |
2821 | default is 0, 0 (unrestricted range). | |
d55e5bfc RD |
2822 | """ |
2823 | return _windows_.FontData_SetRange(*args, **kwargs) | |
2824 | ||
2825 | def SetShowHelp(*args, **kwargs): | |
2826 | """ | |
2827 | SetShowHelp(self, bool showHelp) | |
2828 | ||
d6c14a4c RD |
2829 | Determines whether the Help button will be displayed in the font |
2830 | dialog (Windows only). The default value is false. | |
d55e5bfc RD |
2831 | """ |
2832 | return _windows_.FontData_SetShowHelp(*args, **kwargs) | |
2833 | ||
2834 | ||
2835 | class FontDataPtr(FontData): | |
2836 | def __init__(self, this): | |
2837 | self.this = this | |
2838 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2839 | self.__class__ = FontData | |
2840 | _windows_.FontData_swigregister(FontDataPtr) | |
2841 | ||
2842 | class FontDialog(Dialog): | |
d6c14a4c RD |
2843 | """ |
2844 | wx.FontDialog allows the user to select a system font and its attributes. | |
2845 | ||
2846 | :see: `wx.FontData` | |
2847 | ||
2848 | """ | |
d55e5bfc RD |
2849 | def __repr__(self): |
2850 | return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2851 | def __init__(self, *args, **kwargs): | |
2852 | """ | |
2853 | __init__(self, Window parent, FontData data) -> FontDialog | |
2854 | ||
d6c14a4c RD |
2855 | Constructor. Pass a parent window and the `wx.FontData` object to be |
2856 | used to initialize the dialog controls. Call `ShowModal` to display | |
2857 | the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the | |
2858 | results with via the `wx.FontData` returned by `GetFontData`. | |
d55e5bfc RD |
2859 | """ |
2860 | newobj = _windows_.new_FontDialog(*args, **kwargs) | |
2861 | self.this = newobj.this | |
2862 | self.thisown = 1 | |
2863 | del newobj.thisown | |
2864 | self._setOORInfo(self) | |
2865 | ||
2866 | def GetFontData(*args, **kwargs): | |
2867 | """ | |
2868 | GetFontData(self) -> FontData | |
2869 | ||
d6c14a4c RD |
2870 | Returns a reference to the internal `wx.FontData` used by the |
2871 | wx.FontDialog. | |
d55e5bfc RD |
2872 | """ |
2873 | return _windows_.FontDialog_GetFontData(*args, **kwargs) | |
2874 | ||
2875 | ||
2876 | class FontDialogPtr(FontDialog): | |
2877 | def __init__(self, this): | |
2878 | self.this = this | |
2879 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2880 | self.__class__ = FontDialog | |
2881 | _windows_.FontDialog_swigregister(FontDialogPtr) | |
2882 | ||
2883 | class MessageDialog(Dialog): | |
2884 | """ | |
d6c14a4c RD |
2885 | This class provides a simple dialog that shows a single or multi-line |
2886 | message, with a choice of OK, Yes, No and/or Cancel buttons. | |
d55e5bfc RD |
2887 | """ |
2888 | def __repr__(self): | |
2889 | return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2890 | def __init__(self, *args, **kwargs): | |
2891 | """ | |
2892 | __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr, | |
2893 | long style=wxOK|wxCANCEL|wxCENTRE, | |
2894 | Point pos=DefaultPosition) -> MessageDialog | |
2895 | ||
d6c14a4c | 2896 | Constructor, use `ShowModal` to display the dialog. |
d55e5bfc RD |
2897 | """ |
2898 | newobj = _windows_.new_MessageDialog(*args, **kwargs) | |
2899 | self.this = newobj.this | |
2900 | self.thisown = 1 | |
2901 | del newobj.thisown | |
2902 | self._setOORInfo(self) | |
2903 | ||
2904 | ||
2905 | class MessageDialogPtr(MessageDialog): | |
2906 | def __init__(self, this): | |
2907 | self.this = this | |
2908 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2909 | self.__class__ = MessageDialog | |
2910 | _windows_.MessageDialog_swigregister(MessageDialogPtr) | |
2911 | ||
2912 | class ProgressDialog(Frame): | |
2913 | """ | |
d6c14a4c RD |
2914 | A dialog that shows a short message and a progress bar. Optionally, it |
2915 | can display an ABORT button. | |
d55e5bfc RD |
2916 | """ |
2917 | def __repr__(self): | |
2918 | return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2919 | def __init__(self, *args, **kwargs): | |
2920 | """ | |
2921 | __init__(self, String title, String message, int maximum=100, Window parent=None, | |
2922 | int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog | |
2923 | ||
d6c14a4c RD |
2924 | Constructor. Creates the dialog, displays it and disables user input |
2925 | for other windows, or, if wx.PD_APP_MODAL flag is not given, for its | |
2926 | parent window only. | |
d55e5bfc RD |
2927 | """ |
2928 | newobj = _windows_.new_ProgressDialog(*args, **kwargs) | |
2929 | self.this = newobj.this | |
2930 | self.thisown = 1 | |
2931 | del newobj.thisown | |
2932 | self._setOORInfo(self) | |
2933 | ||
2934 | def Update(*args, **kwargs): | |
2935 | """ | |
2936 | Update(self, int value, String newmsg=EmptyString) -> bool | |
2937 | ||
d6c14a4c | 2938 | Updates the dialog, setting the progress bar to the new value and, if |
6923d0a9 RD |
2939 | given changes the message above it. The value given should be less |
2940 | than or equal to the maximum value given to the constructor and the | |
2941 | dialog is closed if it is equal to the maximum. Returns true unless | |
2942 | the Cancel button has been pressed. | |
d55e5bfc | 2943 | |
d6c14a4c RD |
2944 | If false is returned, the application can either immediately destroy |
2945 | the dialog or ask the user for the confirmation and if the abort is | |
2946 | not confirmed the dialog may be resumed with Resume function. | |
d55e5bfc RD |
2947 | """ |
2948 | return _windows_.ProgressDialog_Update(*args, **kwargs) | |
2949 | ||
2950 | def Resume(*args, **kwargs): | |
2951 | """ | |
2952 | Resume(self) | |
2953 | ||
d6c14a4c RD |
2954 | Can be used to continue with the dialog, after the user had chosen to |
2955 | abort. | |
d55e5bfc RD |
2956 | """ |
2957 | return _windows_.ProgressDialog_Resume(*args, **kwargs) | |
2958 | ||
2959 | ||
2960 | class ProgressDialogPtr(ProgressDialog): | |
2961 | def __init__(self, this): | |
2962 | self.this = this | |
2963 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2964 | self.__class__ = ProgressDialog | |
2965 | _windows_.ProgressDialog_swigregister(ProgressDialogPtr) | |
2966 | ||
2967 | FR_DOWN = _windows_.FR_DOWN | |
2968 | FR_WHOLEWORD = _windows_.FR_WHOLEWORD | |
2969 | FR_MATCHCASE = _windows_.FR_MATCHCASE | |
2970 | FR_REPLACEDIALOG = _windows_.FR_REPLACEDIALOG | |
2971 | FR_NOUPDOWN = _windows_.FR_NOUPDOWN | |
2972 | FR_NOMATCHCASE = _windows_.FR_NOMATCHCASE | |
2973 | FR_NOWHOLEWORD = _windows_.FR_NOWHOLEWORD | |
2974 | wxEVT_COMMAND_FIND = _windows_.wxEVT_COMMAND_FIND | |
2975 | wxEVT_COMMAND_FIND_NEXT = _windows_.wxEVT_COMMAND_FIND_NEXT | |
2976 | wxEVT_COMMAND_FIND_REPLACE = _windows_.wxEVT_COMMAND_FIND_REPLACE | |
2977 | wxEVT_COMMAND_FIND_REPLACE_ALL = _windows_.wxEVT_COMMAND_FIND_REPLACE_ALL | |
2978 | wxEVT_COMMAND_FIND_CLOSE = _windows_.wxEVT_COMMAND_FIND_CLOSE | |
2979 | EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 ) | |
2980 | EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 ) | |
2981 | EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 ) | |
2982 | EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 ) | |
2983 | EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 ) | |
2984 | ||
2985 | # For backwards compatibility. Should they be removed? | |
2986 | EVT_COMMAND_FIND = EVT_FIND | |
2987 | EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT | |
2988 | EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE | |
2989 | EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL | |
2990 | EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE | |
2991 | ||
2992 | class FindDialogEvent(_core.CommandEvent): | |
2993 | """Events for the FindReplaceDialog""" | |
2994 | def __repr__(self): | |
2995 | return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2996 | def __init__(self, *args, **kwargs): | |
2997 | """ | |
2998 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent | |
2999 | ||
3000 | Events for the FindReplaceDialog | |
3001 | """ | |
3002 | newobj = _windows_.new_FindDialogEvent(*args, **kwargs) | |
3003 | self.this = newobj.this | |
3004 | self.thisown = 1 | |
3005 | del newobj.thisown | |
3006 | def GetFlags(*args, **kwargs): | |
3007 | """ | |
3008 | GetFlags(self) -> int | |
3009 | ||
3010 | Get the currently selected flags: this is the combination of | |
3011 | wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags. | |
3012 | """ | |
3013 | return _windows_.FindDialogEvent_GetFlags(*args, **kwargs) | |
3014 | ||
3015 | def GetFindString(*args, **kwargs): | |
3016 | """ | |
3017 | GetFindString(self) -> String | |
3018 | ||
3019 | Return the string to find (never empty). | |
3020 | """ | |
3021 | return _windows_.FindDialogEvent_GetFindString(*args, **kwargs) | |
3022 | ||
3023 | def GetReplaceString(*args, **kwargs): | |
3024 | """ | |
3025 | GetReplaceString(self) -> String | |
3026 | ||
d6c14a4c RD |
3027 | Return the string to replace the search string with (only for replace |
3028 | and replace all events). | |
d55e5bfc RD |
3029 | """ |
3030 | return _windows_.FindDialogEvent_GetReplaceString(*args, **kwargs) | |
3031 | ||
3032 | def GetDialog(*args, **kwargs): | |
3033 | """ | |
3034 | GetDialog(self) -> FindReplaceDialog | |
3035 | ||
3036 | Return the pointer to the dialog which generated this event. | |
3037 | """ | |
3038 | return _windows_.FindDialogEvent_GetDialog(*args, **kwargs) | |
3039 | ||
3040 | def SetFlags(*args, **kwargs): | |
3041 | """SetFlags(self, int flags)""" | |
3042 | return _windows_.FindDialogEvent_SetFlags(*args, **kwargs) | |
3043 | ||
3044 | def SetFindString(*args, **kwargs): | |
3045 | """SetFindString(self, String str)""" | |
3046 | return _windows_.FindDialogEvent_SetFindString(*args, **kwargs) | |
3047 | ||
3048 | def SetReplaceString(*args, **kwargs): | |
3049 | """SetReplaceString(self, String str)""" | |
3050 | return _windows_.FindDialogEvent_SetReplaceString(*args, **kwargs) | |
3051 | ||
3052 | ||
3053 | class FindDialogEventPtr(FindDialogEvent): | |
3054 | def __init__(self, this): | |
3055 | self.this = this | |
3056 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3057 | self.__class__ = FindDialogEvent | |
3058 | _windows_.FindDialogEvent_swigregister(FindDialogEventPtr) | |
3059 | ||
3060 | class FindReplaceData(_core.Object): | |
3061 | """ | |
d6c14a4c RD |
3062 | wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used |
3063 | to initialize the dialog with the default values and will keep the | |
3064 | last values from the dialog when it is closed. It is also updated each | |
3065 | time a `wx.FindDialogEvent` is generated so instead of using the | |
3066 | `wx.FindDialogEvent` methods you can also directly query this object. | |
d55e5bfc | 3067 | |
d6c14a4c RD |
3068 | Note that all SetXXX() methods may only be called before showing the |
3069 | dialog and calling them has no effect later. | |
d55e5bfc RD |
3070 | """ |
3071 | def __repr__(self): | |
3072 | return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3073 | def __init__(self, *args, **kwargs): | |
3074 | """ | |
3075 | __init__(self, int flags=0) -> FindReplaceData | |
3076 | ||
3077 | Constuctor initializes the flags to default value (0). | |
3078 | """ | |
3079 | newobj = _windows_.new_FindReplaceData(*args, **kwargs) | |
3080 | self.this = newobj.this | |
3081 | self.thisown = 1 | |
3082 | del newobj.thisown | |
3083 | def __del__(self, destroy=_windows_.delete_FindReplaceData): | |
3084 | """__del__(self)""" | |
3085 | try: | |
3086 | if self.thisown: destroy(self) | |
3087 | except: pass | |
3088 | ||
3089 | def GetFindString(*args, **kwargs): | |
3090 | """ | |
3091 | GetFindString(self) -> String | |
3092 | ||
3093 | Get the string to find. | |
3094 | """ | |
3095 | return _windows_.FindReplaceData_GetFindString(*args, **kwargs) | |
3096 | ||
3097 | def GetReplaceString(*args, **kwargs): | |
3098 | """ | |
3099 | GetReplaceString(self) -> String | |
3100 | ||
3101 | Get the replacement string. | |
3102 | """ | |
3103 | return _windows_.FindReplaceData_GetReplaceString(*args, **kwargs) | |
3104 | ||
3105 | def GetFlags(*args, **kwargs): | |
3106 | """ | |
3107 | GetFlags(self) -> int | |
3108 | ||
3109 | Get the combination of flag values. | |
3110 | """ | |
3111 | return _windows_.FindReplaceData_GetFlags(*args, **kwargs) | |
3112 | ||
3113 | def SetFlags(*args, **kwargs): | |
3114 | """ | |
3115 | SetFlags(self, int flags) | |
3116 | ||
3117 | Set the flags to use to initialize the controls of the dialog. | |
3118 | """ | |
3119 | return _windows_.FindReplaceData_SetFlags(*args, **kwargs) | |
3120 | ||
3121 | def SetFindString(*args, **kwargs): | |
3122 | """ | |
3123 | SetFindString(self, String str) | |
3124 | ||
3125 | Set the string to find (used as initial value by the dialog). | |
3126 | """ | |
3127 | return _windows_.FindReplaceData_SetFindString(*args, **kwargs) | |
3128 | ||
3129 | def SetReplaceString(*args, **kwargs): | |
3130 | """ | |
3131 | SetReplaceString(self, String str) | |
3132 | ||
3133 | Set the replacement string (used as initial value by the dialog). | |
3134 | """ | |
3135 | return _windows_.FindReplaceData_SetReplaceString(*args, **kwargs) | |
3136 | ||
3137 | ||
3138 | class FindReplaceDataPtr(FindReplaceData): | |
3139 | def __init__(self, this): | |
3140 | self.this = this | |
3141 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3142 | self.__class__ = FindReplaceData | |
3143 | _windows_.FindReplaceData_swigregister(FindReplaceDataPtr) | |
3144 | ||
3145 | class FindReplaceDialog(Dialog): | |
3146 | """ | |
d6c14a4c RD |
3147 | wx.FindReplaceDialog is a standard modeless dialog which is used to |
3148 | allow the user to search for some text (and possibly replace it with | |
3149 | something else). The actual searching is supposed to be done in the | |
3150 | owner window which is the parent of this dialog. Note that it means | |
3151 | that unlike for the other standard dialogs this one must have a parent | |
3152 | window. Also note that there is no way to use this dialog in a modal | |
3153 | way; it is always, by design and implementation, modeless. | |
d55e5bfc RD |
3154 | """ |
3155 | def __repr__(self): | |
3156 | return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3157 | def __init__(self, *args, **kwargs): | |
3158 | """ | |
3159 | __init__(self, Window parent, FindReplaceData data, String title, | |
3160 | int style=0) -> FindReplaceDialog | |
3161 | ||
3162 | Create a FindReplaceDialog. The parent and data parameters must be | |
3163 | non-None. Use Show to display the dialog. | |
3164 | """ | |
3165 | newobj = _windows_.new_FindReplaceDialog(*args, **kwargs) | |
3166 | self.this = newobj.this | |
3167 | self.thisown = 1 | |
3168 | del newobj.thisown | |
3169 | self._setOORInfo(self) | |
3170 | ||
3171 | def Create(*args, **kwargs): | |
3172 | """ | |
3173 | Create(self, Window parent, FindReplaceData data, String title, | |
3174 | int style=0) -> bool | |
3175 | ||
3176 | Create the dialog, for 2-phase create. | |
3177 | """ | |
3178 | return _windows_.FindReplaceDialog_Create(*args, **kwargs) | |
3179 | ||
3180 | def GetData(*args, **kwargs): | |
3181 | """ | |
3182 | GetData(self) -> FindReplaceData | |
3183 | ||
3184 | Get the FindReplaceData object used by this dialog. | |
3185 | """ | |
3186 | return _windows_.FindReplaceDialog_GetData(*args, **kwargs) | |
3187 | ||
3188 | def SetData(*args, **kwargs): | |
3189 | """ | |
3190 | SetData(self, FindReplaceData data) | |
3191 | ||
3192 | Set the FindReplaceData object used by this dialog. | |
3193 | """ | |
3194 | return _windows_.FindReplaceDialog_SetData(*args, **kwargs) | |
3195 | ||
3196 | ||
3197 | class FindReplaceDialogPtr(FindReplaceDialog): | |
3198 | def __init__(self, this): | |
3199 | self.this = this | |
3200 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3201 | self.__class__ = FindReplaceDialog | |
3202 | _windows_.FindReplaceDialog_swigregister(FindReplaceDialogPtr) | |
3203 | ||
3204 | def PreFindReplaceDialog(*args, **kwargs): | |
3205 | """ | |
3206 | PreFindReplaceDialog() -> FindReplaceDialog | |
3207 | ||
3208 | Precreate a FindReplaceDialog for 2-phase creation | |
3209 | """ | |
3210 | val = _windows_.new_PreFindReplaceDialog(*args, **kwargs) | |
3211 | val.thisown = 1 | |
3212 | return val | |
3213 | ||
3214 | #--------------------------------------------------------------------------- | |
3215 | ||
3216 | IDM_WINDOWTILE = _windows_.IDM_WINDOWTILE | |
3217 | IDM_WINDOWTILEHOR = _windows_.IDM_WINDOWTILEHOR | |
3218 | IDM_WINDOWCASCADE = _windows_.IDM_WINDOWCASCADE | |
3219 | IDM_WINDOWICONS = _windows_.IDM_WINDOWICONS | |
3220 | IDM_WINDOWNEXT = _windows_.IDM_WINDOWNEXT | |
3221 | IDM_WINDOWTILEVERT = _windows_.IDM_WINDOWTILEVERT | |
3222 | FIRST_MDI_CHILD = _windows_.FIRST_MDI_CHILD | |
3223 | LAST_MDI_CHILD = _windows_.LAST_MDI_CHILD | |
3224 | class MDIParentFrame(Frame): | |
3225 | def __repr__(self): | |
3226 | return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3227 | def __init__(self, *args, **kwargs): | |
3228 | """ | |
bfddbb17 RD |
3229 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
3230 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3231 | long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, | |
d55e5bfc RD |
3232 | String name=FrameNameStr) -> MDIParentFrame |
3233 | """ | |
3234 | newobj = _windows_.new_MDIParentFrame(*args, **kwargs) | |
3235 | self.this = newobj.this | |
3236 | self.thisown = 1 | |
3237 | del newobj.thisown | |
3238 | self._setOORInfo(self) | |
3239 | ||
3240 | def Create(*args, **kwargs): | |
3241 | """ | |
bfddbb17 RD |
3242 | Create(self, Window parent, int id=-1, String title=EmptyString, |
3243 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3244 | long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, | |
d55e5bfc RD |
3245 | String name=FrameNameStr) -> bool |
3246 | """ | |
3247 | return _windows_.MDIParentFrame_Create(*args, **kwargs) | |
3248 | ||
3249 | def ActivateNext(*args, **kwargs): | |
3250 | """ActivateNext(self)""" | |
3251 | return _windows_.MDIParentFrame_ActivateNext(*args, **kwargs) | |
3252 | ||
3253 | def ActivatePrevious(*args, **kwargs): | |
3254 | """ActivatePrevious(self)""" | |
3255 | return _windows_.MDIParentFrame_ActivatePrevious(*args, **kwargs) | |
3256 | ||
3257 | def ArrangeIcons(*args, **kwargs): | |
3258 | """ArrangeIcons(self)""" | |
3259 | return _windows_.MDIParentFrame_ArrangeIcons(*args, **kwargs) | |
3260 | ||
3261 | def Cascade(*args, **kwargs): | |
3262 | """Cascade(self)""" | |
3263 | return _windows_.MDIParentFrame_Cascade(*args, **kwargs) | |
3264 | ||
3265 | def GetActiveChild(*args, **kwargs): | |
3266 | """GetActiveChild(self) -> MDIChildFrame""" | |
3267 | return _windows_.MDIParentFrame_GetActiveChild(*args, **kwargs) | |
3268 | ||
3269 | def GetClientWindow(*args, **kwargs): | |
3270 | """GetClientWindow(self) -> MDIClientWindow""" | |
3271 | return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs) | |
3272 | ||
3273 | def GetToolBar(*args, **kwargs): | |
3274 | """GetToolBar(self) -> Window""" | |
3275 | return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs) | |
3276 | ||
3277 | def Tile(*args, **kwargs): | |
3278 | """Tile(self)""" | |
3279 | return _windows_.MDIParentFrame_Tile(*args, **kwargs) | |
3280 | ||
3281 | ||
3282 | class MDIParentFramePtr(MDIParentFrame): | |
3283 | def __init__(self, this): | |
3284 | self.this = this | |
3285 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3286 | self.__class__ = MDIParentFrame | |
3287 | _windows_.MDIParentFrame_swigregister(MDIParentFramePtr) | |
3288 | ||
3289 | def PreMDIParentFrame(*args, **kwargs): | |
3290 | """PreMDIParentFrame() -> MDIParentFrame""" | |
3291 | val = _windows_.new_PreMDIParentFrame(*args, **kwargs) | |
3292 | val.thisown = 1 | |
3293 | return val | |
3294 | ||
3295 | class MDIChildFrame(Frame): | |
3296 | def __repr__(self): | |
3297 | return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3298 | def __init__(self, *args, **kwargs): | |
3299 | """ | |
bfddbb17 RD |
3300 | __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString, |
3301 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3302 | long style=DEFAULT_FRAME_STYLE, | |
d55e5bfc RD |
3303 | String name=FrameNameStr) -> MDIChildFrame |
3304 | """ | |
3305 | newobj = _windows_.new_MDIChildFrame(*args, **kwargs) | |
3306 | self.this = newobj.this | |
3307 | self.thisown = 1 | |
3308 | del newobj.thisown | |
3309 | self._setOORInfo(self) | |
3310 | ||
3311 | def Create(*args, **kwargs): | |
3312 | """ | |
bfddbb17 RD |
3313 | Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString, |
3314 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3315 | long style=DEFAULT_FRAME_STYLE, | |
d55e5bfc RD |
3316 | String name=FrameNameStr) -> bool |
3317 | """ | |
3318 | return _windows_.MDIChildFrame_Create(*args, **kwargs) | |
3319 | ||
3320 | def Activate(*args, **kwargs): | |
3321 | """Activate(self)""" | |
3322 | return _windows_.MDIChildFrame_Activate(*args, **kwargs) | |
3323 | ||
3324 | def Maximize(*args, **kwargs): | |
5cbf236d | 3325 | """Maximize(self, bool maximize=True)""" |
d55e5bfc RD |
3326 | return _windows_.MDIChildFrame_Maximize(*args, **kwargs) |
3327 | ||
3328 | def Restore(*args, **kwargs): | |
3329 | """Restore(self)""" | |
3330 | return _windows_.MDIChildFrame_Restore(*args, **kwargs) | |
3331 | ||
3332 | ||
3333 | class MDIChildFramePtr(MDIChildFrame): | |
3334 | def __init__(self, this): | |
3335 | self.this = this | |
3336 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3337 | self.__class__ = MDIChildFrame | |
3338 | _windows_.MDIChildFrame_swigregister(MDIChildFramePtr) | |
3339 | ||
3340 | def PreMDIChildFrame(*args, **kwargs): | |
3341 | """PreMDIChildFrame() -> MDIChildFrame""" | |
3342 | val = _windows_.new_PreMDIChildFrame(*args, **kwargs) | |
3343 | val.thisown = 1 | |
3344 | return val | |
3345 | ||
3346 | class MDIClientWindow(_core.Window): | |
3347 | def __repr__(self): | |
3348 | return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3349 | def __init__(self, *args, **kwargs): | |
3350 | """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow""" | |
3351 | newobj = _windows_.new_MDIClientWindow(*args, **kwargs) | |
3352 | self.this = newobj.this | |
3353 | self.thisown = 1 | |
3354 | del newobj.thisown | |
3355 | self._setOORInfo(self) | |
3356 | ||
3357 | def Create(*args, **kwargs): | |
3358 | """Create(self, MDIParentFrame parent, long style=0) -> bool""" | |
3359 | return _windows_.MDIClientWindow_Create(*args, **kwargs) | |
3360 | ||
3361 | ||
3362 | class MDIClientWindowPtr(MDIClientWindow): | |
3363 | def __init__(self, this): | |
3364 | self.this = this | |
3365 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3366 | self.__class__ = MDIClientWindow | |
3367 | _windows_.MDIClientWindow_swigregister(MDIClientWindowPtr) | |
3368 | ||
3369 | def PreMDIClientWindow(*args, **kwargs): | |
3370 | """PreMDIClientWindow() -> MDIClientWindow""" | |
3371 | val = _windows_.new_PreMDIClientWindow(*args, **kwargs) | |
3372 | val.thisown = 1 | |
3373 | return val | |
3374 | ||
3375 | #--------------------------------------------------------------------------- | |
3376 | ||
3377 | class PyWindow(_core.Window): | |
3378 | def __repr__(self): | |
3379 | return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3380 | def __init__(self, *args, **kwargs): | |
3381 | """ | |
bfddbb17 RD |
3382 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3383 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow | |
d55e5bfc RD |
3384 | """ |
3385 | newobj = _windows_.new_PyWindow(*args, **kwargs) | |
3386 | self.this = newobj.this | |
3387 | self.thisown = 1 | |
3388 | del newobj.thisown | |
3389 | self._setOORInfo(self); self._setCallbackInfo(self, PyWindow) | |
3390 | ||
3391 | def _setCallbackInfo(*args, **kwargs): | |
3392 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
3393 | return _windows_.PyWindow__setCallbackInfo(*args, **kwargs) | |
3394 | ||
a5ee0656 RD |
3395 | def SetBestSize(*args, **kwargs): |
3396 | """SetBestSize(self, Size size)""" | |
3397 | return _windows_.PyWindow_SetBestSize(*args, **kwargs) | |
3398 | ||
d55e5bfc RD |
3399 | def base_DoMoveWindow(*args, **kwargs): |
3400 | """base_DoMoveWindow(self, int x, int y, int width, int height)""" | |
3401 | return _windows_.PyWindow_base_DoMoveWindow(*args, **kwargs) | |
3402 | ||
3403 | def base_DoSetSize(*args, **kwargs): | |
3404 | """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
3405 | return _windows_.PyWindow_base_DoSetSize(*args, **kwargs) | |
3406 | ||
3407 | def base_DoSetClientSize(*args, **kwargs): | |
3408 | """base_DoSetClientSize(self, int width, int height)""" | |
3409 | return _windows_.PyWindow_base_DoSetClientSize(*args, **kwargs) | |
3410 | ||
3411 | def base_DoSetVirtualSize(*args, **kwargs): | |
3412 | """base_DoSetVirtualSize(self, int x, int y)""" | |
3413 | return _windows_.PyWindow_base_DoSetVirtualSize(*args, **kwargs) | |
3414 | ||
3415 | def base_DoGetSize(*args, **kwargs): | |
3416 | """base_DoGetSize() -> (width, height)""" | |
3417 | return _windows_.PyWindow_base_DoGetSize(*args, **kwargs) | |
3418 | ||
3419 | def base_DoGetClientSize(*args, **kwargs): | |
3420 | """base_DoGetClientSize() -> (width, height)""" | |
3421 | return _windows_.PyWindow_base_DoGetClientSize(*args, **kwargs) | |
3422 | ||
3423 | def base_DoGetPosition(*args, **kwargs): | |
3424 | """base_DoGetPosition() -> (x,y)""" | |
3425 | return _windows_.PyWindow_base_DoGetPosition(*args, **kwargs) | |
3426 | ||
3427 | def base_DoGetVirtualSize(*args, **kwargs): | |
3428 | """base_DoGetVirtualSize(self) -> Size""" | |
3429 | return _windows_.PyWindow_base_DoGetVirtualSize(*args, **kwargs) | |
3430 | ||
3431 | def base_DoGetBestSize(*args, **kwargs): | |
3432 | """base_DoGetBestSize(self) -> Size""" | |
3433 | return _windows_.PyWindow_base_DoGetBestSize(*args, **kwargs) | |
3434 | ||
3435 | def base_InitDialog(*args, **kwargs): | |
3436 | """base_InitDialog(self)""" | |
3437 | return _windows_.PyWindow_base_InitDialog(*args, **kwargs) | |
3438 | ||
3439 | def base_TransferDataToWindow(*args, **kwargs): | |
3440 | """base_TransferDataToWindow(self) -> bool""" | |
3441 | return _windows_.PyWindow_base_TransferDataToWindow(*args, **kwargs) | |
3442 | ||
3443 | def base_TransferDataFromWindow(*args, **kwargs): | |
3444 | """base_TransferDataFromWindow(self) -> bool""" | |
3445 | return _windows_.PyWindow_base_TransferDataFromWindow(*args, **kwargs) | |
3446 | ||
3447 | def base_Validate(*args, **kwargs): | |
3448 | """base_Validate(self) -> bool""" | |
3449 | return _windows_.PyWindow_base_Validate(*args, **kwargs) | |
3450 | ||
3451 | def base_AcceptsFocus(*args, **kwargs): | |
3452 | """base_AcceptsFocus(self) -> bool""" | |
3453 | return _windows_.PyWindow_base_AcceptsFocus(*args, **kwargs) | |
3454 | ||
3455 | def base_AcceptsFocusFromKeyboard(*args, **kwargs): | |
3456 | """base_AcceptsFocusFromKeyboard(self) -> bool""" | |
3457 | return _windows_.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) | |
3458 | ||
3459 | def base_GetMaxSize(*args, **kwargs): | |
3460 | """base_GetMaxSize(self) -> Size""" | |
3461 | return _windows_.PyWindow_base_GetMaxSize(*args, **kwargs) | |
3462 | ||
3463 | def base_AddChild(*args, **kwargs): | |
3464 | """base_AddChild(self, Window child)""" | |
3465 | return _windows_.PyWindow_base_AddChild(*args, **kwargs) | |
3466 | ||
3467 | def base_RemoveChild(*args, **kwargs): | |
3468 | """base_RemoveChild(self, Window child)""" | |
3469 | return _windows_.PyWindow_base_RemoveChild(*args, **kwargs) | |
3470 | ||
3471 | def base_ShouldInheritColours(*args, **kwargs): | |
3472 | """base_ShouldInheritColours(self) -> bool""" | |
3473 | return _windows_.PyWindow_base_ShouldInheritColours(*args, **kwargs) | |
3474 | ||
3475 | def base_ApplyParentThemeBackground(*args, **kwargs): | |
3476 | """base_ApplyParentThemeBackground(self, Colour c)""" | |
3477 | return _windows_.PyWindow_base_ApplyParentThemeBackground(*args, **kwargs) | |
3478 | ||
a5ee0656 RD |
3479 | def base_GetDefaultAttributes(*args, **kwargs): |
3480 | """base_GetDefaultAttributes(self) -> VisualAttributes""" | |
3481 | return _windows_.PyWindow_base_GetDefaultAttributes(*args, **kwargs) | |
3482 | ||
d55e5bfc RD |
3483 | |
3484 | class PyWindowPtr(PyWindow): | |
3485 | def __init__(self, this): | |
3486 | self.this = this | |
3487 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3488 | self.__class__ = PyWindow | |
3489 | _windows_.PyWindow_swigregister(PyWindowPtr) | |
3490 | ||
3491 | def PrePyWindow(*args, **kwargs): | |
3492 | """PrePyWindow() -> PyWindow""" | |
3493 | val = _windows_.new_PrePyWindow(*args, **kwargs) | |
3494 | val.thisown = 1 | |
3495 | return val | |
3496 | ||
3497 | class PyPanel(Panel): | |
3498 | def __repr__(self): | |
3499 | return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3500 | def __init__(self, *args, **kwargs): | |
3501 | """ | |
bfddbb17 RD |
3502 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3503 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel | |
d55e5bfc RD |
3504 | """ |
3505 | newobj = _windows_.new_PyPanel(*args, **kwargs) | |
3506 | self.this = newobj.this | |
3507 | self.thisown = 1 | |
3508 | del newobj.thisown | |
3509 | self._setOORInfo(self); self._setCallbackInfo(self, PyPanel) | |
3510 | ||
3511 | def _setCallbackInfo(*args, **kwargs): | |
3512 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
3513 | return _windows_.PyPanel__setCallbackInfo(*args, **kwargs) | |
3514 | ||
a5ee0656 RD |
3515 | def SetBestSize(*args, **kwargs): |
3516 | """SetBestSize(self, Size size)""" | |
3517 | return _windows_.PyPanel_SetBestSize(*args, **kwargs) | |
3518 | ||
d55e5bfc RD |
3519 | def base_DoMoveWindow(*args, **kwargs): |
3520 | """base_DoMoveWindow(self, int x, int y, int width, int height)""" | |
3521 | return _windows_.PyPanel_base_DoMoveWindow(*args, **kwargs) | |
3522 | ||
3523 | def base_DoSetSize(*args, **kwargs): | |
3524 | """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
3525 | return _windows_.PyPanel_base_DoSetSize(*args, **kwargs) | |
3526 | ||
3527 | def base_DoSetClientSize(*args, **kwargs): | |
3528 | """base_DoSetClientSize(self, int width, int height)""" | |
3529 | return _windows_.PyPanel_base_DoSetClientSize(*args, **kwargs) | |
3530 | ||
3531 | def base_DoSetVirtualSize(*args, **kwargs): | |
3532 | """base_DoSetVirtualSize(self, int x, int y)""" | |
3533 | return _windows_.PyPanel_base_DoSetVirtualSize(*args, **kwargs) | |
3534 | ||
3535 | def base_DoGetSize(*args, **kwargs): | |
3536 | """base_DoGetSize() -> (width, height)""" | |
3537 | return _windows_.PyPanel_base_DoGetSize(*args, **kwargs) | |
3538 | ||
3539 | def base_DoGetClientSize(*args, **kwargs): | |
3540 | """base_DoGetClientSize() -> (width, height)""" | |
3541 | return _windows_.PyPanel_base_DoGetClientSize(*args, **kwargs) | |
3542 | ||
3543 | def base_DoGetPosition(*args, **kwargs): | |
3544 | """base_DoGetPosition() -> (x,y)""" | |
3545 | return _windows_.PyPanel_base_DoGetPosition(*args, **kwargs) | |
3546 | ||
3547 | def base_DoGetVirtualSize(*args, **kwargs): | |
3548 | """base_DoGetVirtualSize(self) -> Size""" | |
3549 | return _windows_.PyPanel_base_DoGetVirtualSize(*args, **kwargs) | |
3550 | ||
3551 | def base_DoGetBestSize(*args, **kwargs): | |
3552 | """base_DoGetBestSize(self) -> Size""" | |
3553 | return _windows_.PyPanel_base_DoGetBestSize(*args, **kwargs) | |
3554 | ||
3555 | def base_InitDialog(*args, **kwargs): | |
3556 | """base_InitDialog(self)""" | |
3557 | return _windows_.PyPanel_base_InitDialog(*args, **kwargs) | |
3558 | ||
3559 | def base_TransferDataToWindow(*args, **kwargs): | |
3560 | """base_TransferDataToWindow(self) -> bool""" | |
3561 | return _windows_.PyPanel_base_TransferDataToWindow(*args, **kwargs) | |
3562 | ||
3563 | def base_TransferDataFromWindow(*args, **kwargs): | |
3564 | """base_TransferDataFromWindow(self) -> bool""" | |
3565 | return _windows_.PyPanel_base_TransferDataFromWindow(*args, **kwargs) | |
3566 | ||
3567 | def base_Validate(*args, **kwargs): | |
3568 | """base_Validate(self) -> bool""" | |
3569 | return _windows_.PyPanel_base_Validate(*args, **kwargs) | |
3570 | ||
3571 | def base_AcceptsFocus(*args, **kwargs): | |
3572 | """base_AcceptsFocus(self) -> bool""" | |
3573 | return _windows_.PyPanel_base_AcceptsFocus(*args, **kwargs) | |
3574 | ||
3575 | def base_AcceptsFocusFromKeyboard(*args, **kwargs): | |
3576 | """base_AcceptsFocusFromKeyboard(self) -> bool""" | |
3577 | return _windows_.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs) | |
3578 | ||
3579 | def base_GetMaxSize(*args, **kwargs): | |
3580 | """base_GetMaxSize(self) -> Size""" | |
3581 | return _windows_.PyPanel_base_GetMaxSize(*args, **kwargs) | |
3582 | ||
3583 | def base_AddChild(*args, **kwargs): | |
3584 | """base_AddChild(self, Window child)""" | |
3585 | return _windows_.PyPanel_base_AddChild(*args, **kwargs) | |
3586 | ||
3587 | def base_RemoveChild(*args, **kwargs): | |
3588 | """base_RemoveChild(self, Window child)""" | |
3589 | return _windows_.PyPanel_base_RemoveChild(*args, **kwargs) | |
3590 | ||
3591 | def base_ShouldInheritColours(*args, **kwargs): | |
3592 | """base_ShouldInheritColours(self) -> bool""" | |
3593 | return _windows_.PyPanel_base_ShouldInheritColours(*args, **kwargs) | |
3594 | ||
3595 | def base_ApplyParentThemeBackground(*args, **kwargs): | |
3596 | """base_ApplyParentThemeBackground(self, Colour c)""" | |
3597 | return _windows_.PyPanel_base_ApplyParentThemeBackground(*args, **kwargs) | |
3598 | ||
a5ee0656 RD |
3599 | def base_GetDefaultAttributes(*args, **kwargs): |
3600 | """base_GetDefaultAttributes(self) -> VisualAttributes""" | |
3601 | return _windows_.PyPanel_base_GetDefaultAttributes(*args, **kwargs) | |
3602 | ||
d55e5bfc RD |
3603 | |
3604 | class PyPanelPtr(PyPanel): | |
3605 | def __init__(self, this): | |
3606 | self.this = this | |
3607 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3608 | self.__class__ = PyPanel | |
3609 | _windows_.PyPanel_swigregister(PyPanelPtr) | |
3610 | ||
3611 | def PrePyPanel(*args, **kwargs): | |
3612 | """PrePyPanel() -> PyPanel""" | |
3613 | val = _windows_.new_PrePyPanel(*args, **kwargs) | |
3614 | val.thisown = 1 | |
3615 | return val | |
3616 | ||
3617 | class PyScrolledWindow(ScrolledWindow): | |
3618 | def __repr__(self): | |
3619 | return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3620 | def __init__(self, *args, **kwargs): | |
3621 | """ | |
bfddbb17 RD |
3622 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3623 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow | |
d55e5bfc RD |
3624 | """ |
3625 | newobj = _windows_.new_PyScrolledWindow(*args, **kwargs) | |
3626 | self.this = newobj.this | |
3627 | self.thisown = 1 | |
3628 | del newobj.thisown | |
3629 | self._setOORInfo(self); self._setCallbackInfo(self, PyPanel) | |
3630 | ||
3631 | def _setCallbackInfo(*args, **kwargs): | |
3632 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
3633 | return _windows_.PyScrolledWindow__setCallbackInfo(*args, **kwargs) | |
3634 | ||
a5ee0656 RD |
3635 | def SetBestSize(*args, **kwargs): |
3636 | """SetBestSize(self, Size size)""" | |
3637 | return _windows_.PyScrolledWindow_SetBestSize(*args, **kwargs) | |
3638 | ||
d55e5bfc RD |
3639 | def base_DoMoveWindow(*args, **kwargs): |
3640 | """base_DoMoveWindow(self, int x, int y, int width, int height)""" | |
3641 | return _windows_.PyScrolledWindow_base_DoMoveWindow(*args, **kwargs) | |
3642 | ||
3643 | def base_DoSetSize(*args, **kwargs): | |
3644 | """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
3645 | return _windows_.PyScrolledWindow_base_DoSetSize(*args, **kwargs) | |
3646 | ||
3647 | def base_DoSetClientSize(*args, **kwargs): | |
3648 | """base_DoSetClientSize(self, int width, int height)""" | |
3649 | return _windows_.PyScrolledWindow_base_DoSetClientSize(*args, **kwargs) | |
3650 | ||
3651 | def base_DoSetVirtualSize(*args, **kwargs): | |
3652 | """base_DoSetVirtualSize(self, int x, int y)""" | |
3653 | return _windows_.PyScrolledWindow_base_DoSetVirtualSize(*args, **kwargs) | |
3654 | ||
3655 | def base_DoGetSize(*args, **kwargs): | |
3656 | """base_DoGetSize() -> (width, height)""" | |
3657 | return _windows_.PyScrolledWindow_base_DoGetSize(*args, **kwargs) | |
3658 | ||
3659 | def base_DoGetClientSize(*args, **kwargs): | |
3660 | """base_DoGetClientSize() -> (width, height)""" | |
3661 | return _windows_.PyScrolledWindow_base_DoGetClientSize(*args, **kwargs) | |
3662 | ||
3663 | def base_DoGetPosition(*args, **kwargs): | |
3664 | """base_DoGetPosition() -> (x,y)""" | |
3665 | return _windows_.PyScrolledWindow_base_DoGetPosition(*args, **kwargs) | |
3666 | ||
3667 | def base_DoGetVirtualSize(*args, **kwargs): | |
3668 | """base_DoGetVirtualSize(self) -> Size""" | |
3669 | return _windows_.PyScrolledWindow_base_DoGetVirtualSize(*args, **kwargs) | |
3670 | ||
3671 | def base_DoGetBestSize(*args, **kwargs): | |
3672 | """base_DoGetBestSize(self) -> Size""" | |
3673 | return _windows_.PyScrolledWindow_base_DoGetBestSize(*args, **kwargs) | |
3674 | ||
3675 | def base_InitDialog(*args, **kwargs): | |
3676 | """base_InitDialog(self)""" | |
3677 | return _windows_.PyScrolledWindow_base_InitDialog(*args, **kwargs) | |
3678 | ||
3679 | def base_TransferDataToWindow(*args, **kwargs): | |
3680 | """base_TransferDataToWindow(self) -> bool""" | |
3681 | return _windows_.PyScrolledWindow_base_TransferDataToWindow(*args, **kwargs) | |
3682 | ||
3683 | def base_TransferDataFromWindow(*args, **kwargs): | |
3684 | """base_TransferDataFromWindow(self) -> bool""" | |
3685 | return _windows_.PyScrolledWindow_base_TransferDataFromWindow(*args, **kwargs) | |
3686 | ||
3687 | def base_Validate(*args, **kwargs): | |
3688 | """base_Validate(self) -> bool""" | |
3689 | return _windows_.PyScrolledWindow_base_Validate(*args, **kwargs) | |
3690 | ||
3691 | def base_AcceptsFocus(*args, **kwargs): | |
3692 | """base_AcceptsFocus(self) -> bool""" | |
3693 | return _windows_.PyScrolledWindow_base_AcceptsFocus(*args, **kwargs) | |
3694 | ||
3695 | def base_AcceptsFocusFromKeyboard(*args, **kwargs): | |
3696 | """base_AcceptsFocusFromKeyboard(self) -> bool""" | |
3697 | return _windows_.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) | |
3698 | ||
3699 | def base_GetMaxSize(*args, **kwargs): | |
3700 | """base_GetMaxSize(self) -> Size""" | |
3701 | return _windows_.PyScrolledWindow_base_GetMaxSize(*args, **kwargs) | |
3702 | ||
3703 | def base_AddChild(*args, **kwargs): | |
3704 | """base_AddChild(self, Window child)""" | |
3705 | return _windows_.PyScrolledWindow_base_AddChild(*args, **kwargs) | |
3706 | ||
3707 | def base_RemoveChild(*args, **kwargs): | |
3708 | """base_RemoveChild(self, Window child)""" | |
3709 | return _windows_.PyScrolledWindow_base_RemoveChild(*args, **kwargs) | |
3710 | ||
3711 | def base_ShouldInheritColours(*args, **kwargs): | |
3712 | """base_ShouldInheritColours(self) -> bool""" | |
3713 | return _windows_.PyScrolledWindow_base_ShouldInheritColours(*args, **kwargs) | |
3714 | ||
3715 | def base_ApplyParentThemeBackground(*args, **kwargs): | |
3716 | """base_ApplyParentThemeBackground(self, Colour c)""" | |
3717 | return _windows_.PyScrolledWindow_base_ApplyParentThemeBackground(*args, **kwargs) | |
3718 | ||
a5ee0656 RD |
3719 | def base_GetDefaultAttributes(*args, **kwargs): |
3720 | """base_GetDefaultAttributes(self) -> VisualAttributes""" | |
3721 | return _windows_.PyScrolledWindow_base_GetDefaultAttributes(*args, **kwargs) | |
3722 | ||
d55e5bfc RD |
3723 | |
3724 | class PyScrolledWindowPtr(PyScrolledWindow): | |
3725 | def __init__(self, this): | |
3726 | self.this = this | |
3727 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3728 | self.__class__ = PyScrolledWindow | |
3729 | _windows_.PyScrolledWindow_swigregister(PyScrolledWindowPtr) | |
3730 | ||
3731 | def PrePyScrolledWindow(*args, **kwargs): | |
3732 | """PrePyScrolledWindow() -> PyScrolledWindow""" | |
3733 | val = _windows_.new_PrePyScrolledWindow(*args, **kwargs) | |
3734 | val.thisown = 1 | |
3735 | return val | |
3736 | ||
3737 | #--------------------------------------------------------------------------- | |
3738 | ||
3739 | PRINT_MODE_NONE = _windows_.PRINT_MODE_NONE | |
3740 | PRINT_MODE_PREVIEW = _windows_.PRINT_MODE_PREVIEW | |
3741 | PRINT_MODE_FILE = _windows_.PRINT_MODE_FILE | |
3742 | PRINT_MODE_PRINTER = _windows_.PRINT_MODE_PRINTER | |
3743 | PRINT_MODE_STREAM = _windows_.PRINT_MODE_STREAM | |
b411df4a RD |
3744 | PRINTBIN_DEFAULT = _windows_.PRINTBIN_DEFAULT |
3745 | PRINTBIN_ONLYONE = _windows_.PRINTBIN_ONLYONE | |
3746 | PRINTBIN_LOWER = _windows_.PRINTBIN_LOWER | |
3747 | PRINTBIN_MIDDLE = _windows_.PRINTBIN_MIDDLE | |
3748 | PRINTBIN_MANUAL = _windows_.PRINTBIN_MANUAL | |
3749 | PRINTBIN_ENVELOPE = _windows_.PRINTBIN_ENVELOPE | |
3750 | PRINTBIN_ENVMANUAL = _windows_.PRINTBIN_ENVMANUAL | |
3751 | PRINTBIN_AUTO = _windows_.PRINTBIN_AUTO | |
3752 | PRINTBIN_TRACTOR = _windows_.PRINTBIN_TRACTOR | |
3753 | PRINTBIN_SMALLFMT = _windows_.PRINTBIN_SMALLFMT | |
3754 | PRINTBIN_LARGEFMT = _windows_.PRINTBIN_LARGEFMT | |
3755 | PRINTBIN_LARGECAPACITY = _windows_.PRINTBIN_LARGECAPACITY | |
3756 | PRINTBIN_CASSETTE = _windows_.PRINTBIN_CASSETTE | |
3757 | PRINTBIN_FORMSOURCE = _windows_.PRINTBIN_FORMSOURCE | |
3758 | PRINTBIN_USER = _windows_.PRINTBIN_USER | |
d55e5bfc RD |
3759 | class PrintData(_core.Object): |
3760 | def __repr__(self): | |
3761 | return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
09c21d3b RD |
3762 | def __init__(self, *args): |
3763 | """ | |
3764 | __init__(self) -> PrintData | |
3765 | __init__(self, PrintData data) -> PrintData | |
3766 | """ | |
3767 | newobj = _windows_.new_PrintData(*args) | |
d55e5bfc RD |
3768 | self.this = newobj.this |
3769 | self.thisown = 1 | |
3770 | del newobj.thisown | |
3771 | def __del__(self, destroy=_windows_.delete_PrintData): | |
3772 | """__del__(self)""" | |
3773 | try: | |
3774 | if self.thisown: destroy(self) | |
3775 | except: pass | |
3776 | ||
3777 | def GetNoCopies(*args, **kwargs): | |
3778 | """GetNoCopies(self) -> int""" | |
3779 | return _windows_.PrintData_GetNoCopies(*args, **kwargs) | |
3780 | ||
3781 | def GetCollate(*args, **kwargs): | |
3782 | """GetCollate(self) -> bool""" | |
3783 | return _windows_.PrintData_GetCollate(*args, **kwargs) | |
3784 | ||
3785 | def GetOrientation(*args, **kwargs): | |
3786 | """GetOrientation(self) -> int""" | |
3787 | return _windows_.PrintData_GetOrientation(*args, **kwargs) | |
3788 | ||
3789 | def Ok(*args, **kwargs): | |
3790 | """Ok(self) -> bool""" | |
3791 | return _windows_.PrintData_Ok(*args, **kwargs) | |
3792 | ||
3793 | def GetPrinterName(*args, **kwargs): | |
3794 | """GetPrinterName(self) -> String""" | |
3795 | return _windows_.PrintData_GetPrinterName(*args, **kwargs) | |
3796 | ||
3797 | def GetColour(*args, **kwargs): | |
3798 | """GetColour(self) -> bool""" | |
3799 | return _windows_.PrintData_GetColour(*args, **kwargs) | |
3800 | ||
3801 | def GetDuplex(*args, **kwargs): | |
3802 | """GetDuplex(self) -> int""" | |
3803 | return _windows_.PrintData_GetDuplex(*args, **kwargs) | |
3804 | ||
3805 | def GetPaperId(*args, **kwargs): | |
3806 | """GetPaperId(self) -> int""" | |
3807 | return _windows_.PrintData_GetPaperId(*args, **kwargs) | |
3808 | ||
3809 | def GetPaperSize(*args, **kwargs): | |
3810 | """GetPaperSize(self) -> Size""" | |
3811 | return _windows_.PrintData_GetPaperSize(*args, **kwargs) | |
3812 | ||
3813 | def GetQuality(*args, **kwargs): | |
3814 | """GetQuality(self) -> int""" | |
3815 | return _windows_.PrintData_GetQuality(*args, **kwargs) | |
3816 | ||
b411df4a RD |
3817 | def GetBin(*args, **kwargs): |
3818 | """GetBin(self) -> int""" | |
3819 | return _windows_.PrintData_GetBin(*args, **kwargs) | |
3820 | ||
070c48b4 RD |
3821 | def GetPrintMode(*args, **kwargs): |
3822 | """GetPrintMode(self) -> int""" | |
3823 | return _windows_.PrintData_GetPrintMode(*args, **kwargs) | |
3824 | ||
d55e5bfc RD |
3825 | def SetNoCopies(*args, **kwargs): |
3826 | """SetNoCopies(self, int v)""" | |
3827 | return _windows_.PrintData_SetNoCopies(*args, **kwargs) | |
3828 | ||
3829 | def SetCollate(*args, **kwargs): | |
3830 | """SetCollate(self, bool flag)""" | |
3831 | return _windows_.PrintData_SetCollate(*args, **kwargs) | |
3832 | ||
3833 | def SetOrientation(*args, **kwargs): | |
3834 | """SetOrientation(self, int orient)""" | |
3835 | return _windows_.PrintData_SetOrientation(*args, **kwargs) | |
3836 | ||
3837 | def SetPrinterName(*args, **kwargs): | |
3838 | """SetPrinterName(self, String name)""" | |
3839 | return _windows_.PrintData_SetPrinterName(*args, **kwargs) | |
3840 | ||
3841 | def SetColour(*args, **kwargs): | |
3842 | """SetColour(self, bool colour)""" | |
3843 | return _windows_.PrintData_SetColour(*args, **kwargs) | |
3844 | ||
3845 | def SetDuplex(*args, **kwargs): | |
3846 | """SetDuplex(self, int duplex)""" | |
3847 | return _windows_.PrintData_SetDuplex(*args, **kwargs) | |
3848 | ||
3849 | def SetPaperId(*args, **kwargs): | |
3850 | """SetPaperId(self, int sizeId)""" | |
3851 | return _windows_.PrintData_SetPaperId(*args, **kwargs) | |
3852 | ||
3853 | def SetPaperSize(*args, **kwargs): | |
3854 | """SetPaperSize(self, Size sz)""" | |
3855 | return _windows_.PrintData_SetPaperSize(*args, **kwargs) | |
3856 | ||
3857 | def SetQuality(*args, **kwargs): | |
3858 | """SetQuality(self, int quality)""" | |
3859 | return _windows_.PrintData_SetQuality(*args, **kwargs) | |
3860 | ||
b411df4a RD |
3861 | def SetBin(*args, **kwargs): |
3862 | """SetBin(self, int bin)""" | |
3863 | return _windows_.PrintData_SetBin(*args, **kwargs) | |
3864 | ||
070c48b4 RD |
3865 | def SetPrintMode(*args, **kwargs): |
3866 | """SetPrintMode(self, int printMode)""" | |
3867 | return _windows_.PrintData_SetPrintMode(*args, **kwargs) | |
3868 | ||
3869 | def GetFilename(*args, **kwargs): | |
3870 | """GetFilename(self) -> String""" | |
3871 | return _windows_.PrintData_GetFilename(*args, **kwargs) | |
3872 | ||
3873 | def SetFilename(*args, **kwargs): | |
3874 | """SetFilename(self, String filename)""" | |
3875 | return _windows_.PrintData_SetFilename(*args, **kwargs) | |
3876 | ||
3877 | def __nonzero__(self): return self.Ok() | |
d55e5bfc RD |
3878 | def GetPrinterCommand(*args, **kwargs): |
3879 | """GetPrinterCommand(self) -> String""" | |
3880 | return _windows_.PrintData_GetPrinterCommand(*args, **kwargs) | |
3881 | ||
3882 | def GetPrinterOptions(*args, **kwargs): | |
3883 | """GetPrinterOptions(self) -> String""" | |
3884 | return _windows_.PrintData_GetPrinterOptions(*args, **kwargs) | |
3885 | ||
3886 | def GetPreviewCommand(*args, **kwargs): | |
3887 | """GetPreviewCommand(self) -> String""" | |
3888 | return _windows_.PrintData_GetPreviewCommand(*args, **kwargs) | |
3889 | ||
d55e5bfc RD |
3890 | def GetFontMetricPath(*args, **kwargs): |
3891 | """GetFontMetricPath(self) -> String""" | |
3892 | return _windows_.PrintData_GetFontMetricPath(*args, **kwargs) | |
3893 | ||
3894 | def GetPrinterScaleX(*args, **kwargs): | |
3895 | """GetPrinterScaleX(self) -> double""" | |
3896 | return _windows_.PrintData_GetPrinterScaleX(*args, **kwargs) | |
3897 | ||
3898 | def GetPrinterScaleY(*args, **kwargs): | |
3899 | """GetPrinterScaleY(self) -> double""" | |
3900 | return _windows_.PrintData_GetPrinterScaleY(*args, **kwargs) | |
3901 | ||
3902 | def GetPrinterTranslateX(*args, **kwargs): | |
3903 | """GetPrinterTranslateX(self) -> long""" | |
3904 | return _windows_.PrintData_GetPrinterTranslateX(*args, **kwargs) | |
3905 | ||
3906 | def GetPrinterTranslateY(*args, **kwargs): | |
3907 | """GetPrinterTranslateY(self) -> long""" | |
3908 | return _windows_.PrintData_GetPrinterTranslateY(*args, **kwargs) | |
3909 | ||
d55e5bfc RD |
3910 | def SetPrinterCommand(*args, **kwargs): |
3911 | """SetPrinterCommand(self, String command)""" | |
3912 | return _windows_.PrintData_SetPrinterCommand(*args, **kwargs) | |
3913 | ||
3914 | def SetPrinterOptions(*args, **kwargs): | |
3915 | """SetPrinterOptions(self, String options)""" | |
3916 | return _windows_.PrintData_SetPrinterOptions(*args, **kwargs) | |
3917 | ||
3918 | def SetPreviewCommand(*args, **kwargs): | |
3919 | """SetPreviewCommand(self, String command)""" | |
3920 | return _windows_.PrintData_SetPreviewCommand(*args, **kwargs) | |
3921 | ||
d55e5bfc RD |
3922 | def SetFontMetricPath(*args, **kwargs): |
3923 | """SetFontMetricPath(self, String path)""" | |
3924 | return _windows_.PrintData_SetFontMetricPath(*args, **kwargs) | |
3925 | ||
3926 | def SetPrinterScaleX(*args, **kwargs): | |
3927 | """SetPrinterScaleX(self, double x)""" | |
3928 | return _windows_.PrintData_SetPrinterScaleX(*args, **kwargs) | |
3929 | ||
3930 | def SetPrinterScaleY(*args, **kwargs): | |
3931 | """SetPrinterScaleY(self, double y)""" | |
3932 | return _windows_.PrintData_SetPrinterScaleY(*args, **kwargs) | |
3933 | ||
3934 | def SetPrinterScaling(*args, **kwargs): | |
3935 | """SetPrinterScaling(self, double x, double y)""" | |
3936 | return _windows_.PrintData_SetPrinterScaling(*args, **kwargs) | |
3937 | ||
3938 | def SetPrinterTranslateX(*args, **kwargs): | |
3939 | """SetPrinterTranslateX(self, long x)""" | |
3940 | return _windows_.PrintData_SetPrinterTranslateX(*args, **kwargs) | |
3941 | ||
3942 | def SetPrinterTranslateY(*args, **kwargs): | |
3943 | """SetPrinterTranslateY(self, long y)""" | |
3944 | return _windows_.PrintData_SetPrinterTranslateY(*args, **kwargs) | |
3945 | ||
3946 | def SetPrinterTranslation(*args, **kwargs): | |
3947 | """SetPrinterTranslation(self, long x, long y)""" | |
3948 | return _windows_.PrintData_SetPrinterTranslation(*args, **kwargs) | |
3949 | ||
d55e5bfc RD |
3950 | |
3951 | class PrintDataPtr(PrintData): | |
3952 | def __init__(self, this): | |
3953 | self.this = this | |
3954 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3955 | self.__class__ = PrintData | |
3956 | _windows_.PrintData_swigregister(PrintDataPtr) | |
3957 | PrintoutTitleStr = cvar.PrintoutTitleStr | |
3958 | PreviewCanvasNameStr = cvar.PreviewCanvasNameStr | |
3959 | ||
3960 | class PageSetupDialogData(_core.Object): | |
3961 | def __repr__(self): | |
3962 | return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
09c21d3b RD |
3963 | def __init__(self, *args): |
3964 | """ | |
3965 | __init__(self) -> PageSetupDialogData | |
3966 | __init__(self, PageSetupDialogData data) -> PageSetupDialogData | |
3967 | """ | |
3968 | newobj = _windows_.new_PageSetupDialogData(*args) | |
d55e5bfc RD |
3969 | self.this = newobj.this |
3970 | self.thisown = 1 | |
3971 | del newobj.thisown | |
3972 | def __del__(self, destroy=_windows_.delete_PageSetupDialogData): | |
3973 | """__del__(self)""" | |
3974 | try: | |
3975 | if self.thisown: destroy(self) | |
3976 | except: pass | |
3977 | ||
3978 | def EnableHelp(*args, **kwargs): | |
3979 | """EnableHelp(self, bool flag)""" | |
3980 | return _windows_.PageSetupDialogData_EnableHelp(*args, **kwargs) | |
3981 | ||
3982 | def EnableMargins(*args, **kwargs): | |
3983 | """EnableMargins(self, bool flag)""" | |
3984 | return _windows_.PageSetupDialogData_EnableMargins(*args, **kwargs) | |
3985 | ||
3986 | def EnableOrientation(*args, **kwargs): | |
3987 | """EnableOrientation(self, bool flag)""" | |
3988 | return _windows_.PageSetupDialogData_EnableOrientation(*args, **kwargs) | |
3989 | ||
3990 | def EnablePaper(*args, **kwargs): | |
3991 | """EnablePaper(self, bool flag)""" | |
3992 | return _windows_.PageSetupDialogData_EnablePaper(*args, **kwargs) | |
3993 | ||
3994 | def EnablePrinter(*args, **kwargs): | |
3995 | """EnablePrinter(self, bool flag)""" | |
3996 | return _windows_.PageSetupDialogData_EnablePrinter(*args, **kwargs) | |
3997 | ||
3998 | def GetDefaultMinMargins(*args, **kwargs): | |
3999 | """GetDefaultMinMargins(self) -> bool""" | |
4000 | return _windows_.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs) | |
4001 | ||
4002 | def GetEnableMargins(*args, **kwargs): | |
4003 | """GetEnableMargins(self) -> bool""" | |
4004 | return _windows_.PageSetupDialogData_GetEnableMargins(*args, **kwargs) | |
4005 | ||
4006 | def GetEnableOrientation(*args, **kwargs): | |
4007 | """GetEnableOrientation(self) -> bool""" | |
4008 | return _windows_.PageSetupDialogData_GetEnableOrientation(*args, **kwargs) | |
4009 | ||
4010 | def GetEnablePaper(*args, **kwargs): | |
4011 | """GetEnablePaper(self) -> bool""" | |
4012 | return _windows_.PageSetupDialogData_GetEnablePaper(*args, **kwargs) | |
4013 | ||
4014 | def GetEnablePrinter(*args, **kwargs): | |
4015 | """GetEnablePrinter(self) -> bool""" | |
4016 | return _windows_.PageSetupDialogData_GetEnablePrinter(*args, **kwargs) | |
4017 | ||
4018 | def GetEnableHelp(*args, **kwargs): | |
4019 | """GetEnableHelp(self) -> bool""" | |
4020 | return _windows_.PageSetupDialogData_GetEnableHelp(*args, **kwargs) | |
4021 | ||
4022 | def GetDefaultInfo(*args, **kwargs): | |
4023 | """GetDefaultInfo(self) -> bool""" | |
4024 | return _windows_.PageSetupDialogData_GetDefaultInfo(*args, **kwargs) | |
4025 | ||
4026 | def GetMarginTopLeft(*args, **kwargs): | |
4027 | """GetMarginTopLeft(self) -> Point""" | |
4028 | return _windows_.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs) | |
4029 | ||
4030 | def GetMarginBottomRight(*args, **kwargs): | |
4031 | """GetMarginBottomRight(self) -> Point""" | |
4032 | return _windows_.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs) | |
4033 | ||
4034 | def GetMinMarginTopLeft(*args, **kwargs): | |
4035 | """GetMinMarginTopLeft(self) -> Point""" | |
4036 | return _windows_.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs) | |
4037 | ||
4038 | def GetMinMarginBottomRight(*args, **kwargs): | |
4039 | """GetMinMarginBottomRight(self) -> Point""" | |
4040 | return _windows_.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs) | |
4041 | ||
4042 | def GetPaperId(*args, **kwargs): | |
4043 | """GetPaperId(self) -> int""" | |
4044 | return _windows_.PageSetupDialogData_GetPaperId(*args, **kwargs) | |
4045 | ||
4046 | def GetPaperSize(*args, **kwargs): | |
4047 | """GetPaperSize(self) -> Size""" | |
4048 | return _windows_.PageSetupDialogData_GetPaperSize(*args, **kwargs) | |
4049 | ||
4050 | def GetPrintData(*args, **kwargs): | |
4051 | """GetPrintData(self) -> PrintData""" | |
4052 | return _windows_.PageSetupDialogData_GetPrintData(*args, **kwargs) | |
4053 | ||
4054 | def Ok(*args, **kwargs): | |
4055 | """Ok(self) -> bool""" | |
4056 | return _windows_.PageSetupDialogData_Ok(*args, **kwargs) | |
4057 | ||
4058 | def SetDefaultInfo(*args, **kwargs): | |
4059 | """SetDefaultInfo(self, bool flag)""" | |
4060 | return _windows_.PageSetupDialogData_SetDefaultInfo(*args, **kwargs) | |
4061 | ||
4062 | def SetDefaultMinMargins(*args, **kwargs): | |
4063 | """SetDefaultMinMargins(self, bool flag)""" | |
4064 | return _windows_.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs) | |
4065 | ||
4066 | def SetMarginTopLeft(*args, **kwargs): | |
4067 | """SetMarginTopLeft(self, Point pt)""" | |
4068 | return _windows_.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs) | |
4069 | ||
4070 | def SetMarginBottomRight(*args, **kwargs): | |
4071 | """SetMarginBottomRight(self, Point pt)""" | |
4072 | return _windows_.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs) | |
4073 | ||
4074 | def SetMinMarginTopLeft(*args, **kwargs): | |
4075 | """SetMinMarginTopLeft(self, Point pt)""" | |
4076 | return _windows_.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs) | |
4077 | ||
4078 | def SetMinMarginBottomRight(*args, **kwargs): | |
4079 | """SetMinMarginBottomRight(self, Point pt)""" | |
4080 | return _windows_.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs) | |
4081 | ||
4082 | def SetPaperId(*args, **kwargs): | |
4083 | """SetPaperId(self, int id)""" | |
4084 | return _windows_.PageSetupDialogData_SetPaperId(*args, **kwargs) | |
4085 | ||
4086 | def SetPaperSize(*args, **kwargs): | |
4087 | """SetPaperSize(self, Size size)""" | |
4088 | return _windows_.PageSetupDialogData_SetPaperSize(*args, **kwargs) | |
4089 | ||
4090 | def SetPrintData(*args, **kwargs): | |
4091 | """SetPrintData(self, PrintData printData)""" | |
4092 | return _windows_.PageSetupDialogData_SetPrintData(*args, **kwargs) | |
4093 | ||
4094 | def __nonzero__(self): return self.Ok() | |
4095 | ||
4096 | class PageSetupDialogDataPtr(PageSetupDialogData): | |
4097 | def __init__(self, this): | |
4098 | self.this = this | |
4099 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4100 | self.__class__ = PageSetupDialogData | |
4101 | _windows_.PageSetupDialogData_swigregister(PageSetupDialogDataPtr) | |
4102 | ||
6e0de3df | 4103 | class PageSetupDialog(_core.Object): |
d55e5bfc RD |
4104 | def __repr__(self): |
4105 | return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4106 | def __init__(self, *args, **kwargs): | |
4107 | """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog""" | |
4108 | newobj = _windows_.new_PageSetupDialog(*args, **kwargs) | |
4109 | self.this = newobj.this | |
4110 | self.thisown = 1 | |
4111 | del newobj.thisown | |
d55e5bfc RD |
4112 | def GetPageSetupData(*args, **kwargs): |
4113 | """GetPageSetupData(self) -> PageSetupDialogData""" | |
4114 | return _windows_.PageSetupDialog_GetPageSetupData(*args, **kwargs) | |
4115 | ||
6e0de3df RD |
4116 | def GetPageSetupDialogData(*args, **kwargs): |
4117 | """GetPageSetupDialogData(self) -> PageSetupDialogData""" | |
4118 | return _windows_.PageSetupDialog_GetPageSetupDialogData(*args, **kwargs) | |
4119 | ||
d55e5bfc RD |
4120 | def ShowModal(*args, **kwargs): |
4121 | """ShowModal(self) -> int""" | |
4122 | return _windows_.PageSetupDialog_ShowModal(*args, **kwargs) | |
4123 | ||
4124 | ||
4125 | class PageSetupDialogPtr(PageSetupDialog): | |
4126 | def __init__(self, this): | |
4127 | self.this = this | |
4128 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4129 | self.__class__ = PageSetupDialog | |
4130 | _windows_.PageSetupDialog_swigregister(PageSetupDialogPtr) | |
4131 | ||
4132 | class PrintDialogData(_core.Object): | |
4133 | def __repr__(self): | |
4134 | return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4135 | def __init__(self, *args): | |
4136 | """ | |
4137 | __init__(self) -> PrintDialogData | |
4138 | __init__(self, PrintData printData) -> PrintDialogData | |
4139 | """ | |
4140 | newobj = _windows_.new_PrintDialogData(*args) | |
4141 | self.this = newobj.this | |
4142 | self.thisown = 1 | |
4143 | del newobj.thisown | |
4144 | def __del__(self, destroy=_windows_.delete_PrintDialogData): | |
4145 | """__del__(self)""" | |
4146 | try: | |
4147 | if self.thisown: destroy(self) | |
4148 | except: pass | |
4149 | ||
4150 | def GetFromPage(*args, **kwargs): | |
4151 | """GetFromPage(self) -> int""" | |
4152 | return _windows_.PrintDialogData_GetFromPage(*args, **kwargs) | |
4153 | ||
4154 | def GetToPage(*args, **kwargs): | |
4155 | """GetToPage(self) -> int""" | |
4156 | return _windows_.PrintDialogData_GetToPage(*args, **kwargs) | |
4157 | ||
4158 | def GetMinPage(*args, **kwargs): | |
4159 | """GetMinPage(self) -> int""" | |
4160 | return _windows_.PrintDialogData_GetMinPage(*args, **kwargs) | |
4161 | ||
4162 | def GetMaxPage(*args, **kwargs): | |
4163 | """GetMaxPage(self) -> int""" | |
4164 | return _windows_.PrintDialogData_GetMaxPage(*args, **kwargs) | |
4165 | ||
4166 | def GetNoCopies(*args, **kwargs): | |
4167 | """GetNoCopies(self) -> int""" | |
4168 | return _windows_.PrintDialogData_GetNoCopies(*args, **kwargs) | |
4169 | ||
4170 | def GetAllPages(*args, **kwargs): | |
4171 | """GetAllPages(self) -> bool""" | |
4172 | return _windows_.PrintDialogData_GetAllPages(*args, **kwargs) | |
4173 | ||
4174 | def GetSelection(*args, **kwargs): | |
4175 | """GetSelection(self) -> bool""" | |
4176 | return _windows_.PrintDialogData_GetSelection(*args, **kwargs) | |
4177 | ||
4178 | def GetCollate(*args, **kwargs): | |
4179 | """GetCollate(self) -> bool""" | |
4180 | return _windows_.PrintDialogData_GetCollate(*args, **kwargs) | |
4181 | ||
4182 | def GetPrintToFile(*args, **kwargs): | |
4183 | """GetPrintToFile(self) -> bool""" | |
4184 | return _windows_.PrintDialogData_GetPrintToFile(*args, **kwargs) | |
4185 | ||
4186 | def GetSetupDialog(*args, **kwargs): | |
4187 | """GetSetupDialog(self) -> bool""" | |
4188 | return _windows_.PrintDialogData_GetSetupDialog(*args, **kwargs) | |
4189 | ||
070c48b4 RD |
4190 | def SetSetupDialog(*args, **kwargs): |
4191 | """SetSetupDialog(self, bool flag)""" | |
4192 | return _windows_.PrintDialogData_SetSetupDialog(*args, **kwargs) | |
4193 | ||
d55e5bfc RD |
4194 | def SetFromPage(*args, **kwargs): |
4195 | """SetFromPage(self, int v)""" | |
4196 | return _windows_.PrintDialogData_SetFromPage(*args, **kwargs) | |
4197 | ||
4198 | def SetToPage(*args, **kwargs): | |
4199 | """SetToPage(self, int v)""" | |
4200 | return _windows_.PrintDialogData_SetToPage(*args, **kwargs) | |
4201 | ||
4202 | def SetMinPage(*args, **kwargs): | |
4203 | """SetMinPage(self, int v)""" | |
4204 | return _windows_.PrintDialogData_SetMinPage(*args, **kwargs) | |
4205 | ||
4206 | def SetMaxPage(*args, **kwargs): | |
4207 | """SetMaxPage(self, int v)""" | |
4208 | return _windows_.PrintDialogData_SetMaxPage(*args, **kwargs) | |
4209 | ||
4210 | def SetNoCopies(*args, **kwargs): | |
4211 | """SetNoCopies(self, int v)""" | |
4212 | return _windows_.PrintDialogData_SetNoCopies(*args, **kwargs) | |
4213 | ||
4214 | def SetAllPages(*args, **kwargs): | |
4215 | """SetAllPages(self, bool flag)""" | |
4216 | return _windows_.PrintDialogData_SetAllPages(*args, **kwargs) | |
4217 | ||
4218 | def SetSelection(*args, **kwargs): | |
4219 | """SetSelection(self, bool flag)""" | |
4220 | return _windows_.PrintDialogData_SetSelection(*args, **kwargs) | |
4221 | ||
4222 | def SetCollate(*args, **kwargs): | |
4223 | """SetCollate(self, bool flag)""" | |
4224 | return _windows_.PrintDialogData_SetCollate(*args, **kwargs) | |
4225 | ||
4226 | def SetPrintToFile(*args, **kwargs): | |
4227 | """SetPrintToFile(self, bool flag)""" | |
4228 | return _windows_.PrintDialogData_SetPrintToFile(*args, **kwargs) | |
4229 | ||
d55e5bfc RD |
4230 | def EnablePrintToFile(*args, **kwargs): |
4231 | """EnablePrintToFile(self, bool flag)""" | |
4232 | return _windows_.PrintDialogData_EnablePrintToFile(*args, **kwargs) | |
4233 | ||
4234 | def EnableSelection(*args, **kwargs): | |
4235 | """EnableSelection(self, bool flag)""" | |
4236 | return _windows_.PrintDialogData_EnableSelection(*args, **kwargs) | |
4237 | ||
4238 | def EnablePageNumbers(*args, **kwargs): | |
4239 | """EnablePageNumbers(self, bool flag)""" | |
4240 | return _windows_.PrintDialogData_EnablePageNumbers(*args, **kwargs) | |
4241 | ||
4242 | def EnableHelp(*args, **kwargs): | |
4243 | """EnableHelp(self, bool flag)""" | |
4244 | return _windows_.PrintDialogData_EnableHelp(*args, **kwargs) | |
4245 | ||
4246 | def GetEnablePrintToFile(*args, **kwargs): | |
4247 | """GetEnablePrintToFile(self) -> bool""" | |
4248 | return _windows_.PrintDialogData_GetEnablePrintToFile(*args, **kwargs) | |
4249 | ||
4250 | def GetEnableSelection(*args, **kwargs): | |
4251 | """GetEnableSelection(self) -> bool""" | |
4252 | return _windows_.PrintDialogData_GetEnableSelection(*args, **kwargs) | |
4253 | ||
4254 | def GetEnablePageNumbers(*args, **kwargs): | |
4255 | """GetEnablePageNumbers(self) -> bool""" | |
4256 | return _windows_.PrintDialogData_GetEnablePageNumbers(*args, **kwargs) | |
4257 | ||
4258 | def GetEnableHelp(*args, **kwargs): | |
4259 | """GetEnableHelp(self) -> bool""" | |
4260 | return _windows_.PrintDialogData_GetEnableHelp(*args, **kwargs) | |
4261 | ||
4262 | def Ok(*args, **kwargs): | |
4263 | """Ok(self) -> bool""" | |
4264 | return _windows_.PrintDialogData_Ok(*args, **kwargs) | |
4265 | ||
4266 | def GetPrintData(*args, **kwargs): | |
4267 | """GetPrintData(self) -> PrintData""" | |
4268 | return _windows_.PrintDialogData_GetPrintData(*args, **kwargs) | |
4269 | ||
4270 | def SetPrintData(*args, **kwargs): | |
4271 | """SetPrintData(self, PrintData printData)""" | |
4272 | return _windows_.PrintDialogData_SetPrintData(*args, **kwargs) | |
4273 | ||
4274 | def __nonzero__(self): return self.Ok() | |
4275 | ||
4276 | class PrintDialogDataPtr(PrintDialogData): | |
4277 | def __init__(self, this): | |
4278 | self.this = this | |
4279 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4280 | self.__class__ = PrintDialogData | |
4281 | _windows_.PrintDialogData_swigregister(PrintDialogDataPtr) | |
4282 | ||
070c48b4 | 4283 | class PrintDialog(_core.Object): |
d55e5bfc RD |
4284 | def __repr__(self): |
4285 | return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4286 | def __init__(self, *args, **kwargs): | |
4287 | """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog""" | |
4288 | newobj = _windows_.new_PrintDialog(*args, **kwargs) | |
4289 | self.this = newobj.this | |
4290 | self.thisown = 1 | |
4291 | del newobj.thisown | |
070c48b4 RD |
4292 | def ShowModal(*args, **kwargs): |
4293 | """ShowModal(self) -> int""" | |
4294 | return _windows_.PrintDialog_ShowModal(*args, **kwargs) | |
d55e5bfc RD |
4295 | |
4296 | def GetPrintDialogData(*args, **kwargs): | |
4297 | """GetPrintDialogData(self) -> PrintDialogData""" | |
4298 | return _windows_.PrintDialog_GetPrintDialogData(*args, **kwargs) | |
4299 | ||
070c48b4 RD |
4300 | def GetPrintData(*args, **kwargs): |
4301 | """GetPrintData(self) -> PrintData""" | |
4302 | return _windows_.PrintDialog_GetPrintData(*args, **kwargs) | |
4303 | ||
d55e5bfc RD |
4304 | def GetPrintDC(*args, **kwargs): |
4305 | """GetPrintDC(self) -> DC""" | |
4306 | return _windows_.PrintDialog_GetPrintDC(*args, **kwargs) | |
4307 | ||
d55e5bfc RD |
4308 | |
4309 | class PrintDialogPtr(PrintDialog): | |
4310 | def __init__(self, this): | |
4311 | self.this = this | |
4312 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4313 | self.__class__ = PrintDialog | |
4314 | _windows_.PrintDialog_swigregister(PrintDialogPtr) | |
4315 | ||
4316 | PRINTER_NO_ERROR = _windows_.PRINTER_NO_ERROR | |
4317 | PRINTER_CANCELLED = _windows_.PRINTER_CANCELLED | |
4318 | PRINTER_ERROR = _windows_.PRINTER_ERROR | |
4319 | class Printer(_core.Object): | |
4320 | def __repr__(self): | |
4321 | return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4322 | def __init__(self, *args, **kwargs): | |
4323 | """__init__(self, PrintDialogData data=None) -> Printer""" | |
4324 | newobj = _windows_.new_Printer(*args, **kwargs) | |
4325 | self.this = newobj.this | |
4326 | self.thisown = 1 | |
4327 | del newobj.thisown | |
4328 | def __del__(self, destroy=_windows_.delete_Printer): | |
4329 | """__del__(self)""" | |
4330 | try: | |
4331 | if self.thisown: destroy(self) | |
4332 | except: pass | |
4333 | ||
4334 | def CreateAbortWindow(*args, **kwargs): | |
070c48b4 | 4335 | """CreateAbortWindow(self, Window parent, Printout printout) -> Window""" |
d55e5bfc RD |
4336 | return _windows_.Printer_CreateAbortWindow(*args, **kwargs) |
4337 | ||
070c48b4 RD |
4338 | def ReportError(*args, **kwargs): |
4339 | """ReportError(self, Window parent, Printout printout, String message)""" | |
4340 | return _windows_.Printer_ReportError(*args, **kwargs) | |
4341 | ||
4342 | def Setup(*args, **kwargs): | |
4343 | """Setup(self, Window parent) -> bool""" | |
4344 | return _windows_.Printer_Setup(*args, **kwargs) | |
d55e5bfc RD |
4345 | |
4346 | def Print(*args, **kwargs): | |
070c48b4 | 4347 | """Print(self, Window parent, Printout printout, bool prompt=True) -> bool""" |
d55e5bfc RD |
4348 | return _windows_.Printer_Print(*args, **kwargs) |
4349 | ||
4350 | def PrintDialog(*args, **kwargs): | |
4351 | """PrintDialog(self, Window parent) -> DC""" | |
4352 | return _windows_.Printer_PrintDialog(*args, **kwargs) | |
4353 | ||
070c48b4 RD |
4354 | def GetPrintDialogData(*args, **kwargs): |
4355 | """GetPrintDialogData(self) -> PrintDialogData""" | |
4356 | return _windows_.Printer_GetPrintDialogData(*args, **kwargs) | |
d55e5bfc RD |
4357 | |
4358 | def GetAbort(*args, **kwargs): | |
4359 | """GetAbort(self) -> bool""" | |
4360 | return _windows_.Printer_GetAbort(*args, **kwargs) | |
4361 | ||
4362 | def GetLastError(*args, **kwargs): | |
d6c14a4c | 4363 | """GetLastError() -> int""" |
d55e5bfc RD |
4364 | return _windows_.Printer_GetLastError(*args, **kwargs) |
4365 | ||
4366 | GetLastError = staticmethod(GetLastError) | |
4367 | ||
4368 | class PrinterPtr(Printer): | |
4369 | def __init__(self, this): | |
4370 | self.this = this | |
4371 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4372 | self.__class__ = Printer | |
4373 | _windows_.Printer_swigregister(PrinterPtr) | |
4374 | ||
4375 | def Printer_GetLastError(*args, **kwargs): | |
4376 | """Printer_GetLastError() -> int""" | |
4377 | return _windows_.Printer_GetLastError(*args, **kwargs) | |
4378 | ||
4379 | class Printout(_core.Object): | |
4380 | def __repr__(self): | |
4381 | return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4382 | def __init__(self, *args, **kwargs): | |
4383 | """__init__(self, String title=PrintoutTitleStr) -> Printout""" | |
4384 | newobj = _windows_.new_Printout(*args, **kwargs) | |
4385 | self.this = newobj.this | |
4386 | self.thisown = 1 | |
4387 | del newobj.thisown | |
4388 | self._setCallbackInfo(self, Printout) | |
4389 | ||
4390 | def _setCallbackInfo(*args, **kwargs): | |
4391 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4392 | return _windows_.Printout__setCallbackInfo(*args, **kwargs) | |
4393 | ||
4394 | def GetTitle(*args, **kwargs): | |
4395 | """GetTitle(self) -> String""" | |
4396 | return _windows_.Printout_GetTitle(*args, **kwargs) | |
4397 | ||
4398 | def GetDC(*args, **kwargs): | |
4399 | """GetDC(self) -> DC""" | |
4400 | return _windows_.Printout_GetDC(*args, **kwargs) | |
4401 | ||
4402 | def SetDC(*args, **kwargs): | |
4403 | """SetDC(self, DC dc)""" | |
4404 | return _windows_.Printout_SetDC(*args, **kwargs) | |
4405 | ||
4406 | def SetPageSizePixels(*args, **kwargs): | |
4407 | """SetPageSizePixels(self, int w, int h)""" | |
4408 | return _windows_.Printout_SetPageSizePixels(*args, **kwargs) | |
4409 | ||
4410 | def GetPageSizePixels(*args, **kwargs): | |
4411 | """GetPageSizePixels() -> (w, h)""" | |
4412 | return _windows_.Printout_GetPageSizePixels(*args, **kwargs) | |
4413 | ||
4414 | def SetPageSizeMM(*args, **kwargs): | |
4415 | """SetPageSizeMM(self, int w, int h)""" | |
4416 | return _windows_.Printout_SetPageSizeMM(*args, **kwargs) | |
4417 | ||
4418 | def GetPageSizeMM(*args, **kwargs): | |
4419 | """GetPageSizeMM() -> (w, h)""" | |
4420 | return _windows_.Printout_GetPageSizeMM(*args, **kwargs) | |
4421 | ||
4422 | def SetPPIScreen(*args, **kwargs): | |
4423 | """SetPPIScreen(self, int x, int y)""" | |
4424 | return _windows_.Printout_SetPPIScreen(*args, **kwargs) | |
4425 | ||
4426 | def GetPPIScreen(*args, **kwargs): | |
4427 | """GetPPIScreen() -> (x,y)""" | |
4428 | return _windows_.Printout_GetPPIScreen(*args, **kwargs) | |
4429 | ||
4430 | def SetPPIPrinter(*args, **kwargs): | |
4431 | """SetPPIPrinter(self, int x, int y)""" | |
4432 | return _windows_.Printout_SetPPIPrinter(*args, **kwargs) | |
4433 | ||
4434 | def GetPPIPrinter(*args, **kwargs): | |
4435 | """GetPPIPrinter() -> (x,y)""" | |
4436 | return _windows_.Printout_GetPPIPrinter(*args, **kwargs) | |
4437 | ||
4438 | def IsPreview(*args, **kwargs): | |
4439 | """IsPreview(self) -> bool""" | |
4440 | return _windows_.Printout_IsPreview(*args, **kwargs) | |
4441 | ||
4442 | def SetIsPreview(*args, **kwargs): | |
4443 | """SetIsPreview(self, bool p)""" | |
4444 | return _windows_.Printout_SetIsPreview(*args, **kwargs) | |
4445 | ||
4446 | def base_OnBeginDocument(*args, **kwargs): | |
4447 | """base_OnBeginDocument(self, int startPage, int endPage) -> bool""" | |
4448 | return _windows_.Printout_base_OnBeginDocument(*args, **kwargs) | |
4449 | ||
4450 | def base_OnEndDocument(*args, **kwargs): | |
4451 | """base_OnEndDocument(self)""" | |
4452 | return _windows_.Printout_base_OnEndDocument(*args, **kwargs) | |
4453 | ||
4454 | def base_OnBeginPrinting(*args, **kwargs): | |
4455 | """base_OnBeginPrinting(self)""" | |
4456 | return _windows_.Printout_base_OnBeginPrinting(*args, **kwargs) | |
4457 | ||
4458 | def base_OnEndPrinting(*args, **kwargs): | |
4459 | """base_OnEndPrinting(self)""" | |
4460 | return _windows_.Printout_base_OnEndPrinting(*args, **kwargs) | |
4461 | ||
4462 | def base_OnPreparePrinting(*args, **kwargs): | |
4463 | """base_OnPreparePrinting(self)""" | |
4464 | return _windows_.Printout_base_OnPreparePrinting(*args, **kwargs) | |
4465 | ||
4466 | def base_HasPage(*args, **kwargs): | |
4467 | """base_HasPage(self, int page) -> bool""" | |
4468 | return _windows_.Printout_base_HasPage(*args, **kwargs) | |
4469 | ||
4470 | def base_GetPageInfo(*args, **kwargs): | |
4471 | """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)""" | |
4472 | return _windows_.Printout_base_GetPageInfo(*args, **kwargs) | |
4473 | ||
4474 | ||
4475 | class PrintoutPtr(Printout): | |
4476 | def __init__(self, this): | |
4477 | self.this = this | |
4478 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4479 | self.__class__ = Printout | |
4480 | _windows_.Printout_swigregister(PrintoutPtr) | |
4481 | ||
4482 | class PreviewCanvas(ScrolledWindow): | |
4483 | def __repr__(self): | |
4484 | return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4485 | def __init__(self, *args, **kwargs): | |
4486 | """ | |
4487 | __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition, | |
4488 | Size size=DefaultSize, long style=0, | |
4489 | String name=PreviewCanvasNameStr) -> PreviewCanvas | |
4490 | """ | |
4491 | newobj = _windows_.new_PreviewCanvas(*args, **kwargs) | |
4492 | self.this = newobj.this | |
4493 | self.thisown = 1 | |
4494 | del newobj.thisown | |
4495 | self._setOORInfo(self) | |
4496 | ||
4497 | ||
4498 | class PreviewCanvasPtr(PreviewCanvas): | |
4499 | def __init__(self, this): | |
4500 | self.this = this | |
4501 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4502 | self.__class__ = PreviewCanvas | |
4503 | _windows_.PreviewCanvas_swigregister(PreviewCanvasPtr) | |
4504 | ||
4505 | class PreviewFrame(Frame): | |
4506 | def __repr__(self): | |
4507 | return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4508 | def __init__(self, *args, **kwargs): | |
4509 | """ | |
4510 | __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, | |
4511 | Size size=DefaultSize, | |
4512 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame | |
4513 | """ | |
4514 | newobj = _windows_.new_PreviewFrame(*args, **kwargs) | |
4515 | self.this = newobj.this | |
4516 | self.thisown = 1 | |
4517 | del newobj.thisown | |
4518 | self._setOORInfo(self) | |
4519 | ||
4520 | def Initialize(*args, **kwargs): | |
4521 | """Initialize(self)""" | |
4522 | return _windows_.PreviewFrame_Initialize(*args, **kwargs) | |
4523 | ||
4524 | def CreateControlBar(*args, **kwargs): | |
4525 | """CreateControlBar(self)""" | |
4526 | return _windows_.PreviewFrame_CreateControlBar(*args, **kwargs) | |
4527 | ||
4528 | def CreateCanvas(*args, **kwargs): | |
4529 | """CreateCanvas(self)""" | |
4530 | return _windows_.PreviewFrame_CreateCanvas(*args, **kwargs) | |
4531 | ||
4532 | def GetControlBar(*args, **kwargs): | |
4533 | """GetControlBar(self) -> PreviewControlBar""" | |
4534 | return _windows_.PreviewFrame_GetControlBar(*args, **kwargs) | |
4535 | ||
4536 | ||
4537 | class PreviewFramePtr(PreviewFrame): | |
4538 | def __init__(self, this): | |
4539 | self.this = this | |
4540 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4541 | self.__class__ = PreviewFrame | |
4542 | _windows_.PreviewFrame_swigregister(PreviewFramePtr) | |
4543 | ||
4544 | PREVIEW_PRINT = _windows_.PREVIEW_PRINT | |
4545 | PREVIEW_PREVIOUS = _windows_.PREVIEW_PREVIOUS | |
4546 | PREVIEW_NEXT = _windows_.PREVIEW_NEXT | |
4547 | PREVIEW_ZOOM = _windows_.PREVIEW_ZOOM | |
4548 | PREVIEW_FIRST = _windows_.PREVIEW_FIRST | |
4549 | PREVIEW_LAST = _windows_.PREVIEW_LAST | |
4550 | PREVIEW_GOTO = _windows_.PREVIEW_GOTO | |
4551 | PREVIEW_DEFAULT = _windows_.PREVIEW_DEFAULT | |
4552 | ID_PREVIEW_CLOSE = _windows_.ID_PREVIEW_CLOSE | |
4553 | ID_PREVIEW_NEXT = _windows_.ID_PREVIEW_NEXT | |
4554 | ID_PREVIEW_PREVIOUS = _windows_.ID_PREVIEW_PREVIOUS | |
4555 | ID_PREVIEW_PRINT = _windows_.ID_PREVIEW_PRINT | |
4556 | ID_PREVIEW_ZOOM = _windows_.ID_PREVIEW_ZOOM | |
4557 | ID_PREVIEW_FIRST = _windows_.ID_PREVIEW_FIRST | |
4558 | ID_PREVIEW_LAST = _windows_.ID_PREVIEW_LAST | |
4559 | ID_PREVIEW_GOTO = _windows_.ID_PREVIEW_GOTO | |
4560 | class PreviewControlBar(Panel): | |
4561 | def __repr__(self): | |
4562 | return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4563 | def __init__(self, *args, **kwargs): | |
4564 | """ | |
4565 | __init__(self, PrintPreview preview, long buttons, Window parent, | |
4566 | Point pos=DefaultPosition, Size size=DefaultSize, | |
4567 | long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar | |
4568 | """ | |
4569 | newobj = _windows_.new_PreviewControlBar(*args, **kwargs) | |
4570 | self.this = newobj.this | |
4571 | self.thisown = 1 | |
4572 | del newobj.thisown | |
4573 | self._setOORInfo(self) | |
4574 | ||
4575 | def GetZoomControl(*args, **kwargs): | |
4576 | """GetZoomControl(self) -> int""" | |
4577 | return _windows_.PreviewControlBar_GetZoomControl(*args, **kwargs) | |
4578 | ||
4579 | def SetZoomControl(*args, **kwargs): | |
4580 | """SetZoomControl(self, int zoom)""" | |
4581 | return _windows_.PreviewControlBar_SetZoomControl(*args, **kwargs) | |
4582 | ||
4583 | def GetPrintPreview(*args, **kwargs): | |
4584 | """GetPrintPreview(self) -> PrintPreview""" | |
4585 | return _windows_.PreviewControlBar_GetPrintPreview(*args, **kwargs) | |
4586 | ||
4587 | def OnNext(*args, **kwargs): | |
4588 | """OnNext(self)""" | |
4589 | return _windows_.PreviewControlBar_OnNext(*args, **kwargs) | |
4590 | ||
4591 | def OnPrevious(*args, **kwargs): | |
4592 | """OnPrevious(self)""" | |
4593 | return _windows_.PreviewControlBar_OnPrevious(*args, **kwargs) | |
4594 | ||
4595 | def OnFirst(*args, **kwargs): | |
4596 | """OnFirst(self)""" | |
4597 | return _windows_.PreviewControlBar_OnFirst(*args, **kwargs) | |
4598 | ||
4599 | def OnLast(*args, **kwargs): | |
4600 | """OnLast(self)""" | |
4601 | return _windows_.PreviewControlBar_OnLast(*args, **kwargs) | |
4602 | ||
4603 | def OnGoto(*args, **kwargs): | |
4604 | """OnGoto(self)""" | |
4605 | return _windows_.PreviewControlBar_OnGoto(*args, **kwargs) | |
4606 | ||
4607 | ||
4608 | class PreviewControlBarPtr(PreviewControlBar): | |
4609 | def __init__(self, this): | |
4610 | self.this = this | |
4611 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4612 | self.__class__ = PreviewControlBar | |
4613 | _windows_.PreviewControlBar_swigregister(PreviewControlBarPtr) | |
4614 | ||
4615 | class PrintPreview(_core.Object): | |
4616 | def __repr__(self): | |
4617 | return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4618 | def __init__(self, *args): | |
4619 | """ | |
4620 | __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview | |
4621 | __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview | |
4622 | """ | |
4623 | newobj = _windows_.new_PrintPreview(*args) | |
4624 | self.this = newobj.this | |
4625 | self.thisown = 1 | |
4626 | del newobj.thisown | |
4627 | def SetCurrentPage(*args, **kwargs): | |
4628 | """SetCurrentPage(self, int pageNum) -> bool""" | |
4629 | return _windows_.PrintPreview_SetCurrentPage(*args, **kwargs) | |
4630 | ||
4631 | def GetCurrentPage(*args, **kwargs): | |
4632 | """GetCurrentPage(self) -> int""" | |
4633 | return _windows_.PrintPreview_GetCurrentPage(*args, **kwargs) | |
4634 | ||
4635 | def SetPrintout(*args, **kwargs): | |
4636 | """SetPrintout(self, Printout printout)""" | |
4637 | return _windows_.PrintPreview_SetPrintout(*args, **kwargs) | |
4638 | ||
4639 | def GetPrintout(*args, **kwargs): | |
4640 | """GetPrintout(self) -> Printout""" | |
4641 | return _windows_.PrintPreview_GetPrintout(*args, **kwargs) | |
4642 | ||
4643 | def GetPrintoutForPrinting(*args, **kwargs): | |
4644 | """GetPrintoutForPrinting(self) -> Printout""" | |
4645 | return _windows_.PrintPreview_GetPrintoutForPrinting(*args, **kwargs) | |
4646 | ||
4647 | def SetFrame(*args, **kwargs): | |
4648 | """SetFrame(self, Frame frame)""" | |
4649 | return _windows_.PrintPreview_SetFrame(*args, **kwargs) | |
4650 | ||
4651 | def SetCanvas(*args, **kwargs): | |
4652 | """SetCanvas(self, PreviewCanvas canvas)""" | |
4653 | return _windows_.PrintPreview_SetCanvas(*args, **kwargs) | |
4654 | ||
4655 | def GetFrame(*args, **kwargs): | |
4656 | """GetFrame(self) -> Frame""" | |
4657 | return _windows_.PrintPreview_GetFrame(*args, **kwargs) | |
4658 | ||
4659 | def GetCanvas(*args, **kwargs): | |
4660 | """GetCanvas(self) -> PreviewCanvas""" | |
4661 | return _windows_.PrintPreview_GetCanvas(*args, **kwargs) | |
4662 | ||
4663 | def PaintPage(*args, **kwargs): | |
4664 | """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" | |
4665 | return _windows_.PrintPreview_PaintPage(*args, **kwargs) | |
4666 | ||
4667 | def DrawBlankPage(*args, **kwargs): | |
4668 | """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" | |
4669 | return _windows_.PrintPreview_DrawBlankPage(*args, **kwargs) | |
4670 | ||
4671 | def RenderPage(*args, **kwargs): | |
4672 | """RenderPage(self, int pageNum) -> bool""" | |
4673 | return _windows_.PrintPreview_RenderPage(*args, **kwargs) | |
4674 | ||
4675 | def AdjustScrollbars(*args, **kwargs): | |
4676 | """AdjustScrollbars(self, PreviewCanvas canvas)""" | |
4677 | return _windows_.PrintPreview_AdjustScrollbars(*args, **kwargs) | |
4678 | ||
4679 | def GetPrintDialogData(*args, **kwargs): | |
4680 | """GetPrintDialogData(self) -> PrintDialogData""" | |
4681 | return _windows_.PrintPreview_GetPrintDialogData(*args, **kwargs) | |
4682 | ||
4683 | def SetZoom(*args, **kwargs): | |
4684 | """SetZoom(self, int percent)""" | |
4685 | return _windows_.PrintPreview_SetZoom(*args, **kwargs) | |
4686 | ||
4687 | def GetZoom(*args, **kwargs): | |
4688 | """GetZoom(self) -> int""" | |
4689 | return _windows_.PrintPreview_GetZoom(*args, **kwargs) | |
4690 | ||
4691 | def GetMaxPage(*args, **kwargs): | |
4692 | """GetMaxPage(self) -> int""" | |
4693 | return _windows_.PrintPreview_GetMaxPage(*args, **kwargs) | |
4694 | ||
4695 | def GetMinPage(*args, **kwargs): | |
4696 | """GetMinPage(self) -> int""" | |
4697 | return _windows_.PrintPreview_GetMinPage(*args, **kwargs) | |
4698 | ||
4699 | def Ok(*args, **kwargs): | |
4700 | """Ok(self) -> bool""" | |
4701 | return _windows_.PrintPreview_Ok(*args, **kwargs) | |
4702 | ||
4703 | def SetOk(*args, **kwargs): | |
4704 | """SetOk(self, bool ok)""" | |
4705 | return _windows_.PrintPreview_SetOk(*args, **kwargs) | |
4706 | ||
4707 | def Print(*args, **kwargs): | |
4708 | """Print(self, bool interactive) -> bool""" | |
4709 | return _windows_.PrintPreview_Print(*args, **kwargs) | |
4710 | ||
4711 | def DetermineScaling(*args, **kwargs): | |
4712 | """DetermineScaling(self)""" | |
4713 | return _windows_.PrintPreview_DetermineScaling(*args, **kwargs) | |
4714 | ||
4715 | def __nonzero__(self): return self.Ok() | |
4716 | ||
4717 | class PrintPreviewPtr(PrintPreview): | |
4718 | def __init__(self, this): | |
4719 | self.this = this | |
4720 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4721 | self.__class__ = PrintPreview | |
4722 | _windows_.PrintPreview_swigregister(PrintPreviewPtr) | |
4723 | ||
4724 | class PyPrintPreview(PrintPreview): | |
4725 | def __repr__(self): | |
4726 | return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4727 | def __init__(self, *args): | |
4728 | """ | |
4729 | __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview | |
4730 | __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview | |
4731 | """ | |
4732 | newobj = _windows_.new_PyPrintPreview(*args) | |
4733 | self.this = newobj.this | |
4734 | self.thisown = 1 | |
4735 | del newobj.thisown | |
4736 | self._setCallbackInfo(self, PyPrintPreview) | |
4737 | ||
4738 | def _setCallbackInfo(*args, **kwargs): | |
4739 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4740 | return _windows_.PyPrintPreview__setCallbackInfo(*args, **kwargs) | |
4741 | ||
4742 | def base_SetCurrentPage(*args, **kwargs): | |
4743 | """base_SetCurrentPage(self, int pageNum) -> bool""" | |
4744 | return _windows_.PyPrintPreview_base_SetCurrentPage(*args, **kwargs) | |
4745 | ||
4746 | def base_PaintPage(*args, **kwargs): | |
4747 | """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" | |
4748 | return _windows_.PyPrintPreview_base_PaintPage(*args, **kwargs) | |
4749 | ||
4750 | def base_DrawBlankPage(*args, **kwargs): | |
4751 | """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" | |
4752 | return _windows_.PyPrintPreview_base_DrawBlankPage(*args, **kwargs) | |
4753 | ||
4754 | def base_RenderPage(*args, **kwargs): | |
4755 | """base_RenderPage(self, int pageNum) -> bool""" | |
4756 | return _windows_.PyPrintPreview_base_RenderPage(*args, **kwargs) | |
4757 | ||
4758 | def base_SetZoom(*args, **kwargs): | |
4759 | """base_SetZoom(self, int percent)""" | |
4760 | return _windows_.PyPrintPreview_base_SetZoom(*args, **kwargs) | |
4761 | ||
4762 | def base_Print(*args, **kwargs): | |
4763 | """base_Print(self, bool interactive) -> bool""" | |
4764 | return _windows_.PyPrintPreview_base_Print(*args, **kwargs) | |
4765 | ||
4766 | def base_DetermineScaling(*args, **kwargs): | |
4767 | """base_DetermineScaling(self)""" | |
4768 | return _windows_.PyPrintPreview_base_DetermineScaling(*args, **kwargs) | |
4769 | ||
4770 | ||
4771 | class PyPrintPreviewPtr(PyPrintPreview): | |
4772 | def __init__(self, this): | |
4773 | self.this = this | |
4774 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4775 | self.__class__ = PyPrintPreview | |
4776 | _windows_.PyPrintPreview_swigregister(PyPrintPreviewPtr) | |
4777 | ||
4778 | class PyPreviewFrame(PreviewFrame): | |
4779 | def __repr__(self): | |
4780 | return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4781 | def __init__(self, *args, **kwargs): | |
4782 | """ | |
4783 | __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, | |
4784 | Size size=DefaultSize, | |
4785 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame | |
4786 | """ | |
4787 | newobj = _windows_.new_PyPreviewFrame(*args, **kwargs) | |
4788 | self.this = newobj.this | |
4789 | self.thisown = 1 | |
4790 | del newobj.thisown | |
4791 | self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self) | |
4792 | ||
4793 | def _setCallbackInfo(*args, **kwargs): | |
4794 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4795 | return _windows_.PyPreviewFrame__setCallbackInfo(*args, **kwargs) | |
4796 | ||
4797 | def SetPreviewCanvas(*args, **kwargs): | |
4798 | """SetPreviewCanvas(self, PreviewCanvas canvas)""" | |
4799 | return _windows_.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs) | |
4800 | ||
4801 | def SetControlBar(*args, **kwargs): | |
4802 | """SetControlBar(self, PreviewControlBar bar)""" | |
4803 | return _windows_.PyPreviewFrame_SetControlBar(*args, **kwargs) | |
4804 | ||
4805 | def base_Initialize(*args, **kwargs): | |
4806 | """base_Initialize(self)""" | |
4807 | return _windows_.PyPreviewFrame_base_Initialize(*args, **kwargs) | |
4808 | ||
4809 | def base_CreateCanvas(*args, **kwargs): | |
4810 | """base_CreateCanvas(self)""" | |
4811 | return _windows_.PyPreviewFrame_base_CreateCanvas(*args, **kwargs) | |
4812 | ||
4813 | def base_CreateControlBar(*args, **kwargs): | |
4814 | """base_CreateControlBar(self)""" | |
4815 | return _windows_.PyPreviewFrame_base_CreateControlBar(*args, **kwargs) | |
4816 | ||
4817 | ||
4818 | class PyPreviewFramePtr(PyPreviewFrame): | |
4819 | def __init__(self, this): | |
4820 | self.this = this | |
4821 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4822 | self.__class__ = PyPreviewFrame | |
4823 | _windows_.PyPreviewFrame_swigregister(PyPreviewFramePtr) | |
4824 | ||
4825 | class PyPreviewControlBar(PreviewControlBar): | |
4826 | def __repr__(self): | |
4827 | return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4828 | def __init__(self, *args, **kwargs): | |
4829 | """ | |
4830 | __init__(self, PrintPreview preview, long buttons, Window parent, | |
4831 | Point pos=DefaultPosition, Size size=DefaultSize, | |
4832 | long style=0, String name=PanelNameStr) -> PyPreviewControlBar | |
4833 | """ | |
4834 | newobj = _windows_.new_PyPreviewControlBar(*args, **kwargs) | |
4835 | self.this = newobj.this | |
4836 | self.thisown = 1 | |
4837 | del newobj.thisown | |
4838 | self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self) | |
4839 | ||
4840 | def _setCallbackInfo(*args, **kwargs): | |
4841 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4842 | return _windows_.PyPreviewControlBar__setCallbackInfo(*args, **kwargs) | |
4843 | ||
4844 | def SetPrintPreview(*args, **kwargs): | |
4845 | """SetPrintPreview(self, PrintPreview preview)""" | |
4846 | return _windows_.PyPreviewControlBar_SetPrintPreview(*args, **kwargs) | |
4847 | ||
4848 | def base_CreateButtons(*args, **kwargs): | |
4849 | """base_CreateButtons(self)""" | |
4850 | return _windows_.PyPreviewControlBar_base_CreateButtons(*args, **kwargs) | |
4851 | ||
4852 | def base_SetZoomControl(*args, **kwargs): | |
4853 | """base_SetZoomControl(self, int zoom)""" | |
4854 | return _windows_.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs) | |
4855 | ||
4856 | ||
4857 | class PyPreviewControlBarPtr(PyPreviewControlBar): | |
4858 | def __init__(self, this): | |
4859 | self.this = this | |
4860 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4861 | self.__class__ = PyPreviewControlBar | |
4862 | _windows_.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr) | |
4863 | ||
4864 |