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