]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/mac/_windows.py
doc tweaks
[wxWidgets.git] / wxPython / src / mac / _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
52 user's system, especially if it uses themes.
53
54 The variant parameter is only relevant under Mac currently and is
55 ignore under other platforms. Under Mac, it will change the size of
56 the returned font. See `wx.Window.SetWindowVariant` for more about
57 this.
58 """
59 return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs)
60
61 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
62
63class PanelPtr(Panel):
64 def __init__(self, this):
65 self.this = this
66 if not hasattr(self,"thisown"): self.thisown = 0
67 self.__class__ = Panel
68_windows_.Panel_swigregister(PanelPtr)
69
70def PrePanel(*args, **kwargs):
71 """PrePanel() -> Panel"""
72 val = _windows_.new_PrePanel(*args, **kwargs)
73 val.thisown = 1
74 return val
75
76def Panel_GetClassDefaultAttributes(*args, **kwargs):
77 """
78 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
79
80 Get the default attributes for this class. This is useful if you want
81 to use the same font or colour in your own control as in a standard
82 control -- which is a much better idea than hard coding specific
83 colours or fonts which might look completely out of place on the
84 user's system, especially if it uses themes.
85
86 The variant parameter is only relevant under Mac currently and is
87 ignore under other platforms. Under Mac, it will change the size of
88 the returned font. See `wx.Window.SetWindowVariant` for more about
89 this.
90 """
91 return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs)
92
93#---------------------------------------------------------------------------
94
95class ScrolledWindow(Panel):
96 def __repr__(self):
97 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
98 def __init__(self, *args, **kwargs):
99 """
100 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
101 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
102 String name=PanelNameStr) -> ScrolledWindow
103 """
104 newobj = _windows_.new_ScrolledWindow(*args, **kwargs)
105 self.this = newobj.this
106 self.thisown = 1
107 del newobj.thisown
108 self._setOORInfo(self)
109
110 def Create(*args, **kwargs):
111 """
112 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
113 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
114 String name=PanelNameStr) -> bool
115
116 Create the GUI part of the Window for 2-phase creation mode.
117 """
118 return _windows_.ScrolledWindow_Create(*args, **kwargs)
119
120 def SetScrollbars(*args, **kwargs):
121 """
122 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
123 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
124 """
125 return _windows_.ScrolledWindow_SetScrollbars(*args, **kwargs)
126
127 def Scroll(*args, **kwargs):
128 """Scroll(self, int x, int y)"""
129 return _windows_.ScrolledWindow_Scroll(*args, **kwargs)
130
131 def GetScrollPageSize(*args, **kwargs):
132 """GetScrollPageSize(self, int orient) -> int"""
133 return _windows_.ScrolledWindow_GetScrollPageSize(*args, **kwargs)
134
135 def SetScrollPageSize(*args, **kwargs):
136 """SetScrollPageSize(self, int orient, int pageSize)"""
137 return _windows_.ScrolledWindow_SetScrollPageSize(*args, **kwargs)
138
139 def SetScrollRate(*args, **kwargs):
140 """SetScrollRate(self, int xstep, int ystep)"""
141 return _windows_.ScrolledWindow_SetScrollRate(*args, **kwargs)
142
143 def GetScrollPixelsPerUnit(*args, **kwargs):
144 """GetScrollPixelsPerUnit() -> (xUnit, yUnit)"""
145 return _windows_.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs)
146
147 def EnableScrolling(*args, **kwargs):
148 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
149 return _windows_.ScrolledWindow_EnableScrolling(*args, **kwargs)
150
151 def GetViewStart(*args, **kwargs):
152 """GetViewStart() -> (x,y)"""
153 return _windows_.ScrolledWindow_GetViewStart(*args, **kwargs)
154
155 def SetScale(*args, **kwargs):
156 """SetScale(self, double xs, double ys)"""
157 return _windows_.ScrolledWindow_SetScale(*args, **kwargs)
158
159 def GetScaleX(*args, **kwargs):
160 """GetScaleX(self) -> double"""
161 return _windows_.ScrolledWindow_GetScaleX(*args, **kwargs)
162
163 def GetScaleY(*args, **kwargs):
164 """GetScaleY(self) -> double"""
165 return _windows_.ScrolledWindow_GetScaleY(*args, **kwargs)
166
167 def CalcScrolledPosition(*args):
168 """
169 CalcScrolledPosition(self, Point pt) -> Point
170 CalcScrolledPosition(int x, int y) -> (sx, sy)
171
172 Translate between scrolled and unscrolled coordinates.
173 """
174 return _windows_.ScrolledWindow_CalcScrolledPosition(*args)
175
176 def CalcUnscrolledPosition(*args):
177 """
178 CalcUnscrolledPosition(self, Point pt) -> Point
179 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
180
181 Translate between scrolled and unscrolled coordinates.
182 """
183 return _windows_.ScrolledWindow_CalcUnscrolledPosition(*args)
184
185 def AdjustScrollbars(*args, **kwargs):
186 """AdjustScrollbars(self)"""
187 return _windows_.ScrolledWindow_AdjustScrollbars(*args, **kwargs)
188
189 def CalcScrollInc(*args, **kwargs):
190 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
191 return _windows_.ScrolledWindow_CalcScrollInc(*args, **kwargs)
192
193 def SetTargetWindow(*args, **kwargs):
194 """SetTargetWindow(self, Window target)"""
195 return _windows_.ScrolledWindow_SetTargetWindow(*args, **kwargs)
196
197 def GetTargetWindow(*args, **kwargs):
198 """GetTargetWindow(self) -> Window"""
199 return _windows_.ScrolledWindow_GetTargetWindow(*args, **kwargs)
200
201 def SetTargetRect(*args, **kwargs):
202 """SetTargetRect(self, Rect rect)"""
203 return _windows_.ScrolledWindow_SetTargetRect(*args, **kwargs)
204
205 def GetTargetRect(*args, **kwargs):
206 """GetTargetRect(self) -> Rect"""
207 return _windows_.ScrolledWindow_GetTargetRect(*args, **kwargs)
208
209 def GetClassDefaultAttributes(*args, **kwargs):
210 """
211 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
212
213 Get the default attributes for this class. This is useful if you want
214 to use the same font or colour in your own control as in a standard
215 control -- which is a much better idea than hard coding specific
216 colours or fonts which might look completely out of place on the
217 user's system, especially if it uses themes.
218
219 The variant parameter is only relevant under Mac currently and is
220 ignore under other platforms. Under Mac, it will change the size of
221 the returned font. See `wx.Window.SetWindowVariant` for more about
222 this.
223 """
224 return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs)
225
226 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
227
228class ScrolledWindowPtr(ScrolledWindow):
229 def __init__(self, this):
230 self.this = this
231 if not hasattr(self,"thisown"): self.thisown = 0
232 self.__class__ = ScrolledWindow
233_windows_.ScrolledWindow_swigregister(ScrolledWindowPtr)
234
235def PreScrolledWindow(*args, **kwargs):
236 """PreScrolledWindow() -> ScrolledWindow"""
237 val = _windows_.new_PreScrolledWindow(*args, **kwargs)
238 val.thisown = 1
239 return val
240
241def ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs):
242 """
243 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
244
245 Get the default attributes for this class. This is useful if you want
246 to use the same font or colour in your own control as in a standard
247 control -- which is a much better idea than hard coding specific
248 colours or fonts which might look completely out of place on the
249 user's system, especially if it uses themes.
250
251 The variant parameter is only relevant under Mac currently and is
252 ignore under other platforms. Under Mac, it will change the size of
253 the returned font. See `wx.Window.SetWindowVariant` for more about
254 this.
255 """
256 return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs)
257
258#---------------------------------------------------------------------------
259
260STAY_ON_TOP = _windows_.STAY_ON_TOP
261ICONIZE = _windows_.ICONIZE
262MINIMIZE = _windows_.MINIMIZE
263MAXIMIZE = _windows_.MAXIMIZE
264CLOSE_BOX = _windows_.CLOSE_BOX
265THICK_FRAME = _windows_.THICK_FRAME
266SYSTEM_MENU = _windows_.SYSTEM_MENU
267MINIMIZE_BOX = _windows_.MINIMIZE_BOX
268MAXIMIZE_BOX = _windows_.MAXIMIZE_BOX
269TINY_CAPTION_HORIZ = _windows_.TINY_CAPTION_HORIZ
270TINY_CAPTION_VERT = _windows_.TINY_CAPTION_VERT
271RESIZE_BOX = _windows_.RESIZE_BOX
272RESIZE_BORDER = _windows_.RESIZE_BORDER
273DIALOG_NO_PARENT = _windows_.DIALOG_NO_PARENT
274DEFAULT_FRAME_STYLE = _windows_.DEFAULT_FRAME_STYLE
275DEFAULT_DIALOG_STYLE = _windows_.DEFAULT_DIALOG_STYLE
276FRAME_TOOL_WINDOW = _windows_.FRAME_TOOL_WINDOW
277FRAME_FLOAT_ON_PARENT = _windows_.FRAME_FLOAT_ON_PARENT
278FRAME_NO_WINDOW_MENU = _windows_.FRAME_NO_WINDOW_MENU
279FRAME_NO_TASKBAR = _windows_.FRAME_NO_TASKBAR
280FRAME_SHAPED = _windows_.FRAME_SHAPED
281DIALOG_MODAL = _windows_.DIALOG_MODAL
282DIALOG_MODELESS = _windows_.DIALOG_MODELESS
283USER_COLOURS = _windows_.USER_COLOURS
284NO_3D = _windows_.NO_3D
285FULLSCREEN_NOMENUBAR = _windows_.FULLSCREEN_NOMENUBAR
286FULLSCREEN_NOTOOLBAR = _windows_.FULLSCREEN_NOTOOLBAR
287FULLSCREEN_NOSTATUSBAR = _windows_.FULLSCREEN_NOSTATUSBAR
288FULLSCREEN_NOBORDER = _windows_.FULLSCREEN_NOBORDER
289FULLSCREEN_NOCAPTION = _windows_.FULLSCREEN_NOCAPTION
290FULLSCREEN_ALL = _windows_.FULLSCREEN_ALL
291TOPLEVEL_EX_DIALOG = _windows_.TOPLEVEL_EX_DIALOG
292class TopLevelWindow(_core.Window):
293 def __init__(self): raise RuntimeError, "No constructor defined"
294 def __repr__(self):
295 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
296 def Maximize(*args, **kwargs):
297 """Maximize(self, bool maximize=True)"""
298 return _windows_.TopLevelWindow_Maximize(*args, **kwargs)
299
300 def Restore(*args, **kwargs):
301 """Restore(self)"""
302 return _windows_.TopLevelWindow_Restore(*args, **kwargs)
303
304 def Iconize(*args, **kwargs):
305 """Iconize(self, bool iconize=True)"""
306 return _windows_.TopLevelWindow_Iconize(*args, **kwargs)
307
308 def IsMaximized(*args, **kwargs):
309 """IsMaximized(self) -> bool"""
310 return _windows_.TopLevelWindow_IsMaximized(*args, **kwargs)
311
312 def IsIconized(*args, **kwargs):
313 """IsIconized(self) -> bool"""
314 return _windows_.TopLevelWindow_IsIconized(*args, **kwargs)
315
316 def GetIcon(*args, **kwargs):
317 """GetIcon(self) -> Icon"""
318 return _windows_.TopLevelWindow_GetIcon(*args, **kwargs)
319
320 def SetIcon(*args, **kwargs):
321 """SetIcon(self, Icon icon)"""
322 return _windows_.TopLevelWindow_SetIcon(*args, **kwargs)
323
324 def SetIcons(*args, **kwargs):
325 """SetIcons(self, wxIconBundle icons)"""
326 return _windows_.TopLevelWindow_SetIcons(*args, **kwargs)
327
328 def ShowFullScreen(*args, **kwargs):
329 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
330 return _windows_.TopLevelWindow_ShowFullScreen(*args, **kwargs)
331
332 def IsFullScreen(*args, **kwargs):
333 """IsFullScreen(self) -> bool"""
334 return _windows_.TopLevelWindow_IsFullScreen(*args, **kwargs)
335
336 def SetTitle(*args, **kwargs):
337 """
338 SetTitle(self, String title)
339
340 Sets the window's title. Applicable only to frames and dialogs.
341 """
342 return _windows_.TopLevelWindow_SetTitle(*args, **kwargs)
343
344 def GetTitle(*args, **kwargs):
345 """
346 GetTitle(self) -> String
347
348 Gets the window's title. Applicable only to frames and dialogs.
349 """
350 return _windows_.TopLevelWindow_GetTitle(*args, **kwargs)
351
352 def SetShape(*args, **kwargs):
353 """SetShape(self, Region region) -> bool"""
354 return _windows_.TopLevelWindow_SetShape(*args, **kwargs)
355
356 def MacSetMetalAppearance(*args, **kwargs):
357 """MacSetMetalAppearance(self, bool on)"""
358 return _windows_.TopLevelWindow_MacSetMetalAppearance(*args, **kwargs)
359
360 def MacGetMetalAppearance(*args, **kwargs):
361 """MacGetMetalAppearance(self) -> bool"""
362 return _windows_.TopLevelWindow_MacGetMetalAppearance(*args, **kwargs)
363
364
365class TopLevelWindowPtr(TopLevelWindow):
366 def __init__(self, this):
367 self.this = this
368 if not hasattr(self,"thisown"): self.thisown = 0
369 self.__class__ = TopLevelWindow
370_windows_.TopLevelWindow_swigregister(TopLevelWindowPtr)
371cvar = _windows_.cvar
372FrameNameStr = cvar.FrameNameStr
373DialogNameStr = cvar.DialogNameStr
374StatusLineNameStr = cvar.StatusLineNameStr
375ToolBarNameStr = cvar.ToolBarNameStr
376
377#---------------------------------------------------------------------------
378
379class Frame(TopLevelWindow):
380 def __repr__(self):
381 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
382 def __init__(self, *args, **kwargs):
383 """
384 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
385 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
386 String name=FrameNameStr) -> Frame
387 """
388 newobj = _windows_.new_Frame(*args, **kwargs)
389 self.this = newobj.this
390 self.thisown = 1
391 del newobj.thisown
392 self._setOORInfo(self)
393
394 def Create(*args, **kwargs):
395 """
396 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
397 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
398 String name=FrameNameStr) -> bool
399 """
400 return _windows_.Frame_Create(*args, **kwargs)
401
402 def GetClientAreaOrigin(*args, **kwargs):
403 """
404 GetClientAreaOrigin(self) -> Point
405
406 Get the origin of the client area of the window relative to the
407 window's top left corner (the client area may be shifted because of
408 the borders, scrollbars, other decorations...)
409 """
410 return _windows_.Frame_GetClientAreaOrigin(*args, **kwargs)
411
412 def SendSizeEvent(*args, **kwargs):
413 """SendSizeEvent(self)"""
414 return _windows_.Frame_SendSizeEvent(*args, **kwargs)
415
416 def SetMenuBar(*args, **kwargs):
417 """SetMenuBar(self, MenuBar menubar)"""
418 return _windows_.Frame_SetMenuBar(*args, **kwargs)
419
420 def GetMenuBar(*args, **kwargs):
421 """GetMenuBar(self) -> MenuBar"""
422 return _windows_.Frame_GetMenuBar(*args, **kwargs)
423
424 def ProcessCommand(*args, **kwargs):
425 """ProcessCommand(self, int winid) -> bool"""
426 return _windows_.Frame_ProcessCommand(*args, **kwargs)
427
428 Command = ProcessCommand
429 def CreateStatusBar(*args, **kwargs):
430 """
431 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
432 String name=StatusLineNameStr) -> StatusBar
433 """
434 return _windows_.Frame_CreateStatusBar(*args, **kwargs)
435
436 def GetStatusBar(*args, **kwargs):
437 """GetStatusBar(self) -> StatusBar"""
438 return _windows_.Frame_GetStatusBar(*args, **kwargs)
439
440 def SetStatusBar(*args, **kwargs):
441 """SetStatusBar(self, StatusBar statBar)"""
442 return _windows_.Frame_SetStatusBar(*args, **kwargs)
443
444 def SetStatusText(*args, **kwargs):
445 """SetStatusText(self, String text, int number=0)"""
446 return _windows_.Frame_SetStatusText(*args, **kwargs)
447
448 def SetStatusWidths(*args, **kwargs):
449 """SetStatusWidths(self, int widths, int widths_field)"""
450 return _windows_.Frame_SetStatusWidths(*args, **kwargs)
451
452 def PushStatusText(*args, **kwargs):
453 """PushStatusText(self, String text, int number=0)"""
454 return _windows_.Frame_PushStatusText(*args, **kwargs)
455
456 def PopStatusText(*args, **kwargs):
457 """PopStatusText(self, int number=0)"""
458 return _windows_.Frame_PopStatusText(*args, **kwargs)
459
460 def SetStatusBarPane(*args, **kwargs):
461 """SetStatusBarPane(self, int n)"""
462 return _windows_.Frame_SetStatusBarPane(*args, **kwargs)
463
464 def GetStatusBarPane(*args, **kwargs):
465 """GetStatusBarPane(self) -> int"""
466 return _windows_.Frame_GetStatusBarPane(*args, **kwargs)
467
468 def CreateToolBar(*args, **kwargs):
469 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
470 return _windows_.Frame_CreateToolBar(*args, **kwargs)
471
472 def GetToolBar(*args, **kwargs):
473 """GetToolBar(self) -> wxToolBar"""
474 return _windows_.Frame_GetToolBar(*args, **kwargs)
475
476 def SetToolBar(*args, **kwargs):
477 """SetToolBar(self, wxToolBar toolbar)"""
478 return _windows_.Frame_SetToolBar(*args, **kwargs)
479
480 def DoGiveHelp(*args, **kwargs):
481 """DoGiveHelp(self, String text, bool show)"""
482 return _windows_.Frame_DoGiveHelp(*args, **kwargs)
483
484 def DoMenuUpdates(*args, **kwargs):
485 """DoMenuUpdates(self, Menu menu=None)"""
486 return _windows_.Frame_DoMenuUpdates(*args, **kwargs)
487
488 def GetClassDefaultAttributes(*args, **kwargs):
489 """
490 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
491
492 Get the default attributes for this class. This is useful if you want
493 to use the same font or colour in your own control as in a standard
494 control -- which is a much better idea than hard coding specific
495 colours or fonts which might look completely out of place on the
496 user's system, especially if it uses themes.
497
498 The variant parameter is only relevant under Mac currently and is
499 ignore under other platforms. Under Mac, it will change the size of
500 the returned font. See `wx.Window.SetWindowVariant` for more about
501 this.
502 """
503 return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs)
504
505 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
506
507class FramePtr(Frame):
508 def __init__(self, this):
509 self.this = this
510 if not hasattr(self,"thisown"): self.thisown = 0
511 self.__class__ = Frame
512_windows_.Frame_swigregister(FramePtr)
513
514def PreFrame(*args, **kwargs):
515 """PreFrame() -> Frame"""
516 val = _windows_.new_PreFrame(*args, **kwargs)
517 val.thisown = 1
518 return val
519
520def Frame_GetClassDefaultAttributes(*args, **kwargs):
521 """
522 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
523
524 Get the default attributes for this class. This is useful if you want
525 to use the same font or colour in your own control as in a standard
526 control -- which is a much better idea than hard coding specific
527 colours or fonts which might look completely out of place on the
528 user's system, especially if it uses themes.
529
530 The variant parameter is only relevant under Mac currently and is
531 ignore under other platforms. Under Mac, it will change the size of
532 the returned font. See `wx.Window.SetWindowVariant` for more about
533 this.
534 """
535 return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs)
536
537#---------------------------------------------------------------------------
538
539class Dialog(TopLevelWindow):
540 def __repr__(self):
541 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
542 def __init__(self, *args, **kwargs):
543 """
544 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
545 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
546 String name=DialogNameStr) -> Dialog
547 """
548 newobj = _windows_.new_Dialog(*args, **kwargs)
549 self.this = newobj.this
550 self.thisown = 1
551 del newobj.thisown
552 self._setOORInfo(self)
553
554 def Create(*args, **kwargs):
555 """
556 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
557 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
558 String name=DialogNameStr) -> bool
559 """
560 return _windows_.Dialog_Create(*args, **kwargs)
561
562 def SetReturnCode(*args, **kwargs):
563 """SetReturnCode(self, int returnCode)"""
564 return _windows_.Dialog_SetReturnCode(*args, **kwargs)
565
566 def GetReturnCode(*args, **kwargs):
567 """GetReturnCode(self) -> int"""
568 return _windows_.Dialog_GetReturnCode(*args, **kwargs)
569
570 def CreateTextSizer(*args, **kwargs):
571 """CreateTextSizer(self, String message) -> Sizer"""
572 return _windows_.Dialog_CreateTextSizer(*args, **kwargs)
573
574 def CreateButtonSizer(*args, **kwargs):
575 """CreateButtonSizer(self, long flags) -> Sizer"""
576 return _windows_.Dialog_CreateButtonSizer(*args, **kwargs)
577
578 def IsModal(*args, **kwargs):
579 """IsModal(self) -> bool"""
580 return _windows_.Dialog_IsModal(*args, **kwargs)
581
582 def ShowModal(*args, **kwargs):
583 """ShowModal(self) -> int"""
584 return _windows_.Dialog_ShowModal(*args, **kwargs)
585
586 def EndModal(*args, **kwargs):
587 """EndModal(self, int retCode)"""
588 return _windows_.Dialog_EndModal(*args, **kwargs)
589
590 def GetClassDefaultAttributes(*args, **kwargs):
591 """
592 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
593
594 Get the default attributes for this class. This is useful if you want
595 to use the same font or colour in your own control as in a standard
596 control -- which is a much better idea than hard coding specific
597 colours or fonts which might look completely out of place on the
598 user's system, especially if it uses themes.
599
600 The variant parameter is only relevant under Mac currently and is
601 ignore under other platforms. Under Mac, it will change the size of
602 the returned font. See `wx.Window.SetWindowVariant` for more about
603 this.
604 """
605 return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
606
607 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
608
609class DialogPtr(Dialog):
610 def __init__(self, this):
611 self.this = this
612 if not hasattr(self,"thisown"): self.thisown = 0
613 self.__class__ = Dialog
614_windows_.Dialog_swigregister(DialogPtr)
615
616def PreDialog(*args, **kwargs):
617 """PreDialog() -> Dialog"""
618 val = _windows_.new_PreDialog(*args, **kwargs)
619 val.thisown = 1
620 return val
621
622def Dialog_GetClassDefaultAttributes(*args, **kwargs):
623 """
624 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
625
626 Get the default attributes for this class. This is useful if you want
627 to use the same font or colour in your own control as in a standard
628 control -- which is a much better idea than hard coding specific
629 colours or fonts which might look completely out of place on the
630 user's system, especially if it uses themes.
631
632 The variant parameter is only relevant under Mac currently and is
633 ignore under other platforms. Under Mac, it will change the size of
634 the returned font. See `wx.Window.SetWindowVariant` for more about
635 this.
636 """
637 return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
638
639#---------------------------------------------------------------------------
640
641class MiniFrame(Frame):
642 def __repr__(self):
643 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
644 def __init__(self, *args, **kwargs):
645 """
646 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
647 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
648 String name=FrameNameStr) -> MiniFrame
649 """
650 newobj = _windows_.new_MiniFrame(*args, **kwargs)
651 self.this = newobj.this
652 self.thisown = 1
653 del newobj.thisown
654 self._setOORInfo(self)
655
656 def Create(*args, **kwargs):
657 """
658 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
659 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
660 String name=FrameNameStr) -> bool
661 """
662 return _windows_.MiniFrame_Create(*args, **kwargs)
663
664
665class MiniFramePtr(MiniFrame):
666 def __init__(self, this):
667 self.this = this
668 if not hasattr(self,"thisown"): self.thisown = 0
669 self.__class__ = MiniFrame
670_windows_.MiniFrame_swigregister(MiniFramePtr)
671
672def PreMiniFrame(*args, **kwargs):
673 """PreMiniFrame() -> MiniFrame"""
674 val = _windows_.new_PreMiniFrame(*args, **kwargs)
675 val.thisown = 1
676 return val
677
678#---------------------------------------------------------------------------
679
680SPLASH_CENTRE_ON_PARENT = _windows_.SPLASH_CENTRE_ON_PARENT
681SPLASH_CENTRE_ON_SCREEN = _windows_.SPLASH_CENTRE_ON_SCREEN
682SPLASH_NO_CENTRE = _windows_.SPLASH_NO_CENTRE
683SPLASH_TIMEOUT = _windows_.SPLASH_TIMEOUT
684SPLASH_NO_TIMEOUT = _windows_.SPLASH_NO_TIMEOUT
685class SplashScreenWindow(_core.Window):
686 def __repr__(self):
687 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
688 def __init__(self, *args, **kwargs):
689 """
690 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
691 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
692 """
693 newobj = _windows_.new_SplashScreenWindow(*args, **kwargs)
694 self.this = newobj.this
695 self.thisown = 1
696 del newobj.thisown
697 self._setOORInfo(self)
698
699 def SetBitmap(*args, **kwargs):
700 """SetBitmap(self, Bitmap bitmap)"""
701 return _windows_.SplashScreenWindow_SetBitmap(*args, **kwargs)
702
703 def GetBitmap(*args, **kwargs):
704 """GetBitmap(self) -> Bitmap"""
705 return _windows_.SplashScreenWindow_GetBitmap(*args, **kwargs)
706
707
708class SplashScreenWindowPtr(SplashScreenWindow):
709 def __init__(self, this):
710 self.this = this
711 if not hasattr(self,"thisown"): self.thisown = 0
712 self.__class__ = SplashScreenWindow
713_windows_.SplashScreenWindow_swigregister(SplashScreenWindowPtr)
714
715class SplashScreen(Frame):
716 def __repr__(self):
717 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
718 def __init__(self, *args, **kwargs):
719 """
720 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
721 Window parent, int id, Point pos=DefaultPosition,
722 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
723 """
724 newobj = _windows_.new_SplashScreen(*args, **kwargs)
725 self.this = newobj.this
726 self.thisown = 1
727 del newobj.thisown
728 self._setOORInfo(self)
729
730 def GetSplashStyle(*args, **kwargs):
731 """GetSplashStyle(self) -> long"""
732 return _windows_.SplashScreen_GetSplashStyle(*args, **kwargs)
733
734 def GetSplashWindow(*args, **kwargs):
735 """GetSplashWindow(self) -> SplashScreenWindow"""
736 return _windows_.SplashScreen_GetSplashWindow(*args, **kwargs)
737
738 def GetTimeout(*args, **kwargs):
739 """GetTimeout(self) -> int"""
740 return _windows_.SplashScreen_GetTimeout(*args, **kwargs)
741
742
743class SplashScreenPtr(SplashScreen):
744 def __init__(self, this):
745 self.this = this
746 if not hasattr(self,"thisown"): self.thisown = 0
747 self.__class__ = SplashScreen
748_windows_.SplashScreen_swigregister(SplashScreenPtr)
749
750#---------------------------------------------------------------------------
751
752class StatusBar(_core.Window):
753 def __repr__(self):
754 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
755 def __init__(self, *args, **kwargs):
756 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
757 newobj = _windows_.new_StatusBar(*args, **kwargs)
758 self.this = newobj.this
759 self.thisown = 1
760 del newobj.thisown
761 self._setOORInfo(self)
762
763 def Create(*args, **kwargs):
764 """Create(self, Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
765 return _windows_.StatusBar_Create(*args, **kwargs)
766
767 def SetFieldsCount(*args, **kwargs):
768 """SetFieldsCount(self, int number=1)"""
769 return _windows_.StatusBar_SetFieldsCount(*args, **kwargs)
770
771 def GetFieldsCount(*args, **kwargs):
772 """GetFieldsCount(self) -> int"""
773 return _windows_.StatusBar_GetFieldsCount(*args, **kwargs)
774
775 def SetStatusText(*args, **kwargs):
776 """SetStatusText(self, String text, int number=0)"""
777 return _windows_.StatusBar_SetStatusText(*args, **kwargs)
778
779 def GetStatusText(*args, **kwargs):
780 """GetStatusText(self, int number=0) -> String"""
781 return _windows_.StatusBar_GetStatusText(*args, **kwargs)
782
783 def PushStatusText(*args, **kwargs):
784 """PushStatusText(self, String text, int number=0)"""
785 return _windows_.StatusBar_PushStatusText(*args, **kwargs)
786
787 def PopStatusText(*args, **kwargs):
788 """PopStatusText(self, int number=0)"""
789 return _windows_.StatusBar_PopStatusText(*args, **kwargs)
790
791 def SetStatusWidths(*args, **kwargs):
792 """SetStatusWidths(self, int widths, int widths_field)"""
793 return _windows_.StatusBar_SetStatusWidths(*args, **kwargs)
794
795 def GetFieldRect(*args, **kwargs):
796 """GetFieldRect(self, int i) -> Rect"""
797 return _windows_.StatusBar_GetFieldRect(*args, **kwargs)
798
799 def SetMinHeight(*args, **kwargs):
800 """SetMinHeight(self, int height)"""
801 return _windows_.StatusBar_SetMinHeight(*args, **kwargs)
802
803 def GetBorderX(*args, **kwargs):
804 """GetBorderX(self) -> int"""
805 return _windows_.StatusBar_GetBorderX(*args, **kwargs)
806
807 def GetBorderY(*args, **kwargs):
808 """GetBorderY(self) -> int"""
809 return _windows_.StatusBar_GetBorderY(*args, **kwargs)
810
811 def GetClassDefaultAttributes(*args, **kwargs):
812 """
813 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
814
815 Get the default attributes for this class. This is useful if you want
816 to use the same font or colour in your own control as in a standard
817 control -- which is a much better idea than hard coding specific
818 colours or fonts which might look completely out of place on the
819 user's system, especially if it uses themes.
820
821 The variant parameter is only relevant under Mac currently and is
822 ignore under other platforms. Under Mac, it will change the size of
823 the returned font. See `wx.Window.SetWindowVariant` for more about
824 this.
825 """
826 return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs)
827
828 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
829
830class StatusBarPtr(StatusBar):
831 def __init__(self, this):
832 self.this = this
833 if not hasattr(self,"thisown"): self.thisown = 0
834 self.__class__ = StatusBar
835_windows_.StatusBar_swigregister(StatusBarPtr)
836
837def PreStatusBar(*args, **kwargs):
838 """PreStatusBar() -> StatusBar"""
839 val = _windows_.new_PreStatusBar(*args, **kwargs)
840 val.thisown = 1
841 return val
842
843def StatusBar_GetClassDefaultAttributes(*args, **kwargs):
844 """
845 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
846
847 Get the default attributes for this class. This is useful if you want
848 to use the same font or colour in your own control as in a standard
849 control -- which is a much better idea than hard coding specific
850 colours or fonts which might look completely out of place on the
851 user's system, especially if it uses themes.
852
853 The variant parameter is only relevant under Mac currently and is
854 ignore under other platforms. Under Mac, it will change the size of
855 the returned font. See `wx.Window.SetWindowVariant` for more about
856 this.
857 """
858 return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs)
859
860#---------------------------------------------------------------------------
861
862SP_NOBORDER = _windows_.SP_NOBORDER
863SP_NOSASH = _windows_.SP_NOSASH
864SP_PERMIT_UNSPLIT = _windows_.SP_PERMIT_UNSPLIT
865SP_LIVE_UPDATE = _windows_.SP_LIVE_UPDATE
866SP_3DSASH = _windows_.SP_3DSASH
867SP_3DBORDER = _windows_.SP_3DBORDER
868SP_NO_XP_THEME = _windows_.SP_NO_XP_THEME
869SP_BORDER = _windows_.SP_BORDER
870SP_3D = _windows_.SP_3D
871SPLIT_HORIZONTAL = _windows_.SPLIT_HORIZONTAL
872SPLIT_VERTICAL = _windows_.SPLIT_VERTICAL
873SPLIT_DRAG_NONE = _windows_.SPLIT_DRAG_NONE
874SPLIT_DRAG_DRAGGING = _windows_.SPLIT_DRAG_DRAGGING
875SPLIT_DRAG_LEFT_DOWN = _windows_.SPLIT_DRAG_LEFT_DOWN
876class SplitterWindow(_core.Window):
877 """
878 wx.SplitterWindow manages up to two subwindows or panes, with an
879 optional vertical or horizontal split which can be used with the mouse
880 or programmatically.
881 """
882 def __repr__(self):
883 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
884 def __init__(self, *args, **kwargs):
885 """
886 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
887 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
888
889 Constructor. Creates and shows a SplitterWindow.
890 """
891 if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point']
892 newobj = _windows_.new_SplitterWindow(*args, **kwargs)
893 self.this = newobj.this
894 self.thisown = 1
895 del newobj.thisown
896 self._setOORInfo(self)
897
898 def Create(*args, **kwargs):
899 """
900 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
901 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
902
903 Create the GUI part of the SplitterWindow for the 2-phase create.
904 """
905 return _windows_.SplitterWindow_Create(*args, **kwargs)
906
907 def GetWindow1(*args, **kwargs):
908 """
909 GetWindow1(self) -> Window
910
911 Gets the only or left/top pane.
912 """
913 return _windows_.SplitterWindow_GetWindow1(*args, **kwargs)
914
915 def GetWindow2(*args, **kwargs):
916 """
917 GetWindow2(self) -> Window
918
919 Gets the right/bottom pane.
920 """
921 return _windows_.SplitterWindow_GetWindow2(*args, **kwargs)
922
923 def SetSplitMode(*args, **kwargs):
924 """
925 SetSplitMode(self, int mode)
926
927 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
928 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
929 update the display.
930 """
931 return _windows_.SplitterWindow_SetSplitMode(*args, **kwargs)
932
933 def GetSplitMode(*args, **kwargs):
934 """
935 GetSplitMode(self) -> int
936
937 Gets the split mode
938 """
939 return _windows_.SplitterWindow_GetSplitMode(*args, **kwargs)
940
941 def Initialize(*args, **kwargs):
942 """
943 Initialize(self, Window window)
944
945 Initializes the splitter window to have one pane. This should be
946 called if you wish to initially view only a single pane in the
947 splitter window.
948 """
949 return _windows_.SplitterWindow_Initialize(*args, **kwargs)
950
951 def SplitVertically(*args, **kwargs):
952 """
953 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
954
955 Initializes the left and right panes of the splitter window.
956 """
957 return _windows_.SplitterWindow_SplitVertically(*args, **kwargs)
958
959 def SplitHorizontally(*args, **kwargs):
960 """
961 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
962
963 Initializes the top and bottom panes of the splitter window.
964 """
965 return _windows_.SplitterWindow_SplitHorizontally(*args, **kwargs)
966
967 def Unsplit(*args, **kwargs):
968 """
969 Unsplit(self, Window toRemove=None) -> bool
970
971 Unsplits the window. Pass the pane to remove, or None to remove the
972 right or bottom pane. Returns True if successful, False otherwise (the
973 window was not split).
974
975 This function will not actually delete the pane being
976 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
977 for the desired behaviour. By default, the pane being
978 removed is only hidden.
979 """
980 return _windows_.SplitterWindow_Unsplit(*args, **kwargs)
981
982 def ReplaceWindow(*args, **kwargs):
983 """
984 ReplaceWindow(self, Window winOld, Window winNew) -> bool
985
986 This function replaces one of the windows managed by the
987 SplitterWindow with another one. It is in general better to use it
988 instead of calling Unsplit() and then resplitting the window back
989 because it will provoke much less flicker. It is valid to call this
990 function whether the splitter has two windows or only one.
991
992 Both parameters should be non-None and winOld must specify one of the
993 windows managed by the splitter. If the parameters are incorrect or
994 the window couldn't be replaced, False is returned. Otherwise the
995 function will return True, but please notice that it will not Destroy
996 the replaced window and you may wish to do it yourself.
997 """
998 return _windows_.SplitterWindow_ReplaceWindow(*args, **kwargs)
999
1000 def UpdateSize(*args, **kwargs):
1001 """
1002 UpdateSize(self)
1003
1004 Causes any pending sizing of the sash and child panes to take place
1005 immediately.
1006
1007 Such resizing normally takes place in idle time, in order to wait for
1008 layout to be completed. However, this can cause unacceptable flicker
1009 as the panes are resized after the window has been shown. To work
1010 around this, you can perform window layout (for example by sending a
1011 size event to the parent window), and then call this function, before
1012 showing the top-level window.
1013 """
1014 return _windows_.SplitterWindow_UpdateSize(*args, **kwargs)
1015
1016 def IsSplit(*args, **kwargs):
1017 """
1018 IsSplit(self) -> bool
1019
1020 Is the window split?
1021 """
1022 return _windows_.SplitterWindow_IsSplit(*args, **kwargs)
1023
1024 def SetSashSize(*args, **kwargs):
1025 """
1026 SetSashSize(self, int width)
1027
1028 Sets the sash size
1029 """
1030 return _windows_.SplitterWindow_SetSashSize(*args, **kwargs)
1031
1032 def SetBorderSize(*args, **kwargs):
1033 """
1034 SetBorderSize(self, int width)
1035
1036 Sets the border size
1037 """
1038 return _windows_.SplitterWindow_SetBorderSize(*args, **kwargs)
1039
1040 def GetSashSize(*args, **kwargs):
1041 """
1042 GetSashSize(self) -> int
1043
1044 Gets the sash size
1045 """
1046 return _windows_.SplitterWindow_GetSashSize(*args, **kwargs)
1047
1048 def GetBorderSize(*args, **kwargs):
1049 """
1050 GetBorderSize(self) -> int
1051
1052 Gets the border size
1053 """
1054 return _windows_.SplitterWindow_GetBorderSize(*args, **kwargs)
1055
1056 def SetSashPosition(*args, **kwargs):
1057 """
1058 SetSashPosition(self, int position, bool redraw=True)
1059
1060 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1061 are resized and the sash and border are redrawn.
1062 """
1063 return _windows_.SplitterWindow_SetSashPosition(*args, **kwargs)
1064
1065 def GetSashPosition(*args, **kwargs):
1066 """
1067 GetSashPosition(self) -> int
1068
1069 Returns the surrent sash position.
1070 """
1071 return _windows_.SplitterWindow_GetSashPosition(*args, **kwargs)
1072
1073 def SetMinimumPaneSize(*args, **kwargs):
1074 """
1075 SetMinimumPaneSize(self, int min)
1076
1077 Sets the minimum pane size in pixels.
1078
1079 The default minimum pane size is zero, which means that either pane
1080 can be reduced to zero by dragging the sash, thus removing one of the
1081 panes. To prevent this behaviour (and veto out-of-range sash
1082 dragging), set a minimum size, for example 20 pixels. If the
1083 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1084 the window may be unsplit even if minimum size is non-zero.
1085 """
1086 return _windows_.SplitterWindow_SetMinimumPaneSize(*args, **kwargs)
1087
1088 def GetMinimumPaneSize(*args, **kwargs):
1089 """
1090 GetMinimumPaneSize(self) -> int
1091
1092 Gets the minimum pane size in pixels.
1093 """
1094 return _windows_.SplitterWindow_GetMinimumPaneSize(*args, **kwargs)
1095
1096 def SashHitTest(*args, **kwargs):
1097 """
1098 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1099
1100 Tests for x, y over the sash
1101 """
1102 return _windows_.SplitterWindow_SashHitTest(*args, **kwargs)
1103
1104 def SizeWindows(*args, **kwargs):
1105 """
1106 SizeWindows(self)
1107
1108 Resizes subwindows
1109 """
1110 return _windows_.SplitterWindow_SizeWindows(*args, **kwargs)
1111
1112 def SetNeedUpdating(*args, **kwargs):
1113 """SetNeedUpdating(self, bool needUpdating)"""
1114 return _windows_.SplitterWindow_SetNeedUpdating(*args, **kwargs)
1115
1116 def GetNeedUpdating(*args, **kwargs):
1117 """GetNeedUpdating(self) -> bool"""
1118 return _windows_.SplitterWindow_GetNeedUpdating(*args, **kwargs)
1119
1120 def GetClassDefaultAttributes(*args, **kwargs):
1121 """
1122 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1123
1124 Get the default attributes for this class. This is useful if you want
1125 to use the same font or colour in your own control as in a standard
1126 control -- which is a much better idea than hard coding specific
1127 colours or fonts which might look completely out of place on the
1128 user's system, especially if it uses themes.
1129
1130 The variant parameter is only relevant under Mac currently and is
1131 ignore under other platforms. Under Mac, it will change the size of
1132 the returned font. See `wx.Window.SetWindowVariant` for more about
1133 this.
1134 """
1135 return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs)
1136
1137 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
1138
1139class SplitterWindowPtr(SplitterWindow):
1140 def __init__(self, this):
1141 self.this = this
1142 if not hasattr(self,"thisown"): self.thisown = 0
1143 self.__class__ = SplitterWindow
1144_windows_.SplitterWindow_swigregister(SplitterWindowPtr)
1145SplitterNameStr = cvar.SplitterNameStr
1146
1147def PreSplitterWindow(*args, **kwargs):
1148 """
1149 PreSplitterWindow() -> SplitterWindow
1150
1151 Precreate a SplitterWindow for 2-phase creation.
1152 """
1153 val = _windows_.new_PreSplitterWindow(*args, **kwargs)
1154 val.thisown = 1
1155 return val
1156
1157def SplitterWindow_GetClassDefaultAttributes(*args, **kwargs):
1158 """
1159 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1160
1161 Get the default attributes for this class. This is useful if you want
1162 to use the same font or colour in your own control as in a standard
1163 control -- which is a much better idea than hard coding specific
1164 colours or fonts which might look completely out of place on the
1165 user's system, especially if it uses themes.
1166
1167 The variant parameter is only relevant under Mac currently and is
1168 ignore under other platforms. Under Mac, it will change the size of
1169 the returned font. See `wx.Window.SetWindowVariant` for more about
1170 this.
1171 """
1172 return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs)
1173
1174class SplitterEvent(_core.NotifyEvent):
1175 """This class represents the events generated by a splitter control."""
1176 def __repr__(self):
1177 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1178 def __init__(self, *args, **kwargs):
1179 """
1180 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1181
1182 This class represents the events generated by a splitter control.
1183 """
1184 newobj = _windows_.new_SplitterEvent(*args, **kwargs)
1185 self.this = newobj.this
1186 self.thisown = 1
1187 del newobj.thisown
1188 def SetSashPosition(*args, **kwargs):
1189 """
1190 SetSashPosition(self, int pos)
1191
1192 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1193 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1194 events, sets the the new sash position. In the case of _CHANGING
1195 events, sets the new tracking bar position so visual feedback during
1196 dragging will represent that change that will actually take place. Set
1197 to -1 from the event handler code to prevent repositioning.
1198 """
1199 return _windows_.SplitterEvent_SetSashPosition(*args, **kwargs)
1200
1201 def GetSashPosition(*args, **kwargs):
1202 """
1203 GetSashPosition(self) -> int
1204
1205 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1206 and EVT_SPLITTER_SASH_POS_CHANGED events.
1207 """
1208 return _windows_.SplitterEvent_GetSashPosition(*args, **kwargs)
1209
1210 def GetWindowBeingRemoved(*args, **kwargs):
1211 """
1212 GetWindowBeingRemoved(self) -> Window
1213
1214 Returns a pointer to the window being removed when a splitter window
1215 is unsplit.
1216 """
1217 return _windows_.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs)
1218
1219 def GetX(*args, **kwargs):
1220 """
1221 GetX(self) -> int
1222
1223 Returns the x coordinate of the double-click point in a
1224 EVT_SPLITTER_DCLICK event.
1225 """
1226 return _windows_.SplitterEvent_GetX(*args, **kwargs)
1227
1228 def GetY(*args, **kwargs):
1229 """
1230 GetY(self) -> int
1231
1232 Returns the y coordinate of the double-click point in a
1233 EVT_SPLITTER_DCLICK event.
1234 """
1235 return _windows_.SplitterEvent_GetY(*args, **kwargs)
1236
1237
1238class SplitterEventPtr(SplitterEvent):
1239 def __init__(self, this):
1240 self.this = this
1241 if not hasattr(self,"thisown"): self.thisown = 0
1242 self.__class__ = SplitterEvent
1243_windows_.SplitterEvent_swigregister(SplitterEventPtr)
1244
1245wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1246wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1247wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows_.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1248wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows_.wxEVT_COMMAND_SPLITTER_UNSPLIT
1249EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 )
1250EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 )
1251EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 )
1252EVT_SPLITTER_UNSPLIT = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT, 1 )
1253EVT_SPLITTER_DCLICK = EVT_SPLITTER_DOUBLECLICKED
1254
1255#---------------------------------------------------------------------------
1256
1257SASH_DRAG_NONE = _windows_.SASH_DRAG_NONE
1258SASH_DRAG_DRAGGING = _windows_.SASH_DRAG_DRAGGING
1259SASH_DRAG_LEFT_DOWN = _windows_.SASH_DRAG_LEFT_DOWN
1260SW_NOBORDER = _windows_.SW_NOBORDER
1261SW_BORDER = _windows_.SW_BORDER
1262SW_3DSASH = _windows_.SW_3DSASH
1263SW_3DBORDER = _windows_.SW_3DBORDER
1264SW_3D = _windows_.SW_3D
1265SASH_TOP = _windows_.SASH_TOP
1266SASH_RIGHT = _windows_.SASH_RIGHT
1267SASH_BOTTOM = _windows_.SASH_BOTTOM
1268SASH_LEFT = _windows_.SASH_LEFT
1269SASH_NONE = _windows_.SASH_NONE
1270class SashWindow(_core.Window):
1271 def __repr__(self):
1272 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1273 def __init__(self, *args, **kwargs):
1274 """
1275 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1276 long style=wxCLIP_CHILDREN|wxSW_3D,
1277 String name=SashNameStr) -> SashWindow
1278 """
1279 newobj = _windows_.new_SashWindow(*args, **kwargs)
1280 self.this = newobj.this
1281 self.thisown = 1
1282 del newobj.thisown
1283 self._setOORInfo(self)
1284
1285 def Create(*args, **kwargs):
1286 """
1287 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1288 long style=wxCLIP_CHILDREN|wxSW_3D,
1289 String name=SashNameStr) -> bool
1290 """
1291 return _windows_.SashWindow_Create(*args, **kwargs)
1292
1293 def SetSashVisible(*args, **kwargs):
1294 """SetSashVisible(self, int edge, bool sash)"""
1295 return _windows_.SashWindow_SetSashVisible(*args, **kwargs)
1296
1297 def GetSashVisible(*args, **kwargs):
1298 """GetSashVisible(self, int edge) -> bool"""
1299 return _windows_.SashWindow_GetSashVisible(*args, **kwargs)
1300
1301 def SetSashBorder(*args, **kwargs):
1302 """SetSashBorder(self, int edge, bool border)"""
1303 return _windows_.SashWindow_SetSashBorder(*args, **kwargs)
1304
1305 def HasBorder(*args, **kwargs):
1306 """HasBorder(self, int edge) -> bool"""
1307 return _windows_.SashWindow_HasBorder(*args, **kwargs)
1308
1309 def GetEdgeMargin(*args, **kwargs):
1310 """GetEdgeMargin(self, int edge) -> int"""
1311 return _windows_.SashWindow_GetEdgeMargin(*args, **kwargs)
1312
1313 def SetDefaultBorderSize(*args, **kwargs):
1314 """SetDefaultBorderSize(self, int width)"""
1315 return _windows_.SashWindow_SetDefaultBorderSize(*args, **kwargs)
1316
1317 def GetDefaultBorderSize(*args, **kwargs):
1318 """GetDefaultBorderSize(self) -> int"""
1319 return _windows_.SashWindow_GetDefaultBorderSize(*args, **kwargs)
1320
1321 def SetExtraBorderSize(*args, **kwargs):
1322 """SetExtraBorderSize(self, int width)"""
1323 return _windows_.SashWindow_SetExtraBorderSize(*args, **kwargs)
1324
1325 def GetExtraBorderSize(*args, **kwargs):
1326 """GetExtraBorderSize(self) -> int"""
1327 return _windows_.SashWindow_GetExtraBorderSize(*args, **kwargs)
1328
1329 def SetMinimumSizeX(*args, **kwargs):
1330 """SetMinimumSizeX(self, int min)"""
1331 return _windows_.SashWindow_SetMinimumSizeX(*args, **kwargs)
1332
1333 def SetMinimumSizeY(*args, **kwargs):
1334 """SetMinimumSizeY(self, int min)"""
1335 return _windows_.SashWindow_SetMinimumSizeY(*args, **kwargs)
1336
1337 def GetMinimumSizeX(*args, **kwargs):
1338 """GetMinimumSizeX(self) -> int"""
1339 return _windows_.SashWindow_GetMinimumSizeX(*args, **kwargs)
1340
1341 def GetMinimumSizeY(*args, **kwargs):
1342 """GetMinimumSizeY(self) -> int"""
1343 return _windows_.SashWindow_GetMinimumSizeY(*args, **kwargs)
1344
1345 def SetMaximumSizeX(*args, **kwargs):
1346 """SetMaximumSizeX(self, int max)"""
1347 return _windows_.SashWindow_SetMaximumSizeX(*args, **kwargs)
1348
1349 def SetMaximumSizeY(*args, **kwargs):
1350 """SetMaximumSizeY(self, int max)"""
1351 return _windows_.SashWindow_SetMaximumSizeY(*args, **kwargs)
1352
1353 def GetMaximumSizeX(*args, **kwargs):
1354 """GetMaximumSizeX(self) -> int"""
1355 return _windows_.SashWindow_GetMaximumSizeX(*args, **kwargs)
1356
1357 def GetMaximumSizeY(*args, **kwargs):
1358 """GetMaximumSizeY(self) -> int"""
1359 return _windows_.SashWindow_GetMaximumSizeY(*args, **kwargs)
1360
1361 def SashHitTest(*args, **kwargs):
1362 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1363 return _windows_.SashWindow_SashHitTest(*args, **kwargs)
1364
1365 def SizeWindows(*args, **kwargs):
1366 """SizeWindows(self)"""
1367 return _windows_.SashWindow_SizeWindows(*args, **kwargs)
1368
1369
1370class SashWindowPtr(SashWindow):
1371 def __init__(self, this):
1372 self.this = this
1373 if not hasattr(self,"thisown"): self.thisown = 0
1374 self.__class__ = SashWindow
1375_windows_.SashWindow_swigregister(SashWindowPtr)
1376SashNameStr = cvar.SashNameStr
1377SashLayoutNameStr = cvar.SashLayoutNameStr
1378
1379def PreSashWindow(*args, **kwargs):
1380 """PreSashWindow() -> SashWindow"""
1381 val = _windows_.new_PreSashWindow(*args, **kwargs)
1382 val.thisown = 1
1383 return val
1384
1385SASH_STATUS_OK = _windows_.SASH_STATUS_OK
1386SASH_STATUS_OUT_OF_RANGE = _windows_.SASH_STATUS_OUT_OF_RANGE
1387class SashEvent(_core.CommandEvent):
1388 def __repr__(self):
1389 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1390 def __init__(self, *args, **kwargs):
1391 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1392 newobj = _windows_.new_SashEvent(*args, **kwargs)
1393 self.this = newobj.this
1394 self.thisown = 1
1395 del newobj.thisown
1396 def SetEdge(*args, **kwargs):
1397 """SetEdge(self, int edge)"""
1398 return _windows_.SashEvent_SetEdge(*args, **kwargs)
1399
1400 def GetEdge(*args, **kwargs):
1401 """GetEdge(self) -> int"""
1402 return _windows_.SashEvent_GetEdge(*args, **kwargs)
1403
1404 def SetDragRect(*args, **kwargs):
1405 """SetDragRect(self, Rect rect)"""
1406 return _windows_.SashEvent_SetDragRect(*args, **kwargs)
1407
1408 def GetDragRect(*args, **kwargs):
1409 """GetDragRect(self) -> Rect"""
1410 return _windows_.SashEvent_GetDragRect(*args, **kwargs)
1411
1412 def SetDragStatus(*args, **kwargs):
1413 """SetDragStatus(self, int status)"""
1414 return _windows_.SashEvent_SetDragStatus(*args, **kwargs)
1415
1416 def GetDragStatus(*args, **kwargs):
1417 """GetDragStatus(self) -> int"""
1418 return _windows_.SashEvent_GetDragStatus(*args, **kwargs)
1419
1420
1421class SashEventPtr(SashEvent):
1422 def __init__(self, this):
1423 self.this = this
1424 if not hasattr(self,"thisown"): self.thisown = 0
1425 self.__class__ = SashEvent
1426_windows_.SashEvent_swigregister(SashEventPtr)
1427
1428wxEVT_SASH_DRAGGED = _windows_.wxEVT_SASH_DRAGGED
1429EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 )
1430EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 )
1431
1432#---------------------------------------------------------------------------
1433
1434LAYOUT_HORIZONTAL = _windows_.LAYOUT_HORIZONTAL
1435LAYOUT_VERTICAL = _windows_.LAYOUT_VERTICAL
1436LAYOUT_NONE = _windows_.LAYOUT_NONE
1437LAYOUT_TOP = _windows_.LAYOUT_TOP
1438LAYOUT_LEFT = _windows_.LAYOUT_LEFT
1439LAYOUT_RIGHT = _windows_.LAYOUT_RIGHT
1440LAYOUT_BOTTOM = _windows_.LAYOUT_BOTTOM
1441LAYOUT_LENGTH_Y = _windows_.LAYOUT_LENGTH_Y
1442LAYOUT_LENGTH_X = _windows_.LAYOUT_LENGTH_X
1443LAYOUT_MRU_LENGTH = _windows_.LAYOUT_MRU_LENGTH
1444LAYOUT_QUERY = _windows_.LAYOUT_QUERY
1445wxEVT_QUERY_LAYOUT_INFO = _windows_.wxEVT_QUERY_LAYOUT_INFO
1446wxEVT_CALCULATE_LAYOUT = _windows_.wxEVT_CALCULATE_LAYOUT
1447class QueryLayoutInfoEvent(_core.Event):
1448 def __repr__(self):
1449 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1450 def __init__(self, *args, **kwargs):
1451 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1452 newobj = _windows_.new_QueryLayoutInfoEvent(*args, **kwargs)
1453 self.this = newobj.this
1454 self.thisown = 1
1455 del newobj.thisown
1456 def SetRequestedLength(*args, **kwargs):
1457 """SetRequestedLength(self, int length)"""
1458 return _windows_.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs)
1459
1460 def GetRequestedLength(*args, **kwargs):
1461 """GetRequestedLength(self) -> int"""
1462 return _windows_.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs)
1463
1464 def SetFlags(*args, **kwargs):
1465 """SetFlags(self, int flags)"""
1466 return _windows_.QueryLayoutInfoEvent_SetFlags(*args, **kwargs)
1467
1468 def GetFlags(*args, **kwargs):
1469 """GetFlags(self) -> int"""
1470 return _windows_.QueryLayoutInfoEvent_GetFlags(*args, **kwargs)
1471
1472 def SetSize(*args, **kwargs):
1473 """SetSize(self, Size size)"""
1474 return _windows_.QueryLayoutInfoEvent_SetSize(*args, **kwargs)
1475
1476 def GetSize(*args, **kwargs):
1477 """GetSize(self) -> Size"""
1478 return _windows_.QueryLayoutInfoEvent_GetSize(*args, **kwargs)
1479
1480 def SetOrientation(*args, **kwargs):
1481 """SetOrientation(self, int orient)"""
1482 return _windows_.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs)
1483
1484 def GetOrientation(*args, **kwargs):
1485 """GetOrientation(self) -> int"""
1486 return _windows_.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs)
1487
1488 def SetAlignment(*args, **kwargs):
1489 """SetAlignment(self, int align)"""
1490 return _windows_.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs)
1491
1492 def GetAlignment(*args, **kwargs):
1493 """GetAlignment(self) -> int"""
1494 return _windows_.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs)
1495
1496
1497class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent):
1498 def __init__(self, this):
1499 self.this = this
1500 if not hasattr(self,"thisown"): self.thisown = 0
1501 self.__class__ = QueryLayoutInfoEvent
1502_windows_.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr)
1503
1504class CalculateLayoutEvent(_core.Event):
1505 def __repr__(self):
1506 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1507 def __init__(self, *args, **kwargs):
1508 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1509 newobj = _windows_.new_CalculateLayoutEvent(*args, **kwargs)
1510 self.this = newobj.this
1511 self.thisown = 1
1512 del newobj.thisown
1513 def SetFlags(*args, **kwargs):
1514 """SetFlags(self, int flags)"""
1515 return _windows_.CalculateLayoutEvent_SetFlags(*args, **kwargs)
1516
1517 def GetFlags(*args, **kwargs):
1518 """GetFlags(self) -> int"""
1519 return _windows_.CalculateLayoutEvent_GetFlags(*args, **kwargs)
1520
1521 def SetRect(*args, **kwargs):
1522 """SetRect(self, Rect rect)"""
1523 return _windows_.CalculateLayoutEvent_SetRect(*args, **kwargs)
1524
1525 def GetRect(*args, **kwargs):
1526 """GetRect(self) -> Rect"""
1527 return _windows_.CalculateLayoutEvent_GetRect(*args, **kwargs)
1528
1529
1530class CalculateLayoutEventPtr(CalculateLayoutEvent):
1531 def __init__(self, this):
1532 self.this = this
1533 if not hasattr(self,"thisown"): self.thisown = 0
1534 self.__class__ = CalculateLayoutEvent
1535_windows_.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr)
1536
1537EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO )
1538EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT )
1539
1540class SashLayoutWindow(SashWindow):
1541 def __repr__(self):
1542 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1543 def __init__(self, *args, **kwargs):
1544 """
1545 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1546 long style=wxCLIP_CHILDREN|wxSW_3D,
1547 String name=SashLayoutNameStr) -> SashLayoutWindow
1548 """
1549 newobj = _windows_.new_SashLayoutWindow(*args, **kwargs)
1550 self.this = newobj.this
1551 self.thisown = 1
1552 del newobj.thisown
1553 self._setOORInfo(self)
1554
1555 def Create(*args, **kwargs):
1556 """
1557 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1558 long style=wxCLIP_CHILDREN|wxSW_3D,
1559 String name=SashLayoutNameStr) -> bool
1560 """
1561 return _windows_.SashLayoutWindow_Create(*args, **kwargs)
1562
1563 def GetAlignment(*args, **kwargs):
1564 """GetAlignment(self) -> int"""
1565 return _windows_.SashLayoutWindow_GetAlignment(*args, **kwargs)
1566
1567 def GetOrientation(*args, **kwargs):
1568 """GetOrientation(self) -> int"""
1569 return _windows_.SashLayoutWindow_GetOrientation(*args, **kwargs)
1570
1571 def SetAlignment(*args, **kwargs):
1572 """SetAlignment(self, int alignment)"""
1573 return _windows_.SashLayoutWindow_SetAlignment(*args, **kwargs)
1574
1575 def SetDefaultSize(*args, **kwargs):
1576 """SetDefaultSize(self, Size size)"""
1577 return _windows_.SashLayoutWindow_SetDefaultSize(*args, **kwargs)
1578
1579 def SetOrientation(*args, **kwargs):
1580 """SetOrientation(self, int orientation)"""
1581 return _windows_.SashLayoutWindow_SetOrientation(*args, **kwargs)
1582
1583
1584class SashLayoutWindowPtr(SashLayoutWindow):
1585 def __init__(self, this):
1586 self.this = this
1587 if not hasattr(self,"thisown"): self.thisown = 0
1588 self.__class__ = SashLayoutWindow
1589_windows_.SashLayoutWindow_swigregister(SashLayoutWindowPtr)
1590
1591def PreSashLayoutWindow(*args, **kwargs):
1592 """PreSashLayoutWindow() -> SashLayoutWindow"""
1593 val = _windows_.new_PreSashLayoutWindow(*args, **kwargs)
1594 val.thisown = 1
1595 return val
1596
1597class LayoutAlgorithm(_core.Object):
1598 def __repr__(self):
1599 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1600 def __init__(self, *args, **kwargs):
1601 """__init__(self) -> LayoutAlgorithm"""
1602 newobj = _windows_.new_LayoutAlgorithm(*args, **kwargs)
1603 self.this = newobj.this
1604 self.thisown = 1
1605 del newobj.thisown
1606 def __del__(self, destroy=_windows_.delete_LayoutAlgorithm):
1607 """__del__(self)"""
1608 try:
1609 if self.thisown: destroy(self)
1610 except: pass
1611
1612 def LayoutMDIFrame(*args, **kwargs):
1613 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1614 return _windows_.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs)
1615
1616 def LayoutFrame(*args, **kwargs):
1617 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1618 return _windows_.LayoutAlgorithm_LayoutFrame(*args, **kwargs)
1619
1620 def LayoutWindow(*args, **kwargs):
1621 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1622 return _windows_.LayoutAlgorithm_LayoutWindow(*args, **kwargs)
1623
1624
1625class LayoutAlgorithmPtr(LayoutAlgorithm):
1626 def __init__(self, this):
1627 self.this = this
1628 if not hasattr(self,"thisown"): self.thisown = 0
1629 self.__class__ = LayoutAlgorithm
1630_windows_.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr)
1631
1632class PopupWindow(_core.Window):
1633 def __repr__(self):
1634 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1635 def __init__(self, *args, **kwargs):
1636 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1637 newobj = _windows_.new_PopupWindow(*args, **kwargs)
1638 self.this = newobj.this
1639 self.thisown = 1
1640 del newobj.thisown
1641
1642class PopupWindowPtr(PopupWindow):
1643 def __init__(self, this):
1644 self.this = this
1645 if not hasattr(self,"thisown"): self.thisown = 0
1646 self.__class__ = PopupWindow
1647_windows_.PopupWindow_swigregister(PopupWindowPtr)
1648
1649def PrePopupWindow(*args, **kwargs):
1650 """PrePopupWindow() -> PopupWindow"""
1651 val = _windows_.new_PrePopupWindow(*args, **kwargs)
1652 val.thisown = 1
1653 return val
1654
1655class PopupTransientWindow(PopupWindow):
1656 def __repr__(self):
1657 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1658 def __init__(self, *args, **kwargs):
1659 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1660 newobj = _windows_.new_PopupTransientWindow(*args, **kwargs)
1661 self.this = newobj.this
1662 self.thisown = 1
1663 del newobj.thisown
1664
1665class PopupTransientWindowPtr(PopupTransientWindow):
1666 def __init__(self, this):
1667 self.this = this
1668 if not hasattr(self,"thisown"): self.thisown = 0
1669 self.__class__ = PopupTransientWindow
1670_windows_.PopupTransientWindow_swigregister(PopupTransientWindowPtr)
1671
1672def PrePopupTransientWindow(*args, **kwargs):
1673 """PrePopupTransientWindow() -> PopupTransientWindow"""
1674 val = _windows_.new_PrePopupTransientWindow(*args, **kwargs)
1675 val.thisown = 1
1676 return val
1677
1678#---------------------------------------------------------------------------
1679
1680class TipWindow(Frame):
1681 def __repr__(self):
1682 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1683 def __init__(self, *args, **kwargs):
1684 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1685 newobj = _windows_.new_TipWindow(*args, **kwargs)
1686 self.this = newobj.this
1687 self.thisown = 1
1688 del newobj.thisown
1689 self._setOORInfo(self)
1690
1691 def SetBoundingRect(*args, **kwargs):
1692 """SetBoundingRect(self, Rect rectBound)"""
1693 return _windows_.TipWindow_SetBoundingRect(*args, **kwargs)
1694
1695 def Close(*args, **kwargs):
1696 """Close(self)"""
1697 return _windows_.TipWindow_Close(*args, **kwargs)
1698
1699
1700class TipWindowPtr(TipWindow):
1701 def __init__(self, this):
1702 self.this = this
1703 if not hasattr(self,"thisown"): self.thisown = 0
1704 self.__class__ = TipWindow
1705_windows_.TipWindow_swigregister(TipWindowPtr)
1706
1707#---------------------------------------------------------------------------
1708
1709class VScrolledWindow(Panel):
1710 def __repr__(self):
1711 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1712 def __init__(self, *args, **kwargs):
1713 """
1714 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1715 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1716 """
1717 newobj = _windows_.new_VScrolledWindow(*args, **kwargs)
1718 self.this = newobj.this
1719 self.thisown = 1
1720 del newobj.thisown
1721 self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow)
1722
1723 def _setCallbackInfo(*args, **kwargs):
1724 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1725 return _windows_.VScrolledWindow__setCallbackInfo(*args, **kwargs)
1726
1727 def Create(*args, **kwargs):
1728 """
1729 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1730 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1731 """
1732 return _windows_.VScrolledWindow_Create(*args, **kwargs)
1733
1734 def SetLineCount(*args, **kwargs):
1735 """SetLineCount(self, size_t count)"""
1736 return _windows_.VScrolledWindow_SetLineCount(*args, **kwargs)
1737
1738 def ScrollToLine(*args, **kwargs):
1739 """ScrollToLine(self, size_t line) -> bool"""
1740 return _windows_.VScrolledWindow_ScrollToLine(*args, **kwargs)
1741
1742 def ScrollLines(*args, **kwargs):
1743 """
1744 ScrollLines(self, int lines) -> bool
1745
1746 If the platform and window class supports it, scrolls the window by
1747 the given number of lines down, if lines is positive, or up if lines
1748 is negative. Returns True if the window was scrolled, False if it was
1749 already on top/bottom and nothing was done.
1750 """
1751 return _windows_.VScrolledWindow_ScrollLines(*args, **kwargs)
1752
1753 def ScrollPages(*args, **kwargs):
1754 """
1755 ScrollPages(self, int pages) -> bool
1756
1757 If the platform and window class supports it, scrolls the window by
1758 the given number of pages down, if pages is positive, or up if pages
1759 is negative. Returns True if the window was scrolled, False if it was
1760 already on top/bottom and nothing was done.
1761 """
1762 return _windows_.VScrolledWindow_ScrollPages(*args, **kwargs)
1763
1764 def RefreshLine(*args, **kwargs):
1765 """RefreshLine(self, size_t line)"""
1766 return _windows_.VScrolledWindow_RefreshLine(*args, **kwargs)
1767
1768 def RefreshLines(*args, **kwargs):
1769 """RefreshLines(self, size_t from, size_t to)"""
1770 return _windows_.VScrolledWindow_RefreshLines(*args, **kwargs)
1771
1772 def HitTestXT(*args, **kwargs):
1773 """
1774 HitTestXT(self, int x, int y) -> int
1775
1776 Test where the given (in client coords) point lies
1777 """
1778 return _windows_.VScrolledWindow_HitTestXT(*args, **kwargs)
1779
1780 def HitTest(*args, **kwargs):
1781 """
1782 HitTest(self, Point pt) -> int
1783
1784 Test where the given (in client coords) point lies
1785 """
1786 return _windows_.VScrolledWindow_HitTest(*args, **kwargs)
1787
1788 def RefreshAll(*args, **kwargs):
1789 """RefreshAll(self)"""
1790 return _windows_.VScrolledWindow_RefreshAll(*args, **kwargs)
1791
1792 def GetLineCount(*args, **kwargs):
1793 """GetLineCount(self) -> size_t"""
1794 return _windows_.VScrolledWindow_GetLineCount(*args, **kwargs)
1795
1796 def GetFirstVisibleLine(*args, **kwargs):
1797 """GetFirstVisibleLine(self) -> size_t"""
1798 return _windows_.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs)
1799
1800 def GetLastVisibleLine(*args, **kwargs):
1801 """GetLastVisibleLine(self) -> size_t"""
1802 return _windows_.VScrolledWindow_GetLastVisibleLine(*args, **kwargs)
1803
1804 def IsVisible(*args, **kwargs):
1805 """IsVisible(self, size_t line) -> bool"""
1806 return _windows_.VScrolledWindow_IsVisible(*args, **kwargs)
1807
1808
1809class VScrolledWindowPtr(VScrolledWindow):
1810 def __init__(self, this):
1811 self.this = this
1812 if not hasattr(self,"thisown"): self.thisown = 0
1813 self.__class__ = VScrolledWindow
1814_windows_.VScrolledWindow_swigregister(VScrolledWindowPtr)
1815
1816def PreVScrolledWindow(*args, **kwargs):
1817 """PreVScrolledWindow() -> VScrolledWindow"""
1818 val = _windows_.new_PreVScrolledWindow(*args, **kwargs)
1819 val.thisown = 1
1820 return val
1821
1822class VListBox(VScrolledWindow):
1823 def __repr__(self):
1824 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1825 def __init__(self, *args, **kwargs):
1826 """
1827 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1828 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1829 """
1830 newobj = _windows_.new_VListBox(*args, **kwargs)
1831 self.this = newobj.this
1832 self.thisown = 1
1833 del newobj.thisown
1834 self._setOORInfo(self);self._setCallbackInfo(self, VListBox)
1835
1836 def _setCallbackInfo(*args, **kwargs):
1837 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1838 return _windows_.VListBox__setCallbackInfo(*args, **kwargs)
1839
1840 def Create(*args, **kwargs):
1841 """
1842 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1843 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1844 """
1845 return _windows_.VListBox_Create(*args, **kwargs)
1846
1847 def GetItemCount(*args, **kwargs):
1848 """GetItemCount(self) -> size_t"""
1849 return _windows_.VListBox_GetItemCount(*args, **kwargs)
1850
1851 def HasMultipleSelection(*args, **kwargs):
1852 """HasMultipleSelection(self) -> bool"""
1853 return _windows_.VListBox_HasMultipleSelection(*args, **kwargs)
1854
1855 def GetSelection(*args, **kwargs):
1856 """GetSelection(self) -> int"""
1857 return _windows_.VListBox_GetSelection(*args, **kwargs)
1858
1859 def IsCurrent(*args, **kwargs):
1860 """IsCurrent(self, size_t item) -> bool"""
1861 return _windows_.VListBox_IsCurrent(*args, **kwargs)
1862
1863 def IsSelected(*args, **kwargs):
1864 """IsSelected(self, size_t item) -> bool"""
1865 return _windows_.VListBox_IsSelected(*args, **kwargs)
1866
1867 def GetSelectedCount(*args, **kwargs):
1868 """GetSelectedCount(self) -> size_t"""
1869 return _windows_.VListBox_GetSelectedCount(*args, **kwargs)
1870
1871 def GetFirstSelected(*args, **kwargs):
1872 """GetFirstSelected(self, unsigned long cookie) -> int"""
1873 return _windows_.VListBox_GetFirstSelected(*args, **kwargs)
1874
1875 def GetNextSelected(*args, **kwargs):
1876 """GetNextSelected(self, unsigned long cookie) -> int"""
1877 return _windows_.VListBox_GetNextSelected(*args, **kwargs)
1878
1879 def GetMargins(*args, **kwargs):
1880 """GetMargins(self) -> Point"""
1881 return _windows_.VListBox_GetMargins(*args, **kwargs)
1882
1883 def GetSelectionBackground(*args, **kwargs):
1884 """GetSelectionBackground(self) -> Colour"""
1885 return _windows_.VListBox_GetSelectionBackground(*args, **kwargs)
1886
1887 def SetItemCount(*args, **kwargs):
1888 """SetItemCount(self, size_t count)"""
1889 return _windows_.VListBox_SetItemCount(*args, **kwargs)
1890
1891 def Clear(*args, **kwargs):
1892 """Clear(self)"""
1893 return _windows_.VListBox_Clear(*args, **kwargs)
1894
1895 def SetSelection(*args, **kwargs):
1896 """SetSelection(self, int selection)"""
1897 return _windows_.VListBox_SetSelection(*args, **kwargs)
1898
1899 def Select(*args, **kwargs):
1900 """Select(self, size_t item, bool select=True) -> bool"""
1901 return _windows_.VListBox_Select(*args, **kwargs)
1902
1903 def SelectRange(*args, **kwargs):
1904 """SelectRange(self, size_t from, size_t to) -> bool"""
1905 return _windows_.VListBox_SelectRange(*args, **kwargs)
1906
1907 def Toggle(*args, **kwargs):
1908 """Toggle(self, size_t item)"""
1909 return _windows_.VListBox_Toggle(*args, **kwargs)
1910
1911 def SelectAll(*args, **kwargs):
1912 """SelectAll(self) -> bool"""
1913 return _windows_.VListBox_SelectAll(*args, **kwargs)
1914
1915 def DeselectAll(*args, **kwargs):
1916 """DeselectAll(self) -> bool"""
1917 return _windows_.VListBox_DeselectAll(*args, **kwargs)
1918
1919 def SetMargins(*args, **kwargs):
1920 """SetMargins(self, Point pt)"""
1921 return _windows_.VListBox_SetMargins(*args, **kwargs)
1922
1923 def SetMarginsXY(*args, **kwargs):
1924 """SetMarginsXY(self, int x, int y)"""
1925 return _windows_.VListBox_SetMarginsXY(*args, **kwargs)
1926
1927 def SetSelectionBackground(*args, **kwargs):
1928 """SetSelectionBackground(self, Colour col)"""
1929 return _windows_.VListBox_SetSelectionBackground(*args, **kwargs)
1930
1931
1932class VListBoxPtr(VListBox):
1933 def __init__(self, this):
1934 self.this = this
1935 if not hasattr(self,"thisown"): self.thisown = 0
1936 self.__class__ = VListBox
1937_windows_.VListBox_swigregister(VListBoxPtr)
1938VListBoxNameStr = cvar.VListBoxNameStr
1939
1940def PreVListBox(*args, **kwargs):
1941 """PreVListBox() -> VListBox"""
1942 val = _windows_.new_PreVListBox(*args, **kwargs)
1943 val.thisown = 1
1944 return val
1945
1946class HtmlListBox(VListBox):
1947 def __repr__(self):
1948 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1949 def __init__(self, *args, **kwargs):
1950 """
1951 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1952 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1953 """
1954 newobj = _windows_.new_HtmlListBox(*args, **kwargs)
1955 self.this = newobj.this
1956 self.thisown = 1
1957 del newobj.thisown
1958 self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox)
1959
1960 def _setCallbackInfo(*args, **kwargs):
1961 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1962 return _windows_.HtmlListBox__setCallbackInfo(*args, **kwargs)
1963
1964 def Create(*args, **kwargs):
1965 """
1966 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1967 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1968 """
1969 return _windows_.HtmlListBox_Create(*args, **kwargs)
1970
1971 def RefreshAll(*args, **kwargs):
1972 """RefreshAll(self)"""
1973 return _windows_.HtmlListBox_RefreshAll(*args, **kwargs)
1974
1975 def SetItemCount(*args, **kwargs):
1976 """SetItemCount(self, size_t count)"""
1977 return _windows_.HtmlListBox_SetItemCount(*args, **kwargs)
1978
1979 def GetFileSystem(*args, **kwargs):
1980 """GetFileSystem(self) -> FileSystem"""
1981 return _windows_.HtmlListBox_GetFileSystem(*args, **kwargs)
1982
1983
1984class HtmlListBoxPtr(HtmlListBox):
1985 def __init__(self, this):
1986 self.this = this
1987 if not hasattr(self,"thisown"): self.thisown = 0
1988 self.__class__ = HtmlListBox
1989_windows_.HtmlListBox_swigregister(HtmlListBoxPtr)
1990
1991def PreHtmlListBox(*args, **kwargs):
1992 """PreHtmlListBox() -> HtmlListBox"""
1993 val = _windows_.new_PreHtmlListBox(*args, **kwargs)
1994 val.thisown = 1
1995 return val
1996
1997#---------------------------------------------------------------------------
1998
1999class TaskBarIcon(_core.EvtHandler):
2000 def __repr__(self):
2001 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2002 def __init__(self, *args, **kwargs):
2003 """__init__(self) -> TaskBarIcon"""
2004 newobj = _windows_.new_TaskBarIcon(*args, **kwargs)
2005 self.this = newobj.this
2006 self.thisown = 1
2007 del newobj.thisown
2008 def __del__(self, destroy=_windows_.delete_TaskBarIcon):
2009 """__del__(self)"""
2010 try:
2011 if self.thisown: destroy(self)
2012 except: pass
2013
2014 def Destroy(*args, **kwargs):
2015 """
2016 Destroy(self)
2017
2018 Deletes the C++ object this Python object is a proxy for.
2019 """
2020 return _windows_.TaskBarIcon_Destroy(*args, **kwargs)
2021
2022
2023class TaskBarIconPtr(TaskBarIcon):
2024 def __init__(self, this):
2025 self.this = this
2026 if not hasattr(self,"thisown"): self.thisown = 0
2027 self.__class__ = TaskBarIcon
2028_windows_.TaskBarIcon_swigregister(TaskBarIconPtr)
2029
2030class TaskBarIconEvent(_core.Event):
2031 def __repr__(self):
2032 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2033 def __init__(self, *args, **kwargs):
2034 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2035 newobj = _windows_.new_TaskBarIconEvent(*args, **kwargs)
2036 self.this = newobj.this
2037 self.thisown = 1
2038 del newobj.thisown
2039
2040class TaskBarIconEventPtr(TaskBarIconEvent):
2041 def __init__(self, this):
2042 self.this = this
2043 if not hasattr(self,"thisown"): self.thisown = 0
2044 self.__class__ = TaskBarIconEvent
2045_windows_.TaskBarIconEvent_swigregister(TaskBarIconEventPtr)
2046
2047wxEVT_TASKBAR_MOVE = _windows_.wxEVT_TASKBAR_MOVE
2048wxEVT_TASKBAR_LEFT_DOWN = _windows_.wxEVT_TASKBAR_LEFT_DOWN
2049wxEVT_TASKBAR_LEFT_UP = _windows_.wxEVT_TASKBAR_LEFT_UP
2050wxEVT_TASKBAR_RIGHT_DOWN = _windows_.wxEVT_TASKBAR_RIGHT_DOWN
2051wxEVT_TASKBAR_RIGHT_UP = _windows_.wxEVT_TASKBAR_RIGHT_UP
2052wxEVT_TASKBAR_LEFT_DCLICK = _windows_.wxEVT_TASKBAR_LEFT_DCLICK
2053wxEVT_TASKBAR_RIGHT_DCLICK = _windows_.wxEVT_TASKBAR_RIGHT_DCLICK
2054EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE )
2055EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN )
2056EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP )
2057EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN )
2058EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP )
2059EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK )
2060EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK )
2061
2062#---------------------------------------------------------------------------
2063
2064class ColourData(_core.Object):
2065 """
2066 This class holds a variety of information related to the colour
2067 chooser dialog, used to transfer settings and results to and from the
2068 `wx.ColourDialog`.
2069 """
2070 def __repr__(self):
2071 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2072 def __init__(self, *args, **kwargs):
2073 """
2074 __init__(self) -> ColourData
2075
2076 Constructor, sets default values.
2077 """
2078 newobj = _windows_.new_ColourData(*args, **kwargs)
2079 self.this = newobj.this
2080 self.thisown = 1
2081 del newobj.thisown
2082 def __del__(self, destroy=_windows_.delete_ColourData):
2083 """__del__(self)"""
2084 try:
2085 if self.thisown: destroy(self)
2086 except: pass
2087
2088 def GetChooseFull(*args, **kwargs):
2089 """
2090 GetChooseFull(self) -> bool
2091
2092 Under Windows, determines whether the Windows colour dialog will
2093 display the full dialog with custom colour selection controls. Has no
2094 meaning under other platforms. The default value is true.
2095 """
2096 return _windows_.ColourData_GetChooseFull(*args, **kwargs)
2097
2098 def GetColour(*args, **kwargs):
2099 """
2100 GetColour(self) -> Colour
2101
2102 Gets the colour (pre)selected by the dialog.
2103 """
2104 return _windows_.ColourData_GetColour(*args, **kwargs)
2105
2106 def GetCustomColour(*args, **kwargs):
2107 """
2108 GetCustomColour(self, int i) -> Colour
2109
2110 Gets the i'th custom colour associated with the colour dialog. i
2111 should be an integer between 0 and 15. The default custom colours are
2112 all white.
2113 """
2114 return _windows_.ColourData_GetCustomColour(*args, **kwargs)
2115
2116 def SetChooseFull(*args, **kwargs):
2117 """
2118 SetChooseFull(self, int flag)
2119
2120 Under Windows, tells the Windows colour dialog to display the full
2121 dialog with custom colour selection controls. Under other platforms,
2122 has no effect. The default value is true.
2123 """
2124 return _windows_.ColourData_SetChooseFull(*args, **kwargs)
2125
2126 def SetColour(*args, **kwargs):
2127 """
2128 SetColour(self, Colour colour)
2129
2130 Sets the default colour for the colour dialog. The default colour is
2131 black.
2132 """
2133 return _windows_.ColourData_SetColour(*args, **kwargs)
2134
2135 def SetCustomColour(*args, **kwargs):
2136 """
2137 SetCustomColour(self, int i, Colour colour)
2138
2139 Sets the i'th custom colour for the colour dialog. i should be an
2140 integer between 0 and 15. The default custom colours are all white.
2141 """
2142 return _windows_.ColourData_SetCustomColour(*args, **kwargs)
2143
2144
2145class ColourDataPtr(ColourData):
2146 def __init__(self, this):
2147 self.this = this
2148 if not hasattr(self,"thisown"): self.thisown = 0
2149 self.__class__ = ColourData
2150_windows_.ColourData_swigregister(ColourDataPtr)
2151FileSelectorPromptStr = cvar.FileSelectorPromptStr
2152DirSelectorPromptStr = cvar.DirSelectorPromptStr
2153DirDialogNameStr = cvar.DirDialogNameStr
2154FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
2155GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr
2156MessageBoxCaptionStr = cvar.MessageBoxCaptionStr
2157
2158class ColourDialog(Dialog):
2159 """This class represents the colour chooser dialog."""
2160 def __repr__(self):
2161 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2162 def __init__(self, *args, **kwargs):
2163 """
2164 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2165
2166 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2167 which will be copied to the colour dialog's internal ColourData
2168 instance.
2169 """
2170 newobj = _windows_.new_ColourDialog(*args, **kwargs)
2171 self.this = newobj.this
2172 self.thisown = 1
2173 del newobj.thisown
2174 self._setOORInfo(self)
2175
2176 def GetColourData(*args, **kwargs):
2177 """
2178 GetColourData(self) -> ColourData
2179
2180 Returns a reference to the `wx.ColourData` used by the dialog.
2181 """
2182 return _windows_.ColourDialog_GetColourData(*args, **kwargs)
2183
2184
2185class ColourDialogPtr(ColourDialog):
2186 def __init__(self, this):
2187 self.this = this
2188 if not hasattr(self,"thisown"): self.thisown = 0
2189 self.__class__ = ColourDialog
2190_windows_.ColourDialog_swigregister(ColourDialogPtr)
2191
2192class DirDialog(Dialog):
2193 """
2194 wx.DirDialog allows the user to select a directory by browising the
2195 file system.
2196 """
2197 def __repr__(self):
2198 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2199 def __init__(self, *args, **kwargs):
2200 """
2201 __init__(self, Window parent, String message=DirSelectorPromptStr,
2202 String defaultPath=EmptyString, long style=0,
2203 Point pos=DefaultPosition, Size size=DefaultSize,
2204 String name=DirDialogNameStr) -> DirDialog
2205
2206 Constructor. Use ShowModal method to show the dialog.
2207 """
2208 newobj = _windows_.new_DirDialog(*args, **kwargs)
2209 self.this = newobj.this
2210 self.thisown = 1
2211 del newobj.thisown
2212 self._setOORInfo(self)
2213
2214 def GetPath(*args, **kwargs):
2215 """
2216 GetPath(self) -> String
2217
2218 Returns the default or user-selected path.
2219 """
2220 return _windows_.DirDialog_GetPath(*args, **kwargs)
2221
2222 def GetMessage(*args, **kwargs):
2223 """
2224 GetMessage(self) -> String
2225
2226 Returns the message that will be displayed on the dialog.
2227 """
2228 return _windows_.DirDialog_GetMessage(*args, **kwargs)
2229
2230 def GetStyle(*args, **kwargs):
2231 """
2232 GetStyle(self) -> long
2233
2234 Returns the dialog style.
2235 """
2236 return _windows_.DirDialog_GetStyle(*args, **kwargs)
2237
2238 def SetMessage(*args, **kwargs):
2239 """
2240 SetMessage(self, String message)
2241
2242 Sets the message that will be displayed on the dialog.
2243 """
2244 return _windows_.DirDialog_SetMessage(*args, **kwargs)
2245
2246 def SetPath(*args, **kwargs):
2247 """
2248 SetPath(self, String path)
2249
2250 Sets the default path.
2251 """
2252 return _windows_.DirDialog_SetPath(*args, **kwargs)
2253
2254
2255class DirDialogPtr(DirDialog):
2256 def __init__(self, this):
2257 self.this = this
2258 if not hasattr(self,"thisown"): self.thisown = 0
2259 self.__class__ = DirDialog
2260_windows_.DirDialog_swigregister(DirDialogPtr)
2261
2262class FileDialog(Dialog):
2263 """
2264 wx.FileDialog allows the user to select one or more files from the
2265 filesystem.
2266 """
2267 def __repr__(self):
2268 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2269 def __init__(self, *args, **kwargs):
2270 """
2271 __init__(self, Window parent, String message=FileSelectorPromptStr,
2272 String defaultDir=EmptyString, String defaultFile=EmptyString,
2273 String wildcard=FileSelectorDefaultWildcardStr,
2274 long style=0, Point pos=DefaultPosition) -> FileDialog
2275
2276 Constructor. Use ShowModal method to show the dialog.
2277 """
2278 newobj = _windows_.new_FileDialog(*args, **kwargs)
2279 self.this = newobj.this
2280 self.thisown = 1
2281 del newobj.thisown
2282 self._setOORInfo(self)
2283
2284 def SetMessage(*args, **kwargs):
2285 """
2286 SetMessage(self, String message)
2287
2288 Sets the message that will be displayed on the dialog.
2289 """
2290 return _windows_.FileDialog_SetMessage(*args, **kwargs)
2291
2292 def SetPath(*args, **kwargs):
2293 """
2294 SetPath(self, String path)
2295
2296 Sets the path (the combined directory and filename that will be
2297 returned when the dialog is dismissed).
2298 """
2299 return _windows_.FileDialog_SetPath(*args, **kwargs)
2300
2301 def SetDirectory(*args, **kwargs):
2302 """
2303 SetDirectory(self, String dir)
2304
2305 Sets the default directory.
2306 """
2307 return _windows_.FileDialog_SetDirectory(*args, **kwargs)
2308
2309 def SetFilename(*args, **kwargs):
2310 """
2311 SetFilename(self, String name)
2312
2313 Sets the default filename.
2314 """
2315 return _windows_.FileDialog_SetFilename(*args, **kwargs)
2316
2317 def SetWildcard(*args, **kwargs):
2318 """
2319 SetWildcard(self, String wildCard)
2320
2321 Sets the wildcard, which can contain multiple file types, for
2322 example::
2323
2324 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2325
2326 """
2327 return _windows_.FileDialog_SetWildcard(*args, **kwargs)
2328
2329 def SetStyle(*args, **kwargs):
2330 """
2331 SetStyle(self, long style)
2332
2333 Sets the dialog style.
2334 """
2335 return _windows_.FileDialog_SetStyle(*args, **kwargs)
2336
2337 def SetFilterIndex(*args, **kwargs):
2338 """
2339 SetFilterIndex(self, int filterIndex)
2340
2341 Sets the default filter index, starting from zero.
2342 """
2343 return _windows_.FileDialog_SetFilterIndex(*args, **kwargs)
2344
2345 def GetMessage(*args, **kwargs):
2346 """
2347 GetMessage(self) -> String
2348
2349 Returns the message that will be displayed on the dialog.
2350 """
2351 return _windows_.FileDialog_GetMessage(*args, **kwargs)
2352
2353 def GetPath(*args, **kwargs):
2354 """
2355 GetPath(self) -> String
2356
2357 Returns the full path (directory and filename) of the selected file.
2358 """
2359 return _windows_.FileDialog_GetPath(*args, **kwargs)
2360
2361 def GetDirectory(*args, **kwargs):
2362 """
2363 GetDirectory(self) -> String
2364
2365 Returns the default directory.
2366 """
2367 return _windows_.FileDialog_GetDirectory(*args, **kwargs)
2368
2369 def GetFilename(*args, **kwargs):
2370 """
2371 GetFilename(self) -> String
2372
2373 Returns the default filename.
2374 """
2375 return _windows_.FileDialog_GetFilename(*args, **kwargs)
2376
2377 def GetWildcard(*args, **kwargs):
2378 """
2379 GetWildcard(self) -> String
2380
2381 Returns the file dialog wildcard.
2382 """
2383 return _windows_.FileDialog_GetWildcard(*args, **kwargs)
2384
2385 def GetStyle(*args, **kwargs):
2386 """
2387 GetStyle(self) -> long
2388
2389 Returns the dialog style.
2390 """
2391 return _windows_.FileDialog_GetStyle(*args, **kwargs)
2392
2393 def GetFilterIndex(*args, **kwargs):
2394 """
2395 GetFilterIndex(self) -> int
2396
2397 Returns the index into the list of filters supplied, optionally, in
2398 the wildcard parameter. Before the dialog is shown, this is the index
2399 which will be used when the dialog is first displayed. After the
2400 dialog is shown, this is the index selected by the user.
2401 """
2402 return _windows_.FileDialog_GetFilterIndex(*args, **kwargs)
2403
2404 def GetFilenames(*args, **kwargs):
2405 """
2406 GetFilenames(self) -> PyObject
2407
2408 Returns a list of filenames chosen in the dialog. This function
2409 should only be used with the dialogs which have wx.MULTIPLE style, use
2410 GetFilename for the others.
2411 """
2412 return _windows_.FileDialog_GetFilenames(*args, **kwargs)
2413
2414 def GetPaths(*args, **kwargs):
2415 """
2416 GetPaths(self) -> PyObject
2417
2418 Fills the array paths with the full paths of the files chosen. This
2419 function should only be used with the dialogs which have wx.MULTIPLE
2420 style, use GetPath for the others.
2421 """
2422 return _windows_.FileDialog_GetPaths(*args, **kwargs)
2423
2424
2425class FileDialogPtr(FileDialog):
2426 def __init__(self, this):
2427 self.this = this
2428 if not hasattr(self,"thisown"): self.thisown = 0
2429 self.__class__ = FileDialog
2430_windows_.FileDialog_swigregister(FileDialogPtr)
2431
2432CHOICEDLG_STYLE = _windows_.CHOICEDLG_STYLE
2433class MultiChoiceDialog(Dialog):
2434 """A simple dialog with a multi selection listbox."""
2435 def __repr__(self):
2436 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2437 def __init__(self, *args, **kwargs):
2438 """
2439 __init__(Window parent, String message, String caption,
2440 List choices=[], long style=CHOICEDLG_STYLE,
2441 Point pos=DefaultPosition) -> MultiChoiceDialog
2442
2443 Constructor. Use ShowModal method to show the dialog.
2444 """
2445 newobj = _windows_.new_MultiChoiceDialog(*args, **kwargs)
2446 self.this = newobj.this
2447 self.thisown = 1
2448 del newobj.thisown
2449 self._setOORInfo(self)
2450
2451 def SetSelections(*args, **kwargs):
2452 """SetSelections(List selections)"""
2453 return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs)
2454
2455 def GetSelections(*args, **kwargs):
2456 """
2457 GetSelections() -> [selections]
2458
2459 Returns a list of integers representing the items that are selected.
2460 """
2461 return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs)
2462
2463
2464class MultiChoiceDialogPtr(MultiChoiceDialog):
2465 def __init__(self, this):
2466 self.this = this
2467 if not hasattr(self,"thisown"): self.thisown = 0
2468 self.__class__ = MultiChoiceDialog
2469_windows_.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr)
2470
2471class SingleChoiceDialog(Dialog):
2472 """A simple dialog with a single selection listbox."""
2473 def __repr__(self):
2474 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2475 def __init__(self, *args, **kwargs):
2476 """
2477 __init__(Window parent, String message, String caption,
2478 List choices=[], long style=CHOICEDLG_STYLE,
2479 Point pos=DefaultPosition) -> SingleChoiceDialog
2480
2481 Constructor. Use ShowModal method to show the dialog.
2482 """
2483 newobj = _windows_.new_SingleChoiceDialog(*args, **kwargs)
2484 self.this = newobj.this
2485 self.thisown = 1
2486 del newobj.thisown
2487 self._setOORInfo(self)
2488
2489 def GetSelection(*args, **kwargs):
2490 """
2491 GetSelection(self) -> int
2492
2493 Get the index of teh currently selected item.
2494 """
2495 return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs)
2496
2497 def GetStringSelection(*args, **kwargs):
2498 """
2499 GetStringSelection(self) -> String
2500
2501 Returns the string value of the currently selected item
2502 """
2503 return _windows_.SingleChoiceDialog_GetStringSelection(*args, **kwargs)
2504
2505 def SetSelection(*args, **kwargs):
2506 """
2507 SetSelection(self, int sel)
2508
2509 Set the current selected item to sel
2510 """
2511 return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs)
2512
2513
2514class SingleChoiceDialogPtr(SingleChoiceDialog):
2515 def __init__(self, this):
2516 self.this = this
2517 if not hasattr(self,"thisown"): self.thisown = 0
2518 self.__class__ = SingleChoiceDialog
2519_windows_.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr)
2520
2521class TextEntryDialog(Dialog):
2522 """A dialog with text control, [ok] and [cancel] buttons"""
2523 def __repr__(self):
2524 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2525 def __init__(self, *args, **kwargs):
2526 """
2527 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2528 String defaultValue=EmptyString,
2529 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2530
2531 Constructor. Use ShowModal method to show the dialog.
2532 """
2533 newobj = _windows_.new_TextEntryDialog(*args, **kwargs)
2534 self.this = newobj.this
2535 self.thisown = 1
2536 del newobj.thisown
2537 self._setOORInfo(self)
2538
2539 def GetValue(*args, **kwargs):
2540 """
2541 GetValue(self) -> String
2542
2543 Returns the text that the user has entered if the user has pressed OK,
2544 or the original value if the user has pressed Cancel.
2545 """
2546 return _windows_.TextEntryDialog_GetValue(*args, **kwargs)
2547
2548 def SetValue(*args, **kwargs):
2549 """
2550 SetValue(self, String value)
2551
2552 Sets the default text value.
2553 """
2554 return _windows_.TextEntryDialog_SetValue(*args, **kwargs)
2555
2556
2557class TextEntryDialogPtr(TextEntryDialog):
2558 def __init__(self, this):
2559 self.this = this
2560 if not hasattr(self,"thisown"): self.thisown = 0
2561 self.__class__ = TextEntryDialog
2562_windows_.TextEntryDialog_swigregister(TextEntryDialogPtr)
2563
2564class FontData(_core.Object):
2565 """
2566 This class holds a variety of information related to font dialogs and
2567 is used to transfer settings to and results from a `wx.FontDialog`.
2568 """
2569 def __repr__(self):
2570 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2571 def __init__(self, *args, **kwargs):
2572 """
2573 __init__(self) -> FontData
2574
2575 This class holds a variety of information related to font dialogs and
2576 is used to transfer settings to and results from a `wx.FontDialog`.
2577 """
2578 newobj = _windows_.new_FontData(*args, **kwargs)
2579 self.this = newobj.this
2580 self.thisown = 1
2581 del newobj.thisown
2582 def __del__(self, destroy=_windows_.delete_FontData):
2583 """__del__(self)"""
2584 try:
2585 if self.thisown: destroy(self)
2586 except: pass
2587
2588 def EnableEffects(*args, **kwargs):
2589 """
2590 EnableEffects(self, bool enable)
2591
2592 Enables or disables 'effects' under MS Windows only. This refers to
2593 the controls for manipulating colour, strikeout and underline
2594 properties. The default value is true.
2595 """
2596 return _windows_.FontData_EnableEffects(*args, **kwargs)
2597
2598 def GetAllowSymbols(*args, **kwargs):
2599 """
2600 GetAllowSymbols(self) -> bool
2601
2602 Under MS Windows, returns a flag determining whether symbol fonts can
2603 be selected. Has no effect on other platforms. The default value is
2604 true.
2605 """
2606 return _windows_.FontData_GetAllowSymbols(*args, **kwargs)
2607
2608 def GetColour(*args, **kwargs):
2609 """
2610 GetColour(self) -> Colour
2611
2612 Gets the colour associated with the font dialog. The default value is
2613 black.
2614 """
2615 return _windows_.FontData_GetColour(*args, **kwargs)
2616
2617 def GetChosenFont(*args, **kwargs):
2618 """
2619 GetChosenFont(self) -> Font
2620
2621 Gets the font chosen by the user.
2622 """
2623 return _windows_.FontData_GetChosenFont(*args, **kwargs)
2624
2625 def GetEnableEffects(*args, **kwargs):
2626 """
2627 GetEnableEffects(self) -> bool
2628
2629 Determines whether 'effects' are enabled under Windows.
2630 """
2631 return _windows_.FontData_GetEnableEffects(*args, **kwargs)
2632
2633 def GetInitialFont(*args, **kwargs):
2634 """
2635 GetInitialFont(self) -> Font
2636
2637 Gets the font that will be initially used by the font dialog. This
2638 should have previously been set by the application.
2639 """
2640 return _windows_.FontData_GetInitialFont(*args, **kwargs)
2641
2642 def GetShowHelp(*args, **kwargs):
2643 """
2644 GetShowHelp(self) -> bool
2645
2646 Returns true if the Help button will be shown (Windows only). The
2647 default value is false.
2648 """
2649 return _windows_.FontData_GetShowHelp(*args, **kwargs)
2650
2651 def SetAllowSymbols(*args, **kwargs):
2652 """
2653 SetAllowSymbols(self, bool allowSymbols)
2654
2655 Under MS Windows, determines whether symbol fonts can be selected. Has
2656 no effect on other platforms. The default value is true.
2657 """
2658 return _windows_.FontData_SetAllowSymbols(*args, **kwargs)
2659
2660 def SetChosenFont(*args, **kwargs):
2661 """
2662 SetChosenFont(self, Font font)
2663
2664 Sets the font that will be returned to the user (normally for internal
2665 use only).
2666 """
2667 return _windows_.FontData_SetChosenFont(*args, **kwargs)
2668
2669 def SetColour(*args, **kwargs):
2670 """
2671 SetColour(self, Colour colour)
2672
2673 Sets the colour that will be used for the font foreground colour. The
2674 default colour is black.
2675 """
2676 return _windows_.FontData_SetColour(*args, **kwargs)
2677
2678 def SetInitialFont(*args, **kwargs):
2679 """
2680 SetInitialFont(self, Font font)
2681
2682 Sets the font that will be initially used by the font dialog.
2683 """
2684 return _windows_.FontData_SetInitialFont(*args, **kwargs)
2685
2686 def SetRange(*args, **kwargs):
2687 """
2688 SetRange(self, int min, int max)
2689
2690 Sets the valid range for the font point size (Windows only). The
2691 default is 0, 0 (unrestricted range).
2692 """
2693 return _windows_.FontData_SetRange(*args, **kwargs)
2694
2695 def SetShowHelp(*args, **kwargs):
2696 """
2697 SetShowHelp(self, bool showHelp)
2698
2699 Determines whether the Help button will be displayed in the font
2700 dialog (Windows only). The default value is false.
2701 """
2702 return _windows_.FontData_SetShowHelp(*args, **kwargs)
2703
2704
2705class FontDataPtr(FontData):
2706 def __init__(self, this):
2707 self.this = this
2708 if not hasattr(self,"thisown"): self.thisown = 0
2709 self.__class__ = FontData
2710_windows_.FontData_swigregister(FontDataPtr)
2711
2712class FontDialog(Dialog):
2713 """
2714 wx.FontDialog allows the user to select a system font and its attributes.
2715
2716 :see: `wx.FontData`
2717
2718 """
2719 def __repr__(self):
2720 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2721 def __init__(self, *args, **kwargs):
2722 """
2723 __init__(self, Window parent, FontData data) -> FontDialog
2724
2725 Constructor. Pass a parent window and the `wx.FontData` object to be
2726 used to initialize the dialog controls. Call `ShowModal` to display
2727 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2728 results with via the `wx.FontData` returned by `GetFontData`.
2729 """
2730 newobj = _windows_.new_FontDialog(*args, **kwargs)
2731 self.this = newobj.this
2732 self.thisown = 1
2733 del newobj.thisown
2734 self._setOORInfo(self)
2735
2736 def GetFontData(*args, **kwargs):
2737 """
2738 GetFontData(self) -> FontData
2739
2740 Returns a reference to the internal `wx.FontData` used by the
2741 wx.FontDialog.
2742 """
2743 return _windows_.FontDialog_GetFontData(*args, **kwargs)
2744
2745
2746class FontDialogPtr(FontDialog):
2747 def __init__(self, this):
2748 self.this = this
2749 if not hasattr(self,"thisown"): self.thisown = 0
2750 self.__class__ = FontDialog
2751_windows_.FontDialog_swigregister(FontDialogPtr)
2752
2753class MessageDialog(Dialog):
2754 """
2755 This class provides a simple dialog that shows a single or multi-line
2756 message, with a choice of OK, Yes, No and/or Cancel buttons.
2757 """
2758 def __repr__(self):
2759 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2760 def __init__(self, *args, **kwargs):
2761 """
2762 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2763 long style=wxOK|wxCANCEL|wxCENTRE,
2764 Point pos=DefaultPosition) -> MessageDialog
2765
2766 Constructor, use `ShowModal` to display the dialog.
2767 """
2768 newobj = _windows_.new_MessageDialog(*args, **kwargs)
2769 self.this = newobj.this
2770 self.thisown = 1
2771 del newobj.thisown
2772 self._setOORInfo(self)
2773
2774
2775class MessageDialogPtr(MessageDialog):
2776 def __init__(self, this):
2777 self.this = this
2778 if not hasattr(self,"thisown"): self.thisown = 0
2779 self.__class__ = MessageDialog
2780_windows_.MessageDialog_swigregister(MessageDialogPtr)
2781
2782class ProgressDialog(Frame):
2783 """
2784 A dialog that shows a short message and a progress bar. Optionally, it
2785 can display an ABORT button.
2786 """
2787 def __repr__(self):
2788 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2789 def __init__(self, *args, **kwargs):
2790 """
2791 __init__(self, String title, String message, int maximum=100, Window parent=None,
2792 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2793
2794 Constructor. Creates the dialog, displays it and disables user input
2795 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2796 parent window only.
2797 """
2798 newobj = _windows_.new_ProgressDialog(*args, **kwargs)
2799 self.this = newobj.this
2800 self.thisown = 1
2801 del newobj.thisown
2802 self._setOORInfo(self)
2803
2804 def Update(*args, **kwargs):
2805 """
2806 Update(self, int value, String newmsg=EmptyString) -> bool
2807
2808 Updates the dialog, setting the progress bar to the new value and, if
2809 given changes the message above it. Returns true unless the Cancel
2810 button has been pressed.
2811
2812 If false is returned, the application can either immediately destroy
2813 the dialog or ask the user for the confirmation and if the abort is
2814 not confirmed the dialog may be resumed with Resume function.
2815 """
2816 return _windows_.ProgressDialog_Update(*args, **kwargs)
2817
2818 def Resume(*args, **kwargs):
2819 """
2820 Resume(self)
2821
2822 Can be used to continue with the dialog, after the user had chosen to
2823 abort.
2824 """
2825 return _windows_.ProgressDialog_Resume(*args, **kwargs)
2826
2827
2828class ProgressDialogPtr(ProgressDialog):
2829 def __init__(self, this):
2830 self.this = this
2831 if not hasattr(self,"thisown"): self.thisown = 0
2832 self.__class__ = ProgressDialog
2833_windows_.ProgressDialog_swigregister(ProgressDialogPtr)
2834
2835FR_DOWN = _windows_.FR_DOWN
2836FR_WHOLEWORD = _windows_.FR_WHOLEWORD
2837FR_MATCHCASE = _windows_.FR_MATCHCASE
2838FR_REPLACEDIALOG = _windows_.FR_REPLACEDIALOG
2839FR_NOUPDOWN = _windows_.FR_NOUPDOWN
2840FR_NOMATCHCASE = _windows_.FR_NOMATCHCASE
2841FR_NOWHOLEWORD = _windows_.FR_NOWHOLEWORD
2842wxEVT_COMMAND_FIND = _windows_.wxEVT_COMMAND_FIND
2843wxEVT_COMMAND_FIND_NEXT = _windows_.wxEVT_COMMAND_FIND_NEXT
2844wxEVT_COMMAND_FIND_REPLACE = _windows_.wxEVT_COMMAND_FIND_REPLACE
2845wxEVT_COMMAND_FIND_REPLACE_ALL = _windows_.wxEVT_COMMAND_FIND_REPLACE_ALL
2846wxEVT_COMMAND_FIND_CLOSE = _windows_.wxEVT_COMMAND_FIND_CLOSE
2847EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 )
2848EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 )
2849EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 )
2850EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 )
2851EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 )
2852
2853# For backwards compatibility. Should they be removed?
2854EVT_COMMAND_FIND = EVT_FIND
2855EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT
2856EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE
2857EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL
2858EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE
2859
2860class FindDialogEvent(_core.CommandEvent):
2861 """Events for the FindReplaceDialog"""
2862 def __repr__(self):
2863 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2864 def __init__(self, *args, **kwargs):
2865 """
2866 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2867
2868 Events for the FindReplaceDialog
2869 """
2870 newobj = _windows_.new_FindDialogEvent(*args, **kwargs)
2871 self.this = newobj.this
2872 self.thisown = 1
2873 del newobj.thisown
2874 def GetFlags(*args, **kwargs):
2875 """
2876 GetFlags(self) -> int
2877
2878 Get the currently selected flags: this is the combination of
2879 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2880 """
2881 return _windows_.FindDialogEvent_GetFlags(*args, **kwargs)
2882
2883 def GetFindString(*args, **kwargs):
2884 """
2885 GetFindString(self) -> String
2886
2887 Return the string to find (never empty).
2888 """
2889 return _windows_.FindDialogEvent_GetFindString(*args, **kwargs)
2890
2891 def GetReplaceString(*args, **kwargs):
2892 """
2893 GetReplaceString(self) -> String
2894
2895 Return the string to replace the search string with (only for replace
2896 and replace all events).
2897 """
2898 return _windows_.FindDialogEvent_GetReplaceString(*args, **kwargs)
2899
2900 def GetDialog(*args, **kwargs):
2901 """
2902 GetDialog(self) -> FindReplaceDialog
2903
2904 Return the pointer to the dialog which generated this event.
2905 """
2906 return _windows_.FindDialogEvent_GetDialog(*args, **kwargs)
2907
2908 def SetFlags(*args, **kwargs):
2909 """SetFlags(self, int flags)"""
2910 return _windows_.FindDialogEvent_SetFlags(*args, **kwargs)
2911
2912 def SetFindString(*args, **kwargs):
2913 """SetFindString(self, String str)"""
2914 return _windows_.FindDialogEvent_SetFindString(*args, **kwargs)
2915
2916 def SetReplaceString(*args, **kwargs):
2917 """SetReplaceString(self, String str)"""
2918 return _windows_.FindDialogEvent_SetReplaceString(*args, **kwargs)
2919
2920
2921class FindDialogEventPtr(FindDialogEvent):
2922 def __init__(self, this):
2923 self.this = this
2924 if not hasattr(self,"thisown"): self.thisown = 0
2925 self.__class__ = FindDialogEvent
2926_windows_.FindDialogEvent_swigregister(FindDialogEventPtr)
2927
2928class FindReplaceData(_core.Object):
2929 """
2930 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2931 to initialize the dialog with the default values and will keep the
2932 last values from the dialog when it is closed. It is also updated each
2933 time a `wx.FindDialogEvent` is generated so instead of using the
2934 `wx.FindDialogEvent` methods you can also directly query this object.
2935
2936 Note that all SetXXX() methods may only be called before showing the
2937 dialog and calling them has no effect later.
2938 """
2939 def __repr__(self):
2940 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2941 def __init__(self, *args, **kwargs):
2942 """
2943 __init__(self, int flags=0) -> FindReplaceData
2944
2945 Constuctor initializes the flags to default value (0).
2946 """
2947 newobj = _windows_.new_FindReplaceData(*args, **kwargs)
2948 self.this = newobj.this
2949 self.thisown = 1
2950 del newobj.thisown
2951 def __del__(self, destroy=_windows_.delete_FindReplaceData):
2952 """__del__(self)"""
2953 try:
2954 if self.thisown: destroy(self)
2955 except: pass
2956
2957 def GetFindString(*args, **kwargs):
2958 """
2959 GetFindString(self) -> String
2960
2961 Get the string to find.
2962 """
2963 return _windows_.FindReplaceData_GetFindString(*args, **kwargs)
2964
2965 def GetReplaceString(*args, **kwargs):
2966 """
2967 GetReplaceString(self) -> String
2968
2969 Get the replacement string.
2970 """
2971 return _windows_.FindReplaceData_GetReplaceString(*args, **kwargs)
2972
2973 def GetFlags(*args, **kwargs):
2974 """
2975 GetFlags(self) -> int
2976
2977 Get the combination of flag values.
2978 """
2979 return _windows_.FindReplaceData_GetFlags(*args, **kwargs)
2980
2981 def SetFlags(*args, **kwargs):
2982 """
2983 SetFlags(self, int flags)
2984
2985 Set the flags to use to initialize the controls of the dialog.
2986 """
2987 return _windows_.FindReplaceData_SetFlags(*args, **kwargs)
2988
2989 def SetFindString(*args, **kwargs):
2990 """
2991 SetFindString(self, String str)
2992
2993 Set the string to find (used as initial value by the dialog).
2994 """
2995 return _windows_.FindReplaceData_SetFindString(*args, **kwargs)
2996
2997 def SetReplaceString(*args, **kwargs):
2998 """
2999 SetReplaceString(self, String str)
3000
3001 Set the replacement string (used as initial value by the dialog).
3002 """
3003 return _windows_.FindReplaceData_SetReplaceString(*args, **kwargs)
3004
3005
3006class FindReplaceDataPtr(FindReplaceData):
3007 def __init__(self, this):
3008 self.this = this
3009 if not hasattr(self,"thisown"): self.thisown = 0
3010 self.__class__ = FindReplaceData
3011_windows_.FindReplaceData_swigregister(FindReplaceDataPtr)
3012
3013class FindReplaceDialog(Dialog):
3014 """
3015 wx.FindReplaceDialog is a standard modeless dialog which is used to
3016 allow the user to search for some text (and possibly replace it with
3017 something else). The actual searching is supposed to be done in the
3018 owner window which is the parent of this dialog. Note that it means
3019 that unlike for the other standard dialogs this one must have a parent
3020 window. Also note that there is no way to use this dialog in a modal
3021 way; it is always, by design and implementation, modeless.
3022 """
3023 def __repr__(self):
3024 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3025 def __init__(self, *args, **kwargs):
3026 """
3027 __init__(self, Window parent, FindReplaceData data, String title,
3028 int style=0) -> FindReplaceDialog
3029
3030 Create a FindReplaceDialog. The parent and data parameters must be
3031 non-None. Use Show to display the dialog.
3032 """
3033 newobj = _windows_.new_FindReplaceDialog(*args, **kwargs)
3034 self.this = newobj.this
3035 self.thisown = 1
3036 del newobj.thisown
3037 self._setOORInfo(self)
3038
3039 def Create(*args, **kwargs):
3040 """
3041 Create(self, Window parent, FindReplaceData data, String title,
3042 int style=0) -> bool
3043
3044 Create the dialog, for 2-phase create.
3045 """
3046 return _windows_.FindReplaceDialog_Create(*args, **kwargs)
3047
3048 def GetData(*args, **kwargs):
3049 """
3050 GetData(self) -> FindReplaceData
3051
3052 Get the FindReplaceData object used by this dialog.
3053 """
3054 return _windows_.FindReplaceDialog_GetData(*args, **kwargs)
3055
3056 def SetData(*args, **kwargs):
3057 """
3058 SetData(self, FindReplaceData data)
3059
3060 Set the FindReplaceData object used by this dialog.
3061 """
3062 return _windows_.FindReplaceDialog_SetData(*args, **kwargs)
3063
3064
3065class FindReplaceDialogPtr(FindReplaceDialog):
3066 def __init__(self, this):
3067 self.this = this
3068 if not hasattr(self,"thisown"): self.thisown = 0
3069 self.__class__ = FindReplaceDialog
3070_windows_.FindReplaceDialog_swigregister(FindReplaceDialogPtr)
3071
3072def PreFindReplaceDialog(*args, **kwargs):
3073 """
3074 PreFindReplaceDialog() -> FindReplaceDialog
3075
3076 Precreate a FindReplaceDialog for 2-phase creation
3077 """
3078 val = _windows_.new_PreFindReplaceDialog(*args, **kwargs)
3079 val.thisown = 1
3080 return val
3081
3082#---------------------------------------------------------------------------
3083
3084IDM_WINDOWTILE = _windows_.IDM_WINDOWTILE
3085IDM_WINDOWTILEHOR = _windows_.IDM_WINDOWTILEHOR
3086IDM_WINDOWCASCADE = _windows_.IDM_WINDOWCASCADE
3087IDM_WINDOWICONS = _windows_.IDM_WINDOWICONS
3088IDM_WINDOWNEXT = _windows_.IDM_WINDOWNEXT
3089IDM_WINDOWTILEVERT = _windows_.IDM_WINDOWTILEVERT
3090FIRST_MDI_CHILD = _windows_.FIRST_MDI_CHILD
3091LAST_MDI_CHILD = _windows_.LAST_MDI_CHILD
3092class MDIParentFrame(Frame):
3093 def __repr__(self):
3094 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3095 def __init__(self, *args, **kwargs):
3096 """
3097 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
3098 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3099 String name=FrameNameStr) -> MDIParentFrame
3100 """
3101 newobj = _windows_.new_MDIParentFrame(*args, **kwargs)
3102 self.this = newobj.this
3103 self.thisown = 1
3104 del newobj.thisown
3105 self._setOORInfo(self)
3106
3107 def Create(*args, **kwargs):
3108 """
3109 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
3110 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3111 String name=FrameNameStr) -> bool
3112 """
3113 return _windows_.MDIParentFrame_Create(*args, **kwargs)
3114
3115 def ActivateNext(*args, **kwargs):
3116 """ActivateNext(self)"""
3117 return _windows_.MDIParentFrame_ActivateNext(*args, **kwargs)
3118
3119 def ActivatePrevious(*args, **kwargs):
3120 """ActivatePrevious(self)"""
3121 return _windows_.MDIParentFrame_ActivatePrevious(*args, **kwargs)
3122
3123 def ArrangeIcons(*args, **kwargs):
3124 """ArrangeIcons(self)"""
3125 return _windows_.MDIParentFrame_ArrangeIcons(*args, **kwargs)
3126
3127 def Cascade(*args, **kwargs):
3128 """Cascade(self)"""
3129 return _windows_.MDIParentFrame_Cascade(*args, **kwargs)
3130
3131 def GetActiveChild(*args, **kwargs):
3132 """GetActiveChild(self) -> MDIChildFrame"""
3133 return _windows_.MDIParentFrame_GetActiveChild(*args, **kwargs)
3134
3135 def GetClientWindow(*args, **kwargs):
3136 """GetClientWindow(self) -> MDIClientWindow"""
3137 return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs)
3138
3139 def GetToolBar(*args, **kwargs):
3140 """GetToolBar(self) -> Window"""
3141 return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs)
3142
3143 def Tile(*args, **kwargs):
3144 """Tile(self)"""
3145 return _windows_.MDIParentFrame_Tile(*args, **kwargs)
3146
3147
3148class MDIParentFramePtr(MDIParentFrame):
3149 def __init__(self, this):
3150 self.this = this
3151 if not hasattr(self,"thisown"): self.thisown = 0
3152 self.__class__ = MDIParentFrame
3153_windows_.MDIParentFrame_swigregister(MDIParentFramePtr)
3154
3155def PreMDIParentFrame(*args, **kwargs):
3156 """PreMDIParentFrame() -> MDIParentFrame"""
3157 val = _windows_.new_PreMDIParentFrame(*args, **kwargs)
3158 val.thisown = 1
3159 return val
3160
3161class MDIChildFrame(Frame):
3162 def __repr__(self):
3163 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3164 def __init__(self, *args, **kwargs):
3165 """
3166 __init__(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3167 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3168 String name=FrameNameStr) -> MDIChildFrame
3169 """
3170 newobj = _windows_.new_MDIChildFrame(*args, **kwargs)
3171 self.this = newobj.this
3172 self.thisown = 1
3173 del newobj.thisown
3174 self._setOORInfo(self)
3175
3176 def Create(*args, **kwargs):
3177 """
3178 Create(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3179 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3180 String name=FrameNameStr) -> bool
3181 """
3182 return _windows_.MDIChildFrame_Create(*args, **kwargs)
3183
3184 def Activate(*args, **kwargs):
3185 """Activate(self)"""
3186 return _windows_.MDIChildFrame_Activate(*args, **kwargs)
3187
3188 def Maximize(*args, **kwargs):
3189 """Maximize(self, bool maximize)"""
3190 return _windows_.MDIChildFrame_Maximize(*args, **kwargs)
3191
3192 def Restore(*args, **kwargs):
3193 """Restore(self)"""
3194 return _windows_.MDIChildFrame_Restore(*args, **kwargs)
3195
3196
3197class MDIChildFramePtr(MDIChildFrame):
3198 def __init__(self, this):
3199 self.this = this
3200 if not hasattr(self,"thisown"): self.thisown = 0
3201 self.__class__ = MDIChildFrame
3202_windows_.MDIChildFrame_swigregister(MDIChildFramePtr)
3203
3204def PreMDIChildFrame(*args, **kwargs):
3205 """PreMDIChildFrame() -> MDIChildFrame"""
3206 val = _windows_.new_PreMDIChildFrame(*args, **kwargs)
3207 val.thisown = 1
3208 return val
3209
3210class MDIClientWindow(_core.Window):
3211 def __repr__(self):
3212 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3213 def __init__(self, *args, **kwargs):
3214 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3215 newobj = _windows_.new_MDIClientWindow(*args, **kwargs)
3216 self.this = newobj.this
3217 self.thisown = 1
3218 del newobj.thisown
3219 self._setOORInfo(self)
3220
3221 def Create(*args, **kwargs):
3222 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3223 return _windows_.MDIClientWindow_Create(*args, **kwargs)
3224
3225
3226class MDIClientWindowPtr(MDIClientWindow):
3227 def __init__(self, this):
3228 self.this = this
3229 if not hasattr(self,"thisown"): self.thisown = 0
3230 self.__class__ = MDIClientWindow
3231_windows_.MDIClientWindow_swigregister(MDIClientWindowPtr)
3232
3233def PreMDIClientWindow(*args, **kwargs):
3234 """PreMDIClientWindow() -> MDIClientWindow"""
3235 val = _windows_.new_PreMDIClientWindow(*args, **kwargs)
3236 val.thisown = 1
3237 return val
3238
3239#---------------------------------------------------------------------------
3240
3241class PyWindow(_core.Window):
3242 def __repr__(self):
3243 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3244 def __init__(self, *args, **kwargs):
3245 """
3246 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3247 long style=0, String name=PanelNameStr) -> PyWindow
3248 """
3249 newobj = _windows_.new_PyWindow(*args, **kwargs)
3250 self.this = newobj.this
3251 self.thisown = 1
3252 del newobj.thisown
3253 self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)
3254
3255 def _setCallbackInfo(*args, **kwargs):
3256 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3257 return _windows_.PyWindow__setCallbackInfo(*args, **kwargs)
3258
3259 def SetBestSize(*args, **kwargs):
3260 """SetBestSize(self, Size size)"""
3261 return _windows_.PyWindow_SetBestSize(*args, **kwargs)
3262
3263 def base_DoMoveWindow(*args, **kwargs):
3264 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3265 return _windows_.PyWindow_base_DoMoveWindow(*args, **kwargs)
3266
3267 def base_DoSetSize(*args, **kwargs):
3268 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3269 return _windows_.PyWindow_base_DoSetSize(*args, **kwargs)
3270
3271 def base_DoSetClientSize(*args, **kwargs):
3272 """base_DoSetClientSize(self, int width, int height)"""
3273 return _windows_.PyWindow_base_DoSetClientSize(*args, **kwargs)
3274
3275 def base_DoSetVirtualSize(*args, **kwargs):
3276 """base_DoSetVirtualSize(self, int x, int y)"""
3277 return _windows_.PyWindow_base_DoSetVirtualSize(*args, **kwargs)
3278
3279 def base_DoGetSize(*args, **kwargs):
3280 """base_DoGetSize() -> (width, height)"""
3281 return _windows_.PyWindow_base_DoGetSize(*args, **kwargs)
3282
3283 def base_DoGetClientSize(*args, **kwargs):
3284 """base_DoGetClientSize() -> (width, height)"""
3285 return _windows_.PyWindow_base_DoGetClientSize(*args, **kwargs)
3286
3287 def base_DoGetPosition(*args, **kwargs):
3288 """base_DoGetPosition() -> (x,y)"""
3289 return _windows_.PyWindow_base_DoGetPosition(*args, **kwargs)
3290
3291 def base_DoGetVirtualSize(*args, **kwargs):
3292 """base_DoGetVirtualSize(self) -> Size"""
3293 return _windows_.PyWindow_base_DoGetVirtualSize(*args, **kwargs)
3294
3295 def base_DoGetBestSize(*args, **kwargs):
3296 """base_DoGetBestSize(self) -> Size"""
3297 return _windows_.PyWindow_base_DoGetBestSize(*args, **kwargs)
3298
3299 def base_InitDialog(*args, **kwargs):
3300 """base_InitDialog(self)"""
3301 return _windows_.PyWindow_base_InitDialog(*args, **kwargs)
3302
3303 def base_TransferDataToWindow(*args, **kwargs):
3304 """base_TransferDataToWindow(self) -> bool"""
3305 return _windows_.PyWindow_base_TransferDataToWindow(*args, **kwargs)
3306
3307 def base_TransferDataFromWindow(*args, **kwargs):
3308 """base_TransferDataFromWindow(self) -> bool"""
3309 return _windows_.PyWindow_base_TransferDataFromWindow(*args, **kwargs)
3310
3311 def base_Validate(*args, **kwargs):
3312 """base_Validate(self) -> bool"""
3313 return _windows_.PyWindow_base_Validate(*args, **kwargs)
3314
3315 def base_AcceptsFocus(*args, **kwargs):
3316 """base_AcceptsFocus(self) -> bool"""
3317 return _windows_.PyWindow_base_AcceptsFocus(*args, **kwargs)
3318
3319 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
3320 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3321 return _windows_.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs)
3322
3323 def base_GetMaxSize(*args, **kwargs):
3324 """base_GetMaxSize(self) -> Size"""
3325 return _windows_.PyWindow_base_GetMaxSize(*args, **kwargs)
3326
3327 def base_AddChild(*args, **kwargs):
3328 """base_AddChild(self, Window child)"""
3329 return _windows_.PyWindow_base_AddChild(*args, **kwargs)
3330
3331 def base_RemoveChild(*args, **kwargs):
3332 """base_RemoveChild(self, Window child)"""
3333 return _windows_.PyWindow_base_RemoveChild(*args, **kwargs)
3334
3335 def base_ShouldInheritColours(*args, **kwargs):
3336 """base_ShouldInheritColours(self) -> bool"""
3337 return _windows_.PyWindow_base_ShouldInheritColours(*args, **kwargs)
3338
3339 def base_ApplyParentThemeBackground(*args, **kwargs):
3340 """base_ApplyParentThemeBackground(self, Colour c)"""
3341 return _windows_.PyWindow_base_ApplyParentThemeBackground(*args, **kwargs)
3342
3343 def base_GetDefaultAttributes(*args, **kwargs):
3344 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3345 return _windows_.PyWindow_base_GetDefaultAttributes(*args, **kwargs)
3346
3347
3348class PyWindowPtr(PyWindow):
3349 def __init__(self, this):
3350 self.this = this
3351 if not hasattr(self,"thisown"): self.thisown = 0
3352 self.__class__ = PyWindow
3353_windows_.PyWindow_swigregister(PyWindowPtr)
3354
3355def PrePyWindow(*args, **kwargs):
3356 """PrePyWindow() -> PyWindow"""
3357 val = _windows_.new_PrePyWindow(*args, **kwargs)
3358 val.thisown = 1
3359 return val
3360
3361class PyPanel(Panel):
3362 def __repr__(self):
3363 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3364 def __init__(self, *args, **kwargs):
3365 """
3366 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3367 long style=0, String name=PanelNameStr) -> PyPanel
3368 """
3369 newobj = _windows_.new_PyPanel(*args, **kwargs)
3370 self.this = newobj.this
3371 self.thisown = 1
3372 del newobj.thisown
3373 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
3374
3375 def _setCallbackInfo(*args, **kwargs):
3376 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3377 return _windows_.PyPanel__setCallbackInfo(*args, **kwargs)
3378
3379 def SetBestSize(*args, **kwargs):
3380 """SetBestSize(self, Size size)"""
3381 return _windows_.PyPanel_SetBestSize(*args, **kwargs)
3382
3383 def base_DoMoveWindow(*args, **kwargs):
3384 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3385 return _windows_.PyPanel_base_DoMoveWindow(*args, **kwargs)
3386
3387 def base_DoSetSize(*args, **kwargs):
3388 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3389 return _windows_.PyPanel_base_DoSetSize(*args, **kwargs)
3390
3391 def base_DoSetClientSize(*args, **kwargs):
3392 """base_DoSetClientSize(self, int width, int height)"""
3393 return _windows_.PyPanel_base_DoSetClientSize(*args, **kwargs)
3394
3395 def base_DoSetVirtualSize(*args, **kwargs):
3396 """base_DoSetVirtualSize(self, int x, int y)"""
3397 return _windows_.PyPanel_base_DoSetVirtualSize(*args, **kwargs)
3398
3399 def base_DoGetSize(*args, **kwargs):
3400 """base_DoGetSize() -> (width, height)"""
3401 return _windows_.PyPanel_base_DoGetSize(*args, **kwargs)
3402
3403 def base_DoGetClientSize(*args, **kwargs):
3404 """base_DoGetClientSize() -> (width, height)"""
3405 return _windows_.PyPanel_base_DoGetClientSize(*args, **kwargs)
3406
3407 def base_DoGetPosition(*args, **kwargs):
3408 """base_DoGetPosition() -> (x,y)"""
3409 return _windows_.PyPanel_base_DoGetPosition(*args, **kwargs)
3410
3411 def base_DoGetVirtualSize(*args, **kwargs):
3412 """base_DoGetVirtualSize(self) -> Size"""
3413 return _windows_.PyPanel_base_DoGetVirtualSize(*args, **kwargs)
3414
3415 def base_DoGetBestSize(*args, **kwargs):
3416 """base_DoGetBestSize(self) -> Size"""
3417 return _windows_.PyPanel_base_DoGetBestSize(*args, **kwargs)
3418
3419 def base_InitDialog(*args, **kwargs):
3420 """base_InitDialog(self)"""
3421 return _windows_.PyPanel_base_InitDialog(*args, **kwargs)
3422
3423 def base_TransferDataToWindow(*args, **kwargs):
3424 """base_TransferDataToWindow(self) -> bool"""
3425 return _windows_.PyPanel_base_TransferDataToWindow(*args, **kwargs)
3426
3427 def base_TransferDataFromWindow(*args, **kwargs):
3428 """base_TransferDataFromWindow(self) -> bool"""
3429 return _windows_.PyPanel_base_TransferDataFromWindow(*args, **kwargs)
3430
3431 def base_Validate(*args, **kwargs):
3432 """base_Validate(self) -> bool"""
3433 return _windows_.PyPanel_base_Validate(*args, **kwargs)
3434
3435 def base_AcceptsFocus(*args, **kwargs):
3436 """base_AcceptsFocus(self) -> bool"""
3437 return _windows_.PyPanel_base_AcceptsFocus(*args, **kwargs)
3438
3439 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
3440 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3441 return _windows_.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs)
3442
3443 def base_GetMaxSize(*args, **kwargs):
3444 """base_GetMaxSize(self) -> Size"""
3445 return _windows_.PyPanel_base_GetMaxSize(*args, **kwargs)
3446
3447 def base_AddChild(*args, **kwargs):
3448 """base_AddChild(self, Window child)"""
3449 return _windows_.PyPanel_base_AddChild(*args, **kwargs)
3450
3451 def base_RemoveChild(*args, **kwargs):
3452 """base_RemoveChild(self, Window child)"""
3453 return _windows_.PyPanel_base_RemoveChild(*args, **kwargs)
3454
3455 def base_ShouldInheritColours(*args, **kwargs):
3456 """base_ShouldInheritColours(self) -> bool"""
3457 return _windows_.PyPanel_base_ShouldInheritColours(*args, **kwargs)
3458
3459 def base_ApplyParentThemeBackground(*args, **kwargs):
3460 """base_ApplyParentThemeBackground(self, Colour c)"""
3461 return _windows_.PyPanel_base_ApplyParentThemeBackground(*args, **kwargs)
3462
3463 def base_GetDefaultAttributes(*args, **kwargs):
3464 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3465 return _windows_.PyPanel_base_GetDefaultAttributes(*args, **kwargs)
3466
3467
3468class PyPanelPtr(PyPanel):
3469 def __init__(self, this):
3470 self.this = this
3471 if not hasattr(self,"thisown"): self.thisown = 0
3472 self.__class__ = PyPanel
3473_windows_.PyPanel_swigregister(PyPanelPtr)
3474
3475def PrePyPanel(*args, **kwargs):
3476 """PrePyPanel() -> PyPanel"""
3477 val = _windows_.new_PrePyPanel(*args, **kwargs)
3478 val.thisown = 1
3479 return val
3480
3481class PyScrolledWindow(ScrolledWindow):
3482 def __repr__(self):
3483 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3484 def __init__(self, *args, **kwargs):
3485 """
3486 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3487 long style=0, String name=PanelNameStr) -> PyScrolledWindow
3488 """
3489 newobj = _windows_.new_PyScrolledWindow(*args, **kwargs)
3490 self.this = newobj.this
3491 self.thisown = 1
3492 del newobj.thisown
3493 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
3494
3495 def _setCallbackInfo(*args, **kwargs):
3496 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3497 return _windows_.PyScrolledWindow__setCallbackInfo(*args, **kwargs)
3498
3499 def SetBestSize(*args, **kwargs):
3500 """SetBestSize(self, Size size)"""
3501 return _windows_.PyScrolledWindow_SetBestSize(*args, **kwargs)
3502
3503 def base_DoMoveWindow(*args, **kwargs):
3504 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3505 return _windows_.PyScrolledWindow_base_DoMoveWindow(*args, **kwargs)
3506
3507 def base_DoSetSize(*args, **kwargs):
3508 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3509 return _windows_.PyScrolledWindow_base_DoSetSize(*args, **kwargs)
3510
3511 def base_DoSetClientSize(*args, **kwargs):
3512 """base_DoSetClientSize(self, int width, int height)"""
3513 return _windows_.PyScrolledWindow_base_DoSetClientSize(*args, **kwargs)
3514
3515 def base_DoSetVirtualSize(*args, **kwargs):
3516 """base_DoSetVirtualSize(self, int x, int y)"""
3517 return _windows_.PyScrolledWindow_base_DoSetVirtualSize(*args, **kwargs)
3518
3519 def base_DoGetSize(*args, **kwargs):
3520 """base_DoGetSize() -> (width, height)"""
3521 return _windows_.PyScrolledWindow_base_DoGetSize(*args, **kwargs)
3522
3523 def base_DoGetClientSize(*args, **kwargs):
3524 """base_DoGetClientSize() -> (width, height)"""
3525 return _windows_.PyScrolledWindow_base_DoGetClientSize(*args, **kwargs)
3526
3527 def base_DoGetPosition(*args, **kwargs):
3528 """base_DoGetPosition() -> (x,y)"""
3529 return _windows_.PyScrolledWindow_base_DoGetPosition(*args, **kwargs)
3530
3531 def base_DoGetVirtualSize(*args, **kwargs):
3532 """base_DoGetVirtualSize(self) -> Size"""
3533 return _windows_.PyScrolledWindow_base_DoGetVirtualSize(*args, **kwargs)
3534
3535 def base_DoGetBestSize(*args, **kwargs):
3536 """base_DoGetBestSize(self) -> Size"""
3537 return _windows_.PyScrolledWindow_base_DoGetBestSize(*args, **kwargs)
3538
3539 def base_InitDialog(*args, **kwargs):
3540 """base_InitDialog(self)"""
3541 return _windows_.PyScrolledWindow_base_InitDialog(*args, **kwargs)
3542
3543 def base_TransferDataToWindow(*args, **kwargs):
3544 """base_TransferDataToWindow(self) -> bool"""
3545 return _windows_.PyScrolledWindow_base_TransferDataToWindow(*args, **kwargs)
3546
3547 def base_TransferDataFromWindow(*args, **kwargs):
3548 """base_TransferDataFromWindow(self) -> bool"""
3549 return _windows_.PyScrolledWindow_base_TransferDataFromWindow(*args, **kwargs)
3550
3551 def base_Validate(*args, **kwargs):
3552 """base_Validate(self) -> bool"""
3553 return _windows_.PyScrolledWindow_base_Validate(*args, **kwargs)
3554
3555 def base_AcceptsFocus(*args, **kwargs):
3556 """base_AcceptsFocus(self) -> bool"""
3557 return _windows_.PyScrolledWindow_base_AcceptsFocus(*args, **kwargs)
3558
3559 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
3560 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3561 return _windows_.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs)
3562
3563 def base_GetMaxSize(*args, **kwargs):
3564 """base_GetMaxSize(self) -> Size"""
3565 return _windows_.PyScrolledWindow_base_GetMaxSize(*args, **kwargs)
3566
3567 def base_AddChild(*args, **kwargs):
3568 """base_AddChild(self, Window child)"""
3569 return _windows_.PyScrolledWindow_base_AddChild(*args, **kwargs)
3570
3571 def base_RemoveChild(*args, **kwargs):
3572 """base_RemoveChild(self, Window child)"""
3573 return _windows_.PyScrolledWindow_base_RemoveChild(*args, **kwargs)
3574
3575 def base_ShouldInheritColours(*args, **kwargs):
3576 """base_ShouldInheritColours(self) -> bool"""
3577 return _windows_.PyScrolledWindow_base_ShouldInheritColours(*args, **kwargs)
3578
3579 def base_ApplyParentThemeBackground(*args, **kwargs):
3580 """base_ApplyParentThemeBackground(self, Colour c)"""
3581 return _windows_.PyScrolledWindow_base_ApplyParentThemeBackground(*args, **kwargs)
3582
3583 def base_GetDefaultAttributes(*args, **kwargs):
3584 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3585 return _windows_.PyScrolledWindow_base_GetDefaultAttributes(*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