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