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