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