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