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