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