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