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