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