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