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