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