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