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