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