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