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