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