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