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