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