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