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