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