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