]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/windows.py
demo tweaks
[wxWidgets.git] / wxPython / src / msw / windows.py
CommitLineData
8ab979d7 1# This file was created automatically by SWIG.
d14a1e28 2# Don't modify this file, modify the SWIG interface instead.
8ab979d7 3
d14a1e28 4import _windows
8ab979d7 5
d14a1e28
RD
6import core
7wx = core
8#---------------------------------------------------------------------------
b1462dfa 9
d14a1e28 10class Panel(core.Window):
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,
d03fd34d 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,
d03fd34d 29 String name=PanelNameStr) -> bool
fe763115
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
68bc8549 39
d14a1e28
RD
40class PanelPtr(Panel):
41 def __init__(self, this):
42 self.this = this
43 if not hasattr(self,"thisown"): self.thisown = 0
44 self.__class__ = Panel
45_windows.Panel_swigregister(PanelPtr)
b8b8dda7 46
d14a1e28 47def PrePanel(*args, **kwargs):
423f194a 48 """PrePanel() -> Panel"""
d14a1e28
RD
49 val = _windows.new_PrePanel(*args, **kwargs)
50 val.thisown = 1
51 return val
b8b8dda7 52
d14a1e28 53#---------------------------------------------------------------------------
b8b8dda7 54
d14a1e28 55class ScrolledWindow(Panel):
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,
d03fd34d 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,
d03fd34d 74 String name=PanelNameStr) -> bool
fe763115
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):
d03fd34d 225 """GetIcon() -> Icon"""
423f194a
RD
226 return _windows.TopLevelWindow_GetIcon(*args, **kwargs)
227
228 def SetIcon(*args, **kwargs):
d03fd34d 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):
fe763115
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):
fe763115
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):
d03fd34d 261 """SetShape(Region region) -> bool"""
423f194a
RD
262 return _windows.TopLevelWindow_SetShape(*args, **kwargs)
263
8ab979d7 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)
d03fd34d
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 """
d03fd34d 284 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
41f1cec7 285 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
d03fd34d 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 """
d03fd34d 296 Create(Window parent, int id, String title, Point pos=DefaultPosition,
41f1cec7 297 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
d03fd34d 298 String name=FrameNameStr) -> bool
41f1cec7 299 """
423f194a
RD
300 return _windows.Frame_Create(*args, **kwargs)
301
302 def GetClientAreaOrigin(*args, **kwargs):
fe763115
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,
d03fd34d 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):
d03fd34d 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):
d03fd34d 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):
d03fd34d 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):
d03fd34d 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
8ab979d7 388
d14a1e28
RD
389class FramePtr(Frame):
390 def __init__(self, this):
2f90df85 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 """
d03fd34d 409 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
41f1cec7 410 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
d03fd34d 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 """
d03fd34d 421 Create(Window parent, int id, String title, Point pos=DefaultPosition,
41f1cec7 422 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
d03fd34d 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):
d03fd34d 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 """
d03fd34d 480 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
41f1cec7 481 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
d03fd34d 482 String name=FrameNameStr) -> MiniFrame
41f1cec7 483 """
d14a1e28
RD
484 newobj = _windows.new_MiniFrame(*args, **kwargs)
485 self.this = newobj.this
2f90df85 486 self.thisown = 1
d14a1e28 487 del newobj.thisown
0122b7e3 488 self._setOORInfo(self)
423f194a
RD
489
490 def Create(*args, **kwargs):
41f1cec7 491 """
d03fd34d 492 Create(Window parent, int id, String title, Point pos=DefaultPosition,
41f1cec7 493 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
d03fd34d 494 String name=FrameNameStr) -> bool
41f1cec7 495 """
423f194a
RD
496 return _windows.MiniFrame_Create(*args, **kwargs)
497
2f90df85 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)
2f90df85 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
2f90df85 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 """
d03fd34d 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):
d03fd34d 534 """SetBitmap(Bitmap bitmap)"""
423f194a
RD
535 return _windows.SplashScreenWindow_SetBitmap(*args, **kwargs)
536
537 def GetBitmap(*args, **kwargs):
d03fd34d 538 """GetBitmap() -> Bitmap"""
423f194a
RD
539 return _windows.SplashScreenWindow_GetBitmap(*args, **kwargs)
540
2f90df85 541
d14a1e28
RD
542class SplashScreenWindowPtr(SplashScreenWindow):
543 def __init__(self, this):
2f90df85 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 """
d03fd34d 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):
d03fd34d 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
2f90df85 593 self.thisown = 1
d14a1e28 594 del newobj.thisown
0122b7e3 595 self._setOORInfo(self)
423f194a
RD
596
597 def Create(*args, **kwargs):
d03fd34d 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):
d03fd34d 610 """SetStatusText(String text, int number=0)"""
423f194a
RD
611 return _windows.StatusBar_SetStatusText(*args, **kwargs)
612
613 def GetStatusText(*args, **kwargs):
d03fd34d 614 """GetStatusText(int number=0) -> String"""
423f194a
RD
615 return _windows.StatusBar_GetStatusText(*args, **kwargs)
616
617 def PushStatusText(*args, **kwargs):
d03fd34d 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
2f90df85 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)
2f90df85 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
2f90df85 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
fe763115 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
2f90df85 960
d14a1e28
RD
961class SplitterWindowPtr(SplitterWindow):
962 def __init__(self, this):
8ab979d7 963 self.this = this
d14a1e28
RD
964 if not hasattr(self,"thisown"): self.thisown = 0
965 self.__class__ = SplitterWindow
966_windows.SplitterWindow_swigregister(SplitterWindowPtr)
d03fd34d 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 )
d00d1b88 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,
d03fd34d 1085 String name=SashNameStr) -> SashWindow
41f1cec7 1086 """
d14a1e28
RD
1087 newobj = _windows.new_SashWindow(*args, **kwargs)
1088 self.this = newobj.this
8ab979d7 1089 self.thisown = 1
d14a1e28 1090 del newobj.thisown
0122b7e3 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,
d03fd34d 1097 String name=SashNameStr) -> bool
41f1cec7 1098 """
423f194a
RD
1099 return _windows.SashWindow_Create(*args, **kwargs)
1100
1101 def SetSashVisible(*args, **kwargs):
d03fd34d 1102 """SetSashVisible(int edge, bool sash)"""
423f194a
RD
1103 return _windows.SashWindow_SetSashVisible(*args, **kwargs)
1104
1105 def GetSashVisible(*args, **kwargs):
d03fd34d 1106 """GetSashVisible(int edge) -> bool"""
423f194a
RD
1107 return _windows.SashWindow_GetSashVisible(*args, **kwargs)
1108
1109 def SetSashBorder(*args, **kwargs):
d03fd34d 1110 """SetSashBorder(int edge, bool border)"""
423f194a
RD
1111 return _windows.SashWindow_SetSashBorder(*args, **kwargs)
1112
1113 def HasBorder(*args, **kwargs):
d03fd34d 1114 """HasBorder(int edge) -> bool"""
423f194a
RD
1115 return _windows.SashWindow_HasBorder(*args, **kwargs)
1116
1117 def GetEdgeMargin(*args, **kwargs):
d03fd34d 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):
d03fd34d 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
8ab979d7 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)
d03fd34d
RD
1184SashNameStr = cvar.SashNameStr
1185SashLayoutNameStr = cvar.SashLayoutNameStr
8ab979d7 1186
d14a1e28 1187def PreSashWindow(*args, **kwargs):
423f194a 1188 """PreSashWindow() -> SashWindow"""
d14a1e28 1189 val = _windows.new_PreSashWindow(*args, **kwargs)
09f3d4e6
RD
1190 val.thisown = 1
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):
d03fd34d 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):
d03fd34d 1205 """SetEdge(int edge)"""
423f194a
RD
1206 return _windows.SashEvent_SetEdge(*args, **kwargs)
1207
1208 def GetEdge(*args, **kwargs):
d03fd34d 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):
d03fd34d 1221 """SetDragStatus(int status)"""
423f194a
RD
1222 return _windows.SashEvent_SetDragStatus(*args, **kwargs)
1223
1224 def GetDragStatus(*args, **kwargs):
d03fd34d 1225 """GetDragStatus() -> int"""
423f194a
RD
1226 return _windows.SashEvent_GetDragStatus(*args, **kwargs)
1227
8ab979d7 1228
d14a1e28
RD
1229class SashEventPtr(SashEvent):
1230 def __init__(self, this):
8ab979d7 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):
d03fd34d 1289 """SetOrientation(int orient)"""
423f194a
RD
1290 return _windows.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs)
1291
1292 def GetOrientation(*args, **kwargs):
d03fd34d 1293 """GetOrientation() -> int"""
423f194a
RD
1294 return _windows.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs)
1295
1296 def SetAlignment(*args, **kwargs):
d03fd34d 1297 """SetAlignment(int align)"""
423f194a
RD
1298 return _windows.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs)
1299
1300 def GetAlignment(*args, **kwargs):
d03fd34d 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
8ab979d7 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)
8ab979d7 1344
d14a1e28
RD
1345EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO )
1346EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT )
8ab979d7 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,
d03fd34d 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,
d03fd34d 1367 String name=SashLayoutNameStr) -> bool
41f1cec7 1368 """
423f194a
RD
1369 return _windows.SashLayoutWindow_Create(*args, **kwargs)
1370
1371 def GetAlignment(*args, **kwargs):
d03fd34d 1372 """GetAlignment() -> int"""
423f194a
RD
1373 return _windows.SashLayoutWindow_GetAlignment(*args, **kwargs)
1374
1375 def GetOrientation(*args, **kwargs):
d03fd34d 1376 """GetOrientation() -> int"""
423f194a
RD
1377 return _windows.SashLayoutWindow_GetOrientation(*args, **kwargs)
1378
1379 def SetAlignment(*args, **kwargs):
d03fd34d 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):
d03fd34d 1388 """SetOrientation(int orientation)"""
423f194a
RD
1389 return _windows.SashLayoutWindow_SetOrientation(*args, **kwargs)
1390
8ab979d7 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)
09f3d4e6
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
d14a1e28
RD
1432
1433class LayoutAlgorithmPtr(LayoutAlgorithm):
1434 def __init__(self, this):
1435 self.this = this
1436 if not hasattr(self,"thisown"): self.thisown = 0
1437 self.__class__ = LayoutAlgorithm
1438_windows.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr)
1439
1440#---------------------------------------------------------------------------
1441
1442class PopupWindow(core.Window):
423f194a
RD
1443 def __repr__(self):
1444 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1445 def __init__(self, *args, **kwargs):
1446 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
d14a1e28
RD
1447 newobj = _windows.new_PopupWindow(*args, **kwargs)
1448 self.this = newobj.this
1449 self.thisown = 1
1450 del newobj.thisown
1451 self._setOORInfo(self)
423f194a
RD
1452
1453 def Create(*args, **kwargs):
1454 """Create(Window parent, int flags=BORDER_NONE) -> bool"""
1455 return _windows.PopupWindow_Create(*args, **kwargs)
1456
1457 def Position(*args, **kwargs):
1458 """Position(Point ptOrigin, Size size)"""
1459 return _windows.PopupWindow_Position(*args, **kwargs)
1460
8ab979d7 1461
d14a1e28
RD
1462class PopupWindowPtr(PopupWindow):
1463 def __init__(self, this):
8ab979d7 1464 self.this = this
d14a1e28
RD
1465 if not hasattr(self,"thisown"): self.thisown = 0
1466 self.__class__ = PopupWindow
1467_windows.PopupWindow_swigregister(PopupWindowPtr)
1468
1469def PrePopupWindow(*args, **kwargs):
423f194a 1470 """PrePopupWindow() -> PopupWindow"""
d14a1e28
RD
1471 val = _windows.new_PrePopupWindow(*args, **kwargs)
1472 val.thisown = 1
1473 return val
1474
1475#---------------------------------------------------------------------------
1476
1477class PopupTransientWindow(PopupWindow):
423f194a
RD
1478 def __repr__(self):
1479 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1480 def __init__(self, *args, **kwargs):
423f194a 1481 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
d14a1e28
RD
1482 newobj = _windows.new_PopupTransientWindow(*args, **kwargs)
1483 self.this = newobj.this
1484 self.thisown = 1
1485 del newobj.thisown
1486 self._setOORInfo(self);self._setCallbackInfo(self, PopupTransientWindow)
423f194a
RD
1487
1488 def _setCallbackInfo(*args, **kwargs):
1489 """_setCallbackInfo(PyObject self, PyObject _class)"""
1490 return _windows.PopupTransientWindow__setCallbackInfo(*args, **kwargs)
1491
1492 def Popup(*args, **kwargs):
1493 """Popup(Window focus=None)"""
1494 return _windows.PopupTransientWindow_Popup(*args, **kwargs)
1495
1496 def Dismiss(*args, **kwargs):
1497 """Dismiss()"""
1498 return _windows.PopupTransientWindow_Dismiss(*args, **kwargs)
1499
d14a1e28
RD
1500
1501class PopupTransientWindowPtr(PopupTransientWindow):
1502 def __init__(self, this):
1503 self.this = this
1504 if not hasattr(self,"thisown"): self.thisown = 0
1505 self.__class__ = PopupTransientWindow
1506_windows.PopupTransientWindow_swigregister(PopupTransientWindowPtr)
1507
1508def PrePopupTransientWindow(*args, **kwargs):
423f194a 1509 """PrePopupTransientWindow() -> PopupTransientWindow"""
d14a1e28
RD
1510 val = _windows.new_PrePopupTransientWindow(*args, **kwargs)
1511 val.thisown = 1
1512 return val
1513
1514#---------------------------------------------------------------------------
1515
1516class TipWindow(PopupTransientWindow):
423f194a
RD
1517 def __repr__(self):
1518 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1519 def __init__(self, *args, **kwargs):
d03fd34d 1520 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
d14a1e28
RD
1521 newobj = _windows.new_TipWindow(*args, **kwargs)
1522 self.this = newobj.this
8ab979d7 1523 self.thisown = 1
d14a1e28 1524 del newobj.thisown
0122b7e3 1525 self._setOORInfo(self)
423f194a
RD
1526
1527 def SetBoundingRect(*args, **kwargs):
1528 """SetBoundingRect(Rect rectBound)"""
1529 return _windows.TipWindow_SetBoundingRect(*args, **kwargs)
1530
1531 def Close(*args, **kwargs):
1532 """Close()"""
1533 return _windows.TipWindow_Close(*args, **kwargs)
1534
8ab979d7 1535
d14a1e28
RD
1536class TipWindowPtr(TipWindow):
1537 def __init__(self, this):
1538 self.this = this
1539 if not hasattr(self,"thisown"): self.thisown = 0
1540 self.__class__ = TipWindow
1541_windows.TipWindow_swigregister(TipWindowPtr)
8ab979d7 1542
d14a1e28 1543#---------------------------------------------------------------------------
8ab979d7 1544
d14a1e28 1545class VScrolledWindow(Panel):
423f194a
RD
1546 def __repr__(self):
1547 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1548 def __init__(self, *args, **kwargs):
41f1cec7
RD
1549 """
1550 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
d03fd34d 1551 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
41f1cec7 1552 """
d14a1e28
RD
1553 newobj = _windows.new_VScrolledWindow(*args, **kwargs)
1554 self.this = newobj.this
1555 self.thisown = 1
1556 del newobj.thisown
1557 self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow)
423f194a
RD
1558
1559 def _setCallbackInfo(*args, **kwargs):
1560 """_setCallbackInfo(PyObject self, PyObject _class)"""
1561 return _windows.VScrolledWindow__setCallbackInfo(*args, **kwargs)
1562
1563 def Create(*args, **kwargs):
41f1cec7
RD
1564 """
1565 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
d03fd34d 1566 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
41f1cec7 1567 """
423f194a
RD
1568 return _windows.VScrolledWindow_Create(*args, **kwargs)
1569
1570 def SetLineCount(*args, **kwargs):
1571 """SetLineCount(size_t count)"""
1572 return _windows.VScrolledWindow_SetLineCount(*args, **kwargs)
1573
1574 def ScrollToLine(*args, **kwargs):
1575 """ScrollToLine(size_t line) -> bool"""
1576 return _windows.VScrolledWindow_ScrollToLine(*args, **kwargs)
1577
1578 def ScrollLines(*args, **kwargs):
fe763115
RD
1579 """
1580 ScrollLines(int lines) -> bool
1581
1582 If the platform and window class supports it, scrolls the window by
1583 the given number of lines down, if lines is positive, or up if lines
1584 is negative. Returns True if the window was scrolled, False if it was
1585 already on top/bottom and nothing was done.
1586 """
423f194a
RD
1587 return _windows.VScrolledWindow_ScrollLines(*args, **kwargs)
1588
1589 def ScrollPages(*args, **kwargs):
fe763115
RD
1590 """
1591 ScrollPages(int pages) -> bool
1592
1593 If the platform and window class supports it, scrolls the window by
1594 the given number of pages down, if pages is positive, or up if pages
1595 is negative. Returns True if the window was scrolled, False if it was
1596 already on top/bottom and nothing was done.
1597 """
423f194a
RD
1598 return _windows.VScrolledWindow_ScrollPages(*args, **kwargs)
1599
1600 def RefreshLine(*args, **kwargs):
1601 """RefreshLine(size_t line)"""
1602 return _windows.VScrolledWindow_RefreshLine(*args, **kwargs)
1603
1604 def RefreshLines(*args, **kwargs):
1605 """RefreshLines(size_t from, size_t to)"""
1606 return _windows.VScrolledWindow_RefreshLines(*args, **kwargs)
1607
1608 def HitTestXT(*args, **kwargs):
fe763115
RD
1609 """
1610 HitTestXT(int x, int y) -> int
1611
1612 Test where the given (in client coords) point lies
1613 """
423f194a
RD
1614 return _windows.VScrolledWindow_HitTestXT(*args, **kwargs)
1615
1616 def HitTest(*args, **kwargs):
fe763115
RD
1617 """
1618 HitTest(Point pt) -> int
1619
1620 Test where the given (in client coords) point lies
1621 """
423f194a
RD
1622 return _windows.VScrolledWindow_HitTest(*args, **kwargs)
1623
1624 def RefreshAll(*args, **kwargs):
1625 """RefreshAll()"""
1626 return _windows.VScrolledWindow_RefreshAll(*args, **kwargs)
1627
1628 def GetLineCount(*args, **kwargs):
1629 """GetLineCount() -> size_t"""
1630 return _windows.VScrolledWindow_GetLineCount(*args, **kwargs)
1631
1632 def GetFirstVisibleLine(*args, **kwargs):
1633 """GetFirstVisibleLine() -> size_t"""
1634 return _windows.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs)
1635
1636 def GetLastVisibleLine(*args, **kwargs):
1637 """GetLastVisibleLine() -> size_t"""
1638 return _windows.VScrolledWindow_GetLastVisibleLine(*args, **kwargs)
1639
1640 def IsVisible(*args, **kwargs):
1641 """IsVisible(size_t line) -> bool"""
1642 return _windows.VScrolledWindow_IsVisible(*args, **kwargs)
1643
d14a1e28
RD
1644
1645class VScrolledWindowPtr(VScrolledWindow):
1646 def __init__(self, this):
1647 self.this = this
1648 if not hasattr(self,"thisown"): self.thisown = 0
1649 self.__class__ = VScrolledWindow
1650_windows.VScrolledWindow_swigregister(VScrolledWindowPtr)
1651
1652def PreVScrolledWindow(*args, **kwargs):
423f194a 1653 """PreVScrolledWindow() -> VScrolledWindow"""
d14a1e28 1654 val = _windows.new_PreVScrolledWindow(*args, **kwargs)
09f3d4e6
RD
1655 val.thisown = 1
1656 return val
1657
d14a1e28 1658class VListBox(VScrolledWindow):
423f194a
RD
1659 def __repr__(self):
1660 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1661 def __init__(self, *args, **kwargs):
41f1cec7
RD
1662 """
1663 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
d03fd34d 1664 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
41f1cec7 1665 """
d14a1e28
RD
1666 newobj = _windows.new_VListBox(*args, **kwargs)
1667 self.this = newobj.this
1668 self.thisown = 1
1669 del newobj.thisown
1670 self._setOORInfo(self);self._setCallbackInfo(self, VListBox)
423f194a
RD
1671
1672 def _setCallbackInfo(*args, **kwargs):
1673 """_setCallbackInfo(PyObject self, PyObject _class)"""
1674 return _windows.VListBox__setCallbackInfo(*args, **kwargs)
1675
1676 def Create(*args, **kwargs):
41f1cec7
RD
1677 """
1678 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
d03fd34d 1679 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
41f1cec7 1680 """
423f194a
RD
1681 return _windows.VListBox_Create(*args, **kwargs)
1682
1683 def GetItemCount(*args, **kwargs):
1684 """GetItemCount() -> size_t"""
1685 return _windows.VListBox_GetItemCount(*args, **kwargs)
1686
1687 def HasMultipleSelection(*args, **kwargs):
1688 """HasMultipleSelection() -> bool"""
1689 return _windows.VListBox_HasMultipleSelection(*args, **kwargs)
1690
1691 def GetSelection(*args, **kwargs):
1692 """GetSelection() -> int"""
1693 return _windows.VListBox_GetSelection(*args, **kwargs)
1694
1695 def IsCurrent(*args, **kwargs):
1696 """IsCurrent(size_t item) -> bool"""
1697 return _windows.VListBox_IsCurrent(*args, **kwargs)
1698
1699 def IsSelected(*args, **kwargs):
1700 """IsSelected(size_t item) -> bool"""
1701 return _windows.VListBox_IsSelected(*args, **kwargs)
1702
1703 def GetSelectedCount(*args, **kwargs):
1704 """GetSelectedCount() -> size_t"""
1705 return _windows.VListBox_GetSelectedCount(*args, **kwargs)
1706
1707 def GetFirstSelected(*args, **kwargs):
1708 """GetFirstSelected(unsigned long cookie) -> int"""
1709 return _windows.VListBox_GetFirstSelected(*args, **kwargs)
1710
1711 def GetNextSelected(*args, **kwargs):
1712 """GetNextSelected(unsigned long cookie) -> int"""
1713 return _windows.VListBox_GetNextSelected(*args, **kwargs)
1714
1715 def GetMargins(*args, **kwargs):
1716 """GetMargins() -> Point"""
1717 return _windows.VListBox_GetMargins(*args, **kwargs)
1718
1719 def GetSelectionBackground(*args, **kwargs):
d03fd34d 1720 """GetSelectionBackground() -> Colour"""
423f194a
RD
1721 return _windows.VListBox_GetSelectionBackground(*args, **kwargs)
1722
1723 def SetItemCount(*args, **kwargs):
1724 """SetItemCount(size_t count)"""
1725 return _windows.VListBox_SetItemCount(*args, **kwargs)
1726
1727 def Clear(*args, **kwargs):
1728 """Clear()"""
1729 return _windows.VListBox_Clear(*args, **kwargs)
1730
1731 def SetSelection(*args, **kwargs):
1732 """SetSelection(int selection)"""
1733 return _windows.VListBox_SetSelection(*args, **kwargs)
1734
1735 def Select(*args, **kwargs):
1736 """Select(size_t item, bool select=True) -> bool"""
1737 return _windows.VListBox_Select(*args, **kwargs)
1738
1739 def SelectRange(*args, **kwargs):
1740 """SelectRange(size_t from, size_t to) -> bool"""
1741 return _windows.VListBox_SelectRange(*args, **kwargs)
1742
1743 def Toggle(*args, **kwargs):
1744 """Toggle(size_t item)"""
1745 return _windows.VListBox_Toggle(*args, **kwargs)
1746
1747 def SelectAll(*args, **kwargs):
1748 """SelectAll() -> bool"""
1749 return _windows.VListBox_SelectAll(*args, **kwargs)
1750
1751 def DeselectAll(*args, **kwargs):
1752 """DeselectAll() -> bool"""
1753 return _windows.VListBox_DeselectAll(*args, **kwargs)
1754
1755 def SetMargins(*args, **kwargs):
1756 """SetMargins(Point pt)"""
1757 return _windows.VListBox_SetMargins(*args, **kwargs)
1758
1759 def SetMarginsXY(*args, **kwargs):
1760 """SetMarginsXY(int x, int y)"""
1761 return _windows.VListBox_SetMarginsXY(*args, **kwargs)
1762
1763 def SetSelectionBackground(*args, **kwargs):
d03fd34d 1764 """SetSelectionBackground(Colour col)"""
423f194a
RD
1765 return _windows.VListBox_SetSelectionBackground(*args, **kwargs)
1766
8ab979d7 1767
d14a1e28
RD
1768class VListBoxPtr(VListBox):
1769 def __init__(self, this):
8ab979d7 1770 self.this = this
d14a1e28
RD
1771 if not hasattr(self,"thisown"): self.thisown = 0
1772 self.__class__ = VListBox
1773_windows.VListBox_swigregister(VListBoxPtr)
d03fd34d 1774VListBoxNameStr = cvar.VListBoxNameStr
d14a1e28
RD
1775
1776def PreVListBox(*args, **kwargs):
423f194a 1777 """PreVListBox() -> VListBox"""
d14a1e28
RD
1778 val = _windows.new_PreVListBox(*args, **kwargs)
1779 val.thisown = 1
1780 return val
1781
1782class HtmlListBox(VListBox):
423f194a
RD
1783 def __repr__(self):
1784 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1785 def __init__(self, *args, **kwargs):
41f1cec7
RD
1786 """
1787 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
d03fd34d 1788 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
41f1cec7 1789 """
d14a1e28
RD
1790 newobj = _windows.new_HtmlListBox(*args, **kwargs)
1791 self.this = newobj.this
1792 self.thisown = 1
1793 del newobj.thisown
1794 self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox)
423f194a
RD
1795
1796 def _setCallbackInfo(*args, **kwargs):
1797 """_setCallbackInfo(PyObject self, PyObject _class)"""
1798 return _windows.HtmlListBox__setCallbackInfo(*args, **kwargs)
1799
1800 def Create(*args, **kwargs):
41f1cec7
RD
1801 """
1802 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
d03fd34d 1803 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
41f1cec7 1804 """
423f194a
RD
1805 return _windows.HtmlListBox_Create(*args, **kwargs)
1806
1807 def RefreshAll(*args, **kwargs):
1808 """RefreshAll()"""
1809 return _windows.HtmlListBox_RefreshAll(*args, **kwargs)
1810
1811 def SetItemCount(*args, **kwargs):
1812 """SetItemCount(size_t count)"""
1813 return _windows.HtmlListBox_SetItemCount(*args, **kwargs)
1814
d14a1e28
RD
1815
1816class HtmlListBoxPtr(HtmlListBox):
1817 def __init__(self, this):
1818 self.this = this
1819 if not hasattr(self,"thisown"): self.thisown = 0
1820 self.__class__ = HtmlListBox
1821_windows.HtmlListBox_swigregister(HtmlListBoxPtr)
1822
1823def PreHtmlListBox(*args, **kwargs):
423f194a 1824 """PreHtmlListBox() -> HtmlListBox"""
d14a1e28
RD
1825 val = _windows.new_PreHtmlListBox(*args, **kwargs)
1826 val.thisown = 1
1827 return val
1828
1829#---------------------------------------------------------------------------
1830
1831class TaskBarIcon(core.EvtHandler):
423f194a
RD
1832 def __repr__(self):
1833 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1834 def __init__(self, *args, **kwargs):
423f194a 1835 """__init__() -> TaskBarIcon"""
d14a1e28
RD
1836 newobj = _windows.new_TaskBarIcon(*args, **kwargs)
1837 self.this = newobj.this
8ab979d7 1838 self.thisown = 1
d14a1e28
RD
1839 del newobj.thisown
1840 def __del__(self, destroy=_windows.delete_TaskBarIcon):
423f194a 1841 """__del__()"""
d14a1e28
RD
1842 try:
1843 if self.thisown: destroy(self)
1844 except: pass
423f194a
RD
1845
1846 def IsOk(*args, **kwargs):
1847 """IsOk() -> bool"""
1848 return _windows.TaskBarIcon_IsOk(*args, **kwargs)
1849
fe763115 1850 def __nonzero__(self): return self.IsOk()
423f194a
RD
1851 def IsIconInstalled(*args, **kwargs):
1852 """IsIconInstalled() -> bool"""
1853 return _windows.TaskBarIcon_IsIconInstalled(*args, **kwargs)
1854
1855 def SetIcon(*args, **kwargs):
d03fd34d 1856 """SetIcon(Icon icon, String tooltip=EmptyString) -> bool"""
423f194a
RD
1857 return _windows.TaskBarIcon_SetIcon(*args, **kwargs)
1858
1859 def RemoveIcon(*args, **kwargs):
8edf1c75 1860 """RemoveIcon() -> bool"""
423f194a
RD
1861 return _windows.TaskBarIcon_RemoveIcon(*args, **kwargs)
1862
1863 def PopupMenu(*args, **kwargs):
1864 """PopupMenu(Menu menu) -> bool"""
1865 return _windows.TaskBarIcon_PopupMenu(*args, **kwargs)
1866
8ab979d7 1867
d14a1e28
RD
1868class TaskBarIconPtr(TaskBarIcon):
1869 def __init__(self, this):
1870 self.this = this
1871 if not hasattr(self,"thisown"): self.thisown = 0
1872 self.__class__ = TaskBarIcon
1873_windows.TaskBarIcon_swigregister(TaskBarIconPtr)
1874
1875class TaskBarIconEvent(core.Event):
423f194a
RD
1876 def __repr__(self):
1877 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1878 def __init__(self, *args, **kwargs):
423f194a 1879 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
d14a1e28
RD
1880 newobj = _windows.new_TaskBarIconEvent(*args, **kwargs)
1881 self.this = newobj.this
1882 self.thisown = 1
1883 del newobj.thisown
8ab979d7 1884
d14a1e28
RD
1885class TaskBarIconEventPtr(TaskBarIconEvent):
1886 def __init__(self, this):
1887 self.this = this
1888 if not hasattr(self,"thisown"): self.thisown = 0
1889 self.__class__ = TaskBarIconEvent
1890_windows.TaskBarIconEvent_swigregister(TaskBarIconEventPtr)
1891
1892wxEVT_TASKBAR_MOVE = _windows.wxEVT_TASKBAR_MOVE
1893wxEVT_TASKBAR_LEFT_DOWN = _windows.wxEVT_TASKBAR_LEFT_DOWN
1894wxEVT_TASKBAR_LEFT_UP = _windows.wxEVT_TASKBAR_LEFT_UP
1895wxEVT_TASKBAR_RIGHT_DOWN = _windows.wxEVT_TASKBAR_RIGHT_DOWN
1896wxEVT_TASKBAR_RIGHT_UP = _windows.wxEVT_TASKBAR_RIGHT_UP
1897wxEVT_TASKBAR_LEFT_DCLICK = _windows.wxEVT_TASKBAR_LEFT_DCLICK
1898wxEVT_TASKBAR_RIGHT_DCLICK = _windows.wxEVT_TASKBAR_RIGHT_DCLICK
1899EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE )
1900EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN )
1901EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP )
1902EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN )
1903EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP )
1904EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK )
1905EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK )
1906
1907#---------------------------------------------------------------------------
1908
1909class ColourData(core.Object):
1f05e33b 1910 """This class holds a variety of information related to colour dialogs."""
423f194a
RD
1911 def __repr__(self):
1912 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1913 def __init__(self, *args, **kwargs):
1f05e33b
RD
1914 """
1915 __init__() -> ColourData
1916
1917 Constructor, sets default values.
1918 """
d14a1e28
RD
1919 newobj = _windows.new_ColourData(*args, **kwargs)
1920 self.this = newobj.this
1921 self.thisown = 1
1922 del newobj.thisown
1923 def __del__(self, destroy=_windows.delete_ColourData):
423f194a 1924 """__del__()"""
d14a1e28
RD
1925 try:
1926 if self.thisown: destroy(self)
1927 except: pass
423f194a
RD
1928
1929 def GetChooseFull(*args, **kwargs):
1f05e33b
RD
1930 """
1931 GetChooseFull() -> bool
1932
1933 Under Windows, determines whether the Windows colour dialog will display
1934 the full dialog with custom colour selection controls. Has no meaning
1935 under other platforms. The default value is true.
1936 """
423f194a
RD
1937 return _windows.ColourData_GetChooseFull(*args, **kwargs)
1938
1939 def GetColour(*args, **kwargs):
1f05e33b
RD
1940 """
1941 GetColour() -> Colour
1942
1943 Gets the colour (pre)selected by the dialog.
1944 """
423f194a
RD
1945 return _windows.ColourData_GetColour(*args, **kwargs)
1946
1947 def GetCustomColour(*args, **kwargs):
1f05e33b
RD
1948 """
1949 GetCustomColour(int i) -> Colour
1950
1951 Gets the i'th custom colour associated with the colour dialog. i should
1952 be an integer between 0 and 15. The default custom colours are all white.
1953 """
423f194a
RD
1954 return _windows.ColourData_GetCustomColour(*args, **kwargs)
1955
1956 def SetChooseFull(*args, **kwargs):
1f05e33b
RD
1957 """
1958 SetChooseFull(int flag)
1959
1960 Under Windows, tells the Windows colour dialog to display the full dialog
1961 with custom colour selection controls. Under other platforms, has no effect.
1962 The default value is true.
1963 """
423f194a
RD
1964 return _windows.ColourData_SetChooseFull(*args, **kwargs)
1965
1966 def SetColour(*args, **kwargs):
1f05e33b
RD
1967 """
1968 SetColour(Colour colour)
1969
1970 Sets the default colour for the colour dialog. The default colour is black.
1971 """
423f194a
RD
1972 return _windows.ColourData_SetColour(*args, **kwargs)
1973
1974 def SetCustomColour(*args, **kwargs):
1f05e33b
RD
1975 """
1976 SetCustomColour(int i, Colour colour)
1977
1978 Sets the i'th custom colour for the colour dialog. i should be an integer
1979 between 0 and 15. The default custom colours are all white.
1980 """
423f194a
RD
1981 return _windows.ColourData_SetCustomColour(*args, **kwargs)
1982
8ab979d7 1983
d14a1e28
RD
1984class ColourDataPtr(ColourData):
1985 def __init__(self, this):
1986 self.this = this
1987 if not hasattr(self,"thisown"): self.thisown = 0
1988 self.__class__ = ColourData
1989_windows.ColourData_swigregister(ColourDataPtr)
d03fd34d
RD
1990FileSelectorPromptStr = cvar.FileSelectorPromptStr
1991DirSelectorPromptStr = cvar.DirSelectorPromptStr
1992DirDialogNameStr = cvar.DirDialogNameStr
1993FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
1994GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr
1995MessageBoxCaptionStr = cvar.MessageBoxCaptionStr
d14a1e28
RD
1996
1997class ColourDialog(Dialog):
1f05e33b 1998 """This class represents the colour chooser dialog."""
423f194a
RD
1999 def __repr__(self):
2000 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2001 def __init__(self, *args, **kwargs):
1f05e33b
RD
2002 """
2003 __init__(Window parent, ColourData data=None) -> ColourDialog
2004
2005 Constructor. Pass a parent window, and optionally a ColourData, which
2006 will be copied to the colour dialog's internal ColourData instance.
2007 """
d14a1e28
RD
2008 newobj = _windows.new_ColourDialog(*args, **kwargs)
2009 self.this = newobj.this
2010 self.thisown = 1
2011 del newobj.thisown
2012 self._setOORInfo(self)
423f194a
RD
2013
2014 def GetColourData(*args, **kwargs):
1f05e33b
RD
2015 """
2016 GetColourData() -> ColourData
423f194a 2017
1f05e33b
RD
2018 Returns a reference to the ColourData used by the dialog.
2019 """
2020 return _windows.ColourDialog_GetColourData(*args, **kwargs)
423f194a 2021
8ab979d7 2022
d14a1e28
RD
2023class ColourDialogPtr(ColourDialog):
2024 def __init__(self, this):
8ab979d7 2025 self.this = this
d14a1e28
RD
2026 if not hasattr(self,"thisown"): self.thisown = 0
2027 self.__class__ = ColourDialog
2028_windows.ColourDialog_swigregister(ColourDialogPtr)
2029
2030class DirDialog(Dialog):
1f05e33b 2031 """This class represents the directory chooser dialog."""
423f194a
RD
2032 def __repr__(self):
2033 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2034 def __init__(self, *args, **kwargs):
41f1cec7 2035 """
d03fd34d
RD
2036 __init__(Window parent, String message=DirSelectorPromptStr,
2037 String defaultPath=EmptyString, long style=0,
2038 Point pos=DefaultPosition, Size size=DefaultSize,
2039 String name=DirDialogNameStr) -> DirDialog
1f05e33b
RD
2040
2041 Constructor. Use ShowModal method to show the dialog.
41f1cec7 2042 """
d14a1e28
RD
2043 newobj = _windows.new_DirDialog(*args, **kwargs)
2044 self.this = newobj.this
2045 self.thisown = 1
2046 del newobj.thisown
2047 self._setOORInfo(self)
423f194a
RD
2048
2049 def GetPath(*args, **kwargs):
1f05e33b
RD
2050 """
2051 GetPath() -> String
2052
2053 Returns the default or user-selected path.
2054 """
423f194a
RD
2055 return _windows.DirDialog_GetPath(*args, **kwargs)
2056
2057 def GetMessage(*args, **kwargs):
1f05e33b
RD
2058 """
2059 GetMessage() -> String
2060
2061 Returns the message that will be displayed on the dialog.
2062 """
423f194a
RD
2063 return _windows.DirDialog_GetMessage(*args, **kwargs)
2064
2065 def GetStyle(*args, **kwargs):
1f05e33b
RD
2066 """
2067 GetStyle() -> long
2068
2069 Returns the dialog style.
2070 """
423f194a
RD
2071 return _windows.DirDialog_GetStyle(*args, **kwargs)
2072
2073 def SetMessage(*args, **kwargs):
1f05e33b
RD
2074 """
2075 SetMessage(String message)
2076
2077 Sets the message that will be displayed on the dialog.
2078 """
423f194a
RD
2079 return _windows.DirDialog_SetMessage(*args, **kwargs)
2080
2081 def SetPath(*args, **kwargs):
1f05e33b
RD
2082 """
2083 SetPath(String path)
423f194a 2084
1f05e33b
RD
2085 Sets the default path.
2086 """
2087 return _windows.DirDialog_SetPath(*args, **kwargs)
423f194a 2088
d14a1e28
RD
2089
2090class DirDialogPtr(DirDialog):
2091 def __init__(self, this):
2092 self.this = this
2093 if not hasattr(self,"thisown"): self.thisown = 0
2094 self.__class__ = DirDialog
2095_windows.DirDialog_swigregister(DirDialogPtr)
2096
2097class FileDialog(Dialog):
1f05e33b 2098 """This class represents the file chooser dialog."""
423f194a
RD
2099 def __repr__(self):
2100 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2101 def __init__(self, *args, **kwargs):
41f1cec7 2102 """
d03fd34d
RD
2103 __init__(Window parent, String message=FileSelectorPromptStr,
2104 String defaultDir=EmptyString, String defaultFile=EmptyString,
2105 String wildcard=FileSelectorDefaultWildcardStr,
2106 long style=0, Point pos=DefaultPosition) -> FileDialog
1f05e33b
RD
2107
2108 Constructor. Use ShowModal method to show the dialog.
41f1cec7 2109 """
d14a1e28
RD
2110 newobj = _windows.new_FileDialog(*args, **kwargs)
2111 self.this = newobj.this
8ab979d7 2112 self.thisown = 1
d14a1e28 2113 del newobj.thisown
0122b7e3 2114 self._setOORInfo(self)
423f194a
RD
2115
2116 def SetMessage(*args, **kwargs):
1f05e33b
RD
2117 """
2118 SetMessage(String message)
2119
2120 Sets the message that will be displayed on the dialog.
2121 """
423f194a
RD
2122 return _windows.FileDialog_SetMessage(*args, **kwargs)
2123
2124 def SetPath(*args, **kwargs):
1f05e33b
RD
2125 """
2126 SetPath(String path)
2127
2128 Sets the path (the combined directory and filename that will
2129 be returned when the dialog is dismissed).
2130 """
423f194a
RD
2131 return _windows.FileDialog_SetPath(*args, **kwargs)
2132
2133 def SetDirectory(*args, **kwargs):
1f05e33b
RD
2134 """
2135 SetDirectory(String dir)
2136
2137 Sets the default directory.
2138 """
423f194a
RD
2139 return _windows.FileDialog_SetDirectory(*args, **kwargs)
2140
2141 def SetFilename(*args, **kwargs):
1f05e33b
RD
2142 """
2143 SetFilename(String name)
2144
2145 Sets the default filename.
2146 """
423f194a
RD
2147 return _windows.FileDialog_SetFilename(*args, **kwargs)
2148
2149 def SetWildcard(*args, **kwargs):
1f05e33b
RD
2150 """
2151 SetWildcard(String wildCard)
2152
2153 Sets the wildcard, which can contain multiple file types, for example:
2154 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2155 """
423f194a
RD
2156 return _windows.FileDialog_SetWildcard(*args, **kwargs)
2157
2158 def SetStyle(*args, **kwargs):
1f05e33b
RD
2159 """
2160 SetStyle(long style)
2161
2162 Sets the dialog style.
2163 """
423f194a
RD
2164 return _windows.FileDialog_SetStyle(*args, **kwargs)
2165
2166 def SetFilterIndex(*args, **kwargs):
1f05e33b
RD
2167 """
2168 SetFilterIndex(int filterIndex)
2169
2170 Sets the default filter index, starting from zero.
2171 """
423f194a
RD
2172 return _windows.FileDialog_SetFilterIndex(*args, **kwargs)
2173
2174 def GetMessage(*args, **kwargs):
1f05e33b
RD
2175 """
2176 GetMessage() -> String
2177
2178 Returns the message that will be displayed on the dialog.
2179 """
423f194a
RD
2180 return _windows.FileDialog_GetMessage(*args, **kwargs)
2181
2182 def GetPath(*args, **kwargs):
1f05e33b
RD
2183 """
2184 GetPath() -> String
2185
2186 Returns the full path (directory and filename) of the selected file.
2187 """
423f194a
RD
2188 return _windows.FileDialog_GetPath(*args, **kwargs)
2189
2190 def GetDirectory(*args, **kwargs):
1f05e33b
RD
2191 """
2192 GetDirectory() -> String
2193
2194 Returns the default directory.
2195 """
423f194a
RD
2196 return _windows.FileDialog_GetDirectory(*args, **kwargs)
2197
2198 def GetFilename(*args, **kwargs):
1f05e33b
RD
2199 """
2200 GetFilename() -> String
2201
2202 Returns the default filename.
2203 """
423f194a
RD
2204 return _windows.FileDialog_GetFilename(*args, **kwargs)
2205
2206 def GetWildcard(*args, **kwargs):
1f05e33b
RD
2207 """
2208 GetWildcard() -> String
2209
2210 Returns the file dialog wildcard.
2211 """
423f194a
RD
2212 return _windows.FileDialog_GetWildcard(*args, **kwargs)
2213
2214 def GetStyle(*args, **kwargs):
1f05e33b
RD
2215 """
2216 GetStyle() -> long
2217
2218 Returns the dialog style.
2219 """
423f194a
RD
2220 return _windows.FileDialog_GetStyle(*args, **kwargs)
2221
2222 def GetFilterIndex(*args, **kwargs):
1f05e33b
RD
2223 """
2224 GetFilterIndex() -> int
2225
2226 Returns the index into the list of filters supplied, optionally, in
2227 the wildcard parameter. Before the dialog is shown, this is the index
2228 which will be used when the dialog is first displayed. After the dialog
2229 is shown, this is the index selected by the user.
2230 """
423f194a
RD
2231 return _windows.FileDialog_GetFilterIndex(*args, **kwargs)
2232
2233 def GetFilenames(*args, **kwargs):
1f05e33b
RD
2234 """
2235 GetFilenames() -> PyObject
2236
2237 Returns a list of filenames chosen in the dialog. This function should
2238 only be used with the dialogs which have wx.MULTIPLE style, use
2239 GetFilename for the others.
2240 """
423f194a
RD
2241 return _windows.FileDialog_GetFilenames(*args, **kwargs)
2242
2243 def GetPaths(*args, **kwargs):
1f05e33b
RD
2244 """
2245 GetPaths() -> PyObject
2246
2247 Fills the array paths with the full paths of the files chosen. This
2248 function should only be used with the dialogs which have wx.MULTIPLE style,
2249 use GetPath for the others.
2250 """
423f194a
RD
2251 return _windows.FileDialog_GetPaths(*args, **kwargs)
2252
8ab979d7 2253
d14a1e28
RD
2254class FileDialogPtr(FileDialog):
2255 def __init__(self, this):
2256 self.this = this
2257 if not hasattr(self,"thisown"): self.thisown = 0
2258 self.__class__ = FileDialog
2259_windows.FileDialog_swigregister(FileDialogPtr)
2260
2261CHOICEDLG_STYLE = _windows.CHOICEDLG_STYLE
2262class MultiChoiceDialog(Dialog):
328fcd84 2263 """A simple dialog with a multi selection listbox."""
423f194a
RD
2264 def __repr__(self):
2265 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2266 def __init__(self, *args, **kwargs):
41f1cec7 2267 """
328fcd84
RD
2268 __init__(Window parent, String message, String caption,
2269 List choices=[], long style=CHOICEDLG_STYLE,
41f1cec7 2270 Point pos=DefaultPosition) -> MultiChoiceDialog
328fcd84
RD
2271
2272 Constructor. Use ShowModal method to show the dialog.
41f1cec7 2273 """
d14a1e28
RD
2274 newobj = _windows.new_MultiChoiceDialog(*args, **kwargs)
2275 self.this = newobj.this
2276 self.thisown = 1
2277 del newobj.thisown
2278 self._setOORInfo(self)
423f194a
RD
2279
2280 def SetSelections(*args, **kwargs):
328fcd84
RD
2281 """
2282 SetSelections(List selections)
2283
2284 Specify the items in the list that shoudl be selected, using a list of integers.
2285 """
423f194a
RD
2286 return _windows.MultiChoiceDialog_SetSelections(*args, **kwargs)
2287
2288 def GetSelections(*args, **kwargs):
328fcd84
RD
2289 """
2290 GetSelections() -> [selections]
2291
2292 Returns a list of integers representing the items that are selected.
2293 """
423f194a
RD
2294 return _windows.MultiChoiceDialog_GetSelections(*args, **kwargs)
2295
8ab979d7 2296
d14a1e28
RD
2297class MultiChoiceDialogPtr(MultiChoiceDialog):
2298 def __init__(self, this):
2299 self.this = this
2300 if not hasattr(self,"thisown"): self.thisown = 0
2301 self.__class__ = MultiChoiceDialog
2302_windows.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr)
2303
2304class SingleChoiceDialog(Dialog):
328fcd84 2305 """A simple dialog with a single selection listbox."""
423f194a
RD
2306 def __repr__(self):
2307 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2308 def __init__(self, *args, **kwargs):
41f1cec7 2309 """
328fcd84
RD
2310 __init__(Window parent, String message, String caption,
2311 List choices=[], long style=CHOICEDLG_STYLE,
41f1cec7 2312 Point pos=DefaultPosition) -> SingleChoiceDialog
328fcd84
RD
2313
2314 Constructor. Use ShowModal method to show the dialog.
41f1cec7 2315 """
d14a1e28
RD
2316 newobj = _windows.new_SingleChoiceDialog(*args, **kwargs)
2317 self.this = newobj.this
2318 self.thisown = 1
2319 del newobj.thisown
2320 self._setOORInfo(self)
423f194a
RD
2321
2322 def GetSelection(*args, **kwargs):
328fcd84
RD
2323 """
2324 GetSelection() -> int
2325
2326 Get the index of teh currently selected item.
2327 """
423f194a
RD
2328 return _windows.SingleChoiceDialog_GetSelection(*args, **kwargs)
2329
2330 def GetStringSelection(*args, **kwargs):
328fcd84
RD
2331 """
2332 GetStringSelection() -> String
2333
2334 Returns the string value of the currently selected item
2335 """
423f194a
RD
2336 return _windows.SingleChoiceDialog_GetStringSelection(*args, **kwargs)
2337
2338 def SetSelection(*args, **kwargs):
328fcd84
RD
2339 """
2340 SetSelection(int sel)
423f194a 2341
328fcd84
RD
2342 Set the current selected item to sel
2343 """
2344 return _windows.SingleChoiceDialog_SetSelection(*args, **kwargs)
423f194a 2345
8ab979d7 2346
d14a1e28
RD
2347class SingleChoiceDialogPtr(SingleChoiceDialog):
2348 def __init__(self, this):
2349 self.this = this
2350 if not hasattr(self,"thisown"): self.thisown = 0
2351 self.__class__ = SingleChoiceDialog
2352_windows.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr)
2353
2354class TextEntryDialog(Dialog):
328fcd84 2355 """A dialog with text control, [ok] and [cancel] buttons"""
423f194a
RD
2356 def __repr__(self):
2357 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2358 def __init__(self, *args, **kwargs):
41f1cec7 2359 """
d03fd34d
RD
2360 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
2361 String defaultValue=EmptyString,
2362 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
328fcd84
RD
2363
2364 Constructor. Use ShowModal method to show the dialog.
41f1cec7 2365 """
d14a1e28
RD
2366 newobj = _windows.new_TextEntryDialog(*args, **kwargs)
2367 self.this = newobj.this
2368 self.thisown = 1
2369 del newobj.thisown
2370 self._setOORInfo(self)
423f194a
RD
2371
2372 def GetValue(*args, **kwargs):
328fcd84
RD
2373 """
2374 GetValue() -> String
2375
2376 Returns the text that the user has entered if the user has pressed OK,
2377 or the original value if the user has pressed Cancel.
2378 """
423f194a
RD
2379 return _windows.TextEntryDialog_GetValue(*args, **kwargs)
2380
2381 def SetValue(*args, **kwargs):
328fcd84
RD
2382 """
2383 SetValue(String value)
423f194a 2384
328fcd84
RD
2385 Sets the default text value.
2386 """
2387 return _windows.TextEntryDialog_SetValue(*args, **kwargs)
423f194a 2388
8ab979d7 2389
d14a1e28
RD
2390class TextEntryDialogPtr(TextEntryDialog):
2391 def __init__(self, this):
8ab979d7 2392 self.this = this
d14a1e28
RD
2393 if not hasattr(self,"thisown"): self.thisown = 0
2394 self.__class__ = TextEntryDialog
2395_windows.TextEntryDialog_swigregister(TextEntryDialogPtr)
2396
2397class FontData(core.Object):
328fcd84 2398 """This class holds a variety of information related to font dialogs."""
423f194a
RD
2399 def __repr__(self):
2400 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2401 def __init__(self, *args, **kwargs):
328fcd84
RD
2402 """
2403 __init__() -> FontData
2404
2405 This class holds a variety of information related to font dialogs.
2406 """
d14a1e28
RD
2407 newobj = _windows.new_FontData(*args, **kwargs)
2408 self.this = newobj.this
2409 self.thisown = 1
2410 del newobj.thisown
2411 def __del__(self, destroy=_windows.delete_FontData):
423f194a 2412 """__del__()"""
d14a1e28
RD
2413 try:
2414 if self.thisown: destroy(self)
2415 except: pass
423f194a
RD
2416
2417 def EnableEffects(*args, **kwargs):
328fcd84
RD
2418 """
2419 EnableEffects(bool enable)
2420
2421 Enables or disables 'effects' under MS Windows only. This refers
2422 to the controls for manipulating colour, strikeout and underline
2423 properties. The default value is true.
2424 """
423f194a
RD
2425 return _windows.FontData_EnableEffects(*args, **kwargs)
2426
2427 def GetAllowSymbols(*args, **kwargs):
328fcd84
RD
2428 """
2429 GetAllowSymbols() -> bool
2430
2431 Under MS Windows, returns a flag determining whether symbol fonts can be
2432 selected. Has no effect on other platforms. The default value is true.
2433 """
423f194a
RD
2434 return _windows.FontData_GetAllowSymbols(*args, **kwargs)
2435
2436 def GetColour(*args, **kwargs):
328fcd84
RD
2437 """
2438 GetColour() -> Colour
2439
2440 Gets the colour associated with the font dialog. The default value is black.
2441 """
423f194a
RD
2442 return _windows.FontData_GetColour(*args, **kwargs)
2443
2444 def GetChosenFont(*args, **kwargs):
328fcd84
RD
2445 """
2446 GetChosenFont() -> Font
2447
2448 Gets the font chosen by the user.
2449 """
423f194a
RD
2450 return _windows.FontData_GetChosenFont(*args, **kwargs)
2451
2452 def GetEnableEffects(*args, **kwargs):
328fcd84
RD
2453 """
2454 GetEnableEffects() -> bool
2455
2456 Determines whether 'effects' are enabled under Windows.
2457 """
423f194a
RD
2458 return _windows.FontData_GetEnableEffects(*args, **kwargs)
2459
2460 def GetInitialFont(*args, **kwargs):
328fcd84
RD
2461 """
2462 GetInitialFont() -> Font
2463
2464 Gets the font that will be initially used by the font dialog. This should have
2465 previously been set by the application.
2466 """
423f194a
RD
2467 return _windows.FontData_GetInitialFont(*args, **kwargs)
2468
2469 def GetShowHelp(*args, **kwargs):
328fcd84
RD
2470 """
2471 GetShowHelp() -> bool
2472
2473 Returns true if the Help button will be shown (Windows only). The default
2474 value is false.
2475 """
423f194a
RD
2476 return _windows.FontData_GetShowHelp(*args, **kwargs)
2477
2478 def SetAllowSymbols(*args, **kwargs):
328fcd84
RD
2479 """
2480 SetAllowSymbols(bool allowSymbols)
2481
2482 Under MS Windows, determines whether symbol fonts can be selected. Has no
2483 effect on other platforms. The default value is true.
2484 """
423f194a
RD
2485 return _windows.FontData_SetAllowSymbols(*args, **kwargs)
2486
2487 def SetChosenFont(*args, **kwargs):
328fcd84
RD
2488 """
2489 SetChosenFont(Font font)
2490
2491 Sets the font that will be returned to the user (for internal use only).
2492 """
423f194a
RD
2493 return _windows.FontData_SetChosenFont(*args, **kwargs)
2494
2495 def SetColour(*args, **kwargs):
328fcd84
RD
2496 """
2497 SetColour(Colour colour)
2498
2499 Sets the colour that will be used for the font foreground colour. The default
2500 colour is black.
2501 """
423f194a
RD
2502 return _windows.FontData_SetColour(*args, **kwargs)
2503
2504 def SetInitialFont(*args, **kwargs):
328fcd84
RD
2505 """
2506 SetInitialFont(Font font)
2507
2508 Sets the font that will be initially used by the font dialog.
2509 """
423f194a
RD
2510 return _windows.FontData_SetInitialFont(*args, **kwargs)
2511
2512 def SetRange(*args, **kwargs):
328fcd84
RD
2513 """
2514 SetRange(int min, int max)
2515
2516 Sets the valid range for the font point size (Windows only). The default is
2517 0, 0 (unrestricted range).
2518 """
423f194a
RD
2519 return _windows.FontData_SetRange(*args, **kwargs)
2520
2521 def SetShowHelp(*args, **kwargs):
328fcd84
RD
2522 """
2523 SetShowHelp(bool showHelp)
2524
2525 Determines whether the Help button will be displayed in the font dialog
2526 (Windows only). The default value is false.
2527 """
423f194a
RD
2528 return _windows.FontData_SetShowHelp(*args, **kwargs)
2529
d14a1e28
RD
2530
2531class FontDataPtr(FontData):
2532 def __init__(self, this):
2533 self.this = this
2534 if not hasattr(self,"thisown"): self.thisown = 0
2535 self.__class__ = FontData
2536_windows.FontData_swigregister(FontDataPtr)
2537
2538class FontDialog(Dialog):
328fcd84 2539 """This class represents the font chooser dialog."""
423f194a
RD
2540 def __repr__(self):
2541 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2f4c0a16 2542 def __init__(self, *args, **kwargs):
328fcd84 2543 """
328fcd84
RD
2544 __init__(Window parent, FontData data) -> FontDialog
2545
2f4c0a16 2546 Constructor. Pass a parent window and the FontData object to be
328fcd84
RD
2547 used to initialize the dialog controls.
2548 """
2f4c0a16 2549 newobj = _windows.new_FontDialog(*args, **kwargs)
d14a1e28 2550 self.this = newobj.this
cf694132 2551 self.thisown = 1
d14a1e28
RD
2552 del newobj.thisown
2553 self._setOORInfo(self)
423f194a
RD
2554
2555 def GetFontData(*args, **kwargs):
328fcd84
RD
2556 """
2557 GetFontData() -> FontData
423f194a 2558
328fcd84
RD
2559 Returns a reference to the internal FontData used by the FontDialog.
2560 """
2561 return _windows.FontDialog_GetFontData(*args, **kwargs)
423f194a 2562
8ab979d7 2563
d14a1e28
RD
2564class FontDialogPtr(FontDialog):
2565 def __init__(self, this):
2566 self.this = this
2567 if not hasattr(self,"thisown"): self.thisown = 0
2568 self.__class__ = FontDialog
2569_windows.FontDialog_swigregister(FontDialogPtr)
2570
2571class MessageDialog(Dialog):
328fcd84
RD
2572 """
2573 This class provides a dialog that shows a single or multi-line message, with
2574 a choice of OK, Yes, No and Cancel buttons.
2575 """
423f194a
RD
2576 def __repr__(self):
2577 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2578 def __init__(self, *args, **kwargs):
41f1cec7 2579 """
d03fd34d 2580 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
41f1cec7
RD
2581 long style=wxOK|wxCANCEL|wxCENTRE,
2582 Point pos=DefaultPosition) -> MessageDialog
328fcd84
RD
2583
2584 This class provides a dialog that shows a single or multi-line message, with
2585 a choice of OK, Yes, No and Cancel buttons.
41f1cec7 2586 """
d14a1e28
RD
2587 newobj = _windows.new_MessageDialog(*args, **kwargs)
2588 self.this = newobj.this
2589 self.thisown = 1
2590 del newobj.thisown
2591 self._setOORInfo(self)
423f194a 2592
8ab979d7 2593
d14a1e28
RD
2594class MessageDialogPtr(MessageDialog):
2595 def __init__(self, this):
2596 self.this = this
2597 if not hasattr(self,"thisown"): self.thisown = 0
2598 self.__class__ = MessageDialog
2599_windows.MessageDialog_swigregister(MessageDialogPtr)
2600
2601class ProgressDialog(Frame):
328fcd84
RD
2602 """
2603 A dialog that shows a short message and a progress bar. Optionally, it can
2604 display an ABORT button.
2605 """
423f194a
RD
2606 def __repr__(self):
2607 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2608 def __init__(self, *args, **kwargs):
41f1cec7 2609 """
d03fd34d
RD
2610 __init__(String title, String message, int maximum=100, Window parent=None,
2611 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
328fcd84
RD
2612
2613 Constructor. Creates the dialog, displays it and disables user input for other
2614 windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.
41f1cec7 2615 """
d14a1e28
RD
2616 newobj = _windows.new_ProgressDialog(*args, **kwargs)
2617 self.this = newobj.this
2618 self.thisown = 1
2619 del newobj.thisown
2620 self._setOORInfo(self)
423f194a
RD
2621
2622 def Update(*args, **kwargs):
328fcd84
RD
2623 """
2624 Update(int value, String newmsg=EmptyString) -> bool
2625
2626 Updates the dialog, setting the progress bar to the new value and, if given
2627 changes the message above it. Returns true unless the Cancel button has been
2628 pressed.
2629
2630 If false is returned, the application can either immediately destroy the
2631 dialog or ask the user for the confirmation and if the abort is not confirmed
2632 the dialog may be resumed with Resume function.
2633 """
423f194a
RD
2634 return _windows.ProgressDialog_Update(*args, **kwargs)
2635
2636 def Resume(*args, **kwargs):
328fcd84
RD
2637 """
2638 Resume()
2639
2640 Can be used to continue with the dialog, after the user had chosen to abort.
2641 """
423f194a
RD
2642 return _windows.ProgressDialog_Resume(*args, **kwargs)
2643
8ab979d7 2644
d14a1e28
RD
2645class ProgressDialogPtr(ProgressDialog):
2646 def __init__(self, this):
2647 self.this = this
2648 if not hasattr(self,"thisown"): self.thisown = 0
2649 self.__class__ = ProgressDialog
2650_windows.ProgressDialog_swigregister(ProgressDialogPtr)
2651
2652FR_DOWN = _windows.FR_DOWN
2653FR_WHOLEWORD = _windows.FR_WHOLEWORD
2654FR_MATCHCASE = _windows.FR_MATCHCASE
2655FR_REPLACEDIALOG = _windows.FR_REPLACEDIALOG
2656FR_NOUPDOWN = _windows.FR_NOUPDOWN
2657FR_NOMATCHCASE = _windows.FR_NOMATCHCASE
2658FR_NOWHOLEWORD = _windows.FR_NOWHOLEWORD
2659wxEVT_COMMAND_FIND = _windows.wxEVT_COMMAND_FIND
2660wxEVT_COMMAND_FIND_NEXT = _windows.wxEVT_COMMAND_FIND_NEXT
2661wxEVT_COMMAND_FIND_REPLACE = _windows.wxEVT_COMMAND_FIND_REPLACE
2662wxEVT_COMMAND_FIND_REPLACE_ALL = _windows.wxEVT_COMMAND_FIND_REPLACE_ALL
2663wxEVT_COMMAND_FIND_CLOSE = _windows.wxEVT_COMMAND_FIND_CLOSE
2664EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 )
2665EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 )
2666EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 )
2667EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 )
2668EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 )
2669
2670# For backwards compatibility. Should they be removed?
2671EVT_COMMAND_FIND = EVT_FIND
2672EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT
2673EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE
2674EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL
2675EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE
2676
2677class FindDialogEvent(core.CommandEvent):
328fcd84 2678 """Events for the FindReplaceDialog"""
423f194a
RD
2679 def __repr__(self):
2680 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2681 def __init__(self, *args, **kwargs):
328fcd84
RD
2682 """
2683 __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2684
2685 Events for the FindReplaceDialog
2686 """
d14a1e28
RD
2687 newobj = _windows.new_FindDialogEvent(*args, **kwargs)
2688 self.this = newobj.this
2689 self.thisown = 1
2690 del newobj.thisown
423f194a 2691 def GetFlags(*args, **kwargs):
328fcd84
RD
2692 """
2693 GetFlags() -> int
2694
2695 Get the currently selected flags: this is the combination of
2696 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2697 """
423f194a
RD
2698 return _windows.FindDialogEvent_GetFlags(*args, **kwargs)
2699
2700 def GetFindString(*args, **kwargs):
328fcd84
RD
2701 """
2702 GetFindString() -> String
2703
2704 Return the string to find (never empty).
2705 """
423f194a
RD
2706 return _windows.FindDialogEvent_GetFindString(*args, **kwargs)
2707
2708 def GetReplaceString(*args, **kwargs):
328fcd84
RD
2709 """
2710 GetReplaceString() -> String
2711
2712 Return the string to replace the search string with (only
2713 for replace and replace all events).
2714 """
423f194a
RD
2715 return _windows.FindDialogEvent_GetReplaceString(*args, **kwargs)
2716
2717 def GetDialog(*args, **kwargs):
328fcd84
RD
2718 """
2719 GetDialog() -> FindReplaceDialog
2720
2721 Return the pointer to the dialog which generated this event.
2722 """
423f194a
RD
2723 return _windows.FindDialogEvent_GetDialog(*args, **kwargs)
2724
2725 def SetFlags(*args, **kwargs):
2726 """SetFlags(int flags)"""
2727 return _windows.FindDialogEvent_SetFlags(*args, **kwargs)
2728
2729 def SetFindString(*args, **kwargs):
d03fd34d 2730 """SetFindString(String str)"""
423f194a
RD
2731 return _windows.FindDialogEvent_SetFindString(*args, **kwargs)
2732
2733 def SetReplaceString(*args, **kwargs):
d03fd34d 2734 """SetReplaceString(String str)"""
423f194a
RD
2735 return _windows.FindDialogEvent_SetReplaceString(*args, **kwargs)
2736
8ab979d7 2737
d14a1e28
RD
2738class FindDialogEventPtr(FindDialogEvent):
2739 def __init__(self, this):
2740 self.this = this
2741 if not hasattr(self,"thisown"): self.thisown = 0
2742 self.__class__ = FindDialogEvent
2743_windows.FindDialogEvent_swigregister(FindDialogEventPtr)
2744
2745class FindReplaceData(core.Object):
328fcd84
RD
2746 """
2747 FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
2748 the dialog with the default values and will keep the last values from the
2749 dialog when it is closed. It is also updated each time a wxFindDialogEvent is
2750 generated so instead of using the wxFindDialogEvent methods you can also
2751 directly query this object.
2752
2753 Note that all SetXXX() methods may only be called before showing the dialog
2754 and calling them has no effect later.
2755
2756 Flags
2757 wxFR_DOWN: downward search/replace selected (otherwise, upwards)
2758
2759 wxFR_WHOLEWORD: whole word search/replace selected
2760
2761 wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
2762 case insensitive)
2763
2764 """
423f194a
RD
2765 def __repr__(self):
2766 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2767 def __init__(self, *args, **kwargs):
328fcd84
RD
2768 """
2769 __init__(int flags=0) -> FindReplaceData
2770
2771 Constuctor initializes the flags to default value (0).
2772 """
d14a1e28
RD
2773 newobj = _windows.new_FindReplaceData(*args, **kwargs)
2774 self.this = newobj.this
2775 self.thisown = 1
2776 del newobj.thisown
2777 def __del__(self, destroy=_windows.delete_FindReplaceData):
423f194a 2778 """__del__()"""
d14a1e28
RD
2779 try:
2780 if self.thisown: destroy(self)
2781 except: pass
423f194a
RD
2782
2783 def GetFindString(*args, **kwargs):
328fcd84
RD
2784 """
2785 GetFindString() -> String
2786
2787 Get the string to find.
2788 """
423f194a
RD
2789 return _windows.FindReplaceData_GetFindString(*args, **kwargs)
2790
2791 def GetReplaceString(*args, **kwargs):
328fcd84
RD
2792 """
2793 GetReplaceString() -> String
2794
2795 Get the replacement string.
2796 """
423f194a
RD
2797 return _windows.FindReplaceData_GetReplaceString(*args, **kwargs)
2798
2799 def GetFlags(*args, **kwargs):
328fcd84
RD
2800 """
2801 GetFlags() -> int
2802
2803 Get the combination of flag values.
2804 """
423f194a
RD
2805 return _windows.FindReplaceData_GetFlags(*args, **kwargs)
2806
2807 def SetFlags(*args, **kwargs):
328fcd84
RD
2808 """
2809 SetFlags(int flags)
2810
2811 Set the flags to use to initialize the controls of the dialog.
2812 """
423f194a
RD
2813 return _windows.FindReplaceData_SetFlags(*args, **kwargs)
2814
2815 def SetFindString(*args, **kwargs):
328fcd84
RD
2816 """
2817 SetFindString(String str)
2818
2819 Set the string to find (used as initial value by the dialog).
2820 """
423f194a
RD
2821 return _windows.FindReplaceData_SetFindString(*args, **kwargs)
2822
2823 def SetReplaceString(*args, **kwargs):
328fcd84
RD
2824 """
2825 SetReplaceString(String str)
2826
2827 Set the replacement string (used as initial value by the dialog).
2828 """
423f194a
RD
2829 return _windows.FindReplaceData_SetReplaceString(*args, **kwargs)
2830
8ab979d7 2831
d14a1e28
RD
2832class FindReplaceDataPtr(FindReplaceData):
2833 def __init__(self, this):
2834 self.this = this
2835 if not hasattr(self,"thisown"): self.thisown = 0
2836 self.__class__ = FindReplaceData
2837_windows.FindReplaceData_swigregister(FindReplaceDataPtr)
2838
2839class FindReplaceDialog(Dialog):
328fcd84
RD
2840 """
2841 FindReplaceDialog is a standard modeless dialog which is used to allow the
2842 user to search for some text (and possibly replace it with something
2843 else). The actual searching is supposed to be done in the owner window which
2844 is the parent of this dialog. Note that it means that unlike for the other
2845 standard dialogs this one must have a parent window. Also note that there is
2846 no way to use this dialog in a modal way; it is always, by design and
2847 implementation, modeless.
2848 """
423f194a
RD
2849 def __repr__(self):
2850 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2851 def __init__(self, *args, **kwargs):
41f1cec7 2852 """
d03fd34d 2853 __init__(Window parent, FindReplaceData data, String title,
41f1cec7 2854 int style=0) -> FindReplaceDialog
328fcd84
RD
2855
2856 Create a FindReplaceDialog. The parent and data parameters must be
2857 non-None. Use Show to display the dialog.
41f1cec7 2858 """
d14a1e28
RD
2859 newobj = _windows.new_FindReplaceDialog(*args, **kwargs)
2860 self.this = newobj.this
2861 self.thisown = 1
2862 del newobj.thisown
2863 self._setOORInfo(self)
423f194a
RD
2864
2865 def Create(*args, **kwargs):
41f1cec7 2866 """
d03fd34d 2867 Create(Window parent, FindReplaceData data, String title,
41f1cec7 2868 int style=0) -> bool
328fcd84
RD
2869
2870 Create the dialog, for 2-phase create.
41f1cec7 2871 """
423f194a
RD
2872 return _windows.FindReplaceDialog_Create(*args, **kwargs)
2873
2874 def GetData(*args, **kwargs):
328fcd84
RD
2875 """
2876 GetData() -> FindReplaceData
2877
2878 Get the FindReplaceData object used by this dialog.
2879 """
423f194a
RD
2880 return _windows.FindReplaceDialog_GetData(*args, **kwargs)
2881
2882 def SetData(*args, **kwargs):
328fcd84
RD
2883 """
2884 SetData(FindReplaceData data)
2885
2886 Set the FindReplaceData object used by this dialog.
2887 """
423f194a
RD
2888 return _windows.FindReplaceDialog_SetData(*args, **kwargs)
2889
8ab979d7 2890
d14a1e28
RD
2891class FindReplaceDialogPtr(FindReplaceDialog):
2892 def __init__(self, this):
2893 self.this = this
2894 if not hasattr(self,"thisown"): self.thisown = 0
2895 self.__class__ = FindReplaceDialog
2896_windows.FindReplaceDialog_swigregister(FindReplaceDialogPtr)
8ab979d7 2897
d14a1e28 2898def PreFindReplaceDialog(*args, **kwargs):
328fcd84
RD
2899 """
2900 PreFindReplaceDialog() -> FindReplaceDialog
2901
2902 Precreate a FindReplaceDialog for 2-phase creation
2903 """
d14a1e28
RD
2904 val = _windows.new_PreFindReplaceDialog(*args, **kwargs)
2905 val.thisown = 1
af309447
RD
2906 return val
2907
d14a1e28
RD
2908#---------------------------------------------------------------------------
2909
2910IDM_WINDOWTILE = _windows.IDM_WINDOWTILE
2911IDM_WINDOWTILEHOR = _windows.IDM_WINDOWTILEHOR
2912IDM_WINDOWCASCADE = _windows.IDM_WINDOWCASCADE
2913IDM_WINDOWICONS = _windows.IDM_WINDOWICONS
2914IDM_WINDOWNEXT = _windows.IDM_WINDOWNEXT
2915IDM_WINDOWTILEVERT = _windows.IDM_WINDOWTILEVERT
2916FIRST_MDI_CHILD = _windows.FIRST_MDI_CHILD
2917LAST_MDI_CHILD = _windows.LAST_MDI_CHILD
2918class MDIParentFrame(Frame):
423f194a
RD
2919 def __repr__(self):
2920 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2921 def __init__(self, *args, **kwargs):
41f1cec7 2922 """
d03fd34d 2923 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
41f1cec7 2924 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
d03fd34d 2925 String name=FrameNameStr) -> MDIParentFrame
41f1cec7 2926 """
d14a1e28
RD
2927 newobj = _windows.new_MDIParentFrame(*args, **kwargs)
2928 self.this = newobj.this
2929 self.thisown = 1
2930 del newobj.thisown
2931 self._setOORInfo(self)
423f194a
RD
2932
2933 def Create(*args, **kwargs):
41f1cec7 2934 """
d03fd34d 2935 Create(Window parent, int id, String title, Point pos=DefaultPosition,
41f1cec7 2936 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
d03fd34d 2937 String name=FrameNameStr) -> bool
41f1cec7 2938 """
423f194a
RD
2939 return _windows.MDIParentFrame_Create(*args, **kwargs)
2940
2941 def ActivateNext(*args, **kwargs):
2942 """ActivateNext()"""
2943 return _windows.MDIParentFrame_ActivateNext(*args, **kwargs)
2944
2945 def ActivatePrevious(*args, **kwargs):
2946 """ActivatePrevious()"""
2947 return _windows.MDIParentFrame_ActivatePrevious(*args, **kwargs)
2948
2949 def ArrangeIcons(*args, **kwargs):
2950 """ArrangeIcons()"""
2951 return _windows.MDIParentFrame_ArrangeIcons(*args, **kwargs)
2952
2953 def Cascade(*args, **kwargs):
2954 """Cascade()"""
2955 return _windows.MDIParentFrame_Cascade(*args, **kwargs)
2956
2957 def GetActiveChild(*args, **kwargs):
2958 """GetActiveChild() -> MDIChildFrame"""
2959 return _windows.MDIParentFrame_GetActiveChild(*args, **kwargs)
2960
2961 def GetClientWindow(*args, **kwargs):
2962 """GetClientWindow() -> MDIClientWindow"""
2963 return _windows.MDIParentFrame_GetClientWindow(*args, **kwargs)
2964
2965 def GetToolBar(*args, **kwargs):
2966 """GetToolBar() -> Window"""
2967 return _windows.MDIParentFrame_GetToolBar(*args, **kwargs)
2968
2969 def GetWindowMenu(*args, **kwargs):
2970 """GetWindowMenu() -> Menu"""
2971 return _windows.MDIParentFrame_GetWindowMenu(*args, **kwargs)
2972
2973 def SetWindowMenu(*args, **kwargs):
2974 """SetWindowMenu(Menu menu)"""
2975 return _windows.MDIParentFrame_SetWindowMenu(*args, **kwargs)
2976
2977 def SetToolBar(*args, **kwargs):
2978 """SetToolBar(wxToolBar toolbar)"""
2979 return _windows.MDIParentFrame_SetToolBar(*args, **kwargs)
2980
2981 def Tile(*args, **kwargs):
2982 """Tile()"""
2983 return _windows.MDIParentFrame_Tile(*args, **kwargs)
2984
d14a1e28
RD
2985
2986class MDIParentFramePtr(MDIParentFrame):
2987 def __init__(self, this):
2988 self.this = this
2989 if not hasattr(self,"thisown"): self.thisown = 0
2990 self.__class__ = MDIParentFrame
2991_windows.MDIParentFrame_swigregister(MDIParentFramePtr)
e67409dc 2992
d14a1e28 2993def PreMDIParentFrame(*args, **kwargs):
423f194a 2994 """PreMDIParentFrame() -> MDIParentFrame"""
d14a1e28
RD
2995 val = _windows.new_PreMDIParentFrame(*args, **kwargs)
2996 val.thisown = 1
e67409dc
RD
2997 return val
2998
d14a1e28 2999class MDIChildFrame(Frame):
423f194a
RD
3000 def __repr__(self):
3001 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3002 def __init__(self, *args, **kwargs):
41f1cec7 3003 """
d03fd34d
RD
3004 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3005 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3006 String name=FrameNameStr) -> MDIChildFrame
41f1cec7 3007 """
d14a1e28
RD
3008 newobj = _windows.new_MDIChildFrame(*args, **kwargs)
3009 self.this = newobj.this
3010 self.thisown = 1
3011 del newobj.thisown
3012 self._setOORInfo(self)
423f194a
RD
3013
3014 def Create(*args, **kwargs):
41f1cec7 3015 """
d03fd34d
RD
3016 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3017 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3018 String name=FrameNameStr) -> bool
41f1cec7 3019 """
423f194a
RD
3020 return _windows.MDIChildFrame_Create(*args, **kwargs)
3021
3022 def Activate(*args, **kwargs):
3023 """Activate()"""
3024 return _windows.MDIChildFrame_Activate(*args, **kwargs)
3025
3026 def Maximize(*args, **kwargs):
3027 """Maximize(bool maximize)"""
3028 return _windows.MDIChildFrame_Maximize(*args, **kwargs)
3029
3030 def Restore(*args, **kwargs):
3031 """Restore()"""
3032 return _windows.MDIChildFrame_Restore(*args, **kwargs)
3033
d14a1e28
RD
3034
3035class MDIChildFramePtr(MDIChildFrame):
3036 def __init__(self, this):
3037 self.this = this
3038 if not hasattr(self,"thisown"): self.thisown = 0
3039 self.__class__ = MDIChildFrame
3040_windows.MDIChildFrame_swigregister(MDIChildFramePtr)
3041
3042def PreMDIChildFrame(*args, **kwargs):
423f194a 3043 """PreMDIChildFrame() -> MDIChildFrame"""
d14a1e28
RD
3044 val = _windows.new_PreMDIChildFrame(*args, **kwargs)
3045 val.thisown = 1
e67409dc
RD
3046 return val
3047
d14a1e28 3048class MDIClientWindow(core.Window):
423f194a
RD
3049 def __repr__(self):
3050 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3051 def __init__(self, *args, **kwargs):
423f194a 3052 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
d14a1e28
RD
3053 newobj = _windows.new_MDIClientWindow(*args, **kwargs)
3054 self.this = newobj.this
3055 self.thisown = 1
3056 del newobj.thisown
3057 self._setOORInfo(self)
423f194a
RD
3058
3059 def Create(*args, **kwargs):
3060 """Create(MDIParentFrame parent, long style=0) -> bool"""
3061 return _windows.MDIClientWindow_Create(*args, **kwargs)
3062
09f3d4e6 3063
d14a1e28
RD
3064class MDIClientWindowPtr(MDIClientWindow):
3065 def __init__(self, this):
3066 self.this = this
3067 if not hasattr(self,"thisown"): self.thisown = 0
3068 self.__class__ = MDIClientWindow
3069_windows.MDIClientWindow_swigregister(MDIClientWindowPtr)
09f3d4e6 3070
d14a1e28 3071def PreMDIClientWindow(*args, **kwargs):
423f194a 3072 """PreMDIClientWindow() -> MDIClientWindow"""
d14a1e28
RD
3073 val = _windows.new_PreMDIClientWindow(*args, **kwargs)
3074 val.thisown = 1
09f3d4e6
RD
3075 return val
3076
d14a1e28 3077#---------------------------------------------------------------------------
a1df7a95 3078
d14a1e28 3079class PyWindow(core.Window):
423f194a
RD
3080 def __repr__(self):
3081 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3082 def __init__(self, *args, **kwargs):
41f1cec7
RD
3083 """
3084 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
d03fd34d 3085 long style=0, String name=PanelNameStr) -> PyWindow
41f1cec7 3086 """
d14a1e28
RD
3087 newobj = _windows.new_PyWindow(*args, **kwargs)
3088 self.this = newobj.this
3089 self.thisown = 1
3090 del newobj.thisown
3091 self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)
423f194a
RD
3092
3093 def _setCallbackInfo(*args, **kwargs):
3094 """_setCallbackInfo(PyObject self, PyObject _class)"""
3095 return _windows.PyWindow__setCallbackInfo(*args, **kwargs)
3096
3097 def base_DoMoveWindow(*args, **kwargs):
3098 """base_DoMoveWindow(int x, int y, int width, int height)"""
3099 return _windows.PyWindow_base_DoMoveWindow(*args, **kwargs)
3100
3101 def base_DoSetSize(*args, **kwargs):
3102 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3103 return _windows.PyWindow_base_DoSetSize(*args, **kwargs)
3104
3105 def base_DoSetClientSize(*args, **kwargs):
3106 """base_DoSetClientSize(int width, int height)"""
3107 return _windows.PyWindow_base_DoSetClientSize(*args, **kwargs)
3108
3109 def base_DoSetVirtualSize(*args, **kwargs):
3110 """base_DoSetVirtualSize(int x, int y)"""
3111 return _windows.PyWindow_base_DoSetVirtualSize(*args, **kwargs)
3112
3113 def base_DoGetSize(*args, **kwargs):
44127b65 3114 """base_DoGetSize() -> (width, height)"""
423f194a
RD
3115 return _windows.PyWindow_base_DoGetSize(*args, **kwargs)
3116
3117 def base_DoGetClientSize(*args, **kwargs):
44127b65 3118 """base_DoGetClientSize() -> (width, height)"""
423f194a
RD
3119 return _windows.PyWindow_base_DoGetClientSize(*args, **kwargs)
3120
3121 def base_DoGetPosition(*args, **kwargs):
44127b65 3122 """base_DoGetPosition() -> (x,y)"""
423f194a
RD
3123 return _windows.PyWindow_base_DoGetPosition(*args, **kwargs)
3124
3125 def base_DoGetVirtualSize(*args, **kwargs):
3126 """base_DoGetVirtualSize() -> Size"""
3127 return _windows.PyWindow_base_DoGetVirtualSize(*args, **kwargs)
3128
3129 def base_DoGetBestSize(*args, **kwargs):
3130 """base_DoGetBestSize() -> Size"""
3131 return _windows.PyWindow_base_DoGetBestSize(*args, **kwargs)
3132
3133 def base_InitDialog(*args, **kwargs):
3134 """base_InitDialog()"""
3135 return _windows.PyWindow_base_InitDialog(*args, **kwargs)
3136
3137 def base_TransferDataToWindow(*args, **kwargs):
3138 """base_TransferDataToWindow() -> bool"""
3139 return _windows.PyWindow_base_TransferDataToWindow(*args, **kwargs)
3140
3141 def base_TransferDataFromWindow(*args, **kwargs):
3142 """base_TransferDataFromWindow() -> bool"""
3143 return _windows.PyWindow_base_TransferDataFromWindow(*args, **kwargs)
3144
3145 def base_Validate(*args, **kwargs):
3146 """base_Validate() -> bool"""
3147 return _windows.PyWindow_base_Validate(*args, **kwargs)
3148
3149 def base_AcceptsFocus(*args, **kwargs):
3150 """base_AcceptsFocus() -> bool"""
3151 return _windows.PyWindow_base_AcceptsFocus(*args, **kwargs)
3152
3153 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
3154 """base_AcceptsFocusFromKeyboard() -> bool"""
3155 return _windows.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs)
3156
3157 def base_GetMaxSize(*args, **kwargs):
3158 """base_GetMaxSize() -> Size"""
3159 return _windows.PyWindow_base_GetMaxSize(*args, **kwargs)
3160
3161 def base_AddChild(*args, **kwargs):
3162 """base_AddChild(Window child)"""
3163 return _windows.PyWindow_base_AddChild(*args, **kwargs)
3164
3165 def base_RemoveChild(*args, **kwargs):
3166 """base_RemoveChild(Window child)"""
3167 return _windows.PyWindow_base_RemoveChild(*args, **kwargs)
3168
a1df7a95 3169
d14a1e28
RD
3170class PyWindowPtr(PyWindow):
3171 def __init__(self, this):
3172 self.this = this
3173 if not hasattr(self,"thisown"): self.thisown = 0
3174 self.__class__ = PyWindow
3175_windows.PyWindow_swigregister(PyWindowPtr)
3176
3177class PyPanel(Panel):
423f194a
RD
3178 def __repr__(self):
3179 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3180 def __init__(self, *args, **kwargs):
41f1cec7
RD
3181 """
3182 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
d03fd34d 3183 long style=0, String name=PanelNameStr) -> PyPanel
41f1cec7 3184 """
d14a1e28
RD
3185 newobj = _windows.new_PyPanel(*args, **kwargs)
3186 self.this = newobj.this
3187 self.thisown = 1
3188 del newobj.thisown
3189 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
423f194a
RD
3190
3191 def _setCallbackInfo(*args, **kwargs):
3192 """_setCallbackInfo(PyObject self, PyObject _class)"""
3193 return _windows.PyPanel__setCallbackInfo(*args, **kwargs)
3194
3195 def base_DoMoveWindow(*args, **kwargs):
3196 """base_DoMoveWindow(int x, int y, int width, int height)"""
3197 return _windows.PyPanel_base_DoMoveWindow(*args, **kwargs)
3198
3199 def base_DoSetSize(*args, **kwargs):
3200 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3201 return _windows.PyPanel_base_DoSetSize(*args, **kwargs)
3202
3203 def base_DoSetClientSize(*args, **kwargs):
3204 """base_DoSetClientSize(int width, int height)"""
3205 return _windows.PyPanel_base_DoSetClientSize(*args, **kwargs)
3206
3207 def base_DoSetVirtualSize(*args, **kwargs):
3208 """base_DoSetVirtualSize(int x, int y)"""
3209 return _windows.PyPanel_base_DoSetVirtualSize(*args, **kwargs)
3210
3211 def base_DoGetSize(*args, **kwargs):
44127b65 3212 """base_DoGetSize() -> (width, height)"""
423f194a
RD
3213 return _windows.PyPanel_base_DoGetSize(*args, **kwargs)
3214
3215 def base_DoGetClientSize(*args, **kwargs):
44127b65 3216 """base_DoGetClientSize() -> (width, height)"""
423f194a
RD
3217 return _windows.PyPanel_base_DoGetClientSize(*args, **kwargs)
3218
3219 def base_DoGetPosition(*args, **kwargs):
44127b65 3220 """base_DoGetPosition() -> (x,y)"""
423f194a
RD
3221 return _windows.PyPanel_base_DoGetPosition(*args, **kwargs)
3222
3223 def base_DoGetVirtualSize(*args, **kwargs):
3224 """base_DoGetVirtualSize() -> Size"""
3225 return _windows.PyPanel_base_DoGetVirtualSize(*args, **kwargs)
3226
3227 def base_DoGetBestSize(*args, **kwargs):
3228 """base_DoGetBestSize() -> Size"""
3229 return _windows.PyPanel_base_DoGetBestSize(*args, **kwargs)
3230
3231 def base_InitDialog(*args, **kwargs):
3232 """base_InitDialog()"""
3233 return _windows.PyPanel_base_InitDialog(*args, **kwargs)
3234
3235 def base_TransferDataToWindow(*args, **kwargs):
3236 """base_TransferDataToWindow() -> bool"""
3237 return _windows.PyPanel_base_TransferDataToWindow(*args, **kwargs)
3238
3239 def base_TransferDataFromWindow(*args, **kwargs):
3240 """base_TransferDataFromWindow() -> bool"""
3241 return _windows.PyPanel_base_TransferDataFromWindow(*args, **kwargs)
3242
3243 def base_Validate(*args, **kwargs):
3244 """base_Validate() -> bool"""
3245 return _windows.PyPanel_base_Validate(*args, **kwargs)
3246
3247 def base_AcceptsFocus(*args, **kwargs):
3248 """base_AcceptsFocus() -> bool"""
3249 return _windows.PyPanel_base_AcceptsFocus(*args, **kwargs)
3250
3251 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
3252 """base_AcceptsFocusFromKeyboard() -> bool"""
3253 return _windows.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs)
3254
3255 def base_GetMaxSize(*args, **kwargs):
3256 """base_GetMaxSize() -> Size"""
3257 return _windows.PyPanel_base_GetMaxSize(*args, **kwargs)
3258
3259 def base_AddChild(*args, **kwargs):
3260 """base_AddChild(Window child)"""
3261 return _windows.PyPanel_base_AddChild(*args, **kwargs)
3262
3263 def base_RemoveChild(*args, **kwargs):
3264 """base_RemoveChild(Window child)"""
3265 return _windows.PyPanel_base_RemoveChild(*args, **kwargs)
3266
a1df7a95 3267
d14a1e28
RD
3268class PyPanelPtr(PyPanel):
3269 def __init__(self, this):
3270 self.this = this
3271 if not hasattr(self,"thisown"): self.thisown = 0
3272 self.__class__ = PyPanel
3273_windows.PyPanel_swigregister(PyPanelPtr)
3274
3275#---------------------------------------------------------------------------
3276
3277PRINT_MODE_NONE = _windows.PRINT_MODE_NONE
3278PRINT_MODE_PREVIEW = _windows.PRINT_MODE_PREVIEW
3279PRINT_MODE_FILE = _windows.PRINT_MODE_FILE
3280PRINT_MODE_PRINTER = _windows.PRINT_MODE_PRINTER
db914595 3281PRINT_MODE_STREAM = _windows.PRINT_MODE_STREAM
d14a1e28 3282class PrintData(core.Object):
423f194a
RD
3283 def __repr__(self):
3284 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3285 def __init__(self, *args, **kwargs):
423f194a 3286 """__init__() -> PrintData"""
d14a1e28
RD
3287 newobj = _windows.new_PrintData(*args, **kwargs)
3288 self.this = newobj.this
3289 self.thisown = 1
3290 del newobj.thisown
3291 def __del__(self, destroy=_windows.delete_PrintData):
423f194a 3292 """__del__()"""
d14a1e28
RD
3293 try:
3294 if self.thisown: destroy(self)
3295 except: pass
423f194a
RD
3296
3297 def GetNoCopies(*args, **kwargs):
3298 """GetNoCopies() -> int"""
3299 return _windows.PrintData_GetNoCopies(*args, **kwargs)
3300
3301 def GetCollate(*args, **kwargs):
3302 """GetCollate() -> bool"""
3303 return _windows.PrintData_GetCollate(*args, **kwargs)
3304
3305 def GetOrientation(*args, **kwargs):
3306 """GetOrientation() -> int"""
3307 return _windows.PrintData_GetOrientation(*args, **kwargs)
3308
3309 def Ok(*args, **kwargs):
3310 """Ok() -> bool"""
3311 return _windows.PrintData_Ok(*args, **kwargs)
3312
3313 def GetPrinterName(*args, **kwargs):
d03fd34d 3314 """GetPrinterName() -> String"""
423f194a
RD
3315 return _windows.PrintData_GetPrinterName(*args, **kwargs)
3316
3317 def GetColour(*args, **kwargs):
3318 """GetColour() -> bool"""
3319 return _windows.PrintData_GetColour(*args, **kwargs)
3320
3321 def GetDuplex(*args, **kwargs):
d03fd34d 3322 """GetDuplex() -> int"""
423f194a
RD
3323 return _windows.PrintData_GetDuplex(*args, **kwargs)
3324
3325 def GetPaperId(*args, **kwargs):
d03fd34d 3326 """GetPaperId() -> int"""
423f194a
RD
3327 return _windows.PrintData_GetPaperId(*args, **kwargs)
3328
3329 def GetPaperSize(*args, **kwargs):
3330 """GetPaperSize() -> Size"""
3331 return _windows.PrintData_GetPaperSize(*args, **kwargs)
3332
3333 def GetQuality(*args, **kwargs):
d03fd34d 3334 """GetQuality() -> int"""
423f194a
RD
3335 return _windows.PrintData_GetQuality(*args, **kwargs)
3336
3337 def SetNoCopies(*args, **kwargs):
3338 """SetNoCopies(int v)"""
3339 return _windows.PrintData_SetNoCopies(*args, **kwargs)
3340
3341 def SetCollate(*args, **kwargs):
3342 """SetCollate(bool flag)"""
3343 return _windows.PrintData_SetCollate(*args, **kwargs)
3344
3345 def SetOrientation(*args, **kwargs):
3346 """SetOrientation(int orient)"""
3347 return _windows.PrintData_SetOrientation(*args, **kwargs)
3348
3349 def SetPrinterName(*args, **kwargs):
d03fd34d 3350 """SetPrinterName(String name)"""
423f194a
RD
3351 return _windows.PrintData_SetPrinterName(*args, **kwargs)
3352
3353 def SetColour(*args, **kwargs):
3354 """SetColour(bool colour)"""
3355 return _windows.PrintData_SetColour(*args, **kwargs)
3356
3357 def SetDuplex(*args, **kwargs):
d03fd34d 3358 """SetDuplex(int duplex)"""
423f194a
RD
3359 return _windows.PrintData_SetDuplex(*args, **kwargs)
3360
3361 def SetPaperId(*args, **kwargs):
d03fd34d 3362 """SetPaperId(int sizeId)"""
423f194a
RD
3363 return _windows.PrintData_SetPaperId(*args, **kwargs)
3364
3365 def SetPaperSize(*args, **kwargs):
3366 """SetPaperSize(Size sz)"""
3367 return _windows.PrintData_SetPaperSize(*args, **kwargs)
3368
3369 def SetQuality(*args, **kwargs):
d03fd34d 3370 """SetQuality(int quality)"""
423f194a
RD
3371 return _windows.PrintData_SetQuality(*args, **kwargs)
3372
3373 def GetPrinterCommand(*args, **kwargs):
d03fd34d 3374 """GetPrinterCommand() -> String"""
423f194a
RD
3375 return _windows.PrintData_GetPrinterCommand(*args, **kwargs)
3376
3377 def GetPrinterOptions(*args, **kwargs):
d03fd34d 3378 """GetPrinterOptions() -> String"""
423f194a
RD
3379 return _windows.PrintData_GetPrinterOptions(*args, **kwargs)
3380
3381 def GetPreviewCommand(*args, **kwargs):
d03fd34d 3382 """GetPreviewCommand() -> String"""
423f194a
RD
3383 return _windows.PrintData_GetPreviewCommand(*args, **kwargs)
3384
3385 def GetFilename(*args, **kwargs):
d03fd34d 3386 """GetFilename() -> String"""
423f194a
RD
3387 return _windows.PrintData_GetFilename(*args, **kwargs)
3388
3389 def GetFontMetricPath(*args, **kwargs):
d03fd34d 3390 """GetFontMetricPath() -> String"""
423f194a
RD
3391 return _windows.PrintData_GetFontMetricPath(*args, **kwargs)
3392
3393 def GetPrinterScaleX(*args, **kwargs):
3394 """GetPrinterScaleX() -> double"""
3395 return _windows.PrintData_GetPrinterScaleX(*args, **kwargs)
3396
3397 def GetPrinterScaleY(*args, **kwargs):
3398 """GetPrinterScaleY() -> double"""
3399 return _windows.PrintData_GetPrinterScaleY(*args, **kwargs)
3400
3401 def GetPrinterTranslateX(*args, **kwargs):
3402 """GetPrinterTranslateX() -> long"""
3403 return _windows.PrintData_GetPrinterTranslateX(*args, **kwargs)
3404
3405 def GetPrinterTranslateY(*args, **kwargs):
3406 """GetPrinterTranslateY() -> long"""
3407 return _windows.PrintData_GetPrinterTranslateY(*args, **kwargs)
3408
3409 def GetPrintMode(*args, **kwargs):
d03fd34d 3410 """GetPrintMode() -> int"""
423f194a
RD
3411 return _windows.PrintData_GetPrintMode(*args, **kwargs)
3412
3413 def SetPrinterCommand(*args, **kwargs):
d03fd34d 3414 """SetPrinterCommand(String command)"""
423f194a
RD
3415 return _windows.PrintData_SetPrinterCommand(*args, **kwargs)
3416
3417 def SetPrinterOptions(*args, **kwargs):
d03fd34d 3418 """SetPrinterOptions(String options)"""
423f194a
RD
3419 return _windows.PrintData_SetPrinterOptions(*args, **kwargs)
3420
3421 def SetPreviewCommand(*args, **kwargs):
d03fd34d 3422 """SetPreviewCommand(String command)"""
423f194a
RD
3423 return _windows.PrintData_SetPreviewCommand(*args, **kwargs)
3424
3425 def SetFilename(*args, **kwargs):
d03fd34d 3426 """SetFilename(String filename)"""
423f194a
RD
3427 return _windows.PrintData_SetFilename(*args, **kwargs)
3428
3429 def SetFontMetricPath(*args, **kwargs):
d03fd34d 3430 """SetFontMetricPath(String path)"""
423f194a
RD
3431 return _windows.PrintData_SetFontMetricPath(*args, **kwargs)
3432
3433 def SetPrinterScaleX(*args, **kwargs):
3434 """SetPrinterScaleX(double x)"""
3435 return _windows.PrintData_SetPrinterScaleX(*args, **kwargs)
3436
3437 def SetPrinterScaleY(*args, **kwargs):
3438 """SetPrinterScaleY(double y)"""
3439 return _windows.PrintData_SetPrinterScaleY(*args, **kwargs)
3440
3441 def SetPrinterScaling(*args, **kwargs):
3442 """SetPrinterScaling(double x, double y)"""
3443 return _windows.PrintData_SetPrinterScaling(*args, **kwargs)
3444
3445 def SetPrinterTranslateX(*args, **kwargs):
3446 """SetPrinterTranslateX(long x)"""
3447 return _windows.PrintData_SetPrinterTranslateX(*args, **kwargs)
3448
3449 def SetPrinterTranslateY(*args, **kwargs):
3450 """SetPrinterTranslateY(long y)"""
3451 return _windows.PrintData_SetPrinterTranslateY(*args, **kwargs)
3452
3453 def SetPrinterTranslation(*args, **kwargs):
3454 """SetPrinterTranslation(long x, long y)"""
3455 return _windows.PrintData_SetPrinterTranslation(*args, **kwargs)
3456
3457 def SetPrintMode(*args, **kwargs):
d03fd34d 3458 """SetPrintMode(int printMode)"""
423f194a
RD
3459 return _windows.PrintData_SetPrintMode(*args, **kwargs)
3460
db914595
RD
3461 def GetOutputStream(*args, **kwargs):
3462 """GetOutputStream() -> OutputStream"""
3463 return _windows.PrintData_GetOutputStream(*args, **kwargs)
3464
3465 def SetOutputStream(*args, **kwargs):
3466 """SetOutputStream(OutputStream outputstream)"""
3467 return _windows.PrintData_SetOutputStream(*args, **kwargs)
3468
d14a1e28 3469 def __nonzero__(self): return self.Ok()
6d26dc89 3470
d14a1e28
RD
3471class PrintDataPtr(PrintData):
3472 def __init__(self, this):
3473 self.this = this
3474 if not hasattr(self,"thisown"): self.thisown = 0
3475 self.__class__ = PrintData
3476_windows.PrintData_swigregister(PrintDataPtr)
d03fd34d
RD
3477PrintoutTitleStr = cvar.PrintoutTitleStr
3478PreviewCanvasNameStr = cvar.PreviewCanvasNameStr
d14a1e28
RD
3479
3480class PageSetupDialogData(core.Object):
423f194a
RD
3481 def __repr__(self):
3482 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3483 def __init__(self, *args, **kwargs):
423f194a 3484 """__init__() -> PageSetupDialogData"""
d14a1e28
RD
3485 newobj = _windows.new_PageSetupDialogData(*args, **kwargs)
3486 self.this = newobj.this
3487 self.thisown = 1
3488 del newobj.thisown
3489 def __del__(self, destroy=_windows.delete_PageSetupDialogData):
423f194a 3490 """__del__()"""
d14a1e28
RD
3491 try:
3492 if self.thisown: destroy(self)
3493 except: pass
423f194a
RD
3494
3495 def EnableHelp(*args, **kwargs):
3496 """EnableHelp(bool flag)"""
3497 return _windows.PageSetupDialogData_EnableHelp(*args, **kwargs)
3498
3499 def EnableMargins(*args, **kwargs):
3500 """EnableMargins(bool flag)"""
3501 return _windows.PageSetupDialogData_EnableMargins(*args, **kwargs)
3502
3503 def EnableOrientation(*args, **kwargs):
3504 """EnableOrientation(bool flag)"""
3505 return _windows.PageSetupDialogData_EnableOrientation(*args, **kwargs)
3506
3507 def EnablePaper(*args, **kwargs):
3508 """EnablePaper(bool flag)"""
3509 return _windows.PageSetupDialogData_EnablePaper(*args, **kwargs)
3510
3511 def EnablePrinter(*args, **kwargs):
3512 """EnablePrinter(bool flag)"""
3513 return _windows.PageSetupDialogData_EnablePrinter(*args, **kwargs)
3514
3515 def GetDefaultMinMargins(*args, **kwargs):
3516 """GetDefaultMinMargins() -> bool"""
3517 return _windows.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs)
3518
3519 def GetEnableMargins(*args, **kwargs):
3520 """GetEnableMargins() -> bool"""
3521 return _windows.PageSetupDialogData_GetEnableMargins(*args, **kwargs)
3522
3523 def GetEnableOrientation(*args, **kwargs):
3524 """GetEnableOrientation() -> bool"""
3525 return _windows.PageSetupDialogData_GetEnableOrientation(*args, **kwargs)
3526
3527 def GetEnablePaper(*args, **kwargs):
3528 """GetEnablePaper() -> bool"""
3529 return _windows.PageSetupDialogData_GetEnablePaper(*args, **kwargs)
3530
3531 def GetEnablePrinter(*args, **kwargs):
3532 """GetEnablePrinter() -> bool"""
3533 return _windows.PageSetupDialogData_GetEnablePrinter(*args, **kwargs)
3534
3535 def GetEnableHelp(*args, **kwargs):
3536 """GetEnableHelp() -> bool"""
3537 return _windows.PageSetupDialogData_GetEnableHelp(*args, **kwargs)
3538
3539 def GetDefaultInfo(*args, **kwargs):
3540 """GetDefaultInfo() -> bool"""
3541 return _windows.PageSetupDialogData_GetDefaultInfo(*args, **kwargs)
3542
3543 def GetMarginTopLeft(*args, **kwargs):
3544 """GetMarginTopLeft() -> Point"""
3545 return _windows.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs)
3546
3547 def GetMarginBottomRight(*args, **kwargs):
3548 """GetMarginBottomRight() -> Point"""
3549 return _windows.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs)
3550
3551 def GetMinMarginTopLeft(*args, **kwargs):
3552 """GetMinMarginTopLeft() -> Point"""
3553 return _windows.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs)
3554
3555 def GetMinMarginBottomRight(*args, **kwargs):
3556 """GetMinMarginBottomRight() -> Point"""
3557 return _windows.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs)
3558
3559 def GetPaperId(*args, **kwargs):
d03fd34d 3560 """GetPaperId() -> int"""
423f194a
RD
3561 return _windows.PageSetupDialogData_GetPaperId(*args, **kwargs)
3562
3563 def GetPaperSize(*args, **kwargs):
3564 """GetPaperSize() -> Size"""
3565 return _windows.PageSetupDialogData_GetPaperSize(*args, **kwargs)
3566
3567 def GetPrintData(*args, **kwargs):
3568 """GetPrintData() -> PrintData"""
3569 return _windows.PageSetupDialogData_GetPrintData(*args, **kwargs)
3570
3571 def Ok(*args, **kwargs):
3572 """Ok() -> bool"""
3573 return _windows.PageSetupDialogData_Ok(*args, **kwargs)
3574
3575 def SetDefaultInfo(*args, **kwargs):
3576 """SetDefaultInfo(bool flag)"""
3577 return _windows.PageSetupDialogData_SetDefaultInfo(*args, **kwargs)
3578
3579 def SetDefaultMinMargins(*args, **kwargs):
3580 """SetDefaultMinMargins(bool flag)"""
3581 return _windows.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs)
3582
3583 def SetMarginTopLeft(*args, **kwargs):
3584 """SetMarginTopLeft(Point pt)"""
3585 return _windows.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs)
3586
3587 def SetMarginBottomRight(*args, **kwargs):
3588 """SetMarginBottomRight(Point pt)"""
3589 return _windows.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs)
3590
3591 def SetMinMarginTopLeft(*args, **kwargs):
3592 """SetMinMarginTopLeft(Point pt)"""
3593 return _windows.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs)
3594
3595 def SetMinMarginBottomRight(*args, **kwargs):
3596 """SetMinMarginBottomRight(Point pt)"""
3597 return _windows.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs)
3598
3599 def SetPaperId(*args, **kwargs):
d03fd34d 3600 """SetPaperId(int id)"""
423f194a
RD
3601 return _windows.PageSetupDialogData_SetPaperId(*args, **kwargs)
3602
3603 def SetPaperSize(*args, **kwargs):
3604 """SetPaperSize(Size size)"""
3605 return _windows.PageSetupDialogData_SetPaperSize(*args, **kwargs)
3606
3607 def SetPrintData(*args, **kwargs):
3608 """SetPrintData(PrintData printData)"""
3609 return _windows.PageSetupDialogData_SetPrintData(*args, **kwargs)
3610
d14a1e28 3611 def __nonzero__(self): return self.Ok()
1b62f00d 3612
d14a1e28
RD
3613class PageSetupDialogDataPtr(PageSetupDialogData):
3614 def __init__(self, this):
3615 self.this = this
3616 if not hasattr(self,"thisown"): self.thisown = 0
3617 self.__class__ = PageSetupDialogData
3618_windows.PageSetupDialogData_swigregister(PageSetupDialogDataPtr)
3619
3620class PageSetupDialog(Dialog):
423f194a
RD
3621 def __repr__(self):
3622 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3623 def __init__(self, *args, **kwargs):
423f194a 3624 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
d14a1e28
RD
3625 newobj = _windows.new_PageSetupDialog(*args, **kwargs)
3626 self.this = newobj.this
3627 self.thisown = 1
3628 del newobj.thisown
3629 self._setOORInfo(self)
423f194a
RD
3630
3631 def GetPageSetupData(*args, **kwargs):
3632 """GetPageSetupData() -> PageSetupDialogData"""
3633 return _windows.PageSetupDialog_GetPageSetupData(*args, **kwargs)
3634
3635 def ShowModal(*args, **kwargs):
3636 """ShowModal() -> int"""
3637 return _windows.PageSetupDialog_ShowModal(*args, **kwargs)
3638
d14a1e28
RD
3639
3640class PageSetupDialogPtr(PageSetupDialog):
3641 def __init__(self, this):
3642 self.this = this
3643 if not hasattr(self,"thisown"): self.thisown = 0
3644 self.__class__ = PageSetupDialog
3645_windows.PageSetupDialog_swigregister(PageSetupDialogPtr)
3646
3647class PrintDialogData(core.Object):
423f194a
RD
3648 def __repr__(self):
3649 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
fe763115
RD
3650 def __init__(self, *args):
3651 """
3652 __init__() -> PrintDialogData
3653 __init__(PrintData printData) -> PrintDialogData
3654 """
3655 newobj = _windows.new_PrintDialogData(*args)
d14a1e28
RD
3656 self.this = newobj.this
3657 self.thisown = 1
3658 del newobj.thisown
3659 def __del__(self, destroy=_windows.delete_PrintDialogData):
423f194a 3660 """__del__()"""
d14a1e28
RD
3661 try:
3662 if self.thisown: destroy(self)
3663 except: pass
423f194a
RD
3664
3665 def GetFromPage(*args, **kwargs):
3666 """GetFromPage() -> int"""
3667 return _windows.PrintDialogData_GetFromPage(*args, **kwargs)
3668
3669 def GetToPage(*args, **kwargs):
3670 """GetToPage() -> int"""
3671 return _windows.PrintDialogData_GetToPage(*args, **kwargs)
3672
3673 def GetMinPage(*args, **kwargs):
3674 """GetMinPage() -> int"""
3675 return _windows.PrintDialogData_GetMinPage(*args, **kwargs)
3676
3677 def GetMaxPage(*args, **kwargs):
3678 """GetMaxPage() -> int"""
3679 return _windows.PrintDialogData_GetMaxPage(*args, **kwargs)
3680
3681 def GetNoCopies(*args, **kwargs):
3682 """GetNoCopies() -> int"""
3683 return _windows.PrintDialogData_GetNoCopies(*args, **kwargs)
3684
3685 def GetAllPages(*args, **kwargs):
3686 """GetAllPages() -> bool"""
3687 return _windows.PrintDialogData_GetAllPages(*args, **kwargs)
3688
3689 def GetSelection(*args, **kwargs):
3690 """GetSelection() -> bool"""
3691 return _windows.PrintDialogData_GetSelection(*args, **kwargs)
3692
3693 def GetCollate(*args, **kwargs):
3694 """GetCollate() -> bool"""
3695 return _windows.PrintDialogData_GetCollate(*args, **kwargs)
3696
3697 def GetPrintToFile(*args, **kwargs):
3698 """GetPrintToFile() -> bool"""
3699 return _windows.PrintDialogData_GetPrintToFile(*args, **kwargs)
3700
3701 def GetSetupDialog(*args, **kwargs):
3702 """GetSetupDialog() -> bool"""
3703 return _windows.PrintDialogData_GetSetupDialog(*args, **kwargs)
3704
3705 def SetFromPage(*args, **kwargs):
3706 """SetFromPage(int v)"""
3707 return _windows.PrintDialogData_SetFromPage(*args, **kwargs)
3708
3709 def SetToPage(*args, **kwargs):
3710 """SetToPage(int v)"""
3711 return _windows.PrintDialogData_SetToPage(*args, **kwargs)
3712
3713 def SetMinPage(*args, **kwargs):
3714 """SetMinPage(int v)"""
3715 return _windows.PrintDialogData_SetMinPage(*args, **kwargs)
3716
3717 def SetMaxPage(*args, **kwargs):
3718 """SetMaxPage(int v)"""
3719 return _windows.PrintDialogData_SetMaxPage(*args, **kwargs)
3720
3721 def SetNoCopies(*args, **kwargs):
3722 """SetNoCopies(int v)"""
3723 return _windows.PrintDialogData_SetNoCopies(*args, **kwargs)
3724
3725 def SetAllPages(*args, **kwargs):
3726 """SetAllPages(bool flag)"""
3727 return _windows.PrintDialogData_SetAllPages(*args, **kwargs)
3728
3729 def SetSelection(*args, **kwargs):
3730 """SetSelection(bool flag)"""
3731 return _windows.PrintDialogData_SetSelection(*args, **kwargs)
3732
3733 def SetCollate(*args, **kwargs):
3734 """SetCollate(bool flag)"""
3735 return _windows.PrintDialogData_SetCollate(*args, **kwargs)
3736
3737 def SetPrintToFile(*args, **kwargs):
3738 """SetPrintToFile(bool flag)"""
3739 return _windows.PrintDialogData_SetPrintToFile(*args, **kwargs)
3740
3741 def SetSetupDialog(*args, **kwargs):
3742 """SetSetupDialog(bool flag)"""
3743 return _windows.PrintDialogData_SetSetupDialog(*args, **kwargs)
3744
3745 def EnablePrintToFile(*args, **kwargs):
3746 """EnablePrintToFile(bool flag)"""
3747 return _windows.PrintDialogData_EnablePrintToFile(*args, **kwargs)
3748
3749 def EnableSelection(*args, **kwargs):
3750 """EnableSelection(bool flag)"""
3751 return _windows.PrintDialogData_EnableSelection(*args, **kwargs)
3752
3753 def EnablePageNumbers(*args, **kwargs):
3754 """EnablePageNumbers(bool flag)"""
3755 return _windows.PrintDialogData_EnablePageNumbers(*args, **kwargs)
3756
3757 def EnableHelp(*args, **kwargs):
3758 """EnableHelp(bool flag)"""
3759 return _windows.PrintDialogData_EnableHelp(*args, **kwargs)
3760
3761 def GetEnablePrintToFile(*args, **kwargs):
3762 """GetEnablePrintToFile() -> bool"""
3763 return _windows.PrintDialogData_GetEnablePrintToFile(*args, **kwargs)
3764
3765 def GetEnableSelection(*args, **kwargs):
3766 """GetEnableSelection() -> bool"""
3767 return _windows.PrintDialogData_GetEnableSelection(*args, **kwargs)
3768
3769 def GetEnablePageNumbers(*args, **kwargs):
3770 """GetEnablePageNumbers() -> bool"""
3771 return _windows.PrintDialogData_GetEnablePageNumbers(*args, **kwargs)
3772
3773 def GetEnableHelp(*args, **kwargs):
3774 """GetEnableHelp() -> bool"""
3775 return _windows.PrintDialogData_GetEnableHelp(*args, **kwargs)
3776
3777 def Ok(*args, **kwargs):
3778 """Ok() -> bool"""
3779 return _windows.PrintDialogData_Ok(*args, **kwargs)
3780
3781 def GetPrintData(*args, **kwargs):
3782 """GetPrintData() -> PrintData"""
3783 return _windows.PrintDialogData_GetPrintData(*args, **kwargs)
3784
3785 def SetPrintData(*args, **kwargs):
3786 """SetPrintData(PrintData printData)"""
3787 return _windows.PrintDialogData_SetPrintData(*args, **kwargs)
3788
d14a1e28 3789 def __nonzero__(self): return self.Ok()
d14a1e28
RD
3790
3791class PrintDialogDataPtr(PrintDialogData):
3792 def __init__(self, this):
3793 self.this = this
3794 if not hasattr(self,"thisown"): self.thisown = 0
3795 self.__class__ = PrintDialogData
3796_windows.PrintDialogData_swigregister(PrintDialogDataPtr)
3797
3798class PrintDialog(Dialog):
423f194a
RD
3799 def __repr__(self):
3800 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3801 def __init__(self, *args, **kwargs):
423f194a 3802 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
d14a1e28
RD
3803 newobj = _windows.new_PrintDialog(*args, **kwargs)
3804 self.this = newobj.this
3805 self.thisown = 1
3806 del newobj.thisown
3807 self._setOORInfo(self)
423f194a
RD
3808
3809 def GetPrintDialogData(*args, **kwargs):
3810 """GetPrintDialogData() -> PrintDialogData"""
3811 return _windows.PrintDialog_GetPrintDialogData(*args, **kwargs)
3812
3813 def GetPrintDC(*args, **kwargs):
d03fd34d 3814 """GetPrintDC() -> DC"""
423f194a
RD
3815 return _windows.PrintDialog_GetPrintDC(*args, **kwargs)
3816
3817 def ShowModal(*args, **kwargs):
3818 """ShowModal() -> int"""
3819 return _windows.PrintDialog_ShowModal(*args, **kwargs)
3820
d14a1e28
RD
3821
3822class PrintDialogPtr(PrintDialog):
3823 def __init__(self, this):
3824 self.this = this
3825 if not hasattr(self,"thisown"): self.thisown = 0
3826 self.__class__ = PrintDialog
3827_windows.PrintDialog_swigregister(PrintDialogPtr)
3828
3829PRINTER_NO_ERROR = _windows.PRINTER_NO_ERROR
3830PRINTER_CANCELLED = _windows.PRINTER_CANCELLED
3831PRINTER_ERROR = _windows.PRINTER_ERROR
3832class Printer(core.Object):
423f194a
RD
3833 def __repr__(self):
3834 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3835 def __init__(self, *args, **kwargs):
423f194a 3836 """__init__(PrintDialogData data=None) -> Printer"""
d14a1e28
RD
3837 newobj = _windows.new_Printer(*args, **kwargs)
3838 self.this = newobj.this
3839 self.thisown = 1
3840 del newobj.thisown
3841 def __del__(self, destroy=_windows.delete_Printer):
423f194a 3842 """__del__()"""
d14a1e28
RD
3843 try:
3844 if self.thisown: destroy(self)
3845 except: pass
423f194a
RD
3846
3847 def CreateAbortWindow(*args, **kwargs):
3848 """CreateAbortWindow(Window parent, Printout printout)"""
3849 return _windows.Printer_CreateAbortWindow(*args, **kwargs)
3850
3851 def GetPrintDialogData(*args, **kwargs):
3852 """GetPrintDialogData() -> PrintDialogData"""
3853 return _windows.Printer_GetPrintDialogData(*args, **kwargs)
3854
3855 def Print(*args, **kwargs):
3856 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
3857 return _windows.Printer_Print(*args, **kwargs)
3858
3859 def PrintDialog(*args, **kwargs):
d03fd34d 3860 """PrintDialog(Window parent) -> DC"""
423f194a
RD
3861 return _windows.Printer_PrintDialog(*args, **kwargs)
3862
3863 def ReportError(*args, **kwargs):
d03fd34d 3864 """ReportError(Window parent, Printout printout, String message)"""
423f194a
RD
3865 return _windows.Printer_ReportError(*args, **kwargs)
3866
3867 def Setup(*args, **kwargs):
3868 """Setup(Window parent) -> bool"""
3869 return _windows.Printer_Setup(*args, **kwargs)
3870
3871 def GetAbort(*args, **kwargs):
3872 """GetAbort() -> bool"""
3873 return _windows.Printer_GetAbort(*args, **kwargs)
3874
3875 def GetLastError(*args, **kwargs):
83448d71 3876 """GetLastError() -> int"""
423f194a
RD
3877 return _windows.Printer_GetLastError(*args, **kwargs)
3878
3879 GetLastError = staticmethod(GetLastError)
d14a1e28
RD
3880
3881class PrinterPtr(Printer):
3882 def __init__(self, this):
3883 self.this = this
3884 if not hasattr(self,"thisown"): self.thisown = 0
3885 self.__class__ = Printer
3886_windows.Printer_swigregister(PrinterPtr)
f3d9dc1d 3887
423f194a 3888def Printer_GetLastError(*args, **kwargs):
d03fd34d 3889 """Printer_GetLastError() -> int"""
423f194a 3890 return _windows.Printer_GetLastError(*args, **kwargs)
8ab979d7 3891
d14a1e28 3892class Printout(core.Object):
423f194a
RD
3893 def __repr__(self):
3894 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3895 def __init__(self, *args, **kwargs):
d03fd34d 3896 """__init__(String title=PrintoutTitleStr) -> Printout"""
d14a1e28
RD
3897 newobj = _windows.new_Printout(*args, **kwargs)
3898 self.this = newobj.this
3899 self.thisown = 1
3900 del newobj.thisown
3901 self._setCallbackInfo(self, Printout)
423f194a
RD
3902
3903 def _setCallbackInfo(*args, **kwargs):
3904 """_setCallbackInfo(PyObject self, PyObject _class)"""
3905 return _windows.Printout__setCallbackInfo(*args, **kwargs)
3906
3907 def GetTitle(*args, **kwargs):
d03fd34d 3908 """GetTitle() -> String"""
423f194a
RD
3909 return _windows.Printout_GetTitle(*args, **kwargs)
3910
3911 def GetDC(*args, **kwargs):
d03fd34d 3912 """GetDC() -> DC"""
423f194a
RD
3913 return _windows.Printout_GetDC(*args, **kwargs)
3914
3915 def SetDC(*args, **kwargs):
d03fd34d 3916 """SetDC(DC dc)"""
423f194a
RD
3917 return _windows.Printout_SetDC(*args, **kwargs)
3918
423f194a
RD
3919 def SetPageSizePixels(*args, **kwargs):
3920 """SetPageSizePixels(int w, int h)"""
3921 return _windows.Printout_SetPageSizePixels(*args, **kwargs)
3922
44127b65
RD
3923 def GetPageSizePixels(*args, **kwargs):
3924 """GetPageSizePixels() -> (w, h)"""
3925 return _windows.Printout_GetPageSizePixels(*args, **kwargs)
3926
423f194a
RD
3927 def SetPageSizeMM(*args, **kwargs):
3928 """SetPageSizeMM(int w, int h)"""
3929 return _windows.Printout_SetPageSizeMM(*args, **kwargs)
3930
3931 def GetPageSizeMM(*args, **kwargs):
44127b65 3932 """GetPageSizeMM() -> (w, h)"""
423f194a
RD
3933 return _windows.Printout_GetPageSizeMM(*args, **kwargs)
3934
3935 def SetPPIScreen(*args, **kwargs):
3936 """SetPPIScreen(int x, int y)"""
3937 return _windows.Printout_SetPPIScreen(*args, **kwargs)
3938
3939 def GetPPIScreen(*args, **kwargs):
44127b65 3940 """GetPPIScreen() -> (x,y)"""
423f194a
RD
3941 return _windows.Printout_GetPPIScreen(*args, **kwargs)
3942
3943 def SetPPIPrinter(*args, **kwargs):
3944 """SetPPIPrinter(int x, int y)"""
3945 return _windows.Printout_SetPPIPrinter(*args, **kwargs)
3946
3947 def GetPPIPrinter(*args, **kwargs):
44127b65 3948 """GetPPIPrinter() -> (x,y)"""
423f194a
RD
3949 return _windows.Printout_GetPPIPrinter(*args, **kwargs)
3950
3951 def IsPreview(*args, **kwargs):
3952 """IsPreview() -> bool"""
3953 return _windows.Printout_IsPreview(*args, **kwargs)
3954
3955 def SetIsPreview(*args, **kwargs):
3956 """SetIsPreview(bool p)"""
3957 return _windows.Printout_SetIsPreview(*args, **kwargs)
3958
3959 def base_OnBeginDocument(*args, **kwargs):
3960 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
3961 return _windows.Printout_base_OnBeginDocument(*args, **kwargs)
3962
3963 def base_OnEndDocument(*args, **kwargs):
3964 """base_OnEndDocument()"""
3965 return _windows.Printout_base_OnEndDocument(*args, **kwargs)
3966
3967 def base_OnBeginPrinting(*args, **kwargs):
3968 """base_OnBeginPrinting()"""
3969 return _windows.Printout_base_OnBeginPrinting(*args, **kwargs)
3970
3971 def base_OnEndPrinting(*args, **kwargs):
3972 """base_OnEndPrinting()"""
3973 return _windows.Printout_base_OnEndPrinting(*args, **kwargs)
3974
3975 def base_OnPreparePrinting(*args, **kwargs):
3976 """base_OnPreparePrinting()"""
3977 return _windows.Printout_base_OnPreparePrinting(*args, **kwargs)
3978
423f194a
RD
3979 def base_HasPage(*args, **kwargs):
3980 """base_HasPage(int page) -> bool"""
3981 return _windows.Printout_base_HasPage(*args, **kwargs)
3982
44127b65
RD
3983 def base_GetPageInfo(*args, **kwargs):
3984 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
3985 return _windows.Printout_base_GetPageInfo(*args, **kwargs)
3986
d14a1e28
RD
3987
3988class PrintoutPtr(Printout):
3989 def __init__(self, this):
3990 self.this = this
3991 if not hasattr(self,"thisown"): self.thisown = 0
3992 self.__class__ = Printout
3993_windows.Printout_swigregister(PrintoutPtr)
3994
3995class PreviewCanvas(ScrolledWindow):
423f194a
RD
3996 def __repr__(self):
3997 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3998 def __init__(self, *args, **kwargs):
41f1cec7
RD
3999 """
4000 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
4001 Size size=DefaultSize, long style=0,
d03fd34d 4002 String name=PreviewCanvasNameStr) -> PreviewCanvas
41f1cec7 4003 """
d14a1e28
RD
4004 newobj = _windows.new_PreviewCanvas(*args, **kwargs)
4005 self.this = newobj.this
4006 self.thisown = 1
4007 del newobj.thisown
8a0b029b 4008 self._setOORInfo(self)
423f194a 4009
d14a1e28
RD
4010
4011class PreviewCanvasPtr(PreviewCanvas):
4012 def __init__(self, this):
4013 self.this = this
4014 if not hasattr(self,"thisown"): self.thisown = 0
4015 self.__class__ = PreviewCanvas
4016_windows.PreviewCanvas_swigregister(PreviewCanvasPtr)
4017
4018class PreviewFrame(Frame):
423f194a
RD
4019 def __repr__(self):
4020 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4021 def __init__(self, *args, **kwargs):
41f1cec7 4022 """
d03fd34d
RD
4023 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4024 Size size=DefaultSize,
4025 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
41f1cec7 4026 """
d14a1e28
RD
4027 newobj = _windows.new_PreviewFrame(*args, **kwargs)
4028 self.this = newobj.this
4029 self.thisown = 1
4030 del newobj.thisown
8a0b029b 4031 self._setOORInfo(self)
423f194a
RD
4032
4033 def Initialize(*args, **kwargs):
4034 """Initialize()"""
4035 return _windows.PreviewFrame_Initialize(*args, **kwargs)
4036
4037 def CreateControlBar(*args, **kwargs):
4038 """CreateControlBar()"""
4039 return _windows.PreviewFrame_CreateControlBar(*args, **kwargs)
4040
4041 def CreateCanvas(*args, **kwargs):
4042 """CreateCanvas()"""
4043 return _windows.PreviewFrame_CreateCanvas(*args, **kwargs)
4044
4045 def GetControlBar(*args, **kwargs):
4046 """GetControlBar() -> PreviewControlBar"""
4047 return _windows.PreviewFrame_GetControlBar(*args, **kwargs)
4048
d14a1e28
RD
4049
4050class PreviewFramePtr(PreviewFrame):
4051 def __init__(self, this):
4052 self.this = this
4053 if not hasattr(self,"thisown"): self.thisown = 0
4054 self.__class__ = PreviewFrame
4055_windows.PreviewFrame_swigregister(PreviewFramePtr)
4056
4057PREVIEW_PRINT = _windows.PREVIEW_PRINT
4058PREVIEW_PREVIOUS = _windows.PREVIEW_PREVIOUS
4059PREVIEW_NEXT = _windows.PREVIEW_NEXT
4060PREVIEW_ZOOM = _windows.PREVIEW_ZOOM
4061PREVIEW_FIRST = _windows.PREVIEW_FIRST
4062PREVIEW_LAST = _windows.PREVIEW_LAST
4063PREVIEW_GOTO = _windows.PREVIEW_GOTO
4064PREVIEW_DEFAULT = _windows.PREVIEW_DEFAULT
4065ID_PREVIEW_CLOSE = _windows.ID_PREVIEW_CLOSE
4066ID_PREVIEW_NEXT = _windows.ID_PREVIEW_NEXT
4067ID_PREVIEW_PREVIOUS = _windows.ID_PREVIEW_PREVIOUS
4068ID_PREVIEW_PRINT = _windows.ID_PREVIEW_PRINT
4069ID_PREVIEW_ZOOM = _windows.ID_PREVIEW_ZOOM
4070ID_PREVIEW_FIRST = _windows.ID_PREVIEW_FIRST
4071ID_PREVIEW_LAST = _windows.ID_PREVIEW_LAST
4072ID_PREVIEW_GOTO = _windows.ID_PREVIEW_GOTO
4073class PreviewControlBar(Panel):
423f194a
RD
4074 def __repr__(self):
4075 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4076 def __init__(self, *args, **kwargs):
41f1cec7
RD
4077 """
4078 __init__(PrintPreview preview, long buttons, Window parent,
4079 Point pos=DefaultPosition, Size size=DefaultSize,
d03fd34d 4080 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
41f1cec7 4081 """
d14a1e28
RD
4082 newobj = _windows.new_PreviewControlBar(*args, **kwargs)
4083 self.this = newobj.this
4084 self.thisown = 1
4085 del newobj.thisown
8a0b029b 4086 self._setOORInfo(self)
423f194a
RD
4087
4088 def GetZoomControl(*args, **kwargs):
4089 """GetZoomControl() -> int"""
4090 return _windows.PreviewControlBar_GetZoomControl(*args, **kwargs)
4091
4092 def SetZoomControl(*args, **kwargs):
4093 """SetZoomControl(int zoom)"""
4094 return _windows.PreviewControlBar_SetZoomControl(*args, **kwargs)
4095
4096 def GetPrintPreview(*args, **kwargs):
4097 """GetPrintPreview() -> PrintPreview"""
4098 return _windows.PreviewControlBar_GetPrintPreview(*args, **kwargs)
4099
4100 def OnNext(*args, **kwargs):
4101 """OnNext()"""
4102 return _windows.PreviewControlBar_OnNext(*args, **kwargs)
4103
4104 def OnPrevious(*args, **kwargs):
4105 """OnPrevious()"""
4106 return _windows.PreviewControlBar_OnPrevious(*args, **kwargs)
4107
4108 def OnFirst(*args, **kwargs):
4109 """OnFirst()"""
4110 return _windows.PreviewControlBar_OnFirst(*args, **kwargs)
4111
4112 def OnLast(*args, **kwargs):
4113 """OnLast()"""
4114 return _windows.PreviewControlBar_OnLast(*args, **kwargs)
4115
4116 def OnGoto(*args, **kwargs):
4117 """OnGoto()"""
4118 return _windows.PreviewControlBar_OnGoto(*args, **kwargs)
4119
d14a1e28
RD
4120
4121class PreviewControlBarPtr(PreviewControlBar):
4122 def __init__(self, this):
4123 self.this = this
4124 if not hasattr(self,"thisown"): self.thisown = 0
4125 self.__class__ = PreviewControlBar
4126_windows.PreviewControlBar_swigregister(PreviewControlBarPtr)
4127
4128class PrintPreview(core.Object):
423f194a
RD
4129 def __repr__(self):
4130 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
fe763115
RD
4131 def __init__(self, *args):
4132 """
4133 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4134 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4135 """
4136 newobj = _windows.new_PrintPreview(*args)
d14a1e28
RD
4137 self.this = newobj.this
4138 self.thisown = 1
4139 del newobj.thisown
423f194a
RD
4140 def SetCurrentPage(*args, **kwargs):
4141 """SetCurrentPage(int pageNum) -> bool"""
4142 return _windows.PrintPreview_SetCurrentPage(*args, **kwargs)
4143
4144 def GetCurrentPage(*args, **kwargs):
4145 """GetCurrentPage() -> int"""
4146 return _windows.PrintPreview_GetCurrentPage(*args, **kwargs)
4147
4148 def SetPrintout(*args, **kwargs):
4149 """SetPrintout(Printout printout)"""
4150 return _windows.PrintPreview_SetPrintout(*args, **kwargs)
4151
4152 def GetPrintout(*args, **kwargs):
4153 """GetPrintout() -> Printout"""
4154 return _windows.PrintPreview_GetPrintout(*args, **kwargs)
4155
4156 def GetPrintoutForPrinting(*args, **kwargs):
4157 """GetPrintoutForPrinting() -> Printout"""
4158 return _windows.PrintPreview_GetPrintoutForPrinting(*args, **kwargs)
4159
4160 def SetFrame(*args, **kwargs):
4161 """SetFrame(Frame frame)"""
4162 return _windows.PrintPreview_SetFrame(*args, **kwargs)
4163
4164 def SetCanvas(*args, **kwargs):
4165 """SetCanvas(PreviewCanvas canvas)"""
4166 return _windows.PrintPreview_SetCanvas(*args, **kwargs)
4167
4168 def GetFrame(*args, **kwargs):
4169 """GetFrame() -> Frame"""
4170 return _windows.PrintPreview_GetFrame(*args, **kwargs)
4171
4172 def GetCanvas(*args, **kwargs):
4173 """GetCanvas() -> PreviewCanvas"""
4174 return _windows.PrintPreview_GetCanvas(*args, **kwargs)
4175
4176 def PaintPage(*args, **kwargs):
d03fd34d 4177 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
423f194a
RD
4178 return _windows.PrintPreview_PaintPage(*args, **kwargs)
4179
4180 def DrawBlankPage(*args, **kwargs):
d03fd34d 4181 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
423f194a
RD
4182 return _windows.PrintPreview_DrawBlankPage(*args, **kwargs)
4183
4184 def RenderPage(*args, **kwargs):
4185 """RenderPage(int pageNum) -> bool"""
4186 return _windows.PrintPreview_RenderPage(*args, **kwargs)
4187
4188 def AdjustScrollbars(*args, **kwargs):
4189 """AdjustScrollbars(PreviewCanvas canvas)"""
4190 return _windows.PrintPreview_AdjustScrollbars(*args, **kwargs)
4191
4192 def GetPrintDialogData(*args, **kwargs):
4193 """GetPrintDialogData() -> PrintDialogData"""
4194 return _windows.PrintPreview_GetPrintDialogData(*args, **kwargs)
4195
4196 def SetZoom(*args, **kwargs):
4197 """SetZoom(int percent)"""
4198 return _windows.PrintPreview_SetZoom(*args, **kwargs)
4199
4200 def GetZoom(*args, **kwargs):
4201 """GetZoom() -> int"""
4202 return _windows.PrintPreview_GetZoom(*args, **kwargs)
4203
4204 def GetMaxPage(*args, **kwargs):
4205 """GetMaxPage() -> int"""
4206 return _windows.PrintPreview_GetMaxPage(*args, **kwargs)
4207
4208 def GetMinPage(*args, **kwargs):
4209 """GetMinPage() -> int"""
4210 return _windows.PrintPreview_GetMinPage(*args, **kwargs)
4211
4212 def Ok(*args, **kwargs):
4213 """Ok() -> bool"""
4214 return _windows.PrintPreview_Ok(*args, **kwargs)
4215
4216 def SetOk(*args, **kwargs):
4217 """SetOk(bool ok)"""
4218 return _windows.PrintPreview_SetOk(*args, **kwargs)
4219
4220 def Print(*args, **kwargs):
4221 """Print(bool interactive) -> bool"""
4222 return _windows.PrintPreview_Print(*args, **kwargs)
4223
4224 def DetermineScaling(*args, **kwargs):
4225 """DetermineScaling()"""
4226 return _windows.PrintPreview_DetermineScaling(*args, **kwargs)
4227
d14a1e28 4228 def __nonzero__(self): return self.Ok()
d14a1e28
RD
4229
4230class PrintPreviewPtr(PrintPreview):
4231 def __init__(self, this):
4232 self.this = this
4233 if not hasattr(self,"thisown"): self.thisown = 0
4234 self.__class__ = PrintPreview
4235_windows.PrintPreview_swigregister(PrintPreviewPtr)
4236
4237class PyPrintPreview(PrintPreview):
423f194a
RD
4238 def __repr__(self):
4239 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
fe763115
RD
4240 def __init__(self, *args):
4241 """
4242 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4243 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4244 """
4245 newobj = _windows.new_PyPrintPreview(*args)
d14a1e28
RD
4246 self.this = newobj.this
4247 self.thisown = 1
4248 del newobj.thisown
4249 self._setCallbackInfo(self, PyPrintPreview)
423f194a
RD
4250
4251 def _setCallbackInfo(*args, **kwargs):
4252 """_setCallbackInfo(PyObject self, PyObject _class)"""
4253 return _windows.PyPrintPreview__setCallbackInfo(*args, **kwargs)
4254
4255 def base_SetCurrentPage(*args, **kwargs):
4256 """base_SetCurrentPage(int pageNum) -> bool"""
4257 return _windows.PyPrintPreview_base_SetCurrentPage(*args, **kwargs)
4258
4259 def base_PaintPage(*args, **kwargs):
d03fd34d 4260 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
423f194a
RD
4261 return _windows.PyPrintPreview_base_PaintPage(*args, **kwargs)
4262
4263 def base_DrawBlankPage(*args, **kwargs):
d03fd34d 4264 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
423f194a
RD
4265 return _windows.PyPrintPreview_base_DrawBlankPage(*args, **kwargs)
4266
4267 def base_RenderPage(*args, **kwargs):
4268 """base_RenderPage(int pageNum) -> bool"""
4269 return _windows.PyPrintPreview_base_RenderPage(*args, **kwargs)
4270
4271 def base_SetZoom(*args, **kwargs):
4272 """base_SetZoom(int percent)"""
4273 return _windows.PyPrintPreview_base_SetZoom(*args, **kwargs)
4274
4275 def base_Print(*args, **kwargs):
4276 """base_Print(bool interactive) -> bool"""
4277 return _windows.PyPrintPreview_base_Print(*args, **kwargs)
4278
4279 def base_DetermineScaling(*args, **kwargs):
4280 """base_DetermineScaling()"""
4281 return _windows.PyPrintPreview_base_DetermineScaling(*args, **kwargs)
4282
d14a1e28
RD
4283
4284class PyPrintPreviewPtr(PyPrintPreview):
4285 def __init__(self, this):
4286 self.this = this
4287 if not hasattr(self,"thisown"): self.thisown = 0
4288 self.__class__ = PyPrintPreview
4289_windows.PyPrintPreview_swigregister(PyPrintPreviewPtr)
4290
4291class PyPreviewFrame(PreviewFrame):
423f194a
RD
4292 def __repr__(self):
4293 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4294 def __init__(self, *args, **kwargs):
41f1cec7 4295 """
d03fd34d
RD
4296 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4297 Size size=DefaultSize,
4298 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
41f1cec7 4299 """
d14a1e28
RD
4300 newobj = _windows.new_PyPreviewFrame(*args, **kwargs)
4301 self.this = newobj.this
4302 self.thisown = 1
4303 del newobj.thisown
4304 self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self)
423f194a
RD
4305
4306 def _setCallbackInfo(*args, **kwargs):
4307 """_setCallbackInfo(PyObject self, PyObject _class)"""
4308 return _windows.PyPreviewFrame__setCallbackInfo(*args, **kwargs)
4309
4310 def SetPreviewCanvas(*args, **kwargs):
4311 """SetPreviewCanvas(PreviewCanvas canvas)"""
4312 return _windows.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs)
4313
4314 def SetControlBar(*args, **kwargs):
4315 """SetControlBar(PreviewControlBar bar)"""
4316 return _windows.PyPreviewFrame_SetControlBar(*args, **kwargs)
4317
4318 def base_Initialize(*args, **kwargs):
4319 """base_Initialize()"""
4320 return _windows.PyPreviewFrame_base_Initialize(*args, **kwargs)
4321
4322 def base_CreateCanvas(*args, **kwargs):
4323 """base_CreateCanvas()"""
4324 return _windows.PyPreviewFrame_base_CreateCanvas(*args, **kwargs)
4325
4326 def base_CreateControlBar(*args, **kwargs):
4327 """base_CreateControlBar()"""
4328 return _windows.PyPreviewFrame_base_CreateControlBar(*args, **kwargs)
4329
d14a1e28
RD
4330
4331class PyPreviewFramePtr(PyPreviewFrame):
4332 def __init__(self, this):
4333 self.this = this
4334 if not hasattr(self,"thisown"): self.thisown = 0
4335 self.__class__ = PyPreviewFrame
4336_windows.PyPreviewFrame_swigregister(PyPreviewFramePtr)
4337
4338class PyPreviewControlBar(PreviewControlBar):
423f194a
RD
4339 def __repr__(self):
4340 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4341 def __init__(self, *args, **kwargs):
41f1cec7
RD
4342 """
4343 __init__(PrintPreview preview, long buttons, Window parent,
4344 Point pos=DefaultPosition, Size size=DefaultSize,
d03fd34d 4345 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
41f1cec7 4346 """
d14a1e28
RD
4347 newobj = _windows.new_PyPreviewControlBar(*args, **kwargs)
4348 self.this = newobj.this
4349 self.thisown = 1
4350 del newobj.thisown
4351 self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self)
423f194a
RD
4352
4353 def _setCallbackInfo(*args, **kwargs):
4354 """_setCallbackInfo(PyObject self, PyObject _class)"""
4355 return _windows.PyPreviewControlBar__setCallbackInfo(*args, **kwargs)
4356
4357 def SetPrintPreview(*args, **kwargs):
4358 """SetPrintPreview(PrintPreview preview)"""
4359 return _windows.PyPreviewControlBar_SetPrintPreview(*args, **kwargs)
4360
4361 def base_CreateButtons(*args, **kwargs):
4362 """base_CreateButtons()"""
4363 return _windows.PyPreviewControlBar_base_CreateButtons(*args, **kwargs)
4364
4365 def base_SetZoomControl(*args, **kwargs):
4366 """base_SetZoomControl(int zoom)"""
4367 return _windows.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs)
4368
d14a1e28
RD
4369
4370class PyPreviewControlBarPtr(PyPreviewControlBar):
4371 def __init__(self, this):
4372 self.this = this
4373 if not hasattr(self,"thisown"): self.thisown = 0
4374 self.__class__ = PyPreviewControlBar
4375_windows.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr)
8ab979d7 4376
8ab979d7 4377