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