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