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