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