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