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