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