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