]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/windows.py
Added some more docstrings, and also a few little tweaks along the way.
[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):
423f194a
RD
1603 def __repr__(self):
1604 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1605 def __init__(self, *args, **kwargs):
423f194a 1606 """__init__() -> ColourData"""
d14a1e28
RD
1607 newobj = _windows.new_ColourData(*args, **kwargs)
1608 self.this = newobj.this
1609 self.thisown = 1
1610 del newobj.thisown
1611 def __del__(self, destroy=_windows.delete_ColourData):
423f194a 1612 """__del__()"""
d14a1e28
RD
1613 try:
1614 if self.thisown: destroy(self)
1615 except: pass
423f194a
RD
1616
1617 def GetChooseFull(*args, **kwargs):
1618 """GetChooseFull() -> bool"""
1619 return _windows.ColourData_GetChooseFull(*args, **kwargs)
1620
1621 def GetColour(*args, **kwargs):
cbd72d4f 1622 """GetColour() -> Colour"""
423f194a
RD
1623 return _windows.ColourData_GetColour(*args, **kwargs)
1624
1625 def GetCustomColour(*args, **kwargs):
cbd72d4f 1626 """GetCustomColour(int i) -> Colour"""
423f194a
RD
1627 return _windows.ColourData_GetCustomColour(*args, **kwargs)
1628
1629 def SetChooseFull(*args, **kwargs):
1630 """SetChooseFull(int flag)"""
1631 return _windows.ColourData_SetChooseFull(*args, **kwargs)
1632
1633 def SetColour(*args, **kwargs):
cbd72d4f 1634 """SetColour(Colour colour)"""
423f194a
RD
1635 return _windows.ColourData_SetColour(*args, **kwargs)
1636
1637 def SetCustomColour(*args, **kwargs):
cbd72d4f 1638 """SetCustomColour(int i, Colour colour)"""
423f194a
RD
1639 return _windows.ColourData_SetCustomColour(*args, **kwargs)
1640
e6056257 1641
d14a1e28
RD
1642class ColourDataPtr(ColourData):
1643 def __init__(self, this):
1644 self.this = this
1645 if not hasattr(self,"thisown"): self.thisown = 0
1646 self.__class__ = ColourData
1647_windows.ColourData_swigregister(ColourDataPtr)
cbd72d4f
RD
1648FileSelectorPromptStr = cvar.FileSelectorPromptStr
1649DirSelectorPromptStr = cvar.DirSelectorPromptStr
1650DirDialogNameStr = cvar.DirDialogNameStr
1651FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
1652GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr
1653MessageBoxCaptionStr = cvar.MessageBoxCaptionStr
d14a1e28
RD
1654
1655class ColourDialog(Dialog):
423f194a
RD
1656 def __repr__(self):
1657 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1658 def __init__(self, *args, **kwargs):
423f194a 1659 """__init__(Window parent, ColourData data=None) -> ColourDialog"""
d14a1e28
RD
1660 newobj = _windows.new_ColourDialog(*args, **kwargs)
1661 self.this = newobj.this
1662 self.thisown = 1
1663 del newobj.thisown
1664 self._setOORInfo(self)
423f194a
RD
1665
1666 def GetColourData(*args, **kwargs):
1667 """GetColourData() -> ColourData"""
1668 return _windows.ColourDialog_GetColourData(*args, **kwargs)
1669
1670 def ShowModal(*args, **kwargs):
1671 """ShowModal() -> int"""
1672 return _windows.ColourDialog_ShowModal(*args, **kwargs)
1673
e6056257 1674
d14a1e28
RD
1675class ColourDialogPtr(ColourDialog):
1676 def __init__(self, this):
e6056257 1677 self.this = this
d14a1e28
RD
1678 if not hasattr(self,"thisown"): self.thisown = 0
1679 self.__class__ = ColourDialog
1680_windows.ColourDialog_swigregister(ColourDialogPtr)
1681
1682class DirDialog(Dialog):
423f194a
RD
1683 def __repr__(self):
1684 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1685 def __init__(self, *args, **kwargs):
41f1cec7 1686 """
cbd72d4f
RD
1687 __init__(Window parent, String message=DirSelectorPromptStr,
1688 String defaultPath=EmptyString, long style=0,
1689 Point pos=DefaultPosition, Size size=DefaultSize,
1690 String name=DirDialogNameStr) -> DirDialog
41f1cec7 1691 """
d14a1e28
RD
1692 newobj = _windows.new_DirDialog(*args, **kwargs)
1693 self.this = newobj.this
1694 self.thisown = 1
1695 del newobj.thisown
1696 self._setOORInfo(self)
423f194a
RD
1697
1698 def GetPath(*args, **kwargs):
cbd72d4f 1699 """GetPath() -> String"""
423f194a
RD
1700 return _windows.DirDialog_GetPath(*args, **kwargs)
1701
1702 def GetMessage(*args, **kwargs):
cbd72d4f 1703 """GetMessage() -> String"""
423f194a
RD
1704 return _windows.DirDialog_GetMessage(*args, **kwargs)
1705
1706 def GetStyle(*args, **kwargs):
1707 """GetStyle() -> long"""
1708 return _windows.DirDialog_GetStyle(*args, **kwargs)
1709
1710 def SetMessage(*args, **kwargs):
cbd72d4f 1711 """SetMessage(String message)"""
423f194a
RD
1712 return _windows.DirDialog_SetMessage(*args, **kwargs)
1713
1714 def SetPath(*args, **kwargs):
cbd72d4f 1715 """SetPath(String path)"""
423f194a
RD
1716 return _windows.DirDialog_SetPath(*args, **kwargs)
1717
1718 def ShowModal(*args, **kwargs):
1719 """ShowModal() -> int"""
1720 return _windows.DirDialog_ShowModal(*args, **kwargs)
1721
d14a1e28
RD
1722
1723class DirDialogPtr(DirDialog):
1724 def __init__(self, this):
1725 self.this = this
1726 if not hasattr(self,"thisown"): self.thisown = 0
1727 self.__class__ = DirDialog
1728_windows.DirDialog_swigregister(DirDialogPtr)
1729
1730class FileDialog(Dialog):
423f194a
RD
1731 def __repr__(self):
1732 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1733 def __init__(self, *args, **kwargs):
41f1cec7 1734 """
cbd72d4f
RD
1735 __init__(Window parent, String message=FileSelectorPromptStr,
1736 String defaultDir=EmptyString, String defaultFile=EmptyString,
1737 String wildcard=FileSelectorDefaultWildcardStr,
1738 long style=0, Point pos=DefaultPosition) -> FileDialog
41f1cec7 1739 """
d14a1e28
RD
1740 newobj = _windows.new_FileDialog(*args, **kwargs)
1741 self.this = newobj.this
e6056257 1742 self.thisown = 1
d14a1e28 1743 del newobj.thisown
e6056257 1744 self._setOORInfo(self)
423f194a
RD
1745
1746 def SetMessage(*args, **kwargs):
cbd72d4f 1747 """SetMessage(String message)"""
423f194a
RD
1748 return _windows.FileDialog_SetMessage(*args, **kwargs)
1749
1750 def SetPath(*args, **kwargs):
cbd72d4f 1751 """SetPath(String path)"""
423f194a
RD
1752 return _windows.FileDialog_SetPath(*args, **kwargs)
1753
1754 def SetDirectory(*args, **kwargs):
cbd72d4f 1755 """SetDirectory(String dir)"""
423f194a
RD
1756 return _windows.FileDialog_SetDirectory(*args, **kwargs)
1757
1758 def SetFilename(*args, **kwargs):
cbd72d4f 1759 """SetFilename(String name)"""
423f194a
RD
1760 return _windows.FileDialog_SetFilename(*args, **kwargs)
1761
1762 def SetWildcard(*args, **kwargs):
cbd72d4f 1763 """SetWildcard(String wildCard)"""
423f194a
RD
1764 return _windows.FileDialog_SetWildcard(*args, **kwargs)
1765
1766 def SetStyle(*args, **kwargs):
1767 """SetStyle(long style)"""
1768 return _windows.FileDialog_SetStyle(*args, **kwargs)
1769
1770 def SetFilterIndex(*args, **kwargs):
1771 """SetFilterIndex(int filterIndex)"""
1772 return _windows.FileDialog_SetFilterIndex(*args, **kwargs)
1773
1774 def GetMessage(*args, **kwargs):
cbd72d4f 1775 """GetMessage() -> String"""
423f194a
RD
1776 return _windows.FileDialog_GetMessage(*args, **kwargs)
1777
1778 def GetPath(*args, **kwargs):
cbd72d4f 1779 """GetPath() -> String"""
423f194a
RD
1780 return _windows.FileDialog_GetPath(*args, **kwargs)
1781
1782 def GetDirectory(*args, **kwargs):
cbd72d4f 1783 """GetDirectory() -> String"""
423f194a
RD
1784 return _windows.FileDialog_GetDirectory(*args, **kwargs)
1785
1786 def GetFilename(*args, **kwargs):
cbd72d4f 1787 """GetFilename() -> String"""
423f194a
RD
1788 return _windows.FileDialog_GetFilename(*args, **kwargs)
1789
1790 def GetWildcard(*args, **kwargs):
cbd72d4f 1791 """GetWildcard() -> String"""
423f194a
RD
1792 return _windows.FileDialog_GetWildcard(*args, **kwargs)
1793
1794 def GetStyle(*args, **kwargs):
1795 """GetStyle() -> long"""
1796 return _windows.FileDialog_GetStyle(*args, **kwargs)
1797
1798 def GetFilterIndex(*args, **kwargs):
1799 """GetFilterIndex() -> int"""
1800 return _windows.FileDialog_GetFilterIndex(*args, **kwargs)
1801
1802 def GetFilenames(*args, **kwargs):
1803 """GetFilenames() -> PyObject"""
1804 return _windows.FileDialog_GetFilenames(*args, **kwargs)
1805
1806 def GetPaths(*args, **kwargs):
1807 """GetPaths() -> PyObject"""
1808 return _windows.FileDialog_GetPaths(*args, **kwargs)
1809
e6056257 1810
d14a1e28
RD
1811class FileDialogPtr(FileDialog):
1812 def __init__(self, this):
1813 self.this = this
1814 if not hasattr(self,"thisown"): self.thisown = 0
1815 self.__class__ = FileDialog
1816_windows.FileDialog_swigregister(FileDialogPtr)
1817
1818CHOICEDLG_STYLE = _windows.CHOICEDLG_STYLE
1819class MultiChoiceDialog(Dialog):
423f194a
RD
1820 def __repr__(self):
1821 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1822 def __init__(self, *args, **kwargs):
41f1cec7 1823 """
02a34c4c
RD
1824 __init__(Window parent, String message, String caption, int choices=0,
1825 String choices_array, long style=CHOICEDLG_STYLE,
41f1cec7
RD
1826 Point pos=DefaultPosition) -> MultiChoiceDialog
1827 """
d14a1e28
RD
1828 newobj = _windows.new_MultiChoiceDialog(*args, **kwargs)
1829 self.this = newobj.this
1830 self.thisown = 1
1831 del newobj.thisown
1832 self._setOORInfo(self)
423f194a
RD
1833
1834 def SetSelections(*args, **kwargs):
1835 """SetSelections(wxArrayInt selections)"""
1836 return _windows.MultiChoiceDialog_SetSelections(*args, **kwargs)
1837
1838 def GetSelections(*args, **kwargs):
1839 """GetSelections() -> PyObject"""
1840 return _windows.MultiChoiceDialog_GetSelections(*args, **kwargs)
1841
e6056257 1842
d14a1e28
RD
1843class MultiChoiceDialogPtr(MultiChoiceDialog):
1844 def __init__(self, this):
1845 self.this = this
1846 if not hasattr(self,"thisown"): self.thisown = 0
1847 self.__class__ = MultiChoiceDialog
1848_windows.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr)
1849
1850class SingleChoiceDialog(Dialog):
423f194a
RD
1851 def __repr__(self):
1852 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1853 def __init__(self, *args, **kwargs):
41f1cec7 1854 """
cbd72d4f
RD
1855 __init__(Window parent, String message, String caption, int choices,
1856 String choices_array, long style=CHOICEDLG_STYLE,
41f1cec7
RD
1857 Point pos=DefaultPosition) -> SingleChoiceDialog
1858 """
d14a1e28
RD
1859 newobj = _windows.new_SingleChoiceDialog(*args, **kwargs)
1860 self.this = newobj.this
1861 self.thisown = 1
1862 del newobj.thisown
1863 self._setOORInfo(self)
423f194a
RD
1864
1865 def GetSelection(*args, **kwargs):
1866 """GetSelection() -> int"""
1867 return _windows.SingleChoiceDialog_GetSelection(*args, **kwargs)
1868
1869 def GetStringSelection(*args, **kwargs):
cbd72d4f 1870 """GetStringSelection() -> String"""
423f194a
RD
1871 return _windows.SingleChoiceDialog_GetStringSelection(*args, **kwargs)
1872
1873 def SetSelection(*args, **kwargs):
1874 """SetSelection(int sel)"""
1875 return _windows.SingleChoiceDialog_SetSelection(*args, **kwargs)
1876
1877 def ShowModal(*args, **kwargs):
1878 """ShowModal() -> int"""
1879 return _windows.SingleChoiceDialog_ShowModal(*args, **kwargs)
1880
e6056257 1881
d14a1e28
RD
1882class SingleChoiceDialogPtr(SingleChoiceDialog):
1883 def __init__(self, this):
1884 self.this = this
1885 if not hasattr(self,"thisown"): self.thisown = 0
1886 self.__class__ = SingleChoiceDialog
1887_windows.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr)
1888
1889class TextEntryDialog(Dialog):
423f194a
RD
1890 def __repr__(self):
1891 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1892 def __init__(self, *args, **kwargs):
41f1cec7 1893 """
cbd72d4f
RD
1894 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
1895 String defaultValue=EmptyString,
1896 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
41f1cec7 1897 """
d14a1e28
RD
1898 newobj = _windows.new_TextEntryDialog(*args, **kwargs)
1899 self.this = newobj.this
1900 self.thisown = 1
1901 del newobj.thisown
1902 self._setOORInfo(self)
423f194a
RD
1903
1904 def GetValue(*args, **kwargs):
cbd72d4f 1905 """GetValue() -> String"""
423f194a
RD
1906 return _windows.TextEntryDialog_GetValue(*args, **kwargs)
1907
1908 def SetValue(*args, **kwargs):
cbd72d4f 1909 """SetValue(String value)"""
423f194a
RD
1910 return _windows.TextEntryDialog_SetValue(*args, **kwargs)
1911
1912 def ShowModal(*args, **kwargs):
1913 """ShowModal() -> int"""
1914 return _windows.TextEntryDialog_ShowModal(*args, **kwargs)
1915
e6056257 1916
d14a1e28
RD
1917class TextEntryDialogPtr(TextEntryDialog):
1918 def __init__(self, this):
e6056257 1919 self.this = this
d14a1e28
RD
1920 if not hasattr(self,"thisown"): self.thisown = 0
1921 self.__class__ = TextEntryDialog
1922_windows.TextEntryDialog_swigregister(TextEntryDialogPtr)
1923
1924class FontData(core.Object):
423f194a
RD
1925 def __repr__(self):
1926 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1927 def __init__(self, *args, **kwargs):
423f194a 1928 """__init__() -> FontData"""
d14a1e28
RD
1929 newobj = _windows.new_FontData(*args, **kwargs)
1930 self.this = newobj.this
1931 self.thisown = 1
1932 del newobj.thisown
1933 def __del__(self, destroy=_windows.delete_FontData):
423f194a 1934 """__del__()"""
d14a1e28
RD
1935 try:
1936 if self.thisown: destroy(self)
1937 except: pass
423f194a
RD
1938
1939 def EnableEffects(*args, **kwargs):
1940 """EnableEffects(bool enable)"""
1941 return _windows.FontData_EnableEffects(*args, **kwargs)
1942
1943 def GetAllowSymbols(*args, **kwargs):
1944 """GetAllowSymbols() -> bool"""
1945 return _windows.FontData_GetAllowSymbols(*args, **kwargs)
1946
1947 def GetColour(*args, **kwargs):
cbd72d4f 1948 """GetColour() -> Colour"""
423f194a
RD
1949 return _windows.FontData_GetColour(*args, **kwargs)
1950
1951 def GetChosenFont(*args, **kwargs):
cbd72d4f 1952 """GetChosenFont() -> Font"""
423f194a
RD
1953 return _windows.FontData_GetChosenFont(*args, **kwargs)
1954
1955 def GetEnableEffects(*args, **kwargs):
1956 """GetEnableEffects() -> bool"""
1957 return _windows.FontData_GetEnableEffects(*args, **kwargs)
1958
1959 def GetInitialFont(*args, **kwargs):
cbd72d4f 1960 """GetInitialFont() -> Font"""
423f194a
RD
1961 return _windows.FontData_GetInitialFont(*args, **kwargs)
1962
1963 def GetShowHelp(*args, **kwargs):
1964 """GetShowHelp() -> bool"""
1965 return _windows.FontData_GetShowHelp(*args, **kwargs)
1966
1967 def SetAllowSymbols(*args, **kwargs):
1968 """SetAllowSymbols(bool allowSymbols)"""
1969 return _windows.FontData_SetAllowSymbols(*args, **kwargs)
1970
1971 def SetChosenFont(*args, **kwargs):
cbd72d4f 1972 """SetChosenFont(Font font)"""
423f194a
RD
1973 return _windows.FontData_SetChosenFont(*args, **kwargs)
1974
1975 def SetColour(*args, **kwargs):
cbd72d4f 1976 """SetColour(Colour colour)"""
423f194a
RD
1977 return _windows.FontData_SetColour(*args, **kwargs)
1978
1979 def SetInitialFont(*args, **kwargs):
cbd72d4f 1980 """SetInitialFont(Font font)"""
423f194a
RD
1981 return _windows.FontData_SetInitialFont(*args, **kwargs)
1982
1983 def SetRange(*args, **kwargs):
1984 """SetRange(int min, int max)"""
1985 return _windows.FontData_SetRange(*args, **kwargs)
1986
1987 def SetShowHelp(*args, **kwargs):
1988 """SetShowHelp(bool showHelp)"""
1989 return _windows.FontData_SetShowHelp(*args, **kwargs)
1990
d14a1e28
RD
1991
1992class FontDataPtr(FontData):
1993 def __init__(self, this):
1994 self.this = this
1995 if not hasattr(self,"thisown"): self.thisown = 0
1996 self.__class__ = FontData
1997_windows.FontData_swigregister(FontDataPtr)
1998
1999class FontDialog(Dialog):
423f194a
RD
2000 def __repr__(self):
2001 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2002 def __init__(self, *args, **kwargs):
423f194a 2003 """__init__(Window parent, FontData data) -> FontDialog"""
d14a1e28
RD
2004 newobj = _windows.new_FontDialog(*args, **kwargs)
2005 self.this = newobj.this
e6056257 2006 self.thisown = 1
d14a1e28
RD
2007 del newobj.thisown
2008 self._setOORInfo(self)
423f194a
RD
2009
2010 def GetFontData(*args, **kwargs):
2011 """GetFontData() -> FontData"""
2012 return _windows.FontDialog_GetFontData(*args, **kwargs)
2013
2014 def ShowModal(*args, **kwargs):
2015 """ShowModal() -> int"""
2016 return _windows.FontDialog_ShowModal(*args, **kwargs)
2017
e6056257 2018
d14a1e28
RD
2019class FontDialogPtr(FontDialog):
2020 def __init__(self, this):
2021 self.this = this
2022 if not hasattr(self,"thisown"): self.thisown = 0
2023 self.__class__ = FontDialog
2024_windows.FontDialog_swigregister(FontDialogPtr)
2025
2026class MessageDialog(Dialog):
423f194a
RD
2027 def __repr__(self):
2028 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2029 def __init__(self, *args, **kwargs):
41f1cec7 2030 """
cbd72d4f 2031 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
41f1cec7
RD
2032 long style=wxOK|wxCANCEL|wxCENTRE,
2033 Point pos=DefaultPosition) -> MessageDialog
2034 """
d14a1e28
RD
2035 newobj = _windows.new_MessageDialog(*args, **kwargs)
2036 self.this = newobj.this
2037 self.thisown = 1
2038 del newobj.thisown
2039 self._setOORInfo(self)
423f194a
RD
2040
2041 def ShowModal(*args, **kwargs):
2042 """ShowModal() -> int"""
2043 return _windows.MessageDialog_ShowModal(*args, **kwargs)
2044
e6056257 2045
d14a1e28
RD
2046class MessageDialogPtr(MessageDialog):
2047 def __init__(self, this):
2048 self.this = this
2049 if not hasattr(self,"thisown"): self.thisown = 0
2050 self.__class__ = MessageDialog
2051_windows.MessageDialog_swigregister(MessageDialogPtr)
2052
2053class ProgressDialog(Frame):
423f194a
RD
2054 def __repr__(self):
2055 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2056 def __init__(self, *args, **kwargs):
41f1cec7 2057 """
cbd72d4f
RD
2058 __init__(String title, String message, int maximum=100, Window parent=None,
2059 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
41f1cec7 2060 """
d14a1e28
RD
2061 newobj = _windows.new_ProgressDialog(*args, **kwargs)
2062 self.this = newobj.this
2063 self.thisown = 1
2064 del newobj.thisown
2065 self._setOORInfo(self)
423f194a
RD
2066
2067 def Update(*args, **kwargs):
cbd72d4f 2068 """Update(int value, String newmsg=EmptyString) -> bool"""
423f194a
RD
2069 return _windows.ProgressDialog_Update(*args, **kwargs)
2070
2071 def Resume(*args, **kwargs):
2072 """Resume()"""
2073 return _windows.ProgressDialog_Resume(*args, **kwargs)
2074
e6056257 2075
d14a1e28
RD
2076class ProgressDialogPtr(ProgressDialog):
2077 def __init__(self, this):
2078 self.this = this
2079 if not hasattr(self,"thisown"): self.thisown = 0
2080 self.__class__ = ProgressDialog
2081_windows.ProgressDialog_swigregister(ProgressDialogPtr)
2082
2083FR_DOWN = _windows.FR_DOWN
2084FR_WHOLEWORD = _windows.FR_WHOLEWORD
2085FR_MATCHCASE = _windows.FR_MATCHCASE
2086FR_REPLACEDIALOG = _windows.FR_REPLACEDIALOG
2087FR_NOUPDOWN = _windows.FR_NOUPDOWN
2088FR_NOMATCHCASE = _windows.FR_NOMATCHCASE
2089FR_NOWHOLEWORD = _windows.FR_NOWHOLEWORD
2090wxEVT_COMMAND_FIND = _windows.wxEVT_COMMAND_FIND
2091wxEVT_COMMAND_FIND_NEXT = _windows.wxEVT_COMMAND_FIND_NEXT
2092wxEVT_COMMAND_FIND_REPLACE = _windows.wxEVT_COMMAND_FIND_REPLACE
2093wxEVT_COMMAND_FIND_REPLACE_ALL = _windows.wxEVT_COMMAND_FIND_REPLACE_ALL
2094wxEVT_COMMAND_FIND_CLOSE = _windows.wxEVT_COMMAND_FIND_CLOSE
2095EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 )
2096EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 )
2097EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 )
2098EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 )
2099EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 )
2100
2101# For backwards compatibility. Should they be removed?
2102EVT_COMMAND_FIND = EVT_FIND
2103EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT
2104EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE
2105EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL
2106EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE
2107
2108class FindDialogEvent(core.CommandEvent):
423f194a
RD
2109 def __repr__(self):
2110 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2111 def __init__(self, *args, **kwargs):
423f194a 2112 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent"""
d14a1e28
RD
2113 newobj = _windows.new_FindDialogEvent(*args, **kwargs)
2114 self.this = newobj.this
2115 self.thisown = 1
2116 del newobj.thisown
423f194a
RD
2117 def GetFlags(*args, **kwargs):
2118 """GetFlags() -> int"""
2119 return _windows.FindDialogEvent_GetFlags(*args, **kwargs)
2120
2121 def GetFindString(*args, **kwargs):
cbd72d4f 2122 """GetFindString() -> String"""
423f194a
RD
2123 return _windows.FindDialogEvent_GetFindString(*args, **kwargs)
2124
2125 def GetReplaceString(*args, **kwargs):
cbd72d4f 2126 """GetReplaceString() -> String"""
423f194a
RD
2127 return _windows.FindDialogEvent_GetReplaceString(*args, **kwargs)
2128
2129 def GetDialog(*args, **kwargs):
2130 """GetDialog() -> FindReplaceDialog"""
2131 return _windows.FindDialogEvent_GetDialog(*args, **kwargs)
2132
2133 def SetFlags(*args, **kwargs):
2134 """SetFlags(int flags)"""
2135 return _windows.FindDialogEvent_SetFlags(*args, **kwargs)
2136
2137 def SetFindString(*args, **kwargs):
cbd72d4f 2138 """SetFindString(String str)"""
423f194a
RD
2139 return _windows.FindDialogEvent_SetFindString(*args, **kwargs)
2140
2141 def SetReplaceString(*args, **kwargs):
cbd72d4f 2142 """SetReplaceString(String str)"""
423f194a
RD
2143 return _windows.FindDialogEvent_SetReplaceString(*args, **kwargs)
2144
e6056257 2145
d14a1e28
RD
2146class FindDialogEventPtr(FindDialogEvent):
2147 def __init__(self, this):
2148 self.this = this
2149 if not hasattr(self,"thisown"): self.thisown = 0
2150 self.__class__ = FindDialogEvent
2151_windows.FindDialogEvent_swigregister(FindDialogEventPtr)
2152
2153class FindReplaceData(core.Object):
423f194a
RD
2154 def __repr__(self):
2155 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2156 def __init__(self, *args, **kwargs):
423f194a 2157 """__init__(int flags=0) -> FindReplaceData"""
d14a1e28
RD
2158 newobj = _windows.new_FindReplaceData(*args, **kwargs)
2159 self.this = newobj.this
2160 self.thisown = 1
2161 del newobj.thisown
2162 def __del__(self, destroy=_windows.delete_FindReplaceData):
423f194a 2163 """__del__()"""
d14a1e28
RD
2164 try:
2165 if self.thisown: destroy(self)
2166 except: pass
423f194a
RD
2167
2168 def GetFindString(*args, **kwargs):
cbd72d4f 2169 """GetFindString() -> String"""
423f194a
RD
2170 return _windows.FindReplaceData_GetFindString(*args, **kwargs)
2171
2172 def GetReplaceString(*args, **kwargs):
cbd72d4f 2173 """GetReplaceString() -> String"""
423f194a
RD
2174 return _windows.FindReplaceData_GetReplaceString(*args, **kwargs)
2175
2176 def GetFlags(*args, **kwargs):
2177 """GetFlags() -> int"""
2178 return _windows.FindReplaceData_GetFlags(*args, **kwargs)
2179
2180 def SetFlags(*args, **kwargs):
2181 """SetFlags(int flags)"""
2182 return _windows.FindReplaceData_SetFlags(*args, **kwargs)
2183
2184 def SetFindString(*args, **kwargs):
cbd72d4f 2185 """SetFindString(String str)"""
423f194a
RD
2186 return _windows.FindReplaceData_SetFindString(*args, **kwargs)
2187
2188 def SetReplaceString(*args, **kwargs):
cbd72d4f 2189 """SetReplaceString(String str)"""
423f194a
RD
2190 return _windows.FindReplaceData_SetReplaceString(*args, **kwargs)
2191
e6056257 2192
d14a1e28
RD
2193class FindReplaceDataPtr(FindReplaceData):
2194 def __init__(self, this):
2195 self.this = this
2196 if not hasattr(self,"thisown"): self.thisown = 0
2197 self.__class__ = FindReplaceData
2198_windows.FindReplaceData_swigregister(FindReplaceDataPtr)
2199
2200class FindReplaceDialog(Dialog):
423f194a
RD
2201 def __repr__(self):
2202 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2203 def __init__(self, *args, **kwargs):
41f1cec7 2204 """
cbd72d4f 2205 __init__(Window parent, FindReplaceData data, String title,
41f1cec7
RD
2206 int style=0) -> FindReplaceDialog
2207 """
d14a1e28
RD
2208 newobj = _windows.new_FindReplaceDialog(*args, **kwargs)
2209 self.this = newobj.this
2210 self.thisown = 1
2211 del newobj.thisown
2212 self._setOORInfo(self)
423f194a
RD
2213
2214 def Create(*args, **kwargs):
41f1cec7 2215 """
cbd72d4f 2216 Create(Window parent, FindReplaceData data, String title,
41f1cec7
RD
2217 int style=0) -> bool
2218 """
423f194a
RD
2219 return _windows.FindReplaceDialog_Create(*args, **kwargs)
2220
2221 def GetData(*args, **kwargs):
2222 """GetData() -> FindReplaceData"""
2223 return _windows.FindReplaceDialog_GetData(*args, **kwargs)
2224
2225 def SetData(*args, **kwargs):
2226 """SetData(FindReplaceData data)"""
2227 return _windows.FindReplaceDialog_SetData(*args, **kwargs)
2228
e6056257 2229
d14a1e28
RD
2230class FindReplaceDialogPtr(FindReplaceDialog):
2231 def __init__(self, this):
2232 self.this = this
2233 if not hasattr(self,"thisown"): self.thisown = 0
2234 self.__class__ = FindReplaceDialog
2235_windows.FindReplaceDialog_swigregister(FindReplaceDialogPtr)
e6056257 2236
d14a1e28 2237def PreFindReplaceDialog(*args, **kwargs):
423f194a 2238 """PreFindReplaceDialog() -> FindReplaceDialog"""
d14a1e28
RD
2239 val = _windows.new_PreFindReplaceDialog(*args, **kwargs)
2240 val.thisown = 1
722a4a3c
RD
2241 return val
2242
d14a1e28
RD
2243#---------------------------------------------------------------------------
2244
2245IDM_WINDOWTILE = _windows.IDM_WINDOWTILE
2246IDM_WINDOWTILEHOR = _windows.IDM_WINDOWTILEHOR
2247IDM_WINDOWCASCADE = _windows.IDM_WINDOWCASCADE
2248IDM_WINDOWICONS = _windows.IDM_WINDOWICONS
2249IDM_WINDOWNEXT = _windows.IDM_WINDOWNEXT
2250IDM_WINDOWTILEVERT = _windows.IDM_WINDOWTILEVERT
2251FIRST_MDI_CHILD = _windows.FIRST_MDI_CHILD
2252LAST_MDI_CHILD = _windows.LAST_MDI_CHILD
2253class MDIParentFrame(Frame):
423f194a
RD
2254 def __repr__(self):
2255 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2256 def __init__(self, *args, **kwargs):
41f1cec7 2257 """
cbd72d4f 2258 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
41f1cec7 2259 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
cbd72d4f 2260 String name=FrameNameStr) -> MDIParentFrame
41f1cec7 2261 """
d14a1e28
RD
2262 newobj = _windows.new_MDIParentFrame(*args, **kwargs)
2263 self.this = newobj.this
2264 self.thisown = 1
2265 del newobj.thisown
2266 self._setOORInfo(self)
423f194a
RD
2267
2268 def Create(*args, **kwargs):
41f1cec7 2269 """
cbd72d4f 2270 Create(Window parent, int id, String title, Point pos=DefaultPosition,
41f1cec7 2271 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
cbd72d4f 2272 String name=FrameNameStr) -> bool
41f1cec7 2273 """
423f194a
RD
2274 return _windows.MDIParentFrame_Create(*args, **kwargs)
2275
2276 def ActivateNext(*args, **kwargs):
2277 """ActivateNext()"""
2278 return _windows.MDIParentFrame_ActivateNext(*args, **kwargs)
2279
2280 def ActivatePrevious(*args, **kwargs):
2281 """ActivatePrevious()"""
2282 return _windows.MDIParentFrame_ActivatePrevious(*args, **kwargs)
2283
2284 def ArrangeIcons(*args, **kwargs):
2285 """ArrangeIcons()"""
2286 return _windows.MDIParentFrame_ArrangeIcons(*args, **kwargs)
2287
2288 def Cascade(*args, **kwargs):
2289 """Cascade()"""
2290 return _windows.MDIParentFrame_Cascade(*args, **kwargs)
2291
2292 def GetActiveChild(*args, **kwargs):
2293 """GetActiveChild() -> MDIChildFrame"""
2294 return _windows.MDIParentFrame_GetActiveChild(*args, **kwargs)
2295
2296 def GetClientWindow(*args, **kwargs):
2297 """GetClientWindow() -> MDIClientWindow"""
2298 return _windows.MDIParentFrame_GetClientWindow(*args, **kwargs)
2299
2300 def GetToolBar(*args, **kwargs):
2301 """GetToolBar() -> Window"""
2302 return _windows.MDIParentFrame_GetToolBar(*args, **kwargs)
2303
2304 def Tile(*args, **kwargs):
2305 """Tile()"""
2306 return _windows.MDIParentFrame_Tile(*args, **kwargs)
2307
d14a1e28
RD
2308
2309class MDIParentFramePtr(MDIParentFrame):
2310 def __init__(self, this):
2311 self.this = this
2312 if not hasattr(self,"thisown"): self.thisown = 0
2313 self.__class__ = MDIParentFrame
2314_windows.MDIParentFrame_swigregister(MDIParentFramePtr)
2315
2316def PreMDIParentFrame(*args, **kwargs):
423f194a 2317 """PreMDIParentFrame() -> MDIParentFrame"""
d14a1e28
RD
2318 val = _windows.new_PreMDIParentFrame(*args, **kwargs)
2319 val.thisown = 1
722a4a3c
RD
2320 return val
2321
d14a1e28 2322class MDIChildFrame(Frame):
423f194a
RD
2323 def __repr__(self):
2324 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2325 def __init__(self, *args, **kwargs):
41f1cec7 2326 """
cbd72d4f
RD
2327 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2328 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2329 String name=FrameNameStr) -> MDIChildFrame
41f1cec7 2330 """
d14a1e28
RD
2331 newobj = _windows.new_MDIChildFrame(*args, **kwargs)
2332 self.this = newobj.this
2333 self.thisown = 1
2334 del newobj.thisown
2335 self._setOORInfo(self)
423f194a
RD
2336
2337 def Create(*args, **kwargs):
41f1cec7 2338 """
cbd72d4f
RD
2339 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2340 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2341 String name=FrameNameStr) -> bool
41f1cec7 2342 """
423f194a
RD
2343 return _windows.MDIChildFrame_Create(*args, **kwargs)
2344
2345 def Activate(*args, **kwargs):
2346 """Activate()"""
2347 return _windows.MDIChildFrame_Activate(*args, **kwargs)
2348
2349 def Maximize(*args, **kwargs):
2350 """Maximize(bool maximize)"""
2351 return _windows.MDIChildFrame_Maximize(*args, **kwargs)
2352
2353 def Restore(*args, **kwargs):
2354 """Restore()"""
2355 return _windows.MDIChildFrame_Restore(*args, **kwargs)
2356
d14a1e28
RD
2357
2358class MDIChildFramePtr(MDIChildFrame):
2359 def __init__(self, this):
2360 self.this = this
2361 if not hasattr(self,"thisown"): self.thisown = 0
2362 self.__class__ = MDIChildFrame
2363_windows.MDIChildFrame_swigregister(MDIChildFramePtr)
2364
2365def PreMDIChildFrame(*args, **kwargs):
423f194a 2366 """PreMDIChildFrame() -> MDIChildFrame"""
d14a1e28
RD
2367 val = _windows.new_PreMDIChildFrame(*args, **kwargs)
2368 val.thisown = 1
722a4a3c
RD
2369 return val
2370
d14a1e28 2371class MDIClientWindow(core.Window):
423f194a
RD
2372 def __repr__(self):
2373 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2374 def __init__(self, *args, **kwargs):
423f194a 2375 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
d14a1e28
RD
2376 newobj = _windows.new_MDIClientWindow(*args, **kwargs)
2377 self.this = newobj.this
2378 self.thisown = 1
2379 del newobj.thisown
2380 self._setOORInfo(self)
423f194a
RD
2381
2382 def Create(*args, **kwargs):
2383 """Create(MDIParentFrame parent, long style=0) -> bool"""
2384 return _windows.MDIClientWindow_Create(*args, **kwargs)
2385
e6056257 2386
d14a1e28
RD
2387class MDIClientWindowPtr(MDIClientWindow):
2388 def __init__(self, this):
2389 self.this = this
2390 if not hasattr(self,"thisown"): self.thisown = 0
2391 self.__class__ = MDIClientWindow
2392_windows.MDIClientWindow_swigregister(MDIClientWindowPtr)
e6056257 2393
d14a1e28 2394def PreMDIClientWindow(*args, **kwargs):
423f194a 2395 """PreMDIClientWindow() -> MDIClientWindow"""
d14a1e28
RD
2396 val = _windows.new_PreMDIClientWindow(*args, **kwargs)
2397 val.thisown = 1
e6056257
RD
2398 return val
2399
d14a1e28 2400#---------------------------------------------------------------------------
e6056257 2401
d14a1e28 2402class PyWindow(core.Window):
423f194a
RD
2403 def __repr__(self):
2404 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2405 def __init__(self, *args, **kwargs):
41f1cec7
RD
2406 """
2407 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
cbd72d4f 2408 long style=0, String name=PanelNameStr) -> PyWindow
41f1cec7 2409 """
d14a1e28
RD
2410 newobj = _windows.new_PyWindow(*args, **kwargs)
2411 self.this = newobj.this
2412 self.thisown = 1
2413 del newobj.thisown
2414 self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)
423f194a
RD
2415
2416 def _setCallbackInfo(*args, **kwargs):
2417 """_setCallbackInfo(PyObject self, PyObject _class)"""
2418 return _windows.PyWindow__setCallbackInfo(*args, **kwargs)
2419
2420 def base_DoMoveWindow(*args, **kwargs):
2421 """base_DoMoveWindow(int x, int y, int width, int height)"""
2422 return _windows.PyWindow_base_DoMoveWindow(*args, **kwargs)
2423
2424 def base_DoSetSize(*args, **kwargs):
2425 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2426 return _windows.PyWindow_base_DoSetSize(*args, **kwargs)
2427
2428 def base_DoSetClientSize(*args, **kwargs):
2429 """base_DoSetClientSize(int width, int height)"""
2430 return _windows.PyWindow_base_DoSetClientSize(*args, **kwargs)
2431
2432 def base_DoSetVirtualSize(*args, **kwargs):
2433 """base_DoSetVirtualSize(int x, int y)"""
2434 return _windows.PyWindow_base_DoSetVirtualSize(*args, **kwargs)
2435
2436 def base_DoGetSize(*args, **kwargs):
44127b65 2437 """base_DoGetSize() -> (width, height)"""
423f194a
RD
2438 return _windows.PyWindow_base_DoGetSize(*args, **kwargs)
2439
2440 def base_DoGetClientSize(*args, **kwargs):
44127b65 2441 """base_DoGetClientSize() -> (width, height)"""
423f194a
RD
2442 return _windows.PyWindow_base_DoGetClientSize(*args, **kwargs)
2443
2444 def base_DoGetPosition(*args, **kwargs):
44127b65 2445 """base_DoGetPosition() -> (x,y)"""
423f194a
RD
2446 return _windows.PyWindow_base_DoGetPosition(*args, **kwargs)
2447
2448 def base_DoGetVirtualSize(*args, **kwargs):
2449 """base_DoGetVirtualSize() -> Size"""
2450 return _windows.PyWindow_base_DoGetVirtualSize(*args, **kwargs)
2451
2452 def base_DoGetBestSize(*args, **kwargs):
2453 """base_DoGetBestSize() -> Size"""
2454 return _windows.PyWindow_base_DoGetBestSize(*args, **kwargs)
2455
2456 def base_InitDialog(*args, **kwargs):
2457 """base_InitDialog()"""
2458 return _windows.PyWindow_base_InitDialog(*args, **kwargs)
2459
2460 def base_TransferDataToWindow(*args, **kwargs):
2461 """base_TransferDataToWindow() -> bool"""
2462 return _windows.PyWindow_base_TransferDataToWindow(*args, **kwargs)
2463
2464 def base_TransferDataFromWindow(*args, **kwargs):
2465 """base_TransferDataFromWindow() -> bool"""
2466 return _windows.PyWindow_base_TransferDataFromWindow(*args, **kwargs)
2467
2468 def base_Validate(*args, **kwargs):
2469 """base_Validate() -> bool"""
2470 return _windows.PyWindow_base_Validate(*args, **kwargs)
2471
2472 def base_AcceptsFocus(*args, **kwargs):
2473 """base_AcceptsFocus() -> bool"""
2474 return _windows.PyWindow_base_AcceptsFocus(*args, **kwargs)
2475
2476 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
2477 """base_AcceptsFocusFromKeyboard() -> bool"""
2478 return _windows.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs)
2479
2480 def base_GetMaxSize(*args, **kwargs):
2481 """base_GetMaxSize() -> Size"""
2482 return _windows.PyWindow_base_GetMaxSize(*args, **kwargs)
2483
2484 def base_AddChild(*args, **kwargs):
2485 """base_AddChild(Window child)"""
2486 return _windows.PyWindow_base_AddChild(*args, **kwargs)
2487
2488 def base_RemoveChild(*args, **kwargs):
2489 """base_RemoveChild(Window child)"""
2490 return _windows.PyWindow_base_RemoveChild(*args, **kwargs)
2491
e6056257 2492
d14a1e28
RD
2493class PyWindowPtr(PyWindow):
2494 def __init__(self, this):
2495 self.this = this
2496 if not hasattr(self,"thisown"): self.thisown = 0
2497 self.__class__ = PyWindow
2498_windows.PyWindow_swigregister(PyWindowPtr)
2499
2500class PyPanel(Panel):
423f194a
RD
2501 def __repr__(self):
2502 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2503 def __init__(self, *args, **kwargs):
41f1cec7
RD
2504 """
2505 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
cbd72d4f 2506 long style=0, String name=PanelNameStr) -> PyPanel
41f1cec7 2507 """
d14a1e28
RD
2508 newobj = _windows.new_PyPanel(*args, **kwargs)
2509 self.this = newobj.this
2510 self.thisown = 1
2511 del newobj.thisown
2512 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
423f194a
RD
2513
2514 def _setCallbackInfo(*args, **kwargs):
2515 """_setCallbackInfo(PyObject self, PyObject _class)"""
2516 return _windows.PyPanel__setCallbackInfo(*args, **kwargs)
2517
2518 def base_DoMoveWindow(*args, **kwargs):
2519 """base_DoMoveWindow(int x, int y, int width, int height)"""
2520 return _windows.PyPanel_base_DoMoveWindow(*args, **kwargs)
2521
2522 def base_DoSetSize(*args, **kwargs):
2523 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2524 return _windows.PyPanel_base_DoSetSize(*args, **kwargs)
2525
2526 def base_DoSetClientSize(*args, **kwargs):
2527 """base_DoSetClientSize(int width, int height)"""
2528 return _windows.PyPanel_base_DoSetClientSize(*args, **kwargs)
2529
2530 def base_DoSetVirtualSize(*args, **kwargs):
2531 """base_DoSetVirtualSize(int x, int y)"""
2532 return _windows.PyPanel_base_DoSetVirtualSize(*args, **kwargs)
2533
2534 def base_DoGetSize(*args, **kwargs):
44127b65 2535 """base_DoGetSize() -> (width, height)"""
423f194a
RD
2536 return _windows.PyPanel_base_DoGetSize(*args, **kwargs)
2537
2538 def base_DoGetClientSize(*args, **kwargs):
44127b65 2539 """base_DoGetClientSize() -> (width, height)"""
423f194a
RD
2540 return _windows.PyPanel_base_DoGetClientSize(*args, **kwargs)
2541
2542 def base_DoGetPosition(*args, **kwargs):
44127b65 2543 """base_DoGetPosition() -> (x,y)"""
423f194a
RD
2544 return _windows.PyPanel_base_DoGetPosition(*args, **kwargs)
2545
2546 def base_DoGetVirtualSize(*args, **kwargs):
2547 """base_DoGetVirtualSize() -> Size"""
2548 return _windows.PyPanel_base_DoGetVirtualSize(*args, **kwargs)
2549
2550 def base_DoGetBestSize(*args, **kwargs):
2551 """base_DoGetBestSize() -> Size"""
2552 return _windows.PyPanel_base_DoGetBestSize(*args, **kwargs)
2553
2554 def base_InitDialog(*args, **kwargs):
2555 """base_InitDialog()"""
2556 return _windows.PyPanel_base_InitDialog(*args, **kwargs)
2557
2558 def base_TransferDataToWindow(*args, **kwargs):
2559 """base_TransferDataToWindow() -> bool"""
2560 return _windows.PyPanel_base_TransferDataToWindow(*args, **kwargs)
2561
2562 def base_TransferDataFromWindow(*args, **kwargs):
2563 """base_TransferDataFromWindow() -> bool"""
2564 return _windows.PyPanel_base_TransferDataFromWindow(*args, **kwargs)
2565
2566 def base_Validate(*args, **kwargs):
2567 """base_Validate() -> bool"""
2568 return _windows.PyPanel_base_Validate(*args, **kwargs)
2569
2570 def base_AcceptsFocus(*args, **kwargs):
2571 """base_AcceptsFocus() -> bool"""
2572 return _windows.PyPanel_base_AcceptsFocus(*args, **kwargs)
2573
2574 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
2575 """base_AcceptsFocusFromKeyboard() -> bool"""
2576 return _windows.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs)
2577
2578 def base_GetMaxSize(*args, **kwargs):
2579 """base_GetMaxSize() -> Size"""
2580 return _windows.PyPanel_base_GetMaxSize(*args, **kwargs)
2581
2582 def base_AddChild(*args, **kwargs):
2583 """base_AddChild(Window child)"""
2584 return _windows.PyPanel_base_AddChild(*args, **kwargs)
2585
2586 def base_RemoveChild(*args, **kwargs):
2587 """base_RemoveChild(Window child)"""
2588 return _windows.PyPanel_base_RemoveChild(*args, **kwargs)
2589
e6056257 2590
d14a1e28
RD
2591class PyPanelPtr(PyPanel):
2592 def __init__(self, this):
2593 self.this = this
2594 if not hasattr(self,"thisown"): self.thisown = 0
2595 self.__class__ = PyPanel
2596_windows.PyPanel_swigregister(PyPanelPtr)
2597
2598#---------------------------------------------------------------------------
2599
2600PRINT_MODE_NONE = _windows.PRINT_MODE_NONE
2601PRINT_MODE_PREVIEW = _windows.PRINT_MODE_PREVIEW
2602PRINT_MODE_FILE = _windows.PRINT_MODE_FILE
2603PRINT_MODE_PRINTER = _windows.PRINT_MODE_PRINTER
0ffb2aa6 2604PRINT_MODE_STREAM = _windows.PRINT_MODE_STREAM
d14a1e28 2605class PrintData(core.Object):
423f194a
RD
2606 def __repr__(self):
2607 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2608 def __init__(self, *args, **kwargs):
423f194a 2609 """__init__() -> PrintData"""
d14a1e28
RD
2610 newobj = _windows.new_PrintData(*args, **kwargs)
2611 self.this = newobj.this
2612 self.thisown = 1
2613 del newobj.thisown
2614 def __del__(self, destroy=_windows.delete_PrintData):
423f194a 2615 """__del__()"""
d14a1e28
RD
2616 try:
2617 if self.thisown: destroy(self)
2618 except: pass
423f194a
RD
2619
2620 def GetNoCopies(*args, **kwargs):
2621 """GetNoCopies() -> int"""
2622 return _windows.PrintData_GetNoCopies(*args, **kwargs)
2623
2624 def GetCollate(*args, **kwargs):
2625 """GetCollate() -> bool"""
2626 return _windows.PrintData_GetCollate(*args, **kwargs)
2627
2628 def GetOrientation(*args, **kwargs):
2629 """GetOrientation() -> int"""
2630 return _windows.PrintData_GetOrientation(*args, **kwargs)
2631
2632 def Ok(*args, **kwargs):
2633 """Ok() -> bool"""
2634 return _windows.PrintData_Ok(*args, **kwargs)
2635
2636 def GetPrinterName(*args, **kwargs):
cbd72d4f 2637 """GetPrinterName() -> String"""
423f194a
RD
2638 return _windows.PrintData_GetPrinterName(*args, **kwargs)
2639
2640 def GetColour(*args, **kwargs):
2641 """GetColour() -> bool"""
2642 return _windows.PrintData_GetColour(*args, **kwargs)
2643
2644 def GetDuplex(*args, **kwargs):
cbd72d4f 2645 """GetDuplex() -> int"""
423f194a
RD
2646 return _windows.PrintData_GetDuplex(*args, **kwargs)
2647
2648 def GetPaperId(*args, **kwargs):
cbd72d4f 2649 """GetPaperId() -> int"""
423f194a
RD
2650 return _windows.PrintData_GetPaperId(*args, **kwargs)
2651
2652 def GetPaperSize(*args, **kwargs):
2653 """GetPaperSize() -> Size"""
2654 return _windows.PrintData_GetPaperSize(*args, **kwargs)
2655
2656 def GetQuality(*args, **kwargs):
cbd72d4f 2657 """GetQuality() -> int"""
423f194a
RD
2658 return _windows.PrintData_GetQuality(*args, **kwargs)
2659
2660 def SetNoCopies(*args, **kwargs):
2661 """SetNoCopies(int v)"""
2662 return _windows.PrintData_SetNoCopies(*args, **kwargs)
2663
2664 def SetCollate(*args, **kwargs):
2665 """SetCollate(bool flag)"""
2666 return _windows.PrintData_SetCollate(*args, **kwargs)
2667
2668 def SetOrientation(*args, **kwargs):
2669 """SetOrientation(int orient)"""
2670 return _windows.PrintData_SetOrientation(*args, **kwargs)
2671
2672 def SetPrinterName(*args, **kwargs):
cbd72d4f 2673 """SetPrinterName(String name)"""
423f194a
RD
2674 return _windows.PrintData_SetPrinterName(*args, **kwargs)
2675
2676 def SetColour(*args, **kwargs):
2677 """SetColour(bool colour)"""
2678 return _windows.PrintData_SetColour(*args, **kwargs)
2679
2680 def SetDuplex(*args, **kwargs):
cbd72d4f 2681 """SetDuplex(int duplex)"""
423f194a
RD
2682 return _windows.PrintData_SetDuplex(*args, **kwargs)
2683
2684 def SetPaperId(*args, **kwargs):
cbd72d4f 2685 """SetPaperId(int sizeId)"""
423f194a
RD
2686 return _windows.PrintData_SetPaperId(*args, **kwargs)
2687
2688 def SetPaperSize(*args, **kwargs):
2689 """SetPaperSize(Size sz)"""
2690 return _windows.PrintData_SetPaperSize(*args, **kwargs)
2691
2692 def SetQuality(*args, **kwargs):
cbd72d4f 2693 """SetQuality(int quality)"""
423f194a
RD
2694 return _windows.PrintData_SetQuality(*args, **kwargs)
2695
2696 def GetPrinterCommand(*args, **kwargs):
cbd72d4f 2697 """GetPrinterCommand() -> String"""
423f194a
RD
2698 return _windows.PrintData_GetPrinterCommand(*args, **kwargs)
2699
2700 def GetPrinterOptions(*args, **kwargs):
cbd72d4f 2701 """GetPrinterOptions() -> String"""
423f194a
RD
2702 return _windows.PrintData_GetPrinterOptions(*args, **kwargs)
2703
2704 def GetPreviewCommand(*args, **kwargs):
cbd72d4f 2705 """GetPreviewCommand() -> String"""
423f194a
RD
2706 return _windows.PrintData_GetPreviewCommand(*args, **kwargs)
2707
2708 def GetFilename(*args, **kwargs):
cbd72d4f 2709 """GetFilename() -> String"""
423f194a
RD
2710 return _windows.PrintData_GetFilename(*args, **kwargs)
2711
2712 def GetFontMetricPath(*args, **kwargs):
cbd72d4f 2713 """GetFontMetricPath() -> String"""
423f194a
RD
2714 return _windows.PrintData_GetFontMetricPath(*args, **kwargs)
2715
2716 def GetPrinterScaleX(*args, **kwargs):
2717 """GetPrinterScaleX() -> double"""
2718 return _windows.PrintData_GetPrinterScaleX(*args, **kwargs)
2719
2720 def GetPrinterScaleY(*args, **kwargs):
2721 """GetPrinterScaleY() -> double"""
2722 return _windows.PrintData_GetPrinterScaleY(*args, **kwargs)
2723
2724 def GetPrinterTranslateX(*args, **kwargs):
2725 """GetPrinterTranslateX() -> long"""
2726 return _windows.PrintData_GetPrinterTranslateX(*args, **kwargs)
2727
2728 def GetPrinterTranslateY(*args, **kwargs):
2729 """GetPrinterTranslateY() -> long"""
2730 return _windows.PrintData_GetPrinterTranslateY(*args, **kwargs)
2731
2732 def GetPrintMode(*args, **kwargs):
cbd72d4f 2733 """GetPrintMode() -> int"""
423f194a
RD
2734 return _windows.PrintData_GetPrintMode(*args, **kwargs)
2735
2736 def SetPrinterCommand(*args, **kwargs):
cbd72d4f 2737 """SetPrinterCommand(String command)"""
423f194a
RD
2738 return _windows.PrintData_SetPrinterCommand(*args, **kwargs)
2739
2740 def SetPrinterOptions(*args, **kwargs):
cbd72d4f 2741 """SetPrinterOptions(String options)"""
423f194a
RD
2742 return _windows.PrintData_SetPrinterOptions(*args, **kwargs)
2743
2744 def SetPreviewCommand(*args, **kwargs):
cbd72d4f 2745 """SetPreviewCommand(String command)"""
423f194a
RD
2746 return _windows.PrintData_SetPreviewCommand(*args, **kwargs)
2747
2748 def SetFilename(*args, **kwargs):
cbd72d4f 2749 """SetFilename(String filename)"""
423f194a
RD
2750 return _windows.PrintData_SetFilename(*args, **kwargs)
2751
2752 def SetFontMetricPath(*args, **kwargs):
cbd72d4f 2753 """SetFontMetricPath(String path)"""
423f194a
RD
2754 return _windows.PrintData_SetFontMetricPath(*args, **kwargs)
2755
2756 def SetPrinterScaleX(*args, **kwargs):
2757 """SetPrinterScaleX(double x)"""
2758 return _windows.PrintData_SetPrinterScaleX(*args, **kwargs)
2759
2760 def SetPrinterScaleY(*args, **kwargs):
2761 """SetPrinterScaleY(double y)"""
2762 return _windows.PrintData_SetPrinterScaleY(*args, **kwargs)
2763
2764 def SetPrinterScaling(*args, **kwargs):
2765 """SetPrinterScaling(double x, double y)"""
2766 return _windows.PrintData_SetPrinterScaling(*args, **kwargs)
2767
2768 def SetPrinterTranslateX(*args, **kwargs):
2769 """SetPrinterTranslateX(long x)"""
2770 return _windows.PrintData_SetPrinterTranslateX(*args, **kwargs)
2771
2772 def SetPrinterTranslateY(*args, **kwargs):
2773 """SetPrinterTranslateY(long y)"""
2774 return _windows.PrintData_SetPrinterTranslateY(*args, **kwargs)
2775
2776 def SetPrinterTranslation(*args, **kwargs):
2777 """SetPrinterTranslation(long x, long y)"""
2778 return _windows.PrintData_SetPrinterTranslation(*args, **kwargs)
2779
2780 def SetPrintMode(*args, **kwargs):
cbd72d4f 2781 """SetPrintMode(int printMode)"""
423f194a
RD
2782 return _windows.PrintData_SetPrintMode(*args, **kwargs)
2783
0ffb2aa6
RD
2784 def GetOutputStream(*args, **kwargs):
2785 """GetOutputStream() -> OutputStream"""
2786 return _windows.PrintData_GetOutputStream(*args, **kwargs)
2787
2788 def SetOutputStream(*args, **kwargs):
2789 """SetOutputStream(OutputStream outputstream)"""
2790 return _windows.PrintData_SetOutputStream(*args, **kwargs)
2791
d14a1e28 2792 def __nonzero__(self): return self.Ok()
d14a1e28
RD
2793
2794class PrintDataPtr(PrintData):
2795 def __init__(self, this):
2796 self.this = this
2797 if not hasattr(self,"thisown"): self.thisown = 0
2798 self.__class__ = PrintData
2799_windows.PrintData_swigregister(PrintDataPtr)
cbd72d4f
RD
2800PrintoutTitleStr = cvar.PrintoutTitleStr
2801PreviewCanvasNameStr = cvar.PreviewCanvasNameStr
d14a1e28
RD
2802
2803class PageSetupDialogData(core.Object):
423f194a
RD
2804 def __repr__(self):
2805 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2806 def __init__(self, *args, **kwargs):
423f194a 2807 """__init__() -> PageSetupDialogData"""
d14a1e28
RD
2808 newobj = _windows.new_PageSetupDialogData(*args, **kwargs)
2809 self.this = newobj.this
2810 self.thisown = 1
2811 del newobj.thisown
2812 def __del__(self, destroy=_windows.delete_PageSetupDialogData):
423f194a 2813 """__del__()"""
d14a1e28
RD
2814 try:
2815 if self.thisown: destroy(self)
2816 except: pass
423f194a
RD
2817
2818 def EnableHelp(*args, **kwargs):
2819 """EnableHelp(bool flag)"""
2820 return _windows.PageSetupDialogData_EnableHelp(*args, **kwargs)
2821
2822 def EnableMargins(*args, **kwargs):
2823 """EnableMargins(bool flag)"""
2824 return _windows.PageSetupDialogData_EnableMargins(*args, **kwargs)
2825
2826 def EnableOrientation(*args, **kwargs):
2827 """EnableOrientation(bool flag)"""
2828 return _windows.PageSetupDialogData_EnableOrientation(*args, **kwargs)
2829
2830 def EnablePaper(*args, **kwargs):
2831 """EnablePaper(bool flag)"""
2832 return _windows.PageSetupDialogData_EnablePaper(*args, **kwargs)
2833
2834 def EnablePrinter(*args, **kwargs):
2835 """EnablePrinter(bool flag)"""
2836 return _windows.PageSetupDialogData_EnablePrinter(*args, **kwargs)
2837
2838 def GetDefaultMinMargins(*args, **kwargs):
2839 """GetDefaultMinMargins() -> bool"""
2840 return _windows.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs)
2841
2842 def GetEnableMargins(*args, **kwargs):
2843 """GetEnableMargins() -> bool"""
2844 return _windows.PageSetupDialogData_GetEnableMargins(*args, **kwargs)
2845
2846 def GetEnableOrientation(*args, **kwargs):
2847 """GetEnableOrientation() -> bool"""
2848 return _windows.PageSetupDialogData_GetEnableOrientation(*args, **kwargs)
2849
2850 def GetEnablePaper(*args, **kwargs):
2851 """GetEnablePaper() -> bool"""
2852 return _windows.PageSetupDialogData_GetEnablePaper(*args, **kwargs)
2853
2854 def GetEnablePrinter(*args, **kwargs):
2855 """GetEnablePrinter() -> bool"""
2856 return _windows.PageSetupDialogData_GetEnablePrinter(*args, **kwargs)
2857
2858 def GetEnableHelp(*args, **kwargs):
2859 """GetEnableHelp() -> bool"""
2860 return _windows.PageSetupDialogData_GetEnableHelp(*args, **kwargs)
2861
2862 def GetDefaultInfo(*args, **kwargs):
2863 """GetDefaultInfo() -> bool"""
2864 return _windows.PageSetupDialogData_GetDefaultInfo(*args, **kwargs)
2865
2866 def GetMarginTopLeft(*args, **kwargs):
2867 """GetMarginTopLeft() -> Point"""
2868 return _windows.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs)
2869
2870 def GetMarginBottomRight(*args, **kwargs):
2871 """GetMarginBottomRight() -> Point"""
2872 return _windows.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs)
2873
2874 def GetMinMarginTopLeft(*args, **kwargs):
2875 """GetMinMarginTopLeft() -> Point"""
2876 return _windows.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs)
2877
2878 def GetMinMarginBottomRight(*args, **kwargs):
2879 """GetMinMarginBottomRight() -> Point"""
2880 return _windows.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs)
2881
2882 def GetPaperId(*args, **kwargs):
cbd72d4f 2883 """GetPaperId() -> int"""
423f194a
RD
2884 return _windows.PageSetupDialogData_GetPaperId(*args, **kwargs)
2885
2886 def GetPaperSize(*args, **kwargs):
2887 """GetPaperSize() -> Size"""
2888 return _windows.PageSetupDialogData_GetPaperSize(*args, **kwargs)
2889
2890 def GetPrintData(*args, **kwargs):
2891 """GetPrintData() -> PrintData"""
2892 return _windows.PageSetupDialogData_GetPrintData(*args, **kwargs)
2893
2894 def Ok(*args, **kwargs):
2895 """Ok() -> bool"""
2896 return _windows.PageSetupDialogData_Ok(*args, **kwargs)
2897
2898 def SetDefaultInfo(*args, **kwargs):
2899 """SetDefaultInfo(bool flag)"""
2900 return _windows.PageSetupDialogData_SetDefaultInfo(*args, **kwargs)
2901
2902 def SetDefaultMinMargins(*args, **kwargs):
2903 """SetDefaultMinMargins(bool flag)"""
2904 return _windows.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs)
2905
2906 def SetMarginTopLeft(*args, **kwargs):
2907 """SetMarginTopLeft(Point pt)"""
2908 return _windows.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs)
2909
2910 def SetMarginBottomRight(*args, **kwargs):
2911 """SetMarginBottomRight(Point pt)"""
2912 return _windows.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs)
2913
2914 def SetMinMarginTopLeft(*args, **kwargs):
2915 """SetMinMarginTopLeft(Point pt)"""
2916 return _windows.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs)
2917
2918 def SetMinMarginBottomRight(*args, **kwargs):
2919 """SetMinMarginBottomRight(Point pt)"""
2920 return _windows.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs)
2921
2922 def SetPaperId(*args, **kwargs):
cbd72d4f 2923 """SetPaperId(int id)"""
423f194a
RD
2924 return _windows.PageSetupDialogData_SetPaperId(*args, **kwargs)
2925
2926 def SetPaperSize(*args, **kwargs):
2927 """SetPaperSize(Size size)"""
2928 return _windows.PageSetupDialogData_SetPaperSize(*args, **kwargs)
2929
2930 def SetPrintData(*args, **kwargs):
2931 """SetPrintData(PrintData printData)"""
2932 return _windows.PageSetupDialogData_SetPrintData(*args, **kwargs)
2933
d14a1e28 2934 def __nonzero__(self): return self.Ok()
59988cd0 2935
d14a1e28
RD
2936class PageSetupDialogDataPtr(PageSetupDialogData):
2937 def __init__(self, this):
2938 self.this = this
2939 if not hasattr(self,"thisown"): self.thisown = 0
2940 self.__class__ = PageSetupDialogData
2941_windows.PageSetupDialogData_swigregister(PageSetupDialogDataPtr)
2942
2943class PageSetupDialog(Dialog):
423f194a
RD
2944 def __repr__(self):
2945 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2946 def __init__(self, *args, **kwargs):
423f194a 2947 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
d14a1e28
RD
2948 newobj = _windows.new_PageSetupDialog(*args, **kwargs)
2949 self.this = newobj.this
2950 self.thisown = 1
2951 del newobj.thisown
2952 self._setOORInfo(self)
423f194a
RD
2953
2954 def GetPageSetupData(*args, **kwargs):
2955 """GetPageSetupData() -> PageSetupDialogData"""
2956 return _windows.PageSetupDialog_GetPageSetupData(*args, **kwargs)
2957
2958 def ShowModal(*args, **kwargs):
2959 """ShowModal() -> int"""
2960 return _windows.PageSetupDialog_ShowModal(*args, **kwargs)
2961
d14a1e28
RD
2962
2963class PageSetupDialogPtr(PageSetupDialog):
2964 def __init__(self, this):
2965 self.this = this
2966 if not hasattr(self,"thisown"): self.thisown = 0
2967 self.__class__ = PageSetupDialog
2968_windows.PageSetupDialog_swigregister(PageSetupDialogPtr)
2969
2970class PrintDialogData(core.Object):
423f194a
RD
2971 def __repr__(self):
2972 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2973 def __init__(self, *args, **kwargs):
423f194a 2974 """__init__() -> PrintDialogData"""
d14a1e28
RD
2975 newobj = _windows.new_PrintDialogData(*args, **kwargs)
2976 self.this = newobj.this
2977 self.thisown = 1
2978 del newobj.thisown
2979 def __del__(self, destroy=_windows.delete_PrintDialogData):
423f194a 2980 """__del__()"""
d14a1e28
RD
2981 try:
2982 if self.thisown: destroy(self)
2983 except: pass
423f194a
RD
2984
2985 def GetFromPage(*args, **kwargs):
2986 """GetFromPage() -> int"""
2987 return _windows.PrintDialogData_GetFromPage(*args, **kwargs)
2988
2989 def GetToPage(*args, **kwargs):
2990 """GetToPage() -> int"""
2991 return _windows.PrintDialogData_GetToPage(*args, **kwargs)
2992
2993 def GetMinPage(*args, **kwargs):
2994 """GetMinPage() -> int"""
2995 return _windows.PrintDialogData_GetMinPage(*args, **kwargs)
2996
2997 def GetMaxPage(*args, **kwargs):
2998 """GetMaxPage() -> int"""
2999 return _windows.PrintDialogData_GetMaxPage(*args, **kwargs)
3000
3001 def GetNoCopies(*args, **kwargs):
3002 """GetNoCopies() -> int"""
3003 return _windows.PrintDialogData_GetNoCopies(*args, **kwargs)
3004
3005 def GetAllPages(*args, **kwargs):
3006 """GetAllPages() -> bool"""
3007 return _windows.PrintDialogData_GetAllPages(*args, **kwargs)
3008
3009 def GetSelection(*args, **kwargs):
3010 """GetSelection() -> bool"""
3011 return _windows.PrintDialogData_GetSelection(*args, **kwargs)
3012
3013 def GetCollate(*args, **kwargs):
3014 """GetCollate() -> bool"""
3015 return _windows.PrintDialogData_GetCollate(*args, **kwargs)
3016
3017 def GetPrintToFile(*args, **kwargs):
3018 """GetPrintToFile() -> bool"""
3019 return _windows.PrintDialogData_GetPrintToFile(*args, **kwargs)
3020
3021 def GetSetupDialog(*args, **kwargs):
3022 """GetSetupDialog() -> bool"""
3023 return _windows.PrintDialogData_GetSetupDialog(*args, **kwargs)
3024
3025 def SetFromPage(*args, **kwargs):
3026 """SetFromPage(int v)"""
3027 return _windows.PrintDialogData_SetFromPage(*args, **kwargs)
3028
3029 def SetToPage(*args, **kwargs):
3030 """SetToPage(int v)"""
3031 return _windows.PrintDialogData_SetToPage(*args, **kwargs)
3032
3033 def SetMinPage(*args, **kwargs):
3034 """SetMinPage(int v)"""
3035 return _windows.PrintDialogData_SetMinPage(*args, **kwargs)
3036
3037 def SetMaxPage(*args, **kwargs):
3038 """SetMaxPage(int v)"""
3039 return _windows.PrintDialogData_SetMaxPage(*args, **kwargs)
3040
3041 def SetNoCopies(*args, **kwargs):
3042 """SetNoCopies(int v)"""
3043 return _windows.PrintDialogData_SetNoCopies(*args, **kwargs)
3044
3045 def SetAllPages(*args, **kwargs):
3046 """SetAllPages(bool flag)"""
3047 return _windows.PrintDialogData_SetAllPages(*args, **kwargs)
3048
3049 def SetSelection(*args, **kwargs):
3050 """SetSelection(bool flag)"""
3051 return _windows.PrintDialogData_SetSelection(*args, **kwargs)
3052
3053 def SetCollate(*args, **kwargs):
3054 """SetCollate(bool flag)"""
3055 return _windows.PrintDialogData_SetCollate(*args, **kwargs)
3056
3057 def SetPrintToFile(*args, **kwargs):
3058 """SetPrintToFile(bool flag)"""
3059 return _windows.PrintDialogData_SetPrintToFile(*args, **kwargs)
3060
3061 def SetSetupDialog(*args, **kwargs):
3062 """SetSetupDialog(bool flag)"""
3063 return _windows.PrintDialogData_SetSetupDialog(*args, **kwargs)
3064
3065 def EnablePrintToFile(*args, **kwargs):
3066 """EnablePrintToFile(bool flag)"""
3067 return _windows.PrintDialogData_EnablePrintToFile(*args, **kwargs)
3068
3069 def EnableSelection(*args, **kwargs):
3070 """EnableSelection(bool flag)"""
3071 return _windows.PrintDialogData_EnableSelection(*args, **kwargs)
3072
3073 def EnablePageNumbers(*args, **kwargs):
3074 """EnablePageNumbers(bool flag)"""
3075 return _windows.PrintDialogData_EnablePageNumbers(*args, **kwargs)
3076
3077 def EnableHelp(*args, **kwargs):
3078 """EnableHelp(bool flag)"""
3079 return _windows.PrintDialogData_EnableHelp(*args, **kwargs)
3080
3081 def GetEnablePrintToFile(*args, **kwargs):
3082 """GetEnablePrintToFile() -> bool"""
3083 return _windows.PrintDialogData_GetEnablePrintToFile(*args, **kwargs)
3084
3085 def GetEnableSelection(*args, **kwargs):
3086 """GetEnableSelection() -> bool"""
3087 return _windows.PrintDialogData_GetEnableSelection(*args, **kwargs)
3088
3089 def GetEnablePageNumbers(*args, **kwargs):
3090 """GetEnablePageNumbers() -> bool"""
3091 return _windows.PrintDialogData_GetEnablePageNumbers(*args, **kwargs)
3092
3093 def GetEnableHelp(*args, **kwargs):
3094 """GetEnableHelp() -> bool"""
3095 return _windows.PrintDialogData_GetEnableHelp(*args, **kwargs)
3096
3097 def Ok(*args, **kwargs):
3098 """Ok() -> bool"""
3099 return _windows.PrintDialogData_Ok(*args, **kwargs)
3100
3101 def GetPrintData(*args, **kwargs):
3102 """GetPrintData() -> PrintData"""
3103 return _windows.PrintDialogData_GetPrintData(*args, **kwargs)
3104
3105 def SetPrintData(*args, **kwargs):
3106 """SetPrintData(PrintData printData)"""
3107 return _windows.PrintDialogData_SetPrintData(*args, **kwargs)
3108
d14a1e28 3109 def __nonzero__(self): return self.Ok()
d14a1e28
RD
3110
3111class PrintDialogDataPtr(PrintDialogData):
3112 def __init__(self, this):
3113 self.this = this
3114 if not hasattr(self,"thisown"): self.thisown = 0
3115 self.__class__ = PrintDialogData
3116_windows.PrintDialogData_swigregister(PrintDialogDataPtr)
3117
3118class PrintDialog(Dialog):
423f194a
RD
3119 def __repr__(self):
3120 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3121 def __init__(self, *args, **kwargs):
423f194a 3122 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
d14a1e28
RD
3123 newobj = _windows.new_PrintDialog(*args, **kwargs)
3124 self.this = newobj.this
3125 self.thisown = 1
3126 del newobj.thisown
3127 self._setOORInfo(self)
423f194a
RD
3128
3129 def GetPrintDialogData(*args, **kwargs):
3130 """GetPrintDialogData() -> PrintDialogData"""
3131 return _windows.PrintDialog_GetPrintDialogData(*args, **kwargs)
3132
3133 def GetPrintDC(*args, **kwargs):
cbd72d4f 3134 """GetPrintDC() -> DC"""
423f194a
RD
3135 return _windows.PrintDialog_GetPrintDC(*args, **kwargs)
3136
3137 def ShowModal(*args, **kwargs):
3138 """ShowModal() -> int"""
3139 return _windows.PrintDialog_ShowModal(*args, **kwargs)
3140
d14a1e28
RD
3141
3142class PrintDialogPtr(PrintDialog):
3143 def __init__(self, this):
3144 self.this = this
3145 if not hasattr(self,"thisown"): self.thisown = 0
3146 self.__class__ = PrintDialog
3147_windows.PrintDialog_swigregister(PrintDialogPtr)
3148
3149PRINTER_NO_ERROR = _windows.PRINTER_NO_ERROR
3150PRINTER_CANCELLED = _windows.PRINTER_CANCELLED
3151PRINTER_ERROR = _windows.PRINTER_ERROR
3152class Printer(core.Object):
423f194a
RD
3153 def __repr__(self):
3154 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3155 def __init__(self, *args, **kwargs):
423f194a 3156 """__init__(PrintDialogData data=None) -> Printer"""
d14a1e28
RD
3157 newobj = _windows.new_Printer(*args, **kwargs)
3158 self.this = newobj.this
3159 self.thisown = 1
3160 del newobj.thisown
3161 def __del__(self, destroy=_windows.delete_Printer):
423f194a 3162 """__del__()"""
d14a1e28
RD
3163 try:
3164 if self.thisown: destroy(self)
3165 except: pass
423f194a
RD
3166
3167 def CreateAbortWindow(*args, **kwargs):
3168 """CreateAbortWindow(Window parent, Printout printout)"""
3169 return _windows.Printer_CreateAbortWindow(*args, **kwargs)
3170
3171 def GetPrintDialogData(*args, **kwargs):
3172 """GetPrintDialogData() -> PrintDialogData"""
3173 return _windows.Printer_GetPrintDialogData(*args, **kwargs)
3174
3175 def Print(*args, **kwargs):
3176 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
3177 return _windows.Printer_Print(*args, **kwargs)
3178
3179 def PrintDialog(*args, **kwargs):
cbd72d4f 3180 """PrintDialog(Window parent) -> DC"""
423f194a
RD
3181 return _windows.Printer_PrintDialog(*args, **kwargs)
3182
3183 def ReportError(*args, **kwargs):
cbd72d4f 3184 """ReportError(Window parent, Printout printout, String message)"""
423f194a
RD
3185 return _windows.Printer_ReportError(*args, **kwargs)
3186
3187 def Setup(*args, **kwargs):
3188 """Setup(Window parent) -> bool"""
3189 return _windows.Printer_Setup(*args, **kwargs)
3190
3191 def GetAbort(*args, **kwargs):
3192 """GetAbort() -> bool"""
3193 return _windows.Printer_GetAbort(*args, **kwargs)
3194
3195 def GetLastError(*args, **kwargs):
2dbef272 3196 """GetLastError() -> int"""
423f194a
RD
3197 return _windows.Printer_GetLastError(*args, **kwargs)
3198
3199 GetLastError = staticmethod(GetLastError)
d14a1e28
RD
3200
3201class PrinterPtr(Printer):
3202 def __init__(self, this):
3203 self.this = this
3204 if not hasattr(self,"thisown"): self.thisown = 0
3205 self.__class__ = Printer
3206_windows.Printer_swigregister(PrinterPtr)
e6056257 3207
423f194a 3208def Printer_GetLastError(*args, **kwargs):
cbd72d4f 3209 """Printer_GetLastError() -> int"""
423f194a 3210 return _windows.Printer_GetLastError(*args, **kwargs)
e6056257 3211
d14a1e28 3212class Printout(core.Object):
423f194a
RD
3213 def __repr__(self):
3214 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3215 def __init__(self, *args, **kwargs):
cbd72d4f 3216 """__init__(String title=PrintoutTitleStr) -> Printout"""
d14a1e28
RD
3217 newobj = _windows.new_Printout(*args, **kwargs)
3218 self.this = newobj.this
3219 self.thisown = 1
3220 del newobj.thisown
3221 self._setCallbackInfo(self, Printout)
423f194a
RD
3222
3223 def _setCallbackInfo(*args, **kwargs):
3224 """_setCallbackInfo(PyObject self, PyObject _class)"""
3225 return _windows.Printout__setCallbackInfo(*args, **kwargs)
3226
3227 def GetTitle(*args, **kwargs):
cbd72d4f 3228 """GetTitle() -> String"""
423f194a
RD
3229 return _windows.Printout_GetTitle(*args, **kwargs)
3230
3231 def GetDC(*args, **kwargs):
cbd72d4f 3232 """GetDC() -> DC"""
423f194a
RD
3233 return _windows.Printout_GetDC(*args, **kwargs)
3234
3235 def SetDC(*args, **kwargs):
cbd72d4f 3236 """SetDC(DC dc)"""
423f194a
RD
3237 return _windows.Printout_SetDC(*args, **kwargs)
3238
423f194a
RD
3239 def SetPageSizePixels(*args, **kwargs):
3240 """SetPageSizePixels(int w, int h)"""
3241 return _windows.Printout_SetPageSizePixels(*args, **kwargs)
3242
44127b65
RD
3243 def GetPageSizePixels(*args, **kwargs):
3244 """GetPageSizePixels() -> (w, h)"""
3245 return _windows.Printout_GetPageSizePixels(*args, **kwargs)
3246
423f194a
RD
3247 def SetPageSizeMM(*args, **kwargs):
3248 """SetPageSizeMM(int w, int h)"""
3249 return _windows.Printout_SetPageSizeMM(*args, **kwargs)
3250
3251 def GetPageSizeMM(*args, **kwargs):
44127b65 3252 """GetPageSizeMM() -> (w, h)"""
423f194a
RD
3253 return _windows.Printout_GetPageSizeMM(*args, **kwargs)
3254
3255 def SetPPIScreen(*args, **kwargs):
3256 """SetPPIScreen(int x, int y)"""
3257 return _windows.Printout_SetPPIScreen(*args, **kwargs)
3258
3259 def GetPPIScreen(*args, **kwargs):
44127b65 3260 """GetPPIScreen() -> (x,y)"""
423f194a
RD
3261 return _windows.Printout_GetPPIScreen(*args, **kwargs)
3262
3263 def SetPPIPrinter(*args, **kwargs):
3264 """SetPPIPrinter(int x, int y)"""
3265 return _windows.Printout_SetPPIPrinter(*args, **kwargs)
3266
3267 def GetPPIPrinter(*args, **kwargs):
44127b65 3268 """GetPPIPrinter() -> (x,y)"""
423f194a
RD
3269 return _windows.Printout_GetPPIPrinter(*args, **kwargs)
3270
3271 def IsPreview(*args, **kwargs):
3272 """IsPreview() -> bool"""
3273 return _windows.Printout_IsPreview(*args, **kwargs)
3274
3275 def SetIsPreview(*args, **kwargs):
3276 """SetIsPreview(bool p)"""
3277 return _windows.Printout_SetIsPreview(*args, **kwargs)
3278
3279 def base_OnBeginDocument(*args, **kwargs):
3280 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
3281 return _windows.Printout_base_OnBeginDocument(*args, **kwargs)
3282
3283 def base_OnEndDocument(*args, **kwargs):
3284 """base_OnEndDocument()"""
3285 return _windows.Printout_base_OnEndDocument(*args, **kwargs)
3286
3287 def base_OnBeginPrinting(*args, **kwargs):
3288 """base_OnBeginPrinting()"""
3289 return _windows.Printout_base_OnBeginPrinting(*args, **kwargs)
3290
3291 def base_OnEndPrinting(*args, **kwargs):
3292 """base_OnEndPrinting()"""
3293 return _windows.Printout_base_OnEndPrinting(*args, **kwargs)
3294
3295 def base_OnPreparePrinting(*args, **kwargs):
3296 """base_OnPreparePrinting()"""
3297 return _windows.Printout_base_OnPreparePrinting(*args, **kwargs)
3298
423f194a
RD
3299 def base_HasPage(*args, **kwargs):
3300 """base_HasPage(int page) -> bool"""
3301 return _windows.Printout_base_HasPage(*args, **kwargs)
3302
44127b65
RD
3303 def base_GetPageInfo(*args, **kwargs):
3304 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
3305 return _windows.Printout_base_GetPageInfo(*args, **kwargs)
3306
d14a1e28
RD
3307
3308class PrintoutPtr(Printout):
3309 def __init__(self, this):
3310 self.this = this
3311 if not hasattr(self,"thisown"): self.thisown = 0
3312 self.__class__ = Printout
3313_windows.Printout_swigregister(PrintoutPtr)
3314
3315class PreviewCanvas(ScrolledWindow):
423f194a
RD
3316 def __repr__(self):
3317 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3318 def __init__(self, *args, **kwargs):
41f1cec7
RD
3319 """
3320 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
3321 Size size=DefaultSize, long style=0,
cbd72d4f 3322 String name=PreviewCanvasNameStr) -> PreviewCanvas
41f1cec7 3323 """
d14a1e28
RD
3324 newobj = _windows.new_PreviewCanvas(*args, **kwargs)
3325 self.this = newobj.this
3326 self.thisown = 1
3327 del newobj.thisown
100c4552 3328 self._setOORInfo(self)
423f194a 3329
d14a1e28
RD
3330
3331class PreviewCanvasPtr(PreviewCanvas):
3332 def __init__(self, this):
3333 self.this = this
3334 if not hasattr(self,"thisown"): self.thisown = 0
3335 self.__class__ = PreviewCanvas
3336_windows.PreviewCanvas_swigregister(PreviewCanvasPtr)
3337
3338class PreviewFrame(Frame):
423f194a
RD
3339 def __repr__(self):
3340 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3341 def __init__(self, *args, **kwargs):
41f1cec7 3342 """
cbd72d4f
RD
3343 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
3344 Size size=DefaultSize,
3345 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
41f1cec7 3346 """
d14a1e28
RD
3347 newobj = _windows.new_PreviewFrame(*args, **kwargs)
3348 self.this = newobj.this
3349 self.thisown = 1
3350 del newobj.thisown
100c4552 3351 self._setOORInfo(self)
423f194a
RD
3352
3353 def Initialize(*args, **kwargs):
3354 """Initialize()"""
3355 return _windows.PreviewFrame_Initialize(*args, **kwargs)
3356
3357 def CreateControlBar(*args, **kwargs):
3358 """CreateControlBar()"""
3359 return _windows.PreviewFrame_CreateControlBar(*args, **kwargs)
3360
3361 def CreateCanvas(*args, **kwargs):
3362 """CreateCanvas()"""
3363 return _windows.PreviewFrame_CreateCanvas(*args, **kwargs)
3364
3365 def GetControlBar(*args, **kwargs):
3366 """GetControlBar() -> PreviewControlBar"""
3367 return _windows.PreviewFrame_GetControlBar(*args, **kwargs)
3368
d14a1e28
RD
3369
3370class PreviewFramePtr(PreviewFrame):
3371 def __init__(self, this):
3372 self.this = this
3373 if not hasattr(self,"thisown"): self.thisown = 0
3374 self.__class__ = PreviewFrame
3375_windows.PreviewFrame_swigregister(PreviewFramePtr)
3376
3377PREVIEW_PRINT = _windows.PREVIEW_PRINT
3378PREVIEW_PREVIOUS = _windows.PREVIEW_PREVIOUS
3379PREVIEW_NEXT = _windows.PREVIEW_NEXT
3380PREVIEW_ZOOM = _windows.PREVIEW_ZOOM
3381PREVIEW_FIRST = _windows.PREVIEW_FIRST
3382PREVIEW_LAST = _windows.PREVIEW_LAST
3383PREVIEW_GOTO = _windows.PREVIEW_GOTO
3384PREVIEW_DEFAULT = _windows.PREVIEW_DEFAULT
3385ID_PREVIEW_CLOSE = _windows.ID_PREVIEW_CLOSE
3386ID_PREVIEW_NEXT = _windows.ID_PREVIEW_NEXT
3387ID_PREVIEW_PREVIOUS = _windows.ID_PREVIEW_PREVIOUS
3388ID_PREVIEW_PRINT = _windows.ID_PREVIEW_PRINT
3389ID_PREVIEW_ZOOM = _windows.ID_PREVIEW_ZOOM
3390ID_PREVIEW_FIRST = _windows.ID_PREVIEW_FIRST
3391ID_PREVIEW_LAST = _windows.ID_PREVIEW_LAST
3392ID_PREVIEW_GOTO = _windows.ID_PREVIEW_GOTO
3393class PreviewControlBar(Panel):
423f194a
RD
3394 def __repr__(self):
3395 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3396 def __init__(self, *args, **kwargs):
41f1cec7
RD
3397 """
3398 __init__(PrintPreview preview, long buttons, Window parent,
3399 Point pos=DefaultPosition, Size size=DefaultSize,
cbd72d4f 3400 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
41f1cec7 3401 """
d14a1e28
RD
3402 newobj = _windows.new_PreviewControlBar(*args, **kwargs)
3403 self.this = newobj.this
3404 self.thisown = 1
3405 del newobj.thisown
100c4552 3406 self._setOORInfo(self)
423f194a
RD
3407
3408 def GetZoomControl(*args, **kwargs):
3409 """GetZoomControl() -> int"""
3410 return _windows.PreviewControlBar_GetZoomControl(*args, **kwargs)
3411
3412 def SetZoomControl(*args, **kwargs):
3413 """SetZoomControl(int zoom)"""
3414 return _windows.PreviewControlBar_SetZoomControl(*args, **kwargs)
3415
3416 def GetPrintPreview(*args, **kwargs):
3417 """GetPrintPreview() -> PrintPreview"""
3418 return _windows.PreviewControlBar_GetPrintPreview(*args, **kwargs)
3419
3420 def OnNext(*args, **kwargs):
3421 """OnNext()"""
3422 return _windows.PreviewControlBar_OnNext(*args, **kwargs)
3423
3424 def OnPrevious(*args, **kwargs):
3425 """OnPrevious()"""
3426 return _windows.PreviewControlBar_OnPrevious(*args, **kwargs)
3427
3428 def OnFirst(*args, **kwargs):
3429 """OnFirst()"""
3430 return _windows.PreviewControlBar_OnFirst(*args, **kwargs)
3431
3432 def OnLast(*args, **kwargs):
3433 """OnLast()"""
3434 return _windows.PreviewControlBar_OnLast(*args, **kwargs)
3435
3436 def OnGoto(*args, **kwargs):
3437 """OnGoto()"""
3438 return _windows.PreviewControlBar_OnGoto(*args, **kwargs)
3439
d14a1e28
RD
3440
3441class PreviewControlBarPtr(PreviewControlBar):
3442 def __init__(self, this):
3443 self.this = this
3444 if not hasattr(self,"thisown"): self.thisown = 0
3445 self.__class__ = PreviewControlBar
3446_windows.PreviewControlBar_swigregister(PreviewControlBarPtr)
3447
3448class PrintPreview(core.Object):
423f194a
RD
3449 def __repr__(self):
3450 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3451 def __init__(self, *args, **kwargs):
423f194a 3452 """__init__(Printout printout, Printout printoutForPrinting, PrintData data=None) -> PrintPreview"""
d14a1e28
RD
3453 newobj = _windows.new_PrintPreview(*args, **kwargs)
3454 self.this = newobj.this
3455 self.thisown = 1
3456 del newobj.thisown
423f194a
RD
3457 def SetCurrentPage(*args, **kwargs):
3458 """SetCurrentPage(int pageNum) -> bool"""
3459 return _windows.PrintPreview_SetCurrentPage(*args, **kwargs)
3460
3461 def GetCurrentPage(*args, **kwargs):
3462 """GetCurrentPage() -> int"""
3463 return _windows.PrintPreview_GetCurrentPage(*args, **kwargs)
3464
3465 def SetPrintout(*args, **kwargs):
3466 """SetPrintout(Printout printout)"""
3467 return _windows.PrintPreview_SetPrintout(*args, **kwargs)
3468
3469 def GetPrintout(*args, **kwargs):
3470 """GetPrintout() -> Printout"""
3471 return _windows.PrintPreview_GetPrintout(*args, **kwargs)
3472
3473 def GetPrintoutForPrinting(*args, **kwargs):
3474 """GetPrintoutForPrinting() -> Printout"""
3475 return _windows.PrintPreview_GetPrintoutForPrinting(*args, **kwargs)
3476
3477 def SetFrame(*args, **kwargs):
3478 """SetFrame(Frame frame)"""
3479 return _windows.PrintPreview_SetFrame(*args, **kwargs)
3480
3481 def SetCanvas(*args, **kwargs):
3482 """SetCanvas(PreviewCanvas canvas)"""
3483 return _windows.PrintPreview_SetCanvas(*args, **kwargs)
3484
3485 def GetFrame(*args, **kwargs):
3486 """GetFrame() -> Frame"""
3487 return _windows.PrintPreview_GetFrame(*args, **kwargs)
3488
3489 def GetCanvas(*args, **kwargs):
3490 """GetCanvas() -> PreviewCanvas"""
3491 return _windows.PrintPreview_GetCanvas(*args, **kwargs)
3492
3493 def PaintPage(*args, **kwargs):
cbd72d4f 3494 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
423f194a
RD
3495 return _windows.PrintPreview_PaintPage(*args, **kwargs)
3496
3497 def DrawBlankPage(*args, **kwargs):
cbd72d4f 3498 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
423f194a
RD
3499 return _windows.PrintPreview_DrawBlankPage(*args, **kwargs)
3500
3501 def RenderPage(*args, **kwargs):
3502 """RenderPage(int pageNum) -> bool"""
3503 return _windows.PrintPreview_RenderPage(*args, **kwargs)
3504
3505 def AdjustScrollbars(*args, **kwargs):
3506 """AdjustScrollbars(PreviewCanvas canvas)"""
3507 return _windows.PrintPreview_AdjustScrollbars(*args, **kwargs)
3508
3509 def GetPrintDialogData(*args, **kwargs):
3510 """GetPrintDialogData() -> PrintDialogData"""
3511 return _windows.PrintPreview_GetPrintDialogData(*args, **kwargs)
3512
3513 def SetZoom(*args, **kwargs):
3514 """SetZoom(int percent)"""
3515 return _windows.PrintPreview_SetZoom(*args, **kwargs)
3516
3517 def GetZoom(*args, **kwargs):
3518 """GetZoom() -> int"""
3519 return _windows.PrintPreview_GetZoom(*args, **kwargs)
3520
3521 def GetMaxPage(*args, **kwargs):
3522 """GetMaxPage() -> int"""
3523 return _windows.PrintPreview_GetMaxPage(*args, **kwargs)
3524
3525 def GetMinPage(*args, **kwargs):
3526 """GetMinPage() -> int"""
3527 return _windows.PrintPreview_GetMinPage(*args, **kwargs)
3528
3529 def Ok(*args, **kwargs):
3530 """Ok() -> bool"""
3531 return _windows.PrintPreview_Ok(*args, **kwargs)
3532
3533 def SetOk(*args, **kwargs):
3534 """SetOk(bool ok)"""
3535 return _windows.PrintPreview_SetOk(*args, **kwargs)
3536
3537 def Print(*args, **kwargs):
3538 """Print(bool interactive) -> bool"""
3539 return _windows.PrintPreview_Print(*args, **kwargs)
3540
3541 def DetermineScaling(*args, **kwargs):
3542 """DetermineScaling()"""
3543 return _windows.PrintPreview_DetermineScaling(*args, **kwargs)
3544
d14a1e28 3545 def __nonzero__(self): return self.Ok()
d14a1e28
RD
3546
3547class PrintPreviewPtr(PrintPreview):
3548 def __init__(self, this):
3549 self.this = this
3550 if not hasattr(self,"thisown"): self.thisown = 0
3551 self.__class__ = PrintPreview
3552_windows.PrintPreview_swigregister(PrintPreviewPtr)
3553
3554class PyPrintPreview(PrintPreview):
423f194a
RD
3555 def __repr__(self):
3556 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3557 def __init__(self, *args, **kwargs):
423f194a 3558 """__init__(Printout printout, Printout printoutForPrinting, PrintData data=None) -> PyPrintPreview"""
d14a1e28
RD
3559 newobj = _windows.new_PyPrintPreview(*args, **kwargs)
3560 self.this = newobj.this
3561 self.thisown = 1
3562 del newobj.thisown
3563 self._setCallbackInfo(self, PyPrintPreview)
423f194a
RD
3564
3565 def _setCallbackInfo(*args, **kwargs):
3566 """_setCallbackInfo(PyObject self, PyObject _class)"""
3567 return _windows.PyPrintPreview__setCallbackInfo(*args, **kwargs)
3568
3569 def base_SetCurrentPage(*args, **kwargs):
3570 """base_SetCurrentPage(int pageNum) -> bool"""
3571 return _windows.PyPrintPreview_base_SetCurrentPage(*args, **kwargs)
3572
3573 def base_PaintPage(*args, **kwargs):
cbd72d4f 3574 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
423f194a
RD
3575 return _windows.PyPrintPreview_base_PaintPage(*args, **kwargs)
3576
3577 def base_DrawBlankPage(*args, **kwargs):
cbd72d4f 3578 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
423f194a
RD
3579 return _windows.PyPrintPreview_base_DrawBlankPage(*args, **kwargs)
3580
3581 def base_RenderPage(*args, **kwargs):
3582 """base_RenderPage(int pageNum) -> bool"""
3583 return _windows.PyPrintPreview_base_RenderPage(*args, **kwargs)
3584
3585 def base_SetZoom(*args, **kwargs):
3586 """base_SetZoom(int percent)"""
3587 return _windows.PyPrintPreview_base_SetZoom(*args, **kwargs)
3588
3589 def base_Print(*args, **kwargs):
3590 """base_Print(bool interactive) -> bool"""
3591 return _windows.PyPrintPreview_base_Print(*args, **kwargs)
3592
3593 def base_DetermineScaling(*args, **kwargs):
3594 """base_DetermineScaling()"""
3595 return _windows.PyPrintPreview_base_DetermineScaling(*args, **kwargs)
3596
d14a1e28
RD
3597
3598class PyPrintPreviewPtr(PyPrintPreview):
3599 def __init__(self, this):
3600 self.this = this
3601 if not hasattr(self,"thisown"): self.thisown = 0
3602 self.__class__ = PyPrintPreview
3603_windows.PyPrintPreview_swigregister(PyPrintPreviewPtr)
3604
3605class PyPreviewFrame(PreviewFrame):
423f194a
RD
3606 def __repr__(self):
3607 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3608 def __init__(self, *args, **kwargs):
41f1cec7 3609 """
cbd72d4f
RD
3610 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
3611 Size size=DefaultSize,
3612 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
41f1cec7 3613 """
d14a1e28
RD
3614 newobj = _windows.new_PyPreviewFrame(*args, **kwargs)
3615 self.this = newobj.this
3616 self.thisown = 1
3617 del newobj.thisown
3618 self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self)
423f194a
RD
3619
3620 def _setCallbackInfo(*args, **kwargs):
3621 """_setCallbackInfo(PyObject self, PyObject _class)"""
3622 return _windows.PyPreviewFrame__setCallbackInfo(*args, **kwargs)
3623
3624 def SetPreviewCanvas(*args, **kwargs):
3625 """SetPreviewCanvas(PreviewCanvas canvas)"""
3626 return _windows.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs)
3627
3628 def SetControlBar(*args, **kwargs):
3629 """SetControlBar(PreviewControlBar bar)"""
3630 return _windows.PyPreviewFrame_SetControlBar(*args, **kwargs)
3631
3632 def base_Initialize(*args, **kwargs):
3633 """base_Initialize()"""
3634 return _windows.PyPreviewFrame_base_Initialize(*args, **kwargs)
3635
3636 def base_CreateCanvas(*args, **kwargs):
3637 """base_CreateCanvas()"""
3638 return _windows.PyPreviewFrame_base_CreateCanvas(*args, **kwargs)
3639
3640 def base_CreateControlBar(*args, **kwargs):
3641 """base_CreateControlBar()"""
3642 return _windows.PyPreviewFrame_base_CreateControlBar(*args, **kwargs)
3643
d14a1e28
RD
3644
3645class PyPreviewFramePtr(PyPreviewFrame):
3646 def __init__(self, this):
3647 self.this = this
3648 if not hasattr(self,"thisown"): self.thisown = 0
3649 self.__class__ = PyPreviewFrame
3650_windows.PyPreviewFrame_swigregister(PyPreviewFramePtr)
3651
3652class PyPreviewControlBar(PreviewControlBar):
423f194a
RD
3653 def __repr__(self):
3654 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3655 def __init__(self, *args, **kwargs):
41f1cec7
RD
3656 """
3657 __init__(PrintPreview preview, long buttons, Window parent,
3658 Point pos=DefaultPosition, Size size=DefaultSize,
cbd72d4f 3659 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
41f1cec7 3660 """
d14a1e28
RD
3661 newobj = _windows.new_PyPreviewControlBar(*args, **kwargs)
3662 self.this = newobj.this
3663 self.thisown = 1
3664 del newobj.thisown
3665 self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self)
423f194a
RD
3666
3667 def _setCallbackInfo(*args, **kwargs):
3668 """_setCallbackInfo(PyObject self, PyObject _class)"""
3669 return _windows.PyPreviewControlBar__setCallbackInfo(*args, **kwargs)
3670
3671 def SetPrintPreview(*args, **kwargs):
3672 """SetPrintPreview(PrintPreview preview)"""
3673 return _windows.PyPreviewControlBar_SetPrintPreview(*args, **kwargs)
3674
3675 def base_CreateButtons(*args, **kwargs):
3676 """base_CreateButtons()"""
3677 return _windows.PyPreviewControlBar_base_CreateButtons(*args, **kwargs)
3678
3679 def base_SetZoomControl(*args, **kwargs):
3680 """base_SetZoomControl(int zoom)"""
3681 return _windows.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs)
3682
d14a1e28
RD
3683
3684class PyPreviewControlBarPtr(PyPreviewControlBar):
3685 def __init__(self, this):
3686 self.this = this
3687 if not hasattr(self,"thisown"): self.thisown = 0
3688 self.__class__ = PyPreviewControlBar
3689_windows.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr)
e6056257 3690
e6056257 3691