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