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