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