]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/windows.py
reSWIGged
[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 #---------------------------------------------------------------------------
9
10 class Panel(core.Window):
11 """"""
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 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
16 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
17 wxString name=PanelNameStr) -> Panel"""
18 newobj = _windows.new_Panel(*args, **kwargs)
19 self.this = newobj.this
20 self.thisown = 1
21 del newobj.thisown
22 self._setOORInfo(self)
23
24 def Create(*args, **kwargs):
25 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
26 long style=wxTAB_TRAVERSAL|wxNO_BORDER,
27 wxString name=PanelNameStr) -> bool"""
28 return _windows.Panel_Create(*args, **kwargs)
29
30 def InitDialog(*args, **kwargs):
31 """InitDialog()"""
32 return _windows.Panel_InitDialog(*args, **kwargs)
33
34
35 class PanelPtr(Panel):
36 def __init__(self, this):
37 self.this = this
38 if not hasattr(self,"thisown"): self.thisown = 0
39 self.__class__ = Panel
40 _windows.Panel_swigregister(PanelPtr)
41
42 def PrePanel(*args, **kwargs):
43 """PrePanel() -> Panel"""
44 val = _windows.new_PrePanel(*args, **kwargs)
45 val.thisown = 1
46 return val
47
48 #---------------------------------------------------------------------------
49
50 class ScrolledWindow(Panel):
51 """"""
52 def __repr__(self):
53 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
54 def __init__(self, *args, **kwargs):
55 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
56 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
57 wxString name=PanelNameStr) -> ScrolledWindow"""
58 newobj = _windows.new_ScrolledWindow(*args, **kwargs)
59 self.this = newobj.this
60 self.thisown = 1
61 del newobj.thisown
62 self._setOORInfo(self)
63
64 def Create(*args, **kwargs):
65 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
66 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
67 wxString name=PanelNameStr) -> bool"""
68 return _windows.ScrolledWindow_Create(*args, **kwargs)
69
70 def SetScrollbars(*args, **kwargs):
71 """SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
72 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)"""
73 return _windows.ScrolledWindow_SetScrollbars(*args, **kwargs)
74
75 def Scroll(*args, **kwargs):
76 """Scroll(int x, int y)"""
77 return _windows.ScrolledWindow_Scroll(*args, **kwargs)
78
79 def GetScrollPageSize(*args, **kwargs):
80 """GetScrollPageSize(int orient) -> int"""
81 return _windows.ScrolledWindow_GetScrollPageSize(*args, **kwargs)
82
83 def SetScrollPageSize(*args, **kwargs):
84 """SetScrollPageSize(int orient, int pageSize)"""
85 return _windows.ScrolledWindow_SetScrollPageSize(*args, **kwargs)
86
87 def SetScrollRate(*args, **kwargs):
88 """SetScrollRate(int xstep, int ystep)"""
89 return _windows.ScrolledWindow_SetScrollRate(*args, **kwargs)
90
91 def GetScrollPixelsPerUnit(*args, **kwargs):
92 """GetScrollPixelsPerUnit() -> (xUnit, yUnit)
93
94
95 get the size of one logical unit in physical ones
96 """
97 return _windows.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs)
98
99 def EnableScrolling(*args, **kwargs):
100 """EnableScrolling(bool x_scrolling, bool y_scrolling)"""
101 return _windows.ScrolledWindow_EnableScrolling(*args, **kwargs)
102
103 def GetViewStart(*args, **kwargs):
104 """GetViewStart(int OUTPUT, int OUTPUT)"""
105 return _windows.ScrolledWindow_GetViewStart(*args, **kwargs)
106
107 def SetScale(*args, **kwargs):
108 """SetScale(double xs, double ys)"""
109 return _windows.ScrolledWindow_SetScale(*args, **kwargs)
110
111 def GetScaleX(*args, **kwargs):
112 """GetScaleX() -> double"""
113 return _windows.ScrolledWindow_GetScaleX(*args, **kwargs)
114
115 def GetScaleY(*args, **kwargs):
116 """GetScaleY() -> double"""
117 return _windows.ScrolledWindow_GetScaleY(*args, **kwargs)
118
119 def CalcScrolledPosition(*args):
120 """CalcScrolledPosition(int x, int y, int OUTPUT, int OUTPUT)
121 CalcScrolledPosition(Point pt) -> Point"""
122 return _windows.ScrolledWindow_CalcScrolledPosition(*args)
123
124 def CalcUnscrolledPosition(*args):
125 """CalcUnscrolledPosition(int x, int y, int OUTPUT, int OUTPUT)
126 CalcUnscrolledPosition(Point pt) -> Point"""
127 return _windows.ScrolledWindow_CalcUnscrolledPosition(*args)
128
129 def AdjustScrollbars(*args, **kwargs):
130 """AdjustScrollbars()"""
131 return _windows.ScrolledWindow_AdjustScrollbars(*args, **kwargs)
132
133 def CalcScrollInc(*args, **kwargs):
134 """CalcScrollInc(ScrollWinEvent event) -> int"""
135 return _windows.ScrolledWindow_CalcScrollInc(*args, **kwargs)
136
137 def SetTargetWindow(*args, **kwargs):
138 """SetTargetWindow(Window target)"""
139 return _windows.ScrolledWindow_SetTargetWindow(*args, **kwargs)
140
141 def GetTargetWindow(*args, **kwargs):
142 """GetTargetWindow() -> Window"""
143 return _windows.ScrolledWindow_GetTargetWindow(*args, **kwargs)
144
145
146 class ScrolledWindowPtr(ScrolledWindow):
147 def __init__(self, this):
148 self.this = this
149 if not hasattr(self,"thisown"): self.thisown = 0
150 self.__class__ = ScrolledWindow
151 _windows.ScrolledWindow_swigregister(ScrolledWindowPtr)
152
153 def PreScrolledWindow(*args, **kwargs):
154 """PreScrolledWindow() -> ScrolledWindow"""
155 val = _windows.new_PreScrolledWindow(*args, **kwargs)
156 val.thisown = 1
157 return val
158
159 #---------------------------------------------------------------------------
160
161 class AcceleratorEntry(object):
162 """"""
163 def __repr__(self):
164 return "<%s.%s; proxy of C++ wxAcceleratorEntry instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
165 def __init__(self, *args, **kwargs):
166 """__init__(int flags=0, int keyCode=0, int cmd=0, MenuItem item=None) -> AcceleratorEntry"""
167 newobj = _windows.new_AcceleratorEntry(*args, **kwargs)
168 self.this = newobj.this
169 self.thisown = 1
170 del newobj.thisown
171 def __del__(self, destroy=_windows.delete_AcceleratorEntry):
172 """__del__()"""
173 try:
174 if self.thisown: destroy(self)
175 except: pass
176
177 def Set(*args, **kwargs):
178 """Set(int flags, int keyCode, int cmd, MenuItem item=None)"""
179 return _windows.AcceleratorEntry_Set(*args, **kwargs)
180
181 def SetMenuItem(*args, **kwargs):
182 """SetMenuItem(MenuItem item)"""
183 return _windows.AcceleratorEntry_SetMenuItem(*args, **kwargs)
184
185 def GetMenuItem(*args, **kwargs):
186 """GetMenuItem() -> MenuItem"""
187 return _windows.AcceleratorEntry_GetMenuItem(*args, **kwargs)
188
189 def GetFlags(*args, **kwargs):
190 """GetFlags() -> int"""
191 return _windows.AcceleratorEntry_GetFlags(*args, **kwargs)
192
193 def GetKeyCode(*args, **kwargs):
194 """GetKeyCode() -> int"""
195 return _windows.AcceleratorEntry_GetKeyCode(*args, **kwargs)
196
197 def GetCommand(*args, **kwargs):
198 """GetCommand() -> int"""
199 return _windows.AcceleratorEntry_GetCommand(*args, **kwargs)
200
201
202 class AcceleratorEntryPtr(AcceleratorEntry):
203 def __init__(self, this):
204 self.this = this
205 if not hasattr(self,"thisown"): self.thisown = 0
206 self.__class__ = AcceleratorEntry
207 _windows.AcceleratorEntry_swigregister(AcceleratorEntryPtr)
208
209 class AcceleratorTable(core.Object):
210 """"""
211 def __repr__(self):
212 return "<%s.%s; proxy of C++ wxAcceleratorTable instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
213 def __init__(self, *args, **kwargs):
214 """__init__(int n, AcceleratorEntry entries) -> AcceleratorTable"""
215 newobj = _windows.new_AcceleratorTable(*args, **kwargs)
216 self.this = newobj.this
217 self.thisown = 1
218 del newobj.thisown
219 def __del__(self, destroy=_windows.delete_AcceleratorTable):
220 """__del__()"""
221 try:
222 if self.thisown: destroy(self)
223 except: pass
224
225 def Ok(*args, **kwargs):
226 """Ok() -> bool"""
227 return _windows.AcceleratorTable_Ok(*args, **kwargs)
228
229
230 class AcceleratorTablePtr(AcceleratorTable):
231 def __init__(self, this):
232 self.this = this
233 if not hasattr(self,"thisown"): self.thisown = 0
234 self.__class__ = AcceleratorTable
235 _windows.AcceleratorTable_swigregister(AcceleratorTablePtr)
236
237
238 def GetAccelFromString(*args, **kwargs):
239 """GetAccelFromString(wxString label) -> AcceleratorEntry"""
240 return _windows.GetAccelFromString(*args, **kwargs)
241 #---------------------------------------------------------------------------
242
243 FULLSCREEN_NOMENUBAR = _windows.FULLSCREEN_NOMENUBAR
244 FULLSCREEN_NOTOOLBAR = _windows.FULLSCREEN_NOTOOLBAR
245 FULLSCREEN_NOSTATUSBAR = _windows.FULLSCREEN_NOSTATUSBAR
246 FULLSCREEN_NOBORDER = _windows.FULLSCREEN_NOBORDER
247 FULLSCREEN_NOCAPTION = _windows.FULLSCREEN_NOCAPTION
248 FULLSCREEN_ALL = _windows.FULLSCREEN_ALL
249 TOPLEVEL_EX_DIALOG = _windows.TOPLEVEL_EX_DIALOG
250 class TopLevelWindow(core.Window):
251 """"""
252 def __init__(self): raise RuntimeError, "No constructor defined"
253 def __repr__(self):
254 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
255 def Maximize(*args, **kwargs):
256 """Maximize(bool maximize=True)"""
257 return _windows.TopLevelWindow_Maximize(*args, **kwargs)
258
259 def Restore(*args, **kwargs):
260 """Restore()"""
261 return _windows.TopLevelWindow_Restore(*args, **kwargs)
262
263 def Iconize(*args, **kwargs):
264 """Iconize(bool iconize=True)"""
265 return _windows.TopLevelWindow_Iconize(*args, **kwargs)
266
267 def IsMaximized(*args, **kwargs):
268 """IsMaximized() -> bool"""
269 return _windows.TopLevelWindow_IsMaximized(*args, **kwargs)
270
271 def IsIconized(*args, **kwargs):
272 """IsIconized() -> bool"""
273 return _windows.TopLevelWindow_IsIconized(*args, **kwargs)
274
275 def GetIcon(*args, **kwargs):
276 """GetIcon() -> wxIcon"""
277 return _windows.TopLevelWindow_GetIcon(*args, **kwargs)
278
279 def SetIcon(*args, **kwargs):
280 """SetIcon(wxIcon icon)"""
281 return _windows.TopLevelWindow_SetIcon(*args, **kwargs)
282
283 def SetIcons(*args, **kwargs):
284 """SetIcons(wxIconBundle icons)"""
285 return _windows.TopLevelWindow_SetIcons(*args, **kwargs)
286
287 def ShowFullScreen(*args, **kwargs):
288 """ShowFullScreen(bool show, long style=FULLSCREEN_ALL) -> bool"""
289 return _windows.TopLevelWindow_ShowFullScreen(*args, **kwargs)
290
291 def IsFullScreen(*args, **kwargs):
292 """IsFullScreen() -> bool"""
293 return _windows.TopLevelWindow_IsFullScreen(*args, **kwargs)
294
295 def SetTitle(*args, **kwargs):
296 """SetTitle(wxString title)"""
297 return _windows.TopLevelWindow_SetTitle(*args, **kwargs)
298
299 def GetTitle(*args, **kwargs):
300 """GetTitle() -> wxString"""
301 return _windows.TopLevelWindow_GetTitle(*args, **kwargs)
302
303 def SetShape(*args, **kwargs):
304 """SetShape(wxRegion region) -> bool"""
305 return _windows.TopLevelWindow_SetShape(*args, **kwargs)
306
307
308 class TopLevelWindowPtr(TopLevelWindow):
309 def __init__(self, this):
310 self.this = this
311 if not hasattr(self,"thisown"): self.thisown = 0
312 self.__class__ = TopLevelWindow
313 _windows.TopLevelWindow_swigregister(TopLevelWindowPtr)
314 cvar = _windows.cvar
315 NullAcceleratorTable = cvar.NullAcceleratorTable
316
317 #---------------------------------------------------------------------------
318
319 class Frame(TopLevelWindow):
320 """"""
321 def __repr__(self):
322 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
323 def __init__(self, *args, **kwargs):
324 """__init__(Window parent, int id, wxString title, Point pos=DefaultPosition,
325 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
326 wxString name=wxPyFrameNameStr) -> Frame"""
327 newobj = _windows.new_Frame(*args, **kwargs)
328 self.this = newobj.this
329 self.thisown = 1
330 del newobj.thisown
331 self._setOORInfo(self)
332
333 def Create(*args, **kwargs):
334 """Create(Window parent, int id, wxString title, Point pos=DefaultPosition,
335 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
336 wxString name=wxPyFrameNameStr) -> bool"""
337 return _windows.Frame_Create(*args, **kwargs)
338
339 def GetClientAreaOrigin(*args, **kwargs):
340 """GetClientAreaOrigin() -> Point"""
341 return _windows.Frame_GetClientAreaOrigin(*args, **kwargs)
342
343 def SendSizeEvent(*args, **kwargs):
344 """SendSizeEvent()"""
345 return _windows.Frame_SendSizeEvent(*args, **kwargs)
346
347 def SetMenuBar(*args, **kwargs):
348 """SetMenuBar(MenuBar menubar)"""
349 return _windows.Frame_SetMenuBar(*args, **kwargs)
350
351 def GetMenuBar(*args, **kwargs):
352 """GetMenuBar() -> MenuBar"""
353 return _windows.Frame_GetMenuBar(*args, **kwargs)
354
355 def ProcessCommand(*args, **kwargs):
356 """ProcessCommand(int winid) -> bool"""
357 return _windows.Frame_ProcessCommand(*args, **kwargs)
358
359 Command = ProcessCommand
360 def CreateStatusBar(*args, **kwargs):
361 """CreateStatusBar(int number=1, long style=ST_SIZEGRIP, int winid=0,
362 wxString name=wxPyStatusLineNameStr) -> StatusBar"""
363 return _windows.Frame_CreateStatusBar(*args, **kwargs)
364
365 def GetStatusBar(*args, **kwargs):
366 """GetStatusBar() -> StatusBar"""
367 return _windows.Frame_GetStatusBar(*args, **kwargs)
368
369 def SetStatusBar(*args, **kwargs):
370 """SetStatusBar(StatusBar statBar)"""
371 return _windows.Frame_SetStatusBar(*args, **kwargs)
372
373 def SetStatusText(*args, **kwargs):
374 """SetStatusText(wxString text, int number=0)"""
375 return _windows.Frame_SetStatusText(*args, **kwargs)
376
377 def SetStatusWidths(*args, **kwargs):
378 """SetStatusWidths(int widths, int widths_field)"""
379 return _windows.Frame_SetStatusWidths(*args, **kwargs)
380
381 def PushStatusText(*args, **kwargs):
382 """PushStatusText(wxString text, int number=0)"""
383 return _windows.Frame_PushStatusText(*args, **kwargs)
384
385 def PopStatusText(*args, **kwargs):
386 """PopStatusText(int number=0)"""
387 return _windows.Frame_PopStatusText(*args, **kwargs)
388
389 def SetStatusBarPane(*args, **kwargs):
390 """SetStatusBarPane(int n)"""
391 return _windows.Frame_SetStatusBarPane(*args, **kwargs)
392
393 def GetStatusBarPane(*args, **kwargs):
394 """GetStatusBarPane() -> int"""
395 return _windows.Frame_GetStatusBarPane(*args, **kwargs)
396
397 def CreateToolBar(*args, **kwargs):
398 """CreateToolBar(long style=-1, int winid=-1, wxString name=wxPyToolBarNameStr) -> wxToolBar"""
399 return _windows.Frame_CreateToolBar(*args, **kwargs)
400
401 def GetToolBar(*args, **kwargs):
402 """GetToolBar() -> wxToolBar"""
403 return _windows.Frame_GetToolBar(*args, **kwargs)
404
405 def SetToolBar(*args, **kwargs):
406 """SetToolBar(wxToolBar toolbar)"""
407 return _windows.Frame_SetToolBar(*args, **kwargs)
408
409 def DoGiveHelp(*args, **kwargs):
410 """DoGiveHelp(wxString text, bool show)"""
411 return _windows.Frame_DoGiveHelp(*args, **kwargs)
412
413 def DoMenuUpdates(*args, **kwargs):
414 """DoMenuUpdates(Menu menu=None)"""
415 return _windows.Frame_DoMenuUpdates(*args, **kwargs)
416
417
418 class FramePtr(Frame):
419 def __init__(self, this):
420 self.this = this
421 if not hasattr(self,"thisown"): self.thisown = 0
422 self.__class__ = Frame
423 _windows.Frame_swigregister(FramePtr)
424
425 def PreFrame(*args, **kwargs):
426 """PreFrame() -> Frame"""
427 val = _windows.new_PreFrame(*args, **kwargs)
428 val.thisown = 1
429 return val
430
431 #---------------------------------------------------------------------------
432
433 class Dialog(TopLevelWindow):
434 """"""
435 def __repr__(self):
436 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
437 def __init__(self, *args, **kwargs):
438 """__init__(Window parent, int id, wxString title, Point pos=DefaultPosition,
439 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
440 wxString name=wxPyDialogNameStr) -> Dialog"""
441 newobj = _windows.new_Dialog(*args, **kwargs)
442 self.this = newobj.this
443 self.thisown = 1
444 del newobj.thisown
445 self._setOORInfo(self)
446
447 def Create(*args, **kwargs):
448 """Create(Window parent, int id, wxString title, Point pos=DefaultPosition,
449 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
450 wxString name=wxPyDialogNameStr) -> bool"""
451 return _windows.Dialog_Create(*args, **kwargs)
452
453 def SetReturnCode(*args, **kwargs):
454 """SetReturnCode(int returnCode)"""
455 return _windows.Dialog_SetReturnCode(*args, **kwargs)
456
457 def GetReturnCode(*args, **kwargs):
458 """GetReturnCode() -> int"""
459 return _windows.Dialog_GetReturnCode(*args, **kwargs)
460
461 def CreateTextSizer(*args, **kwargs):
462 """CreateTextSizer(wxString message) -> Sizer"""
463 return _windows.Dialog_CreateTextSizer(*args, **kwargs)
464
465 def CreateButtonSizer(*args, **kwargs):
466 """CreateButtonSizer(long flags) -> Sizer"""
467 return _windows.Dialog_CreateButtonSizer(*args, **kwargs)
468
469 def SetModal(*args, **kwargs):
470 """SetModal(bool flag)"""
471 return _windows.Dialog_SetModal(*args, **kwargs)
472
473 def IsModal(*args, **kwargs):
474 """IsModal() -> bool"""
475 return _windows.Dialog_IsModal(*args, **kwargs)
476
477 def ShowModal(*args, **kwargs):
478 """ShowModal() -> int"""
479 return _windows.Dialog_ShowModal(*args, **kwargs)
480
481 def EndModal(*args, **kwargs):
482 """EndModal(int retCode)"""
483 return _windows.Dialog_EndModal(*args, **kwargs)
484
485 def IsModalShowing(*args, **kwargs):
486 """IsModalShowing() -> bool"""
487 return _windows.Dialog_IsModalShowing(*args, **kwargs)
488
489
490 class DialogPtr(Dialog):
491 def __init__(self, this):
492 self.this = this
493 if not hasattr(self,"thisown"): self.thisown = 0
494 self.__class__ = Dialog
495 _windows.Dialog_swigregister(DialogPtr)
496
497 def PreDialog(*args, **kwargs):
498 """PreDialog() -> Dialog"""
499 val = _windows.new_PreDialog(*args, **kwargs)
500 val.thisown = 1
501 return val
502
503 #---------------------------------------------------------------------------
504
505 class MiniFrame(Frame):
506 """"""
507 def __repr__(self):
508 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
509 def __init__(self, *args, **kwargs):
510 """__init__(Window parent, int id, wxString title, Point pos=DefaultPosition,
511 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
512 wxString name=wxPyFrameNameStr) -> MiniFrame"""
513 newobj = _windows.new_MiniFrame(*args, **kwargs)
514 self.this = newobj.this
515 self.thisown = 1
516 del newobj.thisown
517 self._setOORInfo(self)
518
519 def Create(*args, **kwargs):
520 """Create(Window parent, int id, wxString title, Point pos=DefaultPosition,
521 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
522 wxString name=wxPyFrameNameStr) -> bool"""
523 return _windows.MiniFrame_Create(*args, **kwargs)
524
525
526 class MiniFramePtr(MiniFrame):
527 def __init__(self, this):
528 self.this = this
529 if not hasattr(self,"thisown"): self.thisown = 0
530 self.__class__ = MiniFrame
531 _windows.MiniFrame_swigregister(MiniFramePtr)
532
533 def PreMiniFrame(*args, **kwargs):
534 """PreMiniFrame() -> MiniFrame"""
535 val = _windows.new_PreMiniFrame(*args, **kwargs)
536 val.thisown = 1
537 return val
538
539 #---------------------------------------------------------------------------
540
541 SPLASH_CENTRE_ON_PARENT = _windows.SPLASH_CENTRE_ON_PARENT
542 SPLASH_CENTRE_ON_SCREEN = _windows.SPLASH_CENTRE_ON_SCREEN
543 SPLASH_NO_CENTRE = _windows.SPLASH_NO_CENTRE
544 SPLASH_TIMEOUT = _windows.SPLASH_TIMEOUT
545 SPLASH_NO_TIMEOUT = _windows.SPLASH_NO_TIMEOUT
546 class SplashScreenWindow(core.Window):
547 """"""
548 def __repr__(self):
549 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
550 def __init__(self, *args, **kwargs):
551 """__init__(wxBitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
552 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow"""
553 newobj = _windows.new_SplashScreenWindow(*args, **kwargs)
554 self.this = newobj.this
555 self.thisown = 1
556 del newobj.thisown
557 self._setOORInfo(self)
558
559 def SetBitmap(*args, **kwargs):
560 """SetBitmap(wxBitmap bitmap)"""
561 return _windows.SplashScreenWindow_SetBitmap(*args, **kwargs)
562
563 def GetBitmap(*args, **kwargs):
564 """GetBitmap() -> wxBitmap"""
565 return _windows.SplashScreenWindow_GetBitmap(*args, **kwargs)
566
567
568 class SplashScreenWindowPtr(SplashScreenWindow):
569 def __init__(self, this):
570 self.this = this
571 if not hasattr(self,"thisown"): self.thisown = 0
572 self.__class__ = SplashScreenWindow
573 _windows.SplashScreenWindow_swigregister(SplashScreenWindowPtr)
574
575 class SplashScreen(Frame):
576 """"""
577 def __repr__(self):
578 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
579 def __init__(self, *args, **kwargs):
580 """__init__(wxBitmap bitmap, long splashStyle, int milliseconds,
581 Window parent, int id, Point pos=DefaultPosition,
582 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen"""
583 newobj = _windows.new_SplashScreen(*args, **kwargs)
584 self.this = newobj.this
585 self.thisown = 1
586 del newobj.thisown
587 self._setOORInfo(self)
588
589 def GetSplashStyle(*args, **kwargs):
590 """GetSplashStyle() -> long"""
591 return _windows.SplashScreen_GetSplashStyle(*args, **kwargs)
592
593 def GetSplashWindow(*args, **kwargs):
594 """GetSplashWindow() -> SplashScreenWindow"""
595 return _windows.SplashScreen_GetSplashWindow(*args, **kwargs)
596
597 def GetTimeout(*args, **kwargs):
598 """GetTimeout() -> int"""
599 return _windows.SplashScreen_GetTimeout(*args, **kwargs)
600
601
602 class SplashScreenPtr(SplashScreen):
603 def __init__(self, this):
604 self.this = this
605 if not hasattr(self,"thisown"): self.thisown = 0
606 self.__class__ = SplashScreen
607 _windows.SplashScreen_swigregister(SplashScreenPtr)
608
609 #---------------------------------------------------------------------------
610
611 class StatusBar(core.Window):
612 """"""
613 def __repr__(self):
614 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
615 def __init__(self, *args, **kwargs):
616 """__init__(Window parent, int id=-1, long style=ST_SIZEGRIP, wxString name=wxPyStatusLineNameStr) -> StatusBar"""
617 newobj = _windows.new_StatusBar(*args, **kwargs)
618 self.this = newobj.this
619 self.thisown = 1
620 del newobj.thisown
621 self._setOORInfo(self)
622
623 def Create(*args, **kwargs):
624 """Create(Window parent, int id, long style=ST_SIZEGRIP, wxString name=wxPyStatusLineNameStr) -> bool"""
625 return _windows.StatusBar_Create(*args, **kwargs)
626
627 def SetFieldsCount(*args, **kwargs):
628 """SetFieldsCount(int number=1)"""
629 return _windows.StatusBar_SetFieldsCount(*args, **kwargs)
630
631 def GetFieldsCount(*args, **kwargs):
632 """GetFieldsCount() -> int"""
633 return _windows.StatusBar_GetFieldsCount(*args, **kwargs)
634
635 def SetStatusText(*args, **kwargs):
636 """SetStatusText(wxString text, int number=0)"""
637 return _windows.StatusBar_SetStatusText(*args, **kwargs)
638
639 def GetStatusText(*args, **kwargs):
640 """GetStatusText(int number=0) -> wxString"""
641 return _windows.StatusBar_GetStatusText(*args, **kwargs)
642
643 def PushStatusText(*args, **kwargs):
644 """PushStatusText(wxString text, int number=0)"""
645 return _windows.StatusBar_PushStatusText(*args, **kwargs)
646
647 def PopStatusText(*args, **kwargs):
648 """PopStatusText(int number=0)"""
649 return _windows.StatusBar_PopStatusText(*args, **kwargs)
650
651 def SetStatusWidths(*args, **kwargs):
652 """SetStatusWidths(int widths, int widths_field)"""
653 return _windows.StatusBar_SetStatusWidths(*args, **kwargs)
654
655 def GetFieldRect(*args, **kwargs):
656 """GetFieldRect(int i, Rect rect) -> bool"""
657 return _windows.StatusBar_GetFieldRect(*args, **kwargs)
658
659 def SetMinHeight(*args, **kwargs):
660 """SetMinHeight(int height)"""
661 return _windows.StatusBar_SetMinHeight(*args, **kwargs)
662
663 def GetBorderX(*args, **kwargs):
664 """GetBorderX() -> int"""
665 return _windows.StatusBar_GetBorderX(*args, **kwargs)
666
667 def GetBorderY(*args, **kwargs):
668 """GetBorderY() -> int"""
669 return _windows.StatusBar_GetBorderY(*args, **kwargs)
670
671
672 class StatusBarPtr(StatusBar):
673 def __init__(self, this):
674 self.this = this
675 if not hasattr(self,"thisown"): self.thisown = 0
676 self.__class__ = StatusBar
677 _windows.StatusBar_swigregister(StatusBarPtr)
678
679 def PreStatusBar(*args, **kwargs):
680 """PreStatusBar() -> StatusBar"""
681 val = _windows.new_PreStatusBar(*args, **kwargs)
682 val.thisown = 1
683 return val
684
685 #---------------------------------------------------------------------------
686
687 SP_NOBORDER = _windows.SP_NOBORDER
688 SP_NOSASH = _windows.SP_NOSASH
689 SP_PERMIT_UNSPLIT = _windows.SP_PERMIT_UNSPLIT
690 SP_LIVE_UPDATE = _windows.SP_LIVE_UPDATE
691 SP_3DSASH = _windows.SP_3DSASH
692 SP_3DBORDER = _windows.SP_3DBORDER
693 SP_BORDER = _windows.SP_BORDER
694 SP_3D = _windows.SP_3D
695 SPLIT_HORIZONTAL = _windows.SPLIT_HORIZONTAL
696 SPLIT_VERTICAL = _windows.SPLIT_VERTICAL
697 SPLIT_DRAG_NONE = _windows.SPLIT_DRAG_NONE
698 SPLIT_DRAG_DRAGGING = _windows.SPLIT_DRAG_DRAGGING
699 SPLIT_DRAG_LEFT_DOWN = _windows.SPLIT_DRAG_LEFT_DOWN
700 class SplitterWindow(core.Window):
701 """"""
702 def __repr__(self):
703 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
704 def __init__(self, *args, **kwargs):
705 """__init__(Window parent, int id, Point point=DefaultPosition,
706 Size size=DefaultSize, long style=SP_3D, wxString name=wxPySplitterNameStr) -> SplitterWindow"""
707 newobj = _windows.new_SplitterWindow(*args, **kwargs)
708 self.this = newobj.this
709 self.thisown = 1
710 del newobj.thisown
711 self._setOORInfo(self)
712
713 def Create(*args, **kwargs):
714 """Create(Window parent, int id, Point point=DefaultPosition,
715 Size size=DefaultSize, long style=SP_3D, wxString name=wxPySplitterNameStr) -> bool"""
716 return _windows.SplitterWindow_Create(*args, **kwargs)
717
718 def GetWindow1(*args, **kwargs):
719 """GetWindow1() -> Window"""
720 return _windows.SplitterWindow_GetWindow1(*args, **kwargs)
721
722 def GetWindow2(*args, **kwargs):
723 """GetWindow2() -> Window"""
724 return _windows.SplitterWindow_GetWindow2(*args, **kwargs)
725
726 def SetSplitMode(*args, **kwargs):
727 """SetSplitMode(int mode)"""
728 return _windows.SplitterWindow_SetSplitMode(*args, **kwargs)
729
730 def GetSplitMode(*args, **kwargs):
731 """GetSplitMode() -> wxSplitMode"""
732 return _windows.SplitterWindow_GetSplitMode(*args, **kwargs)
733
734 def Initialize(*args, **kwargs):
735 """Initialize(Window window)"""
736 return _windows.SplitterWindow_Initialize(*args, **kwargs)
737
738 def SplitVertically(*args, **kwargs):
739 """SplitVertically(Window window1, Window window2, int sashPosition=0) -> bool"""
740 return _windows.SplitterWindow_SplitVertically(*args, **kwargs)
741
742 def SplitHorizontally(*args, **kwargs):
743 """SplitHorizontally(Window window1, Window window2, int sashPosition=0) -> bool"""
744 return _windows.SplitterWindow_SplitHorizontally(*args, **kwargs)
745
746 def Unsplit(*args, **kwargs):
747 """Unsplit(Window toRemove=None) -> bool"""
748 return _windows.SplitterWindow_Unsplit(*args, **kwargs)
749
750 def ReplaceWindow(*args, **kwargs):
751 """ReplaceWindow(Window winOld, Window winNew) -> bool"""
752 return _windows.SplitterWindow_ReplaceWindow(*args, **kwargs)
753
754 def IsSplit(*args, **kwargs):
755 """IsSplit() -> bool"""
756 return _windows.SplitterWindow_IsSplit(*args, **kwargs)
757
758 def SetSashSize(*args, **kwargs):
759 """SetSashSize(int width)"""
760 return _windows.SplitterWindow_SetSashSize(*args, **kwargs)
761
762 def SetBorderSize(*args, **kwargs):
763 """SetBorderSize(int width)"""
764 return _windows.SplitterWindow_SetBorderSize(*args, **kwargs)
765
766 def GetSashSize(*args, **kwargs):
767 """GetSashSize() -> int"""
768 return _windows.SplitterWindow_GetSashSize(*args, **kwargs)
769
770 def GetBorderSize(*args, **kwargs):
771 """GetBorderSize() -> int"""
772 return _windows.SplitterWindow_GetBorderSize(*args, **kwargs)
773
774 def SetSashPosition(*args, **kwargs):
775 """SetSashPosition(int position, bool redraw=True)"""
776 return _windows.SplitterWindow_SetSashPosition(*args, **kwargs)
777
778 def GetSashPosition(*args, **kwargs):
779 """GetSashPosition() -> int"""
780 return _windows.SplitterWindow_GetSashPosition(*args, **kwargs)
781
782 def SetMinimumPaneSize(*args, **kwargs):
783 """SetMinimumPaneSize(int min)"""
784 return _windows.SplitterWindow_SetMinimumPaneSize(*args, **kwargs)
785
786 def GetMinimumPaneSize(*args, **kwargs):
787 """GetMinimumPaneSize() -> int"""
788 return _windows.SplitterWindow_GetMinimumPaneSize(*args, **kwargs)
789
790 def SashHitTest(*args, **kwargs):
791 """SashHitTest(int x, int y, int tolerance=5) -> bool"""
792 return _windows.SplitterWindow_SashHitTest(*args, **kwargs)
793
794 def SizeWindows(*args, **kwargs):
795 """SizeWindows()"""
796 return _windows.SplitterWindow_SizeWindows(*args, **kwargs)
797
798 def SetNeedUpdating(*args, **kwargs):
799 """SetNeedUpdating(bool needUpdating)"""
800 return _windows.SplitterWindow_SetNeedUpdating(*args, **kwargs)
801
802 def GetNeedUpdating(*args, **kwargs):
803 """GetNeedUpdating() -> bool"""
804 return _windows.SplitterWindow_GetNeedUpdating(*args, **kwargs)
805
806
807 class SplitterWindowPtr(SplitterWindow):
808 def __init__(self, this):
809 self.this = this
810 if not hasattr(self,"thisown"): self.thisown = 0
811 self.__class__ = SplitterWindow
812 _windows.SplitterWindow_swigregister(SplitterWindowPtr)
813
814 def PreSplitterWindow(*args, **kwargs):
815 """PreSplitterWindow() -> SplitterWindow"""
816 val = _windows.new_PreSplitterWindow(*args, **kwargs)
817 val.thisown = 1
818 return val
819
820 class SplitterEvent(core.NotifyEvent):
821 """"""
822 def __repr__(self):
823 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
824 def __init__(self, *args, **kwargs):
825 """__init__(wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent"""
826 newobj = _windows.new_SplitterEvent(*args, **kwargs)
827 self.this = newobj.this
828 self.thisown = 1
829 del newobj.thisown
830 def SetSashPosition(*args, **kwargs):
831 """SetSashPosition(int pos)"""
832 return _windows.SplitterEvent_SetSashPosition(*args, **kwargs)
833
834 def GetSashPosition(*args, **kwargs):
835 """GetSashPosition() -> int"""
836 return _windows.SplitterEvent_GetSashPosition(*args, **kwargs)
837
838 def GetWindowBeingRemoved(*args, **kwargs):
839 """GetWindowBeingRemoved() -> Window"""
840 return _windows.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs)
841
842 def GetX(*args, **kwargs):
843 """GetX() -> int"""
844 return _windows.SplitterEvent_GetX(*args, **kwargs)
845
846 def GetY(*args, **kwargs):
847 """GetY() -> int"""
848 return _windows.SplitterEvent_GetY(*args, **kwargs)
849
850
851 class SplitterEventPtr(SplitterEvent):
852 def __init__(self, this):
853 self.this = this
854 if not hasattr(self,"thisown"): self.thisown = 0
855 self.__class__ = SplitterEvent
856 _windows.SplitterEvent_swigregister(SplitterEventPtr)
857
858 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
859 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
860 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
861 wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows.wxEVT_COMMAND_SPLITTER_UNSPLIT
862 EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 )
863 EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 )
864 EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 )
865 EVT_SPLITTER_UNSPLIT = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT, 1 )
866
867 #---------------------------------------------------------------------------
868
869 SASH_DRAG_NONE = _windows.SASH_DRAG_NONE
870 SASH_DRAG_DRAGGING = _windows.SASH_DRAG_DRAGGING
871 SASH_DRAG_LEFT_DOWN = _windows.SASH_DRAG_LEFT_DOWN
872 SW_NOBORDER = _windows.SW_NOBORDER
873 SW_BORDER = _windows.SW_BORDER
874 SW_3DSASH = _windows.SW_3DSASH
875 SW_3DBORDER = _windows.SW_3DBORDER
876 SW_3D = _windows.SW_3D
877 SASH_TOP = _windows.SASH_TOP
878 SASH_RIGHT = _windows.SASH_RIGHT
879 SASH_BOTTOM = _windows.SASH_BOTTOM
880 SASH_LEFT = _windows.SASH_LEFT
881 SASH_NONE = _windows.SASH_NONE
882 class SashWindow(core.Window):
883 """"""
884 def __repr__(self):
885 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
886 def __init__(self, *args, **kwargs):
887 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
888 long style=wxCLIP_CHILDREN|wxSW_3D,
889 wxString name=wxPySashNameStr) -> SashWindow"""
890 newobj = _windows.new_SashWindow(*args, **kwargs)
891 self.this = newobj.this
892 self.thisown = 1
893 del newobj.thisown
894 self._setOORInfo(self)
895
896 def Create(*args, **kwargs):
897 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
898 long style=wxCLIP_CHILDREN|wxSW_3D,
899 wxString name=wxPySashNameStr) -> bool"""
900 return _windows.SashWindow_Create(*args, **kwargs)
901
902 def SetSashVisible(*args, **kwargs):
903 """SetSashVisible(wxSashEdgePosition edge, bool sash)"""
904 return _windows.SashWindow_SetSashVisible(*args, **kwargs)
905
906 def GetSashVisible(*args, **kwargs):
907 """GetSashVisible(wxSashEdgePosition edge) -> bool"""
908 return _windows.SashWindow_GetSashVisible(*args, **kwargs)
909
910 def SetSashBorder(*args, **kwargs):
911 """SetSashBorder(wxSashEdgePosition edge, bool border)"""
912 return _windows.SashWindow_SetSashBorder(*args, **kwargs)
913
914 def HasBorder(*args, **kwargs):
915 """HasBorder(wxSashEdgePosition edge) -> bool"""
916 return _windows.SashWindow_HasBorder(*args, **kwargs)
917
918 def GetEdgeMargin(*args, **kwargs):
919 """GetEdgeMargin(wxSashEdgePosition edge) -> int"""
920 return _windows.SashWindow_GetEdgeMargin(*args, **kwargs)
921
922 def SetDefaultBorderSize(*args, **kwargs):
923 """SetDefaultBorderSize(int width)"""
924 return _windows.SashWindow_SetDefaultBorderSize(*args, **kwargs)
925
926 def GetDefaultBorderSize(*args, **kwargs):
927 """GetDefaultBorderSize() -> int"""
928 return _windows.SashWindow_GetDefaultBorderSize(*args, **kwargs)
929
930 def SetExtraBorderSize(*args, **kwargs):
931 """SetExtraBorderSize(int width)"""
932 return _windows.SashWindow_SetExtraBorderSize(*args, **kwargs)
933
934 def GetExtraBorderSize(*args, **kwargs):
935 """GetExtraBorderSize() -> int"""
936 return _windows.SashWindow_GetExtraBorderSize(*args, **kwargs)
937
938 def SetMinimumSizeX(*args, **kwargs):
939 """SetMinimumSizeX(int min)"""
940 return _windows.SashWindow_SetMinimumSizeX(*args, **kwargs)
941
942 def SetMinimumSizeY(*args, **kwargs):
943 """SetMinimumSizeY(int min)"""
944 return _windows.SashWindow_SetMinimumSizeY(*args, **kwargs)
945
946 def GetMinimumSizeX(*args, **kwargs):
947 """GetMinimumSizeX() -> int"""
948 return _windows.SashWindow_GetMinimumSizeX(*args, **kwargs)
949
950 def GetMinimumSizeY(*args, **kwargs):
951 """GetMinimumSizeY() -> int"""
952 return _windows.SashWindow_GetMinimumSizeY(*args, **kwargs)
953
954 def SetMaximumSizeX(*args, **kwargs):
955 """SetMaximumSizeX(int max)"""
956 return _windows.SashWindow_SetMaximumSizeX(*args, **kwargs)
957
958 def SetMaximumSizeY(*args, **kwargs):
959 """SetMaximumSizeY(int max)"""
960 return _windows.SashWindow_SetMaximumSizeY(*args, **kwargs)
961
962 def GetMaximumSizeX(*args, **kwargs):
963 """GetMaximumSizeX() -> int"""
964 return _windows.SashWindow_GetMaximumSizeX(*args, **kwargs)
965
966 def GetMaximumSizeY(*args, **kwargs):
967 """GetMaximumSizeY() -> int"""
968 return _windows.SashWindow_GetMaximumSizeY(*args, **kwargs)
969
970 def SashHitTest(*args, **kwargs):
971 """SashHitTest(int x, int y, int tolerance=2) -> wxSashEdgePosition"""
972 return _windows.SashWindow_SashHitTest(*args, **kwargs)
973
974 def SizeWindows(*args, **kwargs):
975 """SizeWindows()"""
976 return _windows.SashWindow_SizeWindows(*args, **kwargs)
977
978
979 class SashWindowPtr(SashWindow):
980 def __init__(self, this):
981 self.this = this
982 if not hasattr(self,"thisown"): self.thisown = 0
983 self.__class__ = SashWindow
984 _windows.SashWindow_swigregister(SashWindowPtr)
985
986 def PreSashWindow(*args, **kwargs):
987 """PreSashWindow() -> SashWindow"""
988 val = _windows.new_PreSashWindow(*args, **kwargs)
989 val.thisown = 1
990 return val
991
992 SASH_STATUS_OK = _windows.SASH_STATUS_OK
993 SASH_STATUS_OUT_OF_RANGE = _windows.SASH_STATUS_OUT_OF_RANGE
994 class SashEvent(core.CommandEvent):
995 """"""
996 def __repr__(self):
997 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
998 def __init__(self, *args, **kwargs):
999 """__init__(int id=0, wxSashEdgePosition edge=SASH_NONE) -> SashEvent"""
1000 newobj = _windows.new_SashEvent(*args, **kwargs)
1001 self.this = newobj.this
1002 self.thisown = 1
1003 del newobj.thisown
1004 def SetEdge(*args, **kwargs):
1005 """SetEdge(wxSashEdgePosition edge)"""
1006 return _windows.SashEvent_SetEdge(*args, **kwargs)
1007
1008 def GetEdge(*args, **kwargs):
1009 """GetEdge() -> wxSashEdgePosition"""
1010 return _windows.SashEvent_GetEdge(*args, **kwargs)
1011
1012 def SetDragRect(*args, **kwargs):
1013 """SetDragRect(Rect rect)"""
1014 return _windows.SashEvent_SetDragRect(*args, **kwargs)
1015
1016 def GetDragRect(*args, **kwargs):
1017 """GetDragRect() -> Rect"""
1018 return _windows.SashEvent_GetDragRect(*args, **kwargs)
1019
1020 def SetDragStatus(*args, **kwargs):
1021 """SetDragStatus(wxSashDragStatus status)"""
1022 return _windows.SashEvent_SetDragStatus(*args, **kwargs)
1023
1024 def GetDragStatus(*args, **kwargs):
1025 """GetDragStatus() -> wxSashDragStatus"""
1026 return _windows.SashEvent_GetDragStatus(*args, **kwargs)
1027
1028
1029 class SashEventPtr(SashEvent):
1030 def __init__(self, this):
1031 self.this = this
1032 if not hasattr(self,"thisown"): self.thisown = 0
1033 self.__class__ = SashEvent
1034 _windows.SashEvent_swigregister(SashEventPtr)
1035
1036 wxEVT_SASH_DRAGGED = _windows.wxEVT_SASH_DRAGGED
1037 EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 )
1038 EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 )
1039
1040 #---------------------------------------------------------------------------
1041
1042 LAYOUT_HORIZONTAL = _windows.LAYOUT_HORIZONTAL
1043 LAYOUT_VERTICAL = _windows.LAYOUT_VERTICAL
1044 LAYOUT_NONE = _windows.LAYOUT_NONE
1045 LAYOUT_TOP = _windows.LAYOUT_TOP
1046 LAYOUT_LEFT = _windows.LAYOUT_LEFT
1047 LAYOUT_RIGHT = _windows.LAYOUT_RIGHT
1048 LAYOUT_BOTTOM = _windows.LAYOUT_BOTTOM
1049 LAYOUT_LENGTH_Y = _windows.LAYOUT_LENGTH_Y
1050 LAYOUT_LENGTH_X = _windows.LAYOUT_LENGTH_X
1051 LAYOUT_MRU_LENGTH = _windows.LAYOUT_MRU_LENGTH
1052 LAYOUT_QUERY = _windows.LAYOUT_QUERY
1053 wxEVT_QUERY_LAYOUT_INFO = _windows.wxEVT_QUERY_LAYOUT_INFO
1054 wxEVT_CALCULATE_LAYOUT = _windows.wxEVT_CALCULATE_LAYOUT
1055 class QueryLayoutInfoEvent(core.Event):
1056 """"""
1057 def __repr__(self):
1058 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1059 def __init__(self, *args, **kwargs):
1060 """__init__(int id=0) -> QueryLayoutInfoEvent"""
1061 newobj = _windows.new_QueryLayoutInfoEvent(*args, **kwargs)
1062 self.this = newobj.this
1063 self.thisown = 1
1064 del newobj.thisown
1065 def SetRequestedLength(*args, **kwargs):
1066 """SetRequestedLength(int length)"""
1067 return _windows.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs)
1068
1069 def GetRequestedLength(*args, **kwargs):
1070 """GetRequestedLength() -> int"""
1071 return _windows.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs)
1072
1073 def SetFlags(*args, **kwargs):
1074 """SetFlags(int flags)"""
1075 return _windows.QueryLayoutInfoEvent_SetFlags(*args, **kwargs)
1076
1077 def GetFlags(*args, **kwargs):
1078 """GetFlags() -> int"""
1079 return _windows.QueryLayoutInfoEvent_GetFlags(*args, **kwargs)
1080
1081 def SetSize(*args, **kwargs):
1082 """SetSize(Size size)"""
1083 return _windows.QueryLayoutInfoEvent_SetSize(*args, **kwargs)
1084
1085 def GetSize(*args, **kwargs):
1086 """GetSize() -> Size"""
1087 return _windows.QueryLayoutInfoEvent_GetSize(*args, **kwargs)
1088
1089 def SetOrientation(*args, **kwargs):
1090 """SetOrientation(wxLayoutOrientation orient)"""
1091 return _windows.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs)
1092
1093 def GetOrientation(*args, **kwargs):
1094 """GetOrientation() -> wxLayoutOrientation"""
1095 return _windows.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs)
1096
1097 def SetAlignment(*args, **kwargs):
1098 """SetAlignment(wxLayoutAlignment align)"""
1099 return _windows.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs)
1100
1101 def GetAlignment(*args, **kwargs):
1102 """GetAlignment() -> wxLayoutAlignment"""
1103 return _windows.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs)
1104
1105
1106 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent):
1107 def __init__(self, this):
1108 self.this = this
1109 if not hasattr(self,"thisown"): self.thisown = 0
1110 self.__class__ = QueryLayoutInfoEvent
1111 _windows.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr)
1112
1113 class CalculateLayoutEvent(core.Event):
1114 """"""
1115 def __repr__(self):
1116 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1117 def __init__(self, *args, **kwargs):
1118 """__init__(int id=0) -> CalculateLayoutEvent"""
1119 newobj = _windows.new_CalculateLayoutEvent(*args, **kwargs)
1120 self.this = newobj.this
1121 self.thisown = 1
1122 del newobj.thisown
1123 def SetFlags(*args, **kwargs):
1124 """SetFlags(int flags)"""
1125 return _windows.CalculateLayoutEvent_SetFlags(*args, **kwargs)
1126
1127 def GetFlags(*args, **kwargs):
1128 """GetFlags() -> int"""
1129 return _windows.CalculateLayoutEvent_GetFlags(*args, **kwargs)
1130
1131 def SetRect(*args, **kwargs):
1132 """SetRect(Rect rect)"""
1133 return _windows.CalculateLayoutEvent_SetRect(*args, **kwargs)
1134
1135 def GetRect(*args, **kwargs):
1136 """GetRect() -> Rect"""
1137 return _windows.CalculateLayoutEvent_GetRect(*args, **kwargs)
1138
1139
1140 class CalculateLayoutEventPtr(CalculateLayoutEvent):
1141 def __init__(self, this):
1142 self.this = this
1143 if not hasattr(self,"thisown"): self.thisown = 0
1144 self.__class__ = CalculateLayoutEvent
1145 _windows.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr)
1146
1147 EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO )
1148 EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT )
1149
1150 class SashLayoutWindow(SashWindow):
1151 """"""
1152 def __repr__(self):
1153 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1154 def __init__(self, *args, **kwargs):
1155 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1156 long style=wxCLIP_CHILDREN|wxSW_3D,
1157 wxString name=wxPySashLayoutNameStr) -> SashLayoutWindow"""
1158 newobj = _windows.new_SashLayoutWindow(*args, **kwargs)
1159 self.this = newobj.this
1160 self.thisown = 1
1161 del newobj.thisown
1162 self._setOORInfo(self)
1163
1164 def Create(*args, **kwargs):
1165 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1166 long style=wxCLIP_CHILDREN|wxSW_3D,
1167 wxString name=wxPySashLayoutNameStr) -> bool"""
1168 return _windows.SashLayoutWindow_Create(*args, **kwargs)
1169
1170 def GetAlignment(*args, **kwargs):
1171 """GetAlignment() -> wxLayoutAlignment"""
1172 return _windows.SashLayoutWindow_GetAlignment(*args, **kwargs)
1173
1174 def GetOrientation(*args, **kwargs):
1175 """GetOrientation() -> wxLayoutOrientation"""
1176 return _windows.SashLayoutWindow_GetOrientation(*args, **kwargs)
1177
1178 def SetAlignment(*args, **kwargs):
1179 """SetAlignment(wxLayoutAlignment alignment)"""
1180 return _windows.SashLayoutWindow_SetAlignment(*args, **kwargs)
1181
1182 def SetDefaultSize(*args, **kwargs):
1183 """SetDefaultSize(Size size)"""
1184 return _windows.SashLayoutWindow_SetDefaultSize(*args, **kwargs)
1185
1186 def SetOrientation(*args, **kwargs):
1187 """SetOrientation(wxLayoutOrientation orientation)"""
1188 return _windows.SashLayoutWindow_SetOrientation(*args, **kwargs)
1189
1190
1191 class SashLayoutWindowPtr(SashLayoutWindow):
1192 def __init__(self, this):
1193 self.this = this
1194 if not hasattr(self,"thisown"): self.thisown = 0
1195 self.__class__ = SashLayoutWindow
1196 _windows.SashLayoutWindow_swigregister(SashLayoutWindowPtr)
1197
1198 def PreSashLayoutWindow(*args, **kwargs):
1199 """PreSashLayoutWindow() -> SashLayoutWindow"""
1200 val = _windows.new_PreSashLayoutWindow(*args, **kwargs)
1201 val.thisown = 1
1202 return val
1203
1204 class LayoutAlgorithm(core.Object):
1205 """"""
1206 def __repr__(self):
1207 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1208 def __init__(self, *args, **kwargs):
1209 """__init__() -> LayoutAlgorithm"""
1210 newobj = _windows.new_LayoutAlgorithm(*args, **kwargs)
1211 self.this = newobj.this
1212 self.thisown = 1
1213 del newobj.thisown
1214 def __del__(self, destroy=_windows.delete_LayoutAlgorithm):
1215 """__del__()"""
1216 try:
1217 if self.thisown: destroy(self)
1218 except: pass
1219
1220 def LayoutMDIFrame(*args, **kwargs):
1221 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1222 return _windows.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs)
1223
1224 def LayoutFrame(*args, **kwargs):
1225 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1226 return _windows.LayoutAlgorithm_LayoutFrame(*args, **kwargs)
1227
1228 def LayoutWindow(*args, **kwargs):
1229 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1230 return _windows.LayoutAlgorithm_LayoutWindow(*args, **kwargs)
1231
1232
1233 class LayoutAlgorithmPtr(LayoutAlgorithm):
1234 def __init__(self, this):
1235 self.this = this
1236 if not hasattr(self,"thisown"): self.thisown = 0
1237 self.__class__ = LayoutAlgorithm
1238 _windows.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr)
1239
1240 #---------------------------------------------------------------------------
1241
1242 class PopupWindow(core.Window):
1243 """"""
1244 def __repr__(self):
1245 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1246 def __init__(self, *args, **kwargs):
1247 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1248 newobj = _windows.new_PopupWindow(*args, **kwargs)
1249 self.this = newobj.this
1250 self.thisown = 1
1251 del newobj.thisown
1252 self._setOORInfo(self)
1253
1254 def Create(*args, **kwargs):
1255 """Create(Window parent, int flags=BORDER_NONE) -> bool"""
1256 return _windows.PopupWindow_Create(*args, **kwargs)
1257
1258 def Position(*args, **kwargs):
1259 """Position(Point ptOrigin, Size size)"""
1260 return _windows.PopupWindow_Position(*args, **kwargs)
1261
1262
1263 class PopupWindowPtr(PopupWindow):
1264 def __init__(self, this):
1265 self.this = this
1266 if not hasattr(self,"thisown"): self.thisown = 0
1267 self.__class__ = PopupWindow
1268 _windows.PopupWindow_swigregister(PopupWindowPtr)
1269
1270 def PrePopupWindow(*args, **kwargs):
1271 """PrePopupWindow() -> PopupWindow"""
1272 val = _windows.new_PrePopupWindow(*args, **kwargs)
1273 val.thisown = 1
1274 return val
1275
1276 #---------------------------------------------------------------------------
1277
1278 class PopupTransientWindow(PopupWindow):
1279 """"""
1280 def __repr__(self):
1281 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1282 def __init__(self, *args, **kwargs):
1283 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1284 newobj = _windows.new_PopupTransientWindow(*args, **kwargs)
1285 self.this = newobj.this
1286 self.thisown = 1
1287 del newobj.thisown
1288 self._setOORInfo(self);self._setCallbackInfo(self, PopupTransientWindow)
1289
1290 def _setCallbackInfo(*args, **kwargs):
1291 """_setCallbackInfo(PyObject self, PyObject _class)"""
1292 return _windows.PopupTransientWindow__setCallbackInfo(*args, **kwargs)
1293
1294 def Popup(*args, **kwargs):
1295 """Popup(Window focus=None)"""
1296 return _windows.PopupTransientWindow_Popup(*args, **kwargs)
1297
1298 def Dismiss(*args, **kwargs):
1299 """Dismiss()"""
1300 return _windows.PopupTransientWindow_Dismiss(*args, **kwargs)
1301
1302
1303 class PopupTransientWindowPtr(PopupTransientWindow):
1304 def __init__(self, this):
1305 self.this = this
1306 if not hasattr(self,"thisown"): self.thisown = 0
1307 self.__class__ = PopupTransientWindow
1308 _windows.PopupTransientWindow_swigregister(PopupTransientWindowPtr)
1309
1310 def PrePopupTransientWindow(*args, **kwargs):
1311 """PrePopupTransientWindow() -> PopupTransientWindow"""
1312 val = _windows.new_PrePopupTransientWindow(*args, **kwargs)
1313 val.thisown = 1
1314 return val
1315
1316 #---------------------------------------------------------------------------
1317
1318 class TipWindow(PopupTransientWindow):
1319 """"""
1320 def __repr__(self):
1321 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1322 def __init__(self, *args, **kwargs):
1323 """__init__(Window parent, wxString text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1324 newobj = _windows.new_TipWindow(*args, **kwargs)
1325 self.this = newobj.this
1326 self.thisown = 1
1327 del newobj.thisown
1328 self._setOORInfo(self)
1329
1330 def SetBoundingRect(*args, **kwargs):
1331 """SetBoundingRect(Rect rectBound)"""
1332 return _windows.TipWindow_SetBoundingRect(*args, **kwargs)
1333
1334 def Close(*args, **kwargs):
1335 """Close()"""
1336 return _windows.TipWindow_Close(*args, **kwargs)
1337
1338
1339 class TipWindowPtr(TipWindow):
1340 def __init__(self, this):
1341 self.this = this
1342 if not hasattr(self,"thisown"): self.thisown = 0
1343 self.__class__ = TipWindow
1344 _windows.TipWindow_swigregister(TipWindowPtr)
1345
1346 #---------------------------------------------------------------------------
1347
1348 class VScrolledWindow(Panel):
1349 """"""
1350 def __repr__(self):
1351 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1352 def __init__(self, *args, **kwargs):
1353 """__init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1354 Size size=DefaultSize, long style=0, wxString name=PanelNameStr) -> VScrolledWindow"""
1355 newobj = _windows.new_VScrolledWindow(*args, **kwargs)
1356 self.this = newobj.this
1357 self.thisown = 1
1358 del newobj.thisown
1359 self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow)
1360
1361 def _setCallbackInfo(*args, **kwargs):
1362 """_setCallbackInfo(PyObject self, PyObject _class)"""
1363 return _windows.VScrolledWindow__setCallbackInfo(*args, **kwargs)
1364
1365 def Create(*args, **kwargs):
1366 """Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1367 Size size=DefaultSize, long style=0, wxString name=PanelNameStr) -> bool"""
1368 return _windows.VScrolledWindow_Create(*args, **kwargs)
1369
1370 def SetLineCount(*args, **kwargs):
1371 """SetLineCount(size_t count)"""
1372 return _windows.VScrolledWindow_SetLineCount(*args, **kwargs)
1373
1374 def ScrollToLine(*args, **kwargs):
1375 """ScrollToLine(size_t line) -> bool"""
1376 return _windows.VScrolledWindow_ScrollToLine(*args, **kwargs)
1377
1378 def ScrollLines(*args, **kwargs):
1379 """ScrollLines(int lines) -> bool"""
1380 return _windows.VScrolledWindow_ScrollLines(*args, **kwargs)
1381
1382 def ScrollPages(*args, **kwargs):
1383 """ScrollPages(int pages) -> bool"""
1384 return _windows.VScrolledWindow_ScrollPages(*args, **kwargs)
1385
1386 def RefreshLine(*args, **kwargs):
1387 """RefreshLine(size_t line)"""
1388 return _windows.VScrolledWindow_RefreshLine(*args, **kwargs)
1389
1390 def RefreshLines(*args, **kwargs):
1391 """RefreshLines(size_t from, size_t to)"""
1392 return _windows.VScrolledWindow_RefreshLines(*args, **kwargs)
1393
1394 def HitTestXT(*args, **kwargs):
1395 """HitTestXT(int x, int y) -> int"""
1396 return _windows.VScrolledWindow_HitTestXT(*args, **kwargs)
1397
1398 def HitTest(*args, **kwargs):
1399 """HitTest(Point pt) -> int"""
1400 return _windows.VScrolledWindow_HitTest(*args, **kwargs)
1401
1402 def RefreshAll(*args, **kwargs):
1403 """RefreshAll()"""
1404 return _windows.VScrolledWindow_RefreshAll(*args, **kwargs)
1405
1406 def GetLineCount(*args, **kwargs):
1407 """GetLineCount() -> size_t"""
1408 return _windows.VScrolledWindow_GetLineCount(*args, **kwargs)
1409
1410 def GetFirstVisibleLine(*args, **kwargs):
1411 """GetFirstVisibleLine() -> size_t"""
1412 return _windows.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs)
1413
1414 def GetLastVisibleLine(*args, **kwargs):
1415 """GetLastVisibleLine() -> size_t"""
1416 return _windows.VScrolledWindow_GetLastVisibleLine(*args, **kwargs)
1417
1418 def IsVisible(*args, **kwargs):
1419 """IsVisible(size_t line) -> bool"""
1420 return _windows.VScrolledWindow_IsVisible(*args, **kwargs)
1421
1422
1423 class VScrolledWindowPtr(VScrolledWindow):
1424 def __init__(self, this):
1425 self.this = this
1426 if not hasattr(self,"thisown"): self.thisown = 0
1427 self.__class__ = VScrolledWindow
1428 _windows.VScrolledWindow_swigregister(VScrolledWindowPtr)
1429
1430 def PreVScrolledWindow(*args, **kwargs):
1431 """PreVScrolledWindow() -> VScrolledWindow"""
1432 val = _windows.new_PreVScrolledWindow(*args, **kwargs)
1433 val.thisown = 1
1434 return val
1435
1436 class VListBox(VScrolledWindow):
1437 """"""
1438 def __repr__(self):
1439 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1440 def __init__(self, *args, **kwargs):
1441 """__init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1442 Size size=DefaultSize, long style=0, wxString name=wxPyVListBoxNameStr) -> VListBox"""
1443 newobj = _windows.new_VListBox(*args, **kwargs)
1444 self.this = newobj.this
1445 self.thisown = 1
1446 del newobj.thisown
1447 self._setOORInfo(self);self._setCallbackInfo(self, VListBox)
1448
1449 def _setCallbackInfo(*args, **kwargs):
1450 """_setCallbackInfo(PyObject self, PyObject _class)"""
1451 return _windows.VListBox__setCallbackInfo(*args, **kwargs)
1452
1453 def Create(*args, **kwargs):
1454 """Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1455 Size size=DefaultSize, long style=0, wxString name=wxPyVListBoxNameStr) -> bool"""
1456 return _windows.VListBox_Create(*args, **kwargs)
1457
1458 def GetItemCount(*args, **kwargs):
1459 """GetItemCount() -> size_t"""
1460 return _windows.VListBox_GetItemCount(*args, **kwargs)
1461
1462 def HasMultipleSelection(*args, **kwargs):
1463 """HasMultipleSelection() -> bool"""
1464 return _windows.VListBox_HasMultipleSelection(*args, **kwargs)
1465
1466 def GetSelection(*args, **kwargs):
1467 """GetSelection() -> int"""
1468 return _windows.VListBox_GetSelection(*args, **kwargs)
1469
1470 def IsCurrent(*args, **kwargs):
1471 """IsCurrent(size_t item) -> bool"""
1472 return _windows.VListBox_IsCurrent(*args, **kwargs)
1473
1474 def IsSelected(*args, **kwargs):
1475 """IsSelected(size_t item) -> bool"""
1476 return _windows.VListBox_IsSelected(*args, **kwargs)
1477
1478 def GetSelectedCount(*args, **kwargs):
1479 """GetSelectedCount() -> size_t"""
1480 return _windows.VListBox_GetSelectedCount(*args, **kwargs)
1481
1482 def GetFirstSelected(*args, **kwargs):
1483 """GetFirstSelected(unsigned long cookie) -> int"""
1484 return _windows.VListBox_GetFirstSelected(*args, **kwargs)
1485
1486 def GetNextSelected(*args, **kwargs):
1487 """GetNextSelected(unsigned long cookie) -> int"""
1488 return _windows.VListBox_GetNextSelected(*args, **kwargs)
1489
1490 def GetMargins(*args, **kwargs):
1491 """GetMargins() -> Point"""
1492 return _windows.VListBox_GetMargins(*args, **kwargs)
1493
1494 def GetSelectionBackground(*args, **kwargs):
1495 """GetSelectionBackground() -> wxColour"""
1496 return _windows.VListBox_GetSelectionBackground(*args, **kwargs)
1497
1498 def SetItemCount(*args, **kwargs):
1499 """SetItemCount(size_t count)"""
1500 return _windows.VListBox_SetItemCount(*args, **kwargs)
1501
1502 def Clear(*args, **kwargs):
1503 """Clear()"""
1504 return _windows.VListBox_Clear(*args, **kwargs)
1505
1506 def SetSelection(*args, **kwargs):
1507 """SetSelection(int selection)"""
1508 return _windows.VListBox_SetSelection(*args, **kwargs)
1509
1510 def Select(*args, **kwargs):
1511 """Select(size_t item, bool select=True) -> bool"""
1512 return _windows.VListBox_Select(*args, **kwargs)
1513
1514 def SelectRange(*args, **kwargs):
1515 """SelectRange(size_t from, size_t to) -> bool"""
1516 return _windows.VListBox_SelectRange(*args, **kwargs)
1517
1518 def Toggle(*args, **kwargs):
1519 """Toggle(size_t item)"""
1520 return _windows.VListBox_Toggle(*args, **kwargs)
1521
1522 def SelectAll(*args, **kwargs):
1523 """SelectAll() -> bool"""
1524 return _windows.VListBox_SelectAll(*args, **kwargs)
1525
1526 def DeselectAll(*args, **kwargs):
1527 """DeselectAll() -> bool"""
1528 return _windows.VListBox_DeselectAll(*args, **kwargs)
1529
1530 def SetMargins(*args, **kwargs):
1531 """SetMargins(Point pt)"""
1532 return _windows.VListBox_SetMargins(*args, **kwargs)
1533
1534 def SetMarginsXY(*args, **kwargs):
1535 """SetMarginsXY(int x, int y)"""
1536 return _windows.VListBox_SetMarginsXY(*args, **kwargs)
1537
1538 def SetSelectionBackground(*args, **kwargs):
1539 """SetSelectionBackground(wxColour col)"""
1540 return _windows.VListBox_SetSelectionBackground(*args, **kwargs)
1541
1542
1543 class VListBoxPtr(VListBox):
1544 def __init__(self, this):
1545 self.this = this
1546 if not hasattr(self,"thisown"): self.thisown = 0
1547 self.__class__ = VListBox
1548 _windows.VListBox_swigregister(VListBoxPtr)
1549
1550 def PreVListBox(*args, **kwargs):
1551 """PreVListBox() -> VListBox"""
1552 val = _windows.new_PreVListBox(*args, **kwargs)
1553 val.thisown = 1
1554 return val
1555
1556 class HtmlListBox(VListBox):
1557 """"""
1558 def __repr__(self):
1559 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1560 def __init__(self, *args, **kwargs):
1561 """__init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1562 Size size=DefaultSize, long style=0, wxString name=wxPyVListBoxNameStr) -> HtmlListBox"""
1563 newobj = _windows.new_HtmlListBox(*args, **kwargs)
1564 self.this = newobj.this
1565 self.thisown = 1
1566 del newobj.thisown
1567 self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox)
1568
1569 def _setCallbackInfo(*args, **kwargs):
1570 """_setCallbackInfo(PyObject self, PyObject _class)"""
1571 return _windows.HtmlListBox__setCallbackInfo(*args, **kwargs)
1572
1573 def Create(*args, **kwargs):
1574 """Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1575 Size size=DefaultSize, long style=0, wxString name=wxPyVListBoxNameStr) -> bool"""
1576 return _windows.HtmlListBox_Create(*args, **kwargs)
1577
1578 def RefreshAll(*args, **kwargs):
1579 """RefreshAll()"""
1580 return _windows.HtmlListBox_RefreshAll(*args, **kwargs)
1581
1582 def SetItemCount(*args, **kwargs):
1583 """SetItemCount(size_t count)"""
1584 return _windows.HtmlListBox_SetItemCount(*args, **kwargs)
1585
1586
1587 class HtmlListBoxPtr(HtmlListBox):
1588 def __init__(self, this):
1589 self.this = this
1590 if not hasattr(self,"thisown"): self.thisown = 0
1591 self.__class__ = HtmlListBox
1592 _windows.HtmlListBox_swigregister(HtmlListBoxPtr)
1593
1594 def PreHtmlListBox(*args, **kwargs):
1595 """PreHtmlListBox() -> HtmlListBox"""
1596 val = _windows.new_PreHtmlListBox(*args, **kwargs)
1597 val.thisown = 1
1598 return val
1599
1600 #---------------------------------------------------------------------------
1601
1602 class TaskBarIcon(core.EvtHandler):
1603 """"""
1604 def __repr__(self):
1605 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1606 def __init__(self, *args, **kwargs):
1607 """__init__() -> TaskBarIcon"""
1608 newobj = _windows.new_TaskBarIcon(*args, **kwargs)
1609 self.this = newobj.this
1610 self.thisown = 1
1611 del newobj.thisown
1612 def __del__(self, destroy=_windows.delete_TaskBarIcon):
1613 """__del__()"""
1614 try:
1615 if self.thisown: destroy(self)
1616 except: pass
1617
1618 def IsOk(*args, **kwargs):
1619 """IsOk() -> bool"""
1620 return _windows.TaskBarIcon_IsOk(*args, **kwargs)
1621
1622 def IsIconInstalled(*args, **kwargs):
1623 """IsIconInstalled() -> bool"""
1624 return _windows.TaskBarIcon_IsIconInstalled(*args, **kwargs)
1625
1626 def SetIcon(*args, **kwargs):
1627 """SetIcon(wxIcon icon, wxString tooltip=wxPyEmptyString) -> bool"""
1628 return _windows.TaskBarIcon_SetIcon(*args, **kwargs)
1629
1630 def RemoveIcon(*args, **kwargs):
1631 """RemoveIcon(void ??) -> bool"""
1632 return _windows.TaskBarIcon_RemoveIcon(*args, **kwargs)
1633
1634 def PopupMenu(*args, **kwargs):
1635 """PopupMenu(Menu menu) -> bool"""
1636 return _windows.TaskBarIcon_PopupMenu(*args, **kwargs)
1637
1638
1639 class TaskBarIconPtr(TaskBarIcon):
1640 def __init__(self, this):
1641 self.this = this
1642 if not hasattr(self,"thisown"): self.thisown = 0
1643 self.__class__ = TaskBarIcon
1644 _windows.TaskBarIcon_swigregister(TaskBarIconPtr)
1645
1646 class TaskBarIconEvent(core.Event):
1647 """"""
1648 def __repr__(self):
1649 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1650 def __init__(self, *args, **kwargs):
1651 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
1652 newobj = _windows.new_TaskBarIconEvent(*args, **kwargs)
1653 self.this = newobj.this
1654 self.thisown = 1
1655 del newobj.thisown
1656
1657 class TaskBarIconEventPtr(TaskBarIconEvent):
1658 def __init__(self, this):
1659 self.this = this
1660 if not hasattr(self,"thisown"): self.thisown = 0
1661 self.__class__ = TaskBarIconEvent
1662 _windows.TaskBarIconEvent_swigregister(TaskBarIconEventPtr)
1663
1664 wxEVT_TASKBAR_MOVE = _windows.wxEVT_TASKBAR_MOVE
1665 wxEVT_TASKBAR_LEFT_DOWN = _windows.wxEVT_TASKBAR_LEFT_DOWN
1666 wxEVT_TASKBAR_LEFT_UP = _windows.wxEVT_TASKBAR_LEFT_UP
1667 wxEVT_TASKBAR_RIGHT_DOWN = _windows.wxEVT_TASKBAR_RIGHT_DOWN
1668 wxEVT_TASKBAR_RIGHT_UP = _windows.wxEVT_TASKBAR_RIGHT_UP
1669 wxEVT_TASKBAR_LEFT_DCLICK = _windows.wxEVT_TASKBAR_LEFT_DCLICK
1670 wxEVT_TASKBAR_RIGHT_DCLICK = _windows.wxEVT_TASKBAR_RIGHT_DCLICK
1671 EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE )
1672 EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN )
1673 EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP )
1674 EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN )
1675 EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP )
1676 EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK )
1677 EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK )
1678
1679 #---------------------------------------------------------------------------
1680
1681 class ColourData(core.Object):
1682 """"""
1683 def __repr__(self):
1684 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1685 def __init__(self, *args, **kwargs):
1686 """__init__() -> ColourData"""
1687 newobj = _windows.new_ColourData(*args, **kwargs)
1688 self.this = newobj.this
1689 self.thisown = 1
1690 del newobj.thisown
1691 def __del__(self, destroy=_windows.delete_ColourData):
1692 """__del__()"""
1693 try:
1694 if self.thisown: destroy(self)
1695 except: pass
1696
1697 def GetChooseFull(*args, **kwargs):
1698 """GetChooseFull() -> bool"""
1699 return _windows.ColourData_GetChooseFull(*args, **kwargs)
1700
1701 def GetColour(*args, **kwargs):
1702 """GetColour() -> wxColour"""
1703 return _windows.ColourData_GetColour(*args, **kwargs)
1704
1705 def GetCustomColour(*args, **kwargs):
1706 """GetCustomColour(int i) -> wxColour"""
1707 return _windows.ColourData_GetCustomColour(*args, **kwargs)
1708
1709 def SetChooseFull(*args, **kwargs):
1710 """SetChooseFull(int flag)"""
1711 return _windows.ColourData_SetChooseFull(*args, **kwargs)
1712
1713 def SetColour(*args, **kwargs):
1714 """SetColour(wxColour colour)"""
1715 return _windows.ColourData_SetColour(*args, **kwargs)
1716
1717 def SetCustomColour(*args, **kwargs):
1718 """SetCustomColour(int i, wxColour colour)"""
1719 return _windows.ColourData_SetCustomColour(*args, **kwargs)
1720
1721
1722 class ColourDataPtr(ColourData):
1723 def __init__(self, this):
1724 self.this = this
1725 if not hasattr(self,"thisown"): self.thisown = 0
1726 self.__class__ = ColourData
1727 _windows.ColourData_swigregister(ColourDataPtr)
1728
1729 class ColourDialog(Dialog):
1730 """"""
1731 def __repr__(self):
1732 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1733 def __init__(self, *args, **kwargs):
1734 """__init__(Window parent, ColourData data=None) -> ColourDialog"""
1735 newobj = _windows.new_ColourDialog(*args, **kwargs)
1736 self.this = newobj.this
1737 self.thisown = 1
1738 del newobj.thisown
1739 self._setOORInfo(self)
1740
1741 def GetColourData(*args, **kwargs):
1742 """GetColourData() -> ColourData"""
1743 return _windows.ColourDialog_GetColourData(*args, **kwargs)
1744
1745 def ShowModal(*args, **kwargs):
1746 """ShowModal() -> int"""
1747 return _windows.ColourDialog_ShowModal(*args, **kwargs)
1748
1749
1750 class ColourDialogPtr(ColourDialog):
1751 def __init__(self, this):
1752 self.this = this
1753 if not hasattr(self,"thisown"): self.thisown = 0
1754 self.__class__ = ColourDialog
1755 _windows.ColourDialog_swigregister(ColourDialogPtr)
1756
1757 class DirDialog(Dialog):
1758 """"""
1759 def __repr__(self):
1760 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1761 def __init__(self, *args, **kwargs):
1762 """__init__(Window parent, wxString message=wxPyDirSelectorPromptStr,
1763 wxString defaultPath=wxPyEmptyString,
1764 long style=0, Point pos=DefaultPosition, Size size=DefaultSize,
1765 wxString name=wxPyDirDialogNameStr) -> DirDialog"""
1766 newobj = _windows.new_DirDialog(*args, **kwargs)
1767 self.this = newobj.this
1768 self.thisown = 1
1769 del newobj.thisown
1770 self._setOORInfo(self)
1771
1772 def GetPath(*args, **kwargs):
1773 """GetPath() -> wxString"""
1774 return _windows.DirDialog_GetPath(*args, **kwargs)
1775
1776 def GetMessage(*args, **kwargs):
1777 """GetMessage() -> wxString"""
1778 return _windows.DirDialog_GetMessage(*args, **kwargs)
1779
1780 def GetStyle(*args, **kwargs):
1781 """GetStyle() -> long"""
1782 return _windows.DirDialog_GetStyle(*args, **kwargs)
1783
1784 def SetMessage(*args, **kwargs):
1785 """SetMessage(wxString message)"""
1786 return _windows.DirDialog_SetMessage(*args, **kwargs)
1787
1788 def SetPath(*args, **kwargs):
1789 """SetPath(wxString path)"""
1790 return _windows.DirDialog_SetPath(*args, **kwargs)
1791
1792 def ShowModal(*args, **kwargs):
1793 """ShowModal() -> int"""
1794 return _windows.DirDialog_ShowModal(*args, **kwargs)
1795
1796
1797 class DirDialogPtr(DirDialog):
1798 def __init__(self, this):
1799 self.this = this
1800 if not hasattr(self,"thisown"): self.thisown = 0
1801 self.__class__ = DirDialog
1802 _windows.DirDialog_swigregister(DirDialogPtr)
1803
1804 class FileDialog(Dialog):
1805 """"""
1806 def __repr__(self):
1807 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1808 def __init__(self, *args, **kwargs):
1809 """__init__(Window parent, wxString message=wxPyFileSelectorPromptStr,
1810 wxString defaultDir=wxPyEmptyString,
1811 wxString defaultFile=wxPyEmptyString, wxString wildcard=wxPyFileSelectorDefaultWildcardStr,
1812 long style=0,
1813 Point pos=DefaultPosition) -> FileDialog"""
1814 newobj = _windows.new_FileDialog(*args, **kwargs)
1815 self.this = newobj.this
1816 self.thisown = 1
1817 del newobj.thisown
1818 self._setOORInfo(self)
1819
1820 def SetMessage(*args, **kwargs):
1821 """SetMessage(wxString message)"""
1822 return _windows.FileDialog_SetMessage(*args, **kwargs)
1823
1824 def SetPath(*args, **kwargs):
1825 """SetPath(wxString path)"""
1826 return _windows.FileDialog_SetPath(*args, **kwargs)
1827
1828 def SetDirectory(*args, **kwargs):
1829 """SetDirectory(wxString dir)"""
1830 return _windows.FileDialog_SetDirectory(*args, **kwargs)
1831
1832 def SetFilename(*args, **kwargs):
1833 """SetFilename(wxString name)"""
1834 return _windows.FileDialog_SetFilename(*args, **kwargs)
1835
1836 def SetWildcard(*args, **kwargs):
1837 """SetWildcard(wxString wildCard)"""
1838 return _windows.FileDialog_SetWildcard(*args, **kwargs)
1839
1840 def SetStyle(*args, **kwargs):
1841 """SetStyle(long style)"""
1842 return _windows.FileDialog_SetStyle(*args, **kwargs)
1843
1844 def SetFilterIndex(*args, **kwargs):
1845 """SetFilterIndex(int filterIndex)"""
1846 return _windows.FileDialog_SetFilterIndex(*args, **kwargs)
1847
1848 def GetMessage(*args, **kwargs):
1849 """GetMessage() -> wxString"""
1850 return _windows.FileDialog_GetMessage(*args, **kwargs)
1851
1852 def GetPath(*args, **kwargs):
1853 """GetPath() -> wxString"""
1854 return _windows.FileDialog_GetPath(*args, **kwargs)
1855
1856 def GetDirectory(*args, **kwargs):
1857 """GetDirectory() -> wxString"""
1858 return _windows.FileDialog_GetDirectory(*args, **kwargs)
1859
1860 def GetFilename(*args, **kwargs):
1861 """GetFilename() -> wxString"""
1862 return _windows.FileDialog_GetFilename(*args, **kwargs)
1863
1864 def GetWildcard(*args, **kwargs):
1865 """GetWildcard() -> wxString"""
1866 return _windows.FileDialog_GetWildcard(*args, **kwargs)
1867
1868 def GetStyle(*args, **kwargs):
1869 """GetStyle() -> long"""
1870 return _windows.FileDialog_GetStyle(*args, **kwargs)
1871
1872 def GetFilterIndex(*args, **kwargs):
1873 """GetFilterIndex() -> int"""
1874 return _windows.FileDialog_GetFilterIndex(*args, **kwargs)
1875
1876 def GetFilenames(*args, **kwargs):
1877 """GetFilenames() -> PyObject"""
1878 return _windows.FileDialog_GetFilenames(*args, **kwargs)
1879
1880 def GetPaths(*args, **kwargs):
1881 """GetPaths() -> PyObject"""
1882 return _windows.FileDialog_GetPaths(*args, **kwargs)
1883
1884
1885 class FileDialogPtr(FileDialog):
1886 def __init__(self, this):
1887 self.this = this
1888 if not hasattr(self,"thisown"): self.thisown = 0
1889 self.__class__ = FileDialog
1890 _windows.FileDialog_swigregister(FileDialogPtr)
1891
1892 CHOICEDLG_STYLE = _windows.CHOICEDLG_STYLE
1893 class MultiChoiceDialog(Dialog):
1894 """"""
1895 def __repr__(self):
1896 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1897 def __init__(self, *args, **kwargs):
1898 """__init__(Window parent, wxString message, wxString caption,
1899 int LCOUNT, wxString choices, long style=CHOICEDLG_STYLE,
1900 Point pos=DefaultPosition) -> MultiChoiceDialog"""
1901 newobj = _windows.new_MultiChoiceDialog(*args, **kwargs)
1902 self.this = newobj.this
1903 self.thisown = 1
1904 del newobj.thisown
1905 self._setOORInfo(self)
1906
1907 def SetSelections(*args, **kwargs):
1908 """SetSelections(wxArrayInt selections)"""
1909 return _windows.MultiChoiceDialog_SetSelections(*args, **kwargs)
1910
1911 def GetSelections(*args, **kwargs):
1912 """GetSelections() -> PyObject"""
1913 return _windows.MultiChoiceDialog_GetSelections(*args, **kwargs)
1914
1915
1916 class MultiChoiceDialogPtr(MultiChoiceDialog):
1917 def __init__(self, this):
1918 self.this = this
1919 if not hasattr(self,"thisown"): self.thisown = 0
1920 self.__class__ = MultiChoiceDialog
1921 _windows.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr)
1922
1923 class SingleChoiceDialog(Dialog):
1924 """"""
1925 def __repr__(self):
1926 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1927 def __init__(self, *args, **kwargs):
1928 """__init__(Window parent, wxString message, wxString caption,
1929 int choices, wxString choices_array, long style=CHOICEDLG_STYLE,
1930 Point pos=DefaultPosition) -> SingleChoiceDialog"""
1931 newobj = _windows.new_SingleChoiceDialog(*args, **kwargs)
1932 self.this = newobj.this
1933 self.thisown = 1
1934 del newobj.thisown
1935 self._setOORInfo(self)
1936
1937 def GetSelection(*args, **kwargs):
1938 """GetSelection() -> int"""
1939 return _windows.SingleChoiceDialog_GetSelection(*args, **kwargs)
1940
1941 def GetStringSelection(*args, **kwargs):
1942 """GetStringSelection() -> wxString"""
1943 return _windows.SingleChoiceDialog_GetStringSelection(*args, **kwargs)
1944
1945 def SetSelection(*args, **kwargs):
1946 """SetSelection(int sel)"""
1947 return _windows.SingleChoiceDialog_SetSelection(*args, **kwargs)
1948
1949 def ShowModal(*args, **kwargs):
1950 """ShowModal() -> int"""
1951 return _windows.SingleChoiceDialog_ShowModal(*args, **kwargs)
1952
1953
1954 class SingleChoiceDialogPtr(SingleChoiceDialog):
1955 def __init__(self, this):
1956 self.this = this
1957 if not hasattr(self,"thisown"): self.thisown = 0
1958 self.__class__ = SingleChoiceDialog
1959 _windows.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr)
1960
1961 class TextEntryDialog(Dialog):
1962 """"""
1963 def __repr__(self):
1964 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1965 def __init__(self, *args, **kwargs):
1966 """__init__(Window parent, wxString message, wxString caption=wxPyGetTextFromUserPromptStr,
1967 wxString defaultValue=wxPyEmptyString,
1968 long style=wxOK|wxCANCEL|wxCENTRE,
1969 Point pos=DefaultPosition) -> TextEntryDialog"""
1970 newobj = _windows.new_TextEntryDialog(*args, **kwargs)
1971 self.this = newobj.this
1972 self.thisown = 1
1973 del newobj.thisown
1974 self._setOORInfo(self)
1975
1976 def GetValue(*args, **kwargs):
1977 """GetValue() -> wxString"""
1978 return _windows.TextEntryDialog_GetValue(*args, **kwargs)
1979
1980 def SetValue(*args, **kwargs):
1981 """SetValue(wxString value)"""
1982 return _windows.TextEntryDialog_SetValue(*args, **kwargs)
1983
1984 def ShowModal(*args, **kwargs):
1985 """ShowModal() -> int"""
1986 return _windows.TextEntryDialog_ShowModal(*args, **kwargs)
1987
1988
1989 class TextEntryDialogPtr(TextEntryDialog):
1990 def __init__(self, this):
1991 self.this = this
1992 if not hasattr(self,"thisown"): self.thisown = 0
1993 self.__class__ = TextEntryDialog
1994 _windows.TextEntryDialog_swigregister(TextEntryDialogPtr)
1995
1996 class FontData(core.Object):
1997 """"""
1998 def __repr__(self):
1999 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2000 def __init__(self, *args, **kwargs):
2001 """__init__() -> FontData"""
2002 newobj = _windows.new_FontData(*args, **kwargs)
2003 self.this = newobj.this
2004 self.thisown = 1
2005 del newobj.thisown
2006 def __del__(self, destroy=_windows.delete_FontData):
2007 """__del__()"""
2008 try:
2009 if self.thisown: destroy(self)
2010 except: pass
2011
2012 def EnableEffects(*args, **kwargs):
2013 """EnableEffects(bool enable)"""
2014 return _windows.FontData_EnableEffects(*args, **kwargs)
2015
2016 def GetAllowSymbols(*args, **kwargs):
2017 """GetAllowSymbols() -> bool"""
2018 return _windows.FontData_GetAllowSymbols(*args, **kwargs)
2019
2020 def GetColour(*args, **kwargs):
2021 """GetColour() -> wxColour"""
2022 return _windows.FontData_GetColour(*args, **kwargs)
2023
2024 def GetChosenFont(*args, **kwargs):
2025 """GetChosenFont() -> wxFont"""
2026 return _windows.FontData_GetChosenFont(*args, **kwargs)
2027
2028 def GetEnableEffects(*args, **kwargs):
2029 """GetEnableEffects() -> bool"""
2030 return _windows.FontData_GetEnableEffects(*args, **kwargs)
2031
2032 def GetInitialFont(*args, **kwargs):
2033 """GetInitialFont() -> wxFont"""
2034 return _windows.FontData_GetInitialFont(*args, **kwargs)
2035
2036 def GetShowHelp(*args, **kwargs):
2037 """GetShowHelp() -> bool"""
2038 return _windows.FontData_GetShowHelp(*args, **kwargs)
2039
2040 def SetAllowSymbols(*args, **kwargs):
2041 """SetAllowSymbols(bool allowSymbols)"""
2042 return _windows.FontData_SetAllowSymbols(*args, **kwargs)
2043
2044 def SetChosenFont(*args, **kwargs):
2045 """SetChosenFont(wxFont font)"""
2046 return _windows.FontData_SetChosenFont(*args, **kwargs)
2047
2048 def SetColour(*args, **kwargs):
2049 """SetColour(wxColour colour)"""
2050 return _windows.FontData_SetColour(*args, **kwargs)
2051
2052 def SetInitialFont(*args, **kwargs):
2053 """SetInitialFont(wxFont font)"""
2054 return _windows.FontData_SetInitialFont(*args, **kwargs)
2055
2056 def SetRange(*args, **kwargs):
2057 """SetRange(int min, int max)"""
2058 return _windows.FontData_SetRange(*args, **kwargs)
2059
2060 def SetShowHelp(*args, **kwargs):
2061 """SetShowHelp(bool showHelp)"""
2062 return _windows.FontData_SetShowHelp(*args, **kwargs)
2063
2064
2065 class FontDataPtr(FontData):
2066 def __init__(self, this):
2067 self.this = this
2068 if not hasattr(self,"thisown"): self.thisown = 0
2069 self.__class__ = FontData
2070 _windows.FontData_swigregister(FontDataPtr)
2071
2072 class FontDialog(Dialog):
2073 """"""
2074 def __repr__(self):
2075 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2076 def __init__(self, *args, **kwargs):
2077 """__init__(Window parent, FontData data) -> FontDialog"""
2078 newobj = _windows.new_FontDialog(*args, **kwargs)
2079 self.this = newobj.this
2080 self.thisown = 1
2081 del newobj.thisown
2082 self._setOORInfo(self)
2083
2084 def GetFontData(*args, **kwargs):
2085 """GetFontData() -> FontData"""
2086 return _windows.FontDialog_GetFontData(*args, **kwargs)
2087
2088 def ShowModal(*args, **kwargs):
2089 """ShowModal() -> int"""
2090 return _windows.FontDialog_ShowModal(*args, **kwargs)
2091
2092
2093 class FontDialogPtr(FontDialog):
2094 def __init__(self, this):
2095 self.this = this
2096 if not hasattr(self,"thisown"): self.thisown = 0
2097 self.__class__ = FontDialog
2098 _windows.FontDialog_swigregister(FontDialogPtr)
2099
2100 class MessageDialog(Dialog):
2101 """"""
2102 def __repr__(self):
2103 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2104 def __init__(self, *args, **kwargs):
2105 """__init__(Window parent, wxString message, wxString caption=wxPyMessageBoxCaptionStr,
2106 long style=wxOK|wxCANCEL|wxCENTRE,
2107 Point pos=DefaultPosition) -> MessageDialog"""
2108 newobj = _windows.new_MessageDialog(*args, **kwargs)
2109 self.this = newobj.this
2110 self.thisown = 1
2111 del newobj.thisown
2112 self._setOORInfo(self)
2113
2114 def ShowModal(*args, **kwargs):
2115 """ShowModal() -> int"""
2116 return _windows.MessageDialog_ShowModal(*args, **kwargs)
2117
2118
2119 class MessageDialogPtr(MessageDialog):
2120 def __init__(self, this):
2121 self.this = this
2122 if not hasattr(self,"thisown"): self.thisown = 0
2123 self.__class__ = MessageDialog
2124 _windows.MessageDialog_swigregister(MessageDialogPtr)
2125
2126 class ProgressDialog(Frame):
2127 """"""
2128 def __repr__(self):
2129 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2130 def __init__(self, *args, **kwargs):
2131 """__init__(wxString title, wxString message, int maximum=100,
2132 Window parent=None, int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog"""
2133 newobj = _windows.new_ProgressDialog(*args, **kwargs)
2134 self.this = newobj.this
2135 self.thisown = 1
2136 del newobj.thisown
2137 self._setOORInfo(self)
2138
2139 def Update(*args, **kwargs):
2140 """Update(int value, wxString newmsg=wxPyEmptyString) -> bool"""
2141 return _windows.ProgressDialog_Update(*args, **kwargs)
2142
2143 def Resume(*args, **kwargs):
2144 """Resume()"""
2145 return _windows.ProgressDialog_Resume(*args, **kwargs)
2146
2147
2148 class ProgressDialogPtr(ProgressDialog):
2149 def __init__(self, this):
2150 self.this = this
2151 if not hasattr(self,"thisown"): self.thisown = 0
2152 self.__class__ = ProgressDialog
2153 _windows.ProgressDialog_swigregister(ProgressDialogPtr)
2154
2155 FR_DOWN = _windows.FR_DOWN
2156 FR_WHOLEWORD = _windows.FR_WHOLEWORD
2157 FR_MATCHCASE = _windows.FR_MATCHCASE
2158 FR_REPLACEDIALOG = _windows.FR_REPLACEDIALOG
2159 FR_NOUPDOWN = _windows.FR_NOUPDOWN
2160 FR_NOMATCHCASE = _windows.FR_NOMATCHCASE
2161 FR_NOWHOLEWORD = _windows.FR_NOWHOLEWORD
2162 wxEVT_COMMAND_FIND = _windows.wxEVT_COMMAND_FIND
2163 wxEVT_COMMAND_FIND_NEXT = _windows.wxEVT_COMMAND_FIND_NEXT
2164 wxEVT_COMMAND_FIND_REPLACE = _windows.wxEVT_COMMAND_FIND_REPLACE
2165 wxEVT_COMMAND_FIND_REPLACE_ALL = _windows.wxEVT_COMMAND_FIND_REPLACE_ALL
2166 wxEVT_COMMAND_FIND_CLOSE = _windows.wxEVT_COMMAND_FIND_CLOSE
2167 EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 )
2168 EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 )
2169 EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 )
2170 EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 )
2171 EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 )
2172
2173 # For backwards compatibility. Should they be removed?
2174 EVT_COMMAND_FIND = EVT_FIND
2175 EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT
2176 EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE
2177 EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL
2178 EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE
2179
2180 class FindDialogEvent(core.CommandEvent):
2181 """"""
2182 def __repr__(self):
2183 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2184 def __init__(self, *args, **kwargs):
2185 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent"""
2186 newobj = _windows.new_FindDialogEvent(*args, **kwargs)
2187 self.this = newobj.this
2188 self.thisown = 1
2189 del newobj.thisown
2190 def GetFlags(*args, **kwargs):
2191 """GetFlags() -> int"""
2192 return _windows.FindDialogEvent_GetFlags(*args, **kwargs)
2193
2194 def GetFindString(*args, **kwargs):
2195 """GetFindString() -> wxString"""
2196 return _windows.FindDialogEvent_GetFindString(*args, **kwargs)
2197
2198 def GetReplaceString(*args, **kwargs):
2199 """GetReplaceString() -> wxString"""
2200 return _windows.FindDialogEvent_GetReplaceString(*args, **kwargs)
2201
2202 def GetDialog(*args, **kwargs):
2203 """GetDialog() -> FindReplaceDialog"""
2204 return _windows.FindDialogEvent_GetDialog(*args, **kwargs)
2205
2206 def SetFlags(*args, **kwargs):
2207 """SetFlags(int flags)"""
2208 return _windows.FindDialogEvent_SetFlags(*args, **kwargs)
2209
2210 def SetFindString(*args, **kwargs):
2211 """SetFindString(wxString str)"""
2212 return _windows.FindDialogEvent_SetFindString(*args, **kwargs)
2213
2214 def SetReplaceString(*args, **kwargs):
2215 """SetReplaceString(wxString str)"""
2216 return _windows.FindDialogEvent_SetReplaceString(*args, **kwargs)
2217
2218
2219 class FindDialogEventPtr(FindDialogEvent):
2220 def __init__(self, this):
2221 self.this = this
2222 if not hasattr(self,"thisown"): self.thisown = 0
2223 self.__class__ = FindDialogEvent
2224 _windows.FindDialogEvent_swigregister(FindDialogEventPtr)
2225
2226 class FindReplaceData(core.Object):
2227 """"""
2228 def __repr__(self):
2229 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2230 def __init__(self, *args, **kwargs):
2231 """__init__(int flags=0) -> FindReplaceData"""
2232 newobj = _windows.new_FindReplaceData(*args, **kwargs)
2233 self.this = newobj.this
2234 self.thisown = 1
2235 del newobj.thisown
2236 def __del__(self, destroy=_windows.delete_FindReplaceData):
2237 """__del__()"""
2238 try:
2239 if self.thisown: destroy(self)
2240 except: pass
2241
2242 def GetFindString(*args, **kwargs):
2243 """GetFindString() -> wxString"""
2244 return _windows.FindReplaceData_GetFindString(*args, **kwargs)
2245
2246 def GetReplaceString(*args, **kwargs):
2247 """GetReplaceString() -> wxString"""
2248 return _windows.FindReplaceData_GetReplaceString(*args, **kwargs)
2249
2250 def GetFlags(*args, **kwargs):
2251 """GetFlags() -> int"""
2252 return _windows.FindReplaceData_GetFlags(*args, **kwargs)
2253
2254 def SetFlags(*args, **kwargs):
2255 """SetFlags(int flags)"""
2256 return _windows.FindReplaceData_SetFlags(*args, **kwargs)
2257
2258 def SetFindString(*args, **kwargs):
2259 """SetFindString(wxString str)"""
2260 return _windows.FindReplaceData_SetFindString(*args, **kwargs)
2261
2262 def SetReplaceString(*args, **kwargs):
2263 """SetReplaceString(wxString str)"""
2264 return _windows.FindReplaceData_SetReplaceString(*args, **kwargs)
2265
2266
2267 class FindReplaceDataPtr(FindReplaceData):
2268 def __init__(self, this):
2269 self.this = this
2270 if not hasattr(self,"thisown"): self.thisown = 0
2271 self.__class__ = FindReplaceData
2272 _windows.FindReplaceData_swigregister(FindReplaceDataPtr)
2273
2274 class FindReplaceDialog(Dialog):
2275 """"""
2276 def __repr__(self):
2277 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2278 def __init__(self, *args, **kwargs):
2279 """__init__(Window parent, FindReplaceData data, wxString title,
2280 int style=0) -> FindReplaceDialog"""
2281 newobj = _windows.new_FindReplaceDialog(*args, **kwargs)
2282 self.this = newobj.this
2283 self.thisown = 1
2284 del newobj.thisown
2285 self._setOORInfo(self)
2286
2287 def Create(*args, **kwargs):
2288 """Create(Window parent, FindReplaceData data, wxString title,
2289 int style=0) -> bool"""
2290 return _windows.FindReplaceDialog_Create(*args, **kwargs)
2291
2292 def GetData(*args, **kwargs):
2293 """GetData() -> FindReplaceData"""
2294 return _windows.FindReplaceDialog_GetData(*args, **kwargs)
2295
2296 def SetData(*args, **kwargs):
2297 """SetData(FindReplaceData data)"""
2298 return _windows.FindReplaceDialog_SetData(*args, **kwargs)
2299
2300
2301 class FindReplaceDialogPtr(FindReplaceDialog):
2302 def __init__(self, this):
2303 self.this = this
2304 if not hasattr(self,"thisown"): self.thisown = 0
2305 self.__class__ = FindReplaceDialog
2306 _windows.FindReplaceDialog_swigregister(FindReplaceDialogPtr)
2307
2308 def PreFindReplaceDialog(*args, **kwargs):
2309 """PreFindReplaceDialog() -> FindReplaceDialog"""
2310 val = _windows.new_PreFindReplaceDialog(*args, **kwargs)
2311 val.thisown = 1
2312 return val
2313
2314 #---------------------------------------------------------------------------
2315
2316 IDM_WINDOWTILE = _windows.IDM_WINDOWTILE
2317 IDM_WINDOWTILEHOR = _windows.IDM_WINDOWTILEHOR
2318 IDM_WINDOWCASCADE = _windows.IDM_WINDOWCASCADE
2319 IDM_WINDOWICONS = _windows.IDM_WINDOWICONS
2320 IDM_WINDOWNEXT = _windows.IDM_WINDOWNEXT
2321 IDM_WINDOWTILEVERT = _windows.IDM_WINDOWTILEVERT
2322 FIRST_MDI_CHILD = _windows.FIRST_MDI_CHILD
2323 LAST_MDI_CHILD = _windows.LAST_MDI_CHILD
2324 class MDIParentFrame(Frame):
2325 """"""
2326 def __repr__(self):
2327 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2328 def __init__(self, *args, **kwargs):
2329 """__init__(Window parent, int id, wxString title, Point pos=DefaultPosition,
2330 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2331 wxString name=wxPyFrameNameStr) -> MDIParentFrame"""
2332 newobj = _windows.new_MDIParentFrame(*args, **kwargs)
2333 self.this = newobj.this
2334 self.thisown = 1
2335 del newobj.thisown
2336 self._setOORInfo(self)
2337
2338 def Create(*args, **kwargs):
2339 """Create(Window parent, int id, wxString title, Point pos=DefaultPosition,
2340 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2341 wxString name=wxPyFrameNameStr) -> bool"""
2342 return _windows.MDIParentFrame_Create(*args, **kwargs)
2343
2344 def ActivateNext(*args, **kwargs):
2345 """ActivateNext()"""
2346 return _windows.MDIParentFrame_ActivateNext(*args, **kwargs)
2347
2348 def ActivatePrevious(*args, **kwargs):
2349 """ActivatePrevious()"""
2350 return _windows.MDIParentFrame_ActivatePrevious(*args, **kwargs)
2351
2352 def ArrangeIcons(*args, **kwargs):
2353 """ArrangeIcons()"""
2354 return _windows.MDIParentFrame_ArrangeIcons(*args, **kwargs)
2355
2356 def Cascade(*args, **kwargs):
2357 """Cascade()"""
2358 return _windows.MDIParentFrame_Cascade(*args, **kwargs)
2359
2360 def GetActiveChild(*args, **kwargs):
2361 """GetActiveChild() -> MDIChildFrame"""
2362 return _windows.MDIParentFrame_GetActiveChild(*args, **kwargs)
2363
2364 def GetClientWindow(*args, **kwargs):
2365 """GetClientWindow() -> MDIClientWindow"""
2366 return _windows.MDIParentFrame_GetClientWindow(*args, **kwargs)
2367
2368 def GetToolBar(*args, **kwargs):
2369 """GetToolBar() -> Window"""
2370 return _windows.MDIParentFrame_GetToolBar(*args, **kwargs)
2371
2372 def Tile(*args, **kwargs):
2373 """Tile()"""
2374 return _windows.MDIParentFrame_Tile(*args, **kwargs)
2375
2376
2377 class MDIParentFramePtr(MDIParentFrame):
2378 def __init__(self, this):
2379 self.this = this
2380 if not hasattr(self,"thisown"): self.thisown = 0
2381 self.__class__ = MDIParentFrame
2382 _windows.MDIParentFrame_swigregister(MDIParentFramePtr)
2383
2384 def PreMDIParentFrame(*args, **kwargs):
2385 """PreMDIParentFrame() -> MDIParentFrame"""
2386 val = _windows.new_PreMDIParentFrame(*args, **kwargs)
2387 val.thisown = 1
2388 return val
2389
2390 class MDIChildFrame(Frame):
2391 """"""
2392 def __repr__(self):
2393 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2394 def __init__(self, *args, **kwargs):
2395 """__init__(MDIParentFrame parent, int id, wxString title, Point pos=DefaultPosition,
2396 Size size=DefaultSize,
2397 long style=DEFAULT_FRAME_STYLE, wxString name=wxPyFrameNameStr) -> MDIChildFrame"""
2398 newobj = _windows.new_MDIChildFrame(*args, **kwargs)
2399 self.this = newobj.this
2400 self.thisown = 1
2401 del newobj.thisown
2402 self._setOORInfo(self)
2403
2404 def Create(*args, **kwargs):
2405 """Create(MDIParentFrame parent, int id, wxString title, Point pos=DefaultPosition,
2406 Size size=DefaultSize,
2407 long style=DEFAULT_FRAME_STYLE, wxString name=wxPyFrameNameStr) -> bool"""
2408 return _windows.MDIChildFrame_Create(*args, **kwargs)
2409
2410 def Activate(*args, **kwargs):
2411 """Activate()"""
2412 return _windows.MDIChildFrame_Activate(*args, **kwargs)
2413
2414 def Maximize(*args, **kwargs):
2415 """Maximize(bool maximize)"""
2416 return _windows.MDIChildFrame_Maximize(*args, **kwargs)
2417
2418 def Restore(*args, **kwargs):
2419 """Restore()"""
2420 return _windows.MDIChildFrame_Restore(*args, **kwargs)
2421
2422
2423 class MDIChildFramePtr(MDIChildFrame):
2424 def __init__(self, this):
2425 self.this = this
2426 if not hasattr(self,"thisown"): self.thisown = 0
2427 self.__class__ = MDIChildFrame
2428 _windows.MDIChildFrame_swigregister(MDIChildFramePtr)
2429
2430 def PreMDIChildFrame(*args, **kwargs):
2431 """PreMDIChildFrame() -> MDIChildFrame"""
2432 val = _windows.new_PreMDIChildFrame(*args, **kwargs)
2433 val.thisown = 1
2434 return val
2435
2436 class MDIClientWindow(core.Window):
2437 """"""
2438 def __repr__(self):
2439 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2440 def __init__(self, *args, **kwargs):
2441 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
2442 newobj = _windows.new_MDIClientWindow(*args, **kwargs)
2443 self.this = newobj.this
2444 self.thisown = 1
2445 del newobj.thisown
2446 self._setOORInfo(self)
2447
2448 def Create(*args, **kwargs):
2449 """Create(MDIParentFrame parent, long style=0) -> bool"""
2450 return _windows.MDIClientWindow_Create(*args, **kwargs)
2451
2452
2453 class MDIClientWindowPtr(MDIClientWindow):
2454 def __init__(self, this):
2455 self.this = this
2456 if not hasattr(self,"thisown"): self.thisown = 0
2457 self.__class__ = MDIClientWindow
2458 _windows.MDIClientWindow_swigregister(MDIClientWindowPtr)
2459
2460 def PreMDIClientWindow(*args, **kwargs):
2461 """PreMDIClientWindow() -> MDIClientWindow"""
2462 val = _windows.new_PreMDIClientWindow(*args, **kwargs)
2463 val.thisown = 1
2464 return val
2465
2466 #---------------------------------------------------------------------------
2467
2468 class PyWindow(core.Window):
2469 """"""
2470 def __repr__(self):
2471 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2472 def __init__(self, *args, **kwargs):
2473 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2474 long style=0, wxString name=PanelNameStr) -> PyWindow"""
2475 newobj = _windows.new_PyWindow(*args, **kwargs)
2476 self.this = newobj.this
2477 self.thisown = 1
2478 del newobj.thisown
2479 self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)
2480
2481 def _setCallbackInfo(*args, **kwargs):
2482 """_setCallbackInfo(PyObject self, PyObject _class)"""
2483 return _windows.PyWindow__setCallbackInfo(*args, **kwargs)
2484
2485 def base_DoMoveWindow(*args, **kwargs):
2486 """base_DoMoveWindow(int x, int y, int width, int height)"""
2487 return _windows.PyWindow_base_DoMoveWindow(*args, **kwargs)
2488
2489 def base_DoSetSize(*args, **kwargs):
2490 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2491 return _windows.PyWindow_base_DoSetSize(*args, **kwargs)
2492
2493 def base_DoSetClientSize(*args, **kwargs):
2494 """base_DoSetClientSize(int width, int height)"""
2495 return _windows.PyWindow_base_DoSetClientSize(*args, **kwargs)
2496
2497 def base_DoSetVirtualSize(*args, **kwargs):
2498 """base_DoSetVirtualSize(int x, int y)"""
2499 return _windows.PyWindow_base_DoSetVirtualSize(*args, **kwargs)
2500
2501 def base_DoGetSize(*args, **kwargs):
2502 """base_DoGetSize(int OUTPUT, int OUTPUT)"""
2503 return _windows.PyWindow_base_DoGetSize(*args, **kwargs)
2504
2505 def base_DoGetClientSize(*args, **kwargs):
2506 """base_DoGetClientSize(int OUTPUT, int OUTPUT)"""
2507 return _windows.PyWindow_base_DoGetClientSize(*args, **kwargs)
2508
2509 def base_DoGetPosition(*args, **kwargs):
2510 """base_DoGetPosition(int OUTPUT, int OUTPUT)"""
2511 return _windows.PyWindow_base_DoGetPosition(*args, **kwargs)
2512
2513 def base_DoGetVirtualSize(*args, **kwargs):
2514 """base_DoGetVirtualSize() -> Size"""
2515 return _windows.PyWindow_base_DoGetVirtualSize(*args, **kwargs)
2516
2517 def base_DoGetBestSize(*args, **kwargs):
2518 """base_DoGetBestSize() -> Size"""
2519 return _windows.PyWindow_base_DoGetBestSize(*args, **kwargs)
2520
2521 def base_InitDialog(*args, **kwargs):
2522 """base_InitDialog()"""
2523 return _windows.PyWindow_base_InitDialog(*args, **kwargs)
2524
2525 def base_TransferDataToWindow(*args, **kwargs):
2526 """base_TransferDataToWindow() -> bool"""
2527 return _windows.PyWindow_base_TransferDataToWindow(*args, **kwargs)
2528
2529 def base_TransferDataFromWindow(*args, **kwargs):
2530 """base_TransferDataFromWindow() -> bool"""
2531 return _windows.PyWindow_base_TransferDataFromWindow(*args, **kwargs)
2532
2533 def base_Validate(*args, **kwargs):
2534 """base_Validate() -> bool"""
2535 return _windows.PyWindow_base_Validate(*args, **kwargs)
2536
2537 def base_AcceptsFocus(*args, **kwargs):
2538 """base_AcceptsFocus() -> bool"""
2539 return _windows.PyWindow_base_AcceptsFocus(*args, **kwargs)
2540
2541 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
2542 """base_AcceptsFocusFromKeyboard() -> bool"""
2543 return _windows.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs)
2544
2545 def base_GetMaxSize(*args, **kwargs):
2546 """base_GetMaxSize() -> Size"""
2547 return _windows.PyWindow_base_GetMaxSize(*args, **kwargs)
2548
2549 def base_AddChild(*args, **kwargs):
2550 """base_AddChild(Window child)"""
2551 return _windows.PyWindow_base_AddChild(*args, **kwargs)
2552
2553 def base_RemoveChild(*args, **kwargs):
2554 """base_RemoveChild(Window child)"""
2555 return _windows.PyWindow_base_RemoveChild(*args, **kwargs)
2556
2557
2558 class PyWindowPtr(PyWindow):
2559 def __init__(self, this):
2560 self.this = this
2561 if not hasattr(self,"thisown"): self.thisown = 0
2562 self.__class__ = PyWindow
2563 _windows.PyWindow_swigregister(PyWindowPtr)
2564
2565 class PyPanel(Panel):
2566 """"""
2567 def __repr__(self):
2568 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2569 def __init__(self, *args, **kwargs):
2570 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2571 long style=0, wxString name=PanelNameStr) -> PyPanel"""
2572 newobj = _windows.new_PyPanel(*args, **kwargs)
2573 self.this = newobj.this
2574 self.thisown = 1
2575 del newobj.thisown
2576 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
2577
2578 def _setCallbackInfo(*args, **kwargs):
2579 """_setCallbackInfo(PyObject self, PyObject _class)"""
2580 return _windows.PyPanel__setCallbackInfo(*args, **kwargs)
2581
2582 def base_DoMoveWindow(*args, **kwargs):
2583 """base_DoMoveWindow(int x, int y, int width, int height)"""
2584 return _windows.PyPanel_base_DoMoveWindow(*args, **kwargs)
2585
2586 def base_DoSetSize(*args, **kwargs):
2587 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2588 return _windows.PyPanel_base_DoSetSize(*args, **kwargs)
2589
2590 def base_DoSetClientSize(*args, **kwargs):
2591 """base_DoSetClientSize(int width, int height)"""
2592 return _windows.PyPanel_base_DoSetClientSize(*args, **kwargs)
2593
2594 def base_DoSetVirtualSize(*args, **kwargs):
2595 """base_DoSetVirtualSize(int x, int y)"""
2596 return _windows.PyPanel_base_DoSetVirtualSize(*args, **kwargs)
2597
2598 def base_DoGetSize(*args, **kwargs):
2599 """base_DoGetSize(int OUTPUT, int OUTPUT)"""
2600 return _windows.PyPanel_base_DoGetSize(*args, **kwargs)
2601
2602 def base_DoGetClientSize(*args, **kwargs):
2603 """base_DoGetClientSize(int OUTPUT, int OUTPUT)"""
2604 return _windows.PyPanel_base_DoGetClientSize(*args, **kwargs)
2605
2606 def base_DoGetPosition(*args, **kwargs):
2607 """base_DoGetPosition(int OUTPUT, int OUTPUT)"""
2608 return _windows.PyPanel_base_DoGetPosition(*args, **kwargs)
2609
2610 def base_DoGetVirtualSize(*args, **kwargs):
2611 """base_DoGetVirtualSize() -> Size"""
2612 return _windows.PyPanel_base_DoGetVirtualSize(*args, **kwargs)
2613
2614 def base_DoGetBestSize(*args, **kwargs):
2615 """base_DoGetBestSize() -> Size"""
2616 return _windows.PyPanel_base_DoGetBestSize(*args, **kwargs)
2617
2618 def base_InitDialog(*args, **kwargs):
2619 """base_InitDialog()"""
2620 return _windows.PyPanel_base_InitDialog(*args, **kwargs)
2621
2622 def base_TransferDataToWindow(*args, **kwargs):
2623 """base_TransferDataToWindow() -> bool"""
2624 return _windows.PyPanel_base_TransferDataToWindow(*args, **kwargs)
2625
2626 def base_TransferDataFromWindow(*args, **kwargs):
2627 """base_TransferDataFromWindow() -> bool"""
2628 return _windows.PyPanel_base_TransferDataFromWindow(*args, **kwargs)
2629
2630 def base_Validate(*args, **kwargs):
2631 """base_Validate() -> bool"""
2632 return _windows.PyPanel_base_Validate(*args, **kwargs)
2633
2634 def base_AcceptsFocus(*args, **kwargs):
2635 """base_AcceptsFocus() -> bool"""
2636 return _windows.PyPanel_base_AcceptsFocus(*args, **kwargs)
2637
2638 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
2639 """base_AcceptsFocusFromKeyboard() -> bool"""
2640 return _windows.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs)
2641
2642 def base_GetMaxSize(*args, **kwargs):
2643 """base_GetMaxSize() -> Size"""
2644 return _windows.PyPanel_base_GetMaxSize(*args, **kwargs)
2645
2646 def base_AddChild(*args, **kwargs):
2647 """base_AddChild(Window child)"""
2648 return _windows.PyPanel_base_AddChild(*args, **kwargs)
2649
2650 def base_RemoveChild(*args, **kwargs):
2651 """base_RemoveChild(Window child)"""
2652 return _windows.PyPanel_base_RemoveChild(*args, **kwargs)
2653
2654
2655 class PyPanelPtr(PyPanel):
2656 def __init__(self, this):
2657 self.this = this
2658 if not hasattr(self,"thisown"): self.thisown = 0
2659 self.__class__ = PyPanel
2660 _windows.PyPanel_swigregister(PyPanelPtr)
2661
2662 #---------------------------------------------------------------------------
2663
2664 PRINT_MODE_NONE = _windows.PRINT_MODE_NONE
2665 PRINT_MODE_PREVIEW = _windows.PRINT_MODE_PREVIEW
2666 PRINT_MODE_FILE = _windows.PRINT_MODE_FILE
2667 PRINT_MODE_PRINTER = _windows.PRINT_MODE_PRINTER
2668 class PrintData(core.Object):
2669 """"""
2670 def __repr__(self):
2671 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2672 def __init__(self, *args, **kwargs):
2673 """__init__() -> PrintData"""
2674 newobj = _windows.new_PrintData(*args, **kwargs)
2675 self.this = newobj.this
2676 self.thisown = 1
2677 del newobj.thisown
2678 def __del__(self, destroy=_windows.delete_PrintData):
2679 """__del__()"""
2680 try:
2681 if self.thisown: destroy(self)
2682 except: pass
2683
2684 def GetNoCopies(*args, **kwargs):
2685 """GetNoCopies() -> int"""
2686 return _windows.PrintData_GetNoCopies(*args, **kwargs)
2687
2688 def GetCollate(*args, **kwargs):
2689 """GetCollate() -> bool"""
2690 return _windows.PrintData_GetCollate(*args, **kwargs)
2691
2692 def GetOrientation(*args, **kwargs):
2693 """GetOrientation() -> int"""
2694 return _windows.PrintData_GetOrientation(*args, **kwargs)
2695
2696 def Ok(*args, **kwargs):
2697 """Ok() -> bool"""
2698 return _windows.PrintData_Ok(*args, **kwargs)
2699
2700 def GetPrinterName(*args, **kwargs):
2701 """GetPrinterName() -> wxString"""
2702 return _windows.PrintData_GetPrinterName(*args, **kwargs)
2703
2704 def GetColour(*args, **kwargs):
2705 """GetColour() -> bool"""
2706 return _windows.PrintData_GetColour(*args, **kwargs)
2707
2708 def GetDuplex(*args, **kwargs):
2709 """GetDuplex() -> wxDuplexMode"""
2710 return _windows.PrintData_GetDuplex(*args, **kwargs)
2711
2712 def GetPaperId(*args, **kwargs):
2713 """GetPaperId() -> wxPaperSize"""
2714 return _windows.PrintData_GetPaperId(*args, **kwargs)
2715
2716 def GetPaperSize(*args, **kwargs):
2717 """GetPaperSize() -> Size"""
2718 return _windows.PrintData_GetPaperSize(*args, **kwargs)
2719
2720 def GetQuality(*args, **kwargs):
2721 """GetQuality() -> wxPrintQuality"""
2722 return _windows.PrintData_GetQuality(*args, **kwargs)
2723
2724 def SetNoCopies(*args, **kwargs):
2725 """SetNoCopies(int v)"""
2726 return _windows.PrintData_SetNoCopies(*args, **kwargs)
2727
2728 def SetCollate(*args, **kwargs):
2729 """SetCollate(bool flag)"""
2730 return _windows.PrintData_SetCollate(*args, **kwargs)
2731
2732 def SetOrientation(*args, **kwargs):
2733 """SetOrientation(int orient)"""
2734 return _windows.PrintData_SetOrientation(*args, **kwargs)
2735
2736 def SetPrinterName(*args, **kwargs):
2737 """SetPrinterName(wxString name)"""
2738 return _windows.PrintData_SetPrinterName(*args, **kwargs)
2739
2740 def SetColour(*args, **kwargs):
2741 """SetColour(bool colour)"""
2742 return _windows.PrintData_SetColour(*args, **kwargs)
2743
2744 def SetDuplex(*args, **kwargs):
2745 """SetDuplex(wxDuplexMode duplex)"""
2746 return _windows.PrintData_SetDuplex(*args, **kwargs)
2747
2748 def SetPaperId(*args, **kwargs):
2749 """SetPaperId(wxPaperSize sizeId)"""
2750 return _windows.PrintData_SetPaperId(*args, **kwargs)
2751
2752 def SetPaperSize(*args, **kwargs):
2753 """SetPaperSize(Size sz)"""
2754 return _windows.PrintData_SetPaperSize(*args, **kwargs)
2755
2756 def SetQuality(*args, **kwargs):
2757 """SetQuality(wxPrintQuality quality)"""
2758 return _windows.PrintData_SetQuality(*args, **kwargs)
2759
2760 def GetPrinterCommand(*args, **kwargs):
2761 """GetPrinterCommand() -> wxString"""
2762 return _windows.PrintData_GetPrinterCommand(*args, **kwargs)
2763
2764 def GetPrinterOptions(*args, **kwargs):
2765 """GetPrinterOptions() -> wxString"""
2766 return _windows.PrintData_GetPrinterOptions(*args, **kwargs)
2767
2768 def GetPreviewCommand(*args, **kwargs):
2769 """GetPreviewCommand() -> wxString"""
2770 return _windows.PrintData_GetPreviewCommand(*args, **kwargs)
2771
2772 def GetFilename(*args, **kwargs):
2773 """GetFilename() -> wxString"""
2774 return _windows.PrintData_GetFilename(*args, **kwargs)
2775
2776 def GetFontMetricPath(*args, **kwargs):
2777 """GetFontMetricPath() -> wxString"""
2778 return _windows.PrintData_GetFontMetricPath(*args, **kwargs)
2779
2780 def GetPrinterScaleX(*args, **kwargs):
2781 """GetPrinterScaleX() -> double"""
2782 return _windows.PrintData_GetPrinterScaleX(*args, **kwargs)
2783
2784 def GetPrinterScaleY(*args, **kwargs):
2785 """GetPrinterScaleY() -> double"""
2786 return _windows.PrintData_GetPrinterScaleY(*args, **kwargs)
2787
2788 def GetPrinterTranslateX(*args, **kwargs):
2789 """GetPrinterTranslateX() -> long"""
2790 return _windows.PrintData_GetPrinterTranslateX(*args, **kwargs)
2791
2792 def GetPrinterTranslateY(*args, **kwargs):
2793 """GetPrinterTranslateY() -> long"""
2794 return _windows.PrintData_GetPrinterTranslateY(*args, **kwargs)
2795
2796 def GetPrintMode(*args, **kwargs):
2797 """GetPrintMode() -> wxPrintMode"""
2798 return _windows.PrintData_GetPrintMode(*args, **kwargs)
2799
2800 def SetPrinterCommand(*args, **kwargs):
2801 """SetPrinterCommand(wxString command)"""
2802 return _windows.PrintData_SetPrinterCommand(*args, **kwargs)
2803
2804 def SetPrinterOptions(*args, **kwargs):
2805 """SetPrinterOptions(wxString options)"""
2806 return _windows.PrintData_SetPrinterOptions(*args, **kwargs)
2807
2808 def SetPreviewCommand(*args, **kwargs):
2809 """SetPreviewCommand(wxString command)"""
2810 return _windows.PrintData_SetPreviewCommand(*args, **kwargs)
2811
2812 def SetFilename(*args, **kwargs):
2813 """SetFilename(wxString filename)"""
2814 return _windows.PrintData_SetFilename(*args, **kwargs)
2815
2816 def SetFontMetricPath(*args, **kwargs):
2817 """SetFontMetricPath(wxString path)"""
2818 return _windows.PrintData_SetFontMetricPath(*args, **kwargs)
2819
2820 def SetPrinterScaleX(*args, **kwargs):
2821 """SetPrinterScaleX(double x)"""
2822 return _windows.PrintData_SetPrinterScaleX(*args, **kwargs)
2823
2824 def SetPrinterScaleY(*args, **kwargs):
2825 """SetPrinterScaleY(double y)"""
2826 return _windows.PrintData_SetPrinterScaleY(*args, **kwargs)
2827
2828 def SetPrinterScaling(*args, **kwargs):
2829 """SetPrinterScaling(double x, double y)"""
2830 return _windows.PrintData_SetPrinterScaling(*args, **kwargs)
2831
2832 def SetPrinterTranslateX(*args, **kwargs):
2833 """SetPrinterTranslateX(long x)"""
2834 return _windows.PrintData_SetPrinterTranslateX(*args, **kwargs)
2835
2836 def SetPrinterTranslateY(*args, **kwargs):
2837 """SetPrinterTranslateY(long y)"""
2838 return _windows.PrintData_SetPrinterTranslateY(*args, **kwargs)
2839
2840 def SetPrinterTranslation(*args, **kwargs):
2841 """SetPrinterTranslation(long x, long y)"""
2842 return _windows.PrintData_SetPrinterTranslation(*args, **kwargs)
2843
2844 def SetPrintMode(*args, **kwargs):
2845 """SetPrintMode(wxPrintMode printMode)"""
2846 return _windows.PrintData_SetPrintMode(*args, **kwargs)
2847
2848 def __nonzero__(self): return self.Ok()
2849
2850 class PrintDataPtr(PrintData):
2851 def __init__(self, this):
2852 self.this = this
2853 if not hasattr(self,"thisown"): self.thisown = 0
2854 self.__class__ = PrintData
2855 _windows.PrintData_swigregister(PrintDataPtr)
2856
2857 class PageSetupDialogData(core.Object):
2858 """"""
2859 def __repr__(self):
2860 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2861 def __init__(self, *args, **kwargs):
2862 """__init__() -> PageSetupDialogData"""
2863 newobj = _windows.new_PageSetupDialogData(*args, **kwargs)
2864 self.this = newobj.this
2865 self.thisown = 1
2866 del newobj.thisown
2867 def __del__(self, destroy=_windows.delete_PageSetupDialogData):
2868 """__del__()"""
2869 try:
2870 if self.thisown: destroy(self)
2871 except: pass
2872
2873 def EnableHelp(*args, **kwargs):
2874 """EnableHelp(bool flag)"""
2875 return _windows.PageSetupDialogData_EnableHelp(*args, **kwargs)
2876
2877 def EnableMargins(*args, **kwargs):
2878 """EnableMargins(bool flag)"""
2879 return _windows.PageSetupDialogData_EnableMargins(*args, **kwargs)
2880
2881 def EnableOrientation(*args, **kwargs):
2882 """EnableOrientation(bool flag)"""
2883 return _windows.PageSetupDialogData_EnableOrientation(*args, **kwargs)
2884
2885 def EnablePaper(*args, **kwargs):
2886 """EnablePaper(bool flag)"""
2887 return _windows.PageSetupDialogData_EnablePaper(*args, **kwargs)
2888
2889 def EnablePrinter(*args, **kwargs):
2890 """EnablePrinter(bool flag)"""
2891 return _windows.PageSetupDialogData_EnablePrinter(*args, **kwargs)
2892
2893 def GetDefaultMinMargins(*args, **kwargs):
2894 """GetDefaultMinMargins() -> bool"""
2895 return _windows.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs)
2896
2897 def GetEnableMargins(*args, **kwargs):
2898 """GetEnableMargins() -> bool"""
2899 return _windows.PageSetupDialogData_GetEnableMargins(*args, **kwargs)
2900
2901 def GetEnableOrientation(*args, **kwargs):
2902 """GetEnableOrientation() -> bool"""
2903 return _windows.PageSetupDialogData_GetEnableOrientation(*args, **kwargs)
2904
2905 def GetEnablePaper(*args, **kwargs):
2906 """GetEnablePaper() -> bool"""
2907 return _windows.PageSetupDialogData_GetEnablePaper(*args, **kwargs)
2908
2909 def GetEnablePrinter(*args, **kwargs):
2910 """GetEnablePrinter() -> bool"""
2911 return _windows.PageSetupDialogData_GetEnablePrinter(*args, **kwargs)
2912
2913 def GetEnableHelp(*args, **kwargs):
2914 """GetEnableHelp() -> bool"""
2915 return _windows.PageSetupDialogData_GetEnableHelp(*args, **kwargs)
2916
2917 def GetDefaultInfo(*args, **kwargs):
2918 """GetDefaultInfo() -> bool"""
2919 return _windows.PageSetupDialogData_GetDefaultInfo(*args, **kwargs)
2920
2921 def GetMarginTopLeft(*args, **kwargs):
2922 """GetMarginTopLeft() -> Point"""
2923 return _windows.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs)
2924
2925 def GetMarginBottomRight(*args, **kwargs):
2926 """GetMarginBottomRight() -> Point"""
2927 return _windows.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs)
2928
2929 def GetMinMarginTopLeft(*args, **kwargs):
2930 """GetMinMarginTopLeft() -> Point"""
2931 return _windows.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs)
2932
2933 def GetMinMarginBottomRight(*args, **kwargs):
2934 """GetMinMarginBottomRight() -> Point"""
2935 return _windows.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs)
2936
2937 def GetPaperId(*args, **kwargs):
2938 """GetPaperId() -> wxPaperSize"""
2939 return _windows.PageSetupDialogData_GetPaperId(*args, **kwargs)
2940
2941 def GetPaperSize(*args, **kwargs):
2942 """GetPaperSize() -> Size"""
2943 return _windows.PageSetupDialogData_GetPaperSize(*args, **kwargs)
2944
2945 def GetPrintData(*args, **kwargs):
2946 """GetPrintData() -> PrintData"""
2947 return _windows.PageSetupDialogData_GetPrintData(*args, **kwargs)
2948
2949 def Ok(*args, **kwargs):
2950 """Ok() -> bool"""
2951 return _windows.PageSetupDialogData_Ok(*args, **kwargs)
2952
2953 def SetDefaultInfo(*args, **kwargs):
2954 """SetDefaultInfo(bool flag)"""
2955 return _windows.PageSetupDialogData_SetDefaultInfo(*args, **kwargs)
2956
2957 def SetDefaultMinMargins(*args, **kwargs):
2958 """SetDefaultMinMargins(bool flag)"""
2959 return _windows.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs)
2960
2961 def SetMarginTopLeft(*args, **kwargs):
2962 """SetMarginTopLeft(Point pt)"""
2963 return _windows.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs)
2964
2965 def SetMarginBottomRight(*args, **kwargs):
2966 """SetMarginBottomRight(Point pt)"""
2967 return _windows.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs)
2968
2969 def SetMinMarginTopLeft(*args, **kwargs):
2970 """SetMinMarginTopLeft(Point pt)"""
2971 return _windows.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs)
2972
2973 def SetMinMarginBottomRight(*args, **kwargs):
2974 """SetMinMarginBottomRight(Point pt)"""
2975 return _windows.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs)
2976
2977 def SetPaperId(*args, **kwargs):
2978 """SetPaperId(wxPaperSize id)"""
2979 return _windows.PageSetupDialogData_SetPaperId(*args, **kwargs)
2980
2981 def SetPaperSize(*args, **kwargs):
2982 """SetPaperSize(Size size)"""
2983 return _windows.PageSetupDialogData_SetPaperSize(*args, **kwargs)
2984
2985 def SetPrintData(*args, **kwargs):
2986 """SetPrintData(PrintData printData)"""
2987 return _windows.PageSetupDialogData_SetPrintData(*args, **kwargs)
2988
2989 def __nonzero__(self): return self.Ok()
2990
2991 class PageSetupDialogDataPtr(PageSetupDialogData):
2992 def __init__(self, this):
2993 self.this = this
2994 if not hasattr(self,"thisown"): self.thisown = 0
2995 self.__class__ = PageSetupDialogData
2996 _windows.PageSetupDialogData_swigregister(PageSetupDialogDataPtr)
2997
2998 class PageSetupDialog(Dialog):
2999 """"""
3000 def __repr__(self):
3001 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3002 def __init__(self, *args, **kwargs):
3003 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3004 newobj = _windows.new_PageSetupDialog(*args, **kwargs)
3005 self.this = newobj.this
3006 self.thisown = 1
3007 del newobj.thisown
3008 self._setOORInfo(self)
3009
3010 def GetPageSetupData(*args, **kwargs):
3011 """GetPageSetupData() -> PageSetupDialogData"""
3012 return _windows.PageSetupDialog_GetPageSetupData(*args, **kwargs)
3013
3014 def ShowModal(*args, **kwargs):
3015 """ShowModal() -> int"""
3016 return _windows.PageSetupDialog_ShowModal(*args, **kwargs)
3017
3018
3019 class PageSetupDialogPtr(PageSetupDialog):
3020 def __init__(self, this):
3021 self.this = this
3022 if not hasattr(self,"thisown"): self.thisown = 0
3023 self.__class__ = PageSetupDialog
3024 _windows.PageSetupDialog_swigregister(PageSetupDialogPtr)
3025
3026 class PrintDialogData(core.Object):
3027 """"""
3028 def __repr__(self):
3029 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3030 def __init__(self, *args, **kwargs):
3031 """__init__() -> PrintDialogData"""
3032 newobj = _windows.new_PrintDialogData(*args, **kwargs)
3033 self.this = newobj.this
3034 self.thisown = 1
3035 del newobj.thisown
3036 def __del__(self, destroy=_windows.delete_PrintDialogData):
3037 """__del__()"""
3038 try:
3039 if self.thisown: destroy(self)
3040 except: pass
3041
3042 def GetFromPage(*args, **kwargs):
3043 """GetFromPage() -> int"""
3044 return _windows.PrintDialogData_GetFromPage(*args, **kwargs)
3045
3046 def GetToPage(*args, **kwargs):
3047 """GetToPage() -> int"""
3048 return _windows.PrintDialogData_GetToPage(*args, **kwargs)
3049
3050 def GetMinPage(*args, **kwargs):
3051 """GetMinPage() -> int"""
3052 return _windows.PrintDialogData_GetMinPage(*args, **kwargs)
3053
3054 def GetMaxPage(*args, **kwargs):
3055 """GetMaxPage() -> int"""
3056 return _windows.PrintDialogData_GetMaxPage(*args, **kwargs)
3057
3058 def GetNoCopies(*args, **kwargs):
3059 """GetNoCopies() -> int"""
3060 return _windows.PrintDialogData_GetNoCopies(*args, **kwargs)
3061
3062 def GetAllPages(*args, **kwargs):
3063 """GetAllPages() -> bool"""
3064 return _windows.PrintDialogData_GetAllPages(*args, **kwargs)
3065
3066 def GetSelection(*args, **kwargs):
3067 """GetSelection() -> bool"""
3068 return _windows.PrintDialogData_GetSelection(*args, **kwargs)
3069
3070 def GetCollate(*args, **kwargs):
3071 """GetCollate() -> bool"""
3072 return _windows.PrintDialogData_GetCollate(*args, **kwargs)
3073
3074 def GetPrintToFile(*args, **kwargs):
3075 """GetPrintToFile() -> bool"""
3076 return _windows.PrintDialogData_GetPrintToFile(*args, **kwargs)
3077
3078 def GetSetupDialog(*args, **kwargs):
3079 """GetSetupDialog() -> bool"""
3080 return _windows.PrintDialogData_GetSetupDialog(*args, **kwargs)
3081
3082 def SetFromPage(*args, **kwargs):
3083 """SetFromPage(int v)"""
3084 return _windows.PrintDialogData_SetFromPage(*args, **kwargs)
3085
3086 def SetToPage(*args, **kwargs):
3087 """SetToPage(int v)"""
3088 return _windows.PrintDialogData_SetToPage(*args, **kwargs)
3089
3090 def SetMinPage(*args, **kwargs):
3091 """SetMinPage(int v)"""
3092 return _windows.PrintDialogData_SetMinPage(*args, **kwargs)
3093
3094 def SetMaxPage(*args, **kwargs):
3095 """SetMaxPage(int v)"""
3096 return _windows.PrintDialogData_SetMaxPage(*args, **kwargs)
3097
3098 def SetNoCopies(*args, **kwargs):
3099 """SetNoCopies(int v)"""
3100 return _windows.PrintDialogData_SetNoCopies(*args, **kwargs)
3101
3102 def SetAllPages(*args, **kwargs):
3103 """SetAllPages(bool flag)"""
3104 return _windows.PrintDialogData_SetAllPages(*args, **kwargs)
3105
3106 def SetSelection(*args, **kwargs):
3107 """SetSelection(bool flag)"""
3108 return _windows.PrintDialogData_SetSelection(*args, **kwargs)
3109
3110 def SetCollate(*args, **kwargs):
3111 """SetCollate(bool flag)"""
3112 return _windows.PrintDialogData_SetCollate(*args, **kwargs)
3113
3114 def SetPrintToFile(*args, **kwargs):
3115 """SetPrintToFile(bool flag)"""
3116 return _windows.PrintDialogData_SetPrintToFile(*args, **kwargs)
3117
3118 def SetSetupDialog(*args, **kwargs):
3119 """SetSetupDialog(bool flag)"""
3120 return _windows.PrintDialogData_SetSetupDialog(*args, **kwargs)
3121
3122 def EnablePrintToFile(*args, **kwargs):
3123 """EnablePrintToFile(bool flag)"""
3124 return _windows.PrintDialogData_EnablePrintToFile(*args, **kwargs)
3125
3126 def EnableSelection(*args, **kwargs):
3127 """EnableSelection(bool flag)"""
3128 return _windows.PrintDialogData_EnableSelection(*args, **kwargs)
3129
3130 def EnablePageNumbers(*args, **kwargs):
3131 """EnablePageNumbers(bool flag)"""
3132 return _windows.PrintDialogData_EnablePageNumbers(*args, **kwargs)
3133
3134 def EnableHelp(*args, **kwargs):
3135 """EnableHelp(bool flag)"""
3136 return _windows.PrintDialogData_EnableHelp(*args, **kwargs)
3137
3138 def GetEnablePrintToFile(*args, **kwargs):
3139 """GetEnablePrintToFile() -> bool"""
3140 return _windows.PrintDialogData_GetEnablePrintToFile(*args, **kwargs)
3141
3142 def GetEnableSelection(*args, **kwargs):
3143 """GetEnableSelection() -> bool"""
3144 return _windows.PrintDialogData_GetEnableSelection(*args, **kwargs)
3145
3146 def GetEnablePageNumbers(*args, **kwargs):
3147 """GetEnablePageNumbers() -> bool"""
3148 return _windows.PrintDialogData_GetEnablePageNumbers(*args, **kwargs)
3149
3150 def GetEnableHelp(*args, **kwargs):
3151 """GetEnableHelp() -> bool"""
3152 return _windows.PrintDialogData_GetEnableHelp(*args, **kwargs)
3153
3154 def Ok(*args, **kwargs):
3155 """Ok() -> bool"""
3156 return _windows.PrintDialogData_Ok(*args, **kwargs)
3157
3158 def GetPrintData(*args, **kwargs):
3159 """GetPrintData() -> PrintData"""
3160 return _windows.PrintDialogData_GetPrintData(*args, **kwargs)
3161
3162 def SetPrintData(*args, **kwargs):
3163 """SetPrintData(PrintData printData)"""
3164 return _windows.PrintDialogData_SetPrintData(*args, **kwargs)
3165
3166 def __nonzero__(self): return self.Ok()
3167
3168 class PrintDialogDataPtr(PrintDialogData):
3169 def __init__(self, this):
3170 self.this = this
3171 if not hasattr(self,"thisown"): self.thisown = 0
3172 self.__class__ = PrintDialogData
3173 _windows.PrintDialogData_swigregister(PrintDialogDataPtr)
3174
3175 class PrintDialog(Dialog):
3176 """"""
3177 def __repr__(self):
3178 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3179 def __init__(self, *args, **kwargs):
3180 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
3181 newobj = _windows.new_PrintDialog(*args, **kwargs)
3182 self.this = newobj.this
3183 self.thisown = 1
3184 del newobj.thisown
3185 self._setOORInfo(self)
3186
3187 def GetPrintDialogData(*args, **kwargs):
3188 """GetPrintDialogData() -> PrintDialogData"""
3189 return _windows.PrintDialog_GetPrintDialogData(*args, **kwargs)
3190
3191 def GetPrintDC(*args, **kwargs):
3192 """GetPrintDC() -> wxDC"""
3193 return _windows.PrintDialog_GetPrintDC(*args, **kwargs)
3194
3195 def ShowModal(*args, **kwargs):
3196 """ShowModal() -> int"""
3197 return _windows.PrintDialog_ShowModal(*args, **kwargs)
3198
3199
3200 class PrintDialogPtr(PrintDialog):
3201 def __init__(self, this):
3202 self.this = this
3203 if not hasattr(self,"thisown"): self.thisown = 0
3204 self.__class__ = PrintDialog
3205 _windows.PrintDialog_swigregister(PrintDialogPtr)
3206
3207 PRINTER_NO_ERROR = _windows.PRINTER_NO_ERROR
3208 PRINTER_CANCELLED = _windows.PRINTER_CANCELLED
3209 PRINTER_ERROR = _windows.PRINTER_ERROR
3210 class Printer(core.Object):
3211 """"""
3212 def __repr__(self):
3213 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3214 def __init__(self, *args, **kwargs):
3215 """__init__(PrintDialogData data=None) -> Printer"""
3216 newobj = _windows.new_Printer(*args, **kwargs)
3217 self.this = newobj.this
3218 self.thisown = 1
3219 del newobj.thisown
3220 def __del__(self, destroy=_windows.delete_Printer):
3221 """__del__()"""
3222 try:
3223 if self.thisown: destroy(self)
3224 except: pass
3225
3226 def CreateAbortWindow(*args, **kwargs):
3227 """CreateAbortWindow(Window parent, Printout printout)"""
3228 return _windows.Printer_CreateAbortWindow(*args, **kwargs)
3229
3230 def GetPrintDialogData(*args, **kwargs):
3231 """GetPrintDialogData() -> PrintDialogData"""
3232 return _windows.Printer_GetPrintDialogData(*args, **kwargs)
3233
3234 def Print(*args, **kwargs):
3235 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
3236 return _windows.Printer_Print(*args, **kwargs)
3237
3238 def PrintDialog(*args, **kwargs):
3239 """PrintDialog(Window parent) -> wxDC"""
3240 return _windows.Printer_PrintDialog(*args, **kwargs)
3241
3242 def ReportError(*args, **kwargs):
3243 """ReportError(Window parent, Printout printout, wxString message)"""
3244 return _windows.Printer_ReportError(*args, **kwargs)
3245
3246 def Setup(*args, **kwargs):
3247 """Setup(Window parent) -> bool"""
3248 return _windows.Printer_Setup(*args, **kwargs)
3249
3250 def GetAbort(*args, **kwargs):
3251 """GetAbort() -> bool"""
3252 return _windows.Printer_GetAbort(*args, **kwargs)
3253
3254 def GetLastError(*args, **kwargs):
3255 """Printer.GetLastError() -> wxPrinterError"""
3256 return _windows.Printer_GetLastError(*args, **kwargs)
3257
3258 GetLastError = staticmethod(GetLastError)
3259
3260 class PrinterPtr(Printer):
3261 def __init__(self, this):
3262 self.this = this
3263 if not hasattr(self,"thisown"): self.thisown = 0
3264 self.__class__ = Printer
3265 _windows.Printer_swigregister(PrinterPtr)
3266
3267 def Printer_GetLastError(*args, **kwargs):
3268 """Printer_GetLastError() -> wxPrinterError"""
3269 return _windows.Printer_GetLastError(*args, **kwargs)
3270
3271 class Printout(core.Object):
3272 """"""
3273 def __repr__(self):
3274 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3275 def __init__(self, *args, **kwargs):
3276 """__init__(wxString title=wxPyPrintoutTitleStr) -> Printout"""
3277 newobj = _windows.new_Printout(*args, **kwargs)
3278 self.this = newobj.this
3279 self.thisown = 1
3280 del newobj.thisown
3281 self._setCallbackInfo(self, Printout)
3282
3283 def _setCallbackInfo(*args, **kwargs):
3284 """_setCallbackInfo(PyObject self, PyObject _class)"""
3285 return _windows.Printout__setCallbackInfo(*args, **kwargs)
3286
3287 def GetTitle(*args, **kwargs):
3288 """GetTitle() -> wxString"""
3289 return _windows.Printout_GetTitle(*args, **kwargs)
3290
3291 def GetDC(*args, **kwargs):
3292 """GetDC() -> wxDC"""
3293 return _windows.Printout_GetDC(*args, **kwargs)
3294
3295 def SetDC(*args, **kwargs):
3296 """SetDC(wxDC dc)"""
3297 return _windows.Printout_SetDC(*args, **kwargs)
3298
3299 def GetPageSizePixels(*args, **kwargs):
3300 """GetPageSizePixels(int OUTPUT, int OUTPUT)"""
3301 return _windows.Printout_GetPageSizePixels(*args, **kwargs)
3302
3303 def SetPageSizePixels(*args, **kwargs):
3304 """SetPageSizePixels(int w, int h)"""
3305 return _windows.Printout_SetPageSizePixels(*args, **kwargs)
3306
3307 def SetPageSizeMM(*args, **kwargs):
3308 """SetPageSizeMM(int w, int h)"""
3309 return _windows.Printout_SetPageSizeMM(*args, **kwargs)
3310
3311 def GetPageSizeMM(*args, **kwargs):
3312 """GetPageSizeMM(int OUTPUT, int OUTPUT)"""
3313 return _windows.Printout_GetPageSizeMM(*args, **kwargs)
3314
3315 def SetPPIScreen(*args, **kwargs):
3316 """SetPPIScreen(int x, int y)"""
3317 return _windows.Printout_SetPPIScreen(*args, **kwargs)
3318
3319 def GetPPIScreen(*args, **kwargs):
3320 """GetPPIScreen(int OUTPUT, int OUTPUT)"""
3321 return _windows.Printout_GetPPIScreen(*args, **kwargs)
3322
3323 def SetPPIPrinter(*args, **kwargs):
3324 """SetPPIPrinter(int x, int y)"""
3325 return _windows.Printout_SetPPIPrinter(*args, **kwargs)
3326
3327 def GetPPIPrinter(*args, **kwargs):
3328 """GetPPIPrinter(int OUTPUT, int OUTPUT)"""
3329 return _windows.Printout_GetPPIPrinter(*args, **kwargs)
3330
3331 def IsPreview(*args, **kwargs):
3332 """IsPreview() -> bool"""
3333 return _windows.Printout_IsPreview(*args, **kwargs)
3334
3335 def SetIsPreview(*args, **kwargs):
3336 """SetIsPreview(bool p)"""
3337 return _windows.Printout_SetIsPreview(*args, **kwargs)
3338
3339 def base_OnBeginDocument(*args, **kwargs):
3340 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
3341 return _windows.Printout_base_OnBeginDocument(*args, **kwargs)
3342
3343 def base_OnEndDocument(*args, **kwargs):
3344 """base_OnEndDocument()"""
3345 return _windows.Printout_base_OnEndDocument(*args, **kwargs)
3346
3347 def base_OnBeginPrinting(*args, **kwargs):
3348 """base_OnBeginPrinting()"""
3349 return _windows.Printout_base_OnBeginPrinting(*args, **kwargs)
3350
3351 def base_OnEndPrinting(*args, **kwargs):
3352 """base_OnEndPrinting()"""
3353 return _windows.Printout_base_OnEndPrinting(*args, **kwargs)
3354
3355 def base_OnPreparePrinting(*args, **kwargs):
3356 """base_OnPreparePrinting()"""
3357 return _windows.Printout_base_OnPreparePrinting(*args, **kwargs)
3358
3359 def base_GetPageInfo(*args, **kwargs):
3360 """base_GetPageInfo(int OUTPUT, int OUTPUT, int OUTPUT, int OUTPUT)"""
3361 return _windows.Printout_base_GetPageInfo(*args, **kwargs)
3362
3363 def base_HasPage(*args, **kwargs):
3364 """base_HasPage(int page) -> bool"""
3365 return _windows.Printout_base_HasPage(*args, **kwargs)
3366
3367
3368 class PrintoutPtr(Printout):
3369 def __init__(self, this):
3370 self.this = this
3371 if not hasattr(self,"thisown"): self.thisown = 0
3372 self.__class__ = Printout
3373 _windows.Printout_swigregister(PrintoutPtr)
3374
3375 class PreviewCanvas(ScrolledWindow):
3376 """"""
3377 def __repr__(self):
3378 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3379 def __init__(self, *args, **kwargs):
3380 """__init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
3381 Size size=DefaultSize, long style=0,
3382 wxString name=wxPyPreviewCanvasNameStr) -> PreviewCanvas"""
3383 newobj = _windows.new_PreviewCanvas(*args, **kwargs)
3384 self.this = newobj.this
3385 self.thisown = 1
3386 del newobj.thisown
3387 self._self._setOORInfo(self)
3388
3389
3390 class PreviewCanvasPtr(PreviewCanvas):
3391 def __init__(self, this):
3392 self.this = this
3393 if not hasattr(self,"thisown"): self.thisown = 0
3394 self.__class__ = PreviewCanvas
3395 _windows.PreviewCanvas_swigregister(PreviewCanvasPtr)
3396
3397 class PreviewFrame(Frame):
3398 """"""
3399 def __repr__(self):
3400 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3401 def __init__(self, *args, **kwargs):
3402 """__init__(PrintPreview preview, Frame parent, wxString title,
3403 Point pos=DefaultPosition, Size size=DefaultSize,
3404 long style=DEFAULT_FRAME_STYLE, wxString name=wxPyFrameNameStr) -> PreviewFrame"""
3405 newobj = _windows.new_PreviewFrame(*args, **kwargs)
3406 self.this = newobj.this
3407 self.thisown = 1
3408 del newobj.thisown
3409 self._self._setOORInfo(self)
3410
3411 def Initialize(*args, **kwargs):
3412 """Initialize()"""
3413 return _windows.PreviewFrame_Initialize(*args, **kwargs)
3414
3415 def CreateControlBar(*args, **kwargs):
3416 """CreateControlBar()"""
3417 return _windows.PreviewFrame_CreateControlBar(*args, **kwargs)
3418
3419 def CreateCanvas(*args, **kwargs):
3420 """CreateCanvas()"""
3421 return _windows.PreviewFrame_CreateCanvas(*args, **kwargs)
3422
3423 def GetControlBar(*args, **kwargs):
3424 """GetControlBar() -> PreviewControlBar"""
3425 return _windows.PreviewFrame_GetControlBar(*args, **kwargs)
3426
3427
3428 class PreviewFramePtr(PreviewFrame):
3429 def __init__(self, this):
3430 self.this = this
3431 if not hasattr(self,"thisown"): self.thisown = 0
3432 self.__class__ = PreviewFrame
3433 _windows.PreviewFrame_swigregister(PreviewFramePtr)
3434
3435 PREVIEW_PRINT = _windows.PREVIEW_PRINT
3436 PREVIEW_PREVIOUS = _windows.PREVIEW_PREVIOUS
3437 PREVIEW_NEXT = _windows.PREVIEW_NEXT
3438 PREVIEW_ZOOM = _windows.PREVIEW_ZOOM
3439 PREVIEW_FIRST = _windows.PREVIEW_FIRST
3440 PREVIEW_LAST = _windows.PREVIEW_LAST
3441 PREVIEW_GOTO = _windows.PREVIEW_GOTO
3442 PREVIEW_DEFAULT = _windows.PREVIEW_DEFAULT
3443 ID_PREVIEW_CLOSE = _windows.ID_PREVIEW_CLOSE
3444 ID_PREVIEW_NEXT = _windows.ID_PREVIEW_NEXT
3445 ID_PREVIEW_PREVIOUS = _windows.ID_PREVIEW_PREVIOUS
3446 ID_PREVIEW_PRINT = _windows.ID_PREVIEW_PRINT
3447 ID_PREVIEW_ZOOM = _windows.ID_PREVIEW_ZOOM
3448 ID_PREVIEW_FIRST = _windows.ID_PREVIEW_FIRST
3449 ID_PREVIEW_LAST = _windows.ID_PREVIEW_LAST
3450 ID_PREVIEW_GOTO = _windows.ID_PREVIEW_GOTO
3451 class PreviewControlBar(Panel):
3452 """"""
3453 def __repr__(self):
3454 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3455 def __init__(self, *args, **kwargs):
3456 """__init__(PrintPreview preview, long buttons, Window parent,
3457 Point pos=DefaultPosition, Size size=DefaultSize,
3458 long style=TAB_TRAVERSAL, wxString name=PanelNameStr) -> PreviewControlBar"""
3459 newobj = _windows.new_PreviewControlBar(*args, **kwargs)
3460 self.this = newobj.this
3461 self.thisown = 1
3462 del newobj.thisown
3463 self._self._setOORInfo(self)
3464
3465 def GetZoomControl(*args, **kwargs):
3466 """GetZoomControl() -> int"""
3467 return _windows.PreviewControlBar_GetZoomControl(*args, **kwargs)
3468
3469 def SetZoomControl(*args, **kwargs):
3470 """SetZoomControl(int zoom)"""
3471 return _windows.PreviewControlBar_SetZoomControl(*args, **kwargs)
3472
3473 def GetPrintPreview(*args, **kwargs):
3474 """GetPrintPreview() -> PrintPreview"""
3475 return _windows.PreviewControlBar_GetPrintPreview(*args, **kwargs)
3476
3477 def OnNext(*args, **kwargs):
3478 """OnNext()"""
3479 return _windows.PreviewControlBar_OnNext(*args, **kwargs)
3480
3481 def OnPrevious(*args, **kwargs):
3482 """OnPrevious()"""
3483 return _windows.PreviewControlBar_OnPrevious(*args, **kwargs)
3484
3485 def OnFirst(*args, **kwargs):
3486 """OnFirst()"""
3487 return _windows.PreviewControlBar_OnFirst(*args, **kwargs)
3488
3489 def OnLast(*args, **kwargs):
3490 """OnLast()"""
3491 return _windows.PreviewControlBar_OnLast(*args, **kwargs)
3492
3493 def OnGoto(*args, **kwargs):
3494 """OnGoto()"""
3495 return _windows.PreviewControlBar_OnGoto(*args, **kwargs)
3496
3497
3498 class PreviewControlBarPtr(PreviewControlBar):
3499 def __init__(self, this):
3500 self.this = this
3501 if not hasattr(self,"thisown"): self.thisown = 0
3502 self.__class__ = PreviewControlBar
3503 _windows.PreviewControlBar_swigregister(PreviewControlBarPtr)
3504
3505 class PrintPreview(core.Object):
3506 """"""
3507 def __repr__(self):
3508 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3509 def __init__(self, *args, **kwargs):
3510 """__init__(Printout printout, Printout printoutForPrinting, PrintData data=None) -> PrintPreview"""
3511 newobj = _windows.new_PrintPreview(*args, **kwargs)
3512 self.this = newobj.this
3513 self.thisown = 1
3514 del newobj.thisown
3515 def SetCurrentPage(*args, **kwargs):
3516 """SetCurrentPage(int pageNum) -> bool"""
3517 return _windows.PrintPreview_SetCurrentPage(*args, **kwargs)
3518
3519 def GetCurrentPage(*args, **kwargs):
3520 """GetCurrentPage() -> int"""
3521 return _windows.PrintPreview_GetCurrentPage(*args, **kwargs)
3522
3523 def SetPrintout(*args, **kwargs):
3524 """SetPrintout(Printout printout)"""
3525 return _windows.PrintPreview_SetPrintout(*args, **kwargs)
3526
3527 def GetPrintout(*args, **kwargs):
3528 """GetPrintout() -> Printout"""
3529 return _windows.PrintPreview_GetPrintout(*args, **kwargs)
3530
3531 def GetPrintoutForPrinting(*args, **kwargs):
3532 """GetPrintoutForPrinting() -> Printout"""
3533 return _windows.PrintPreview_GetPrintoutForPrinting(*args, **kwargs)
3534
3535 def SetFrame(*args, **kwargs):
3536 """SetFrame(Frame frame)"""
3537 return _windows.PrintPreview_SetFrame(*args, **kwargs)
3538
3539 def SetCanvas(*args, **kwargs):
3540 """SetCanvas(PreviewCanvas canvas)"""
3541 return _windows.PrintPreview_SetCanvas(*args, **kwargs)
3542
3543 def GetFrame(*args, **kwargs):
3544 """GetFrame() -> Frame"""
3545 return _windows.PrintPreview_GetFrame(*args, **kwargs)
3546
3547 def GetCanvas(*args, **kwargs):
3548 """GetCanvas() -> PreviewCanvas"""
3549 return _windows.PrintPreview_GetCanvas(*args, **kwargs)
3550
3551 def PaintPage(*args, **kwargs):
3552 """PaintPage(PreviewCanvas canvas, wxDC dc) -> bool"""
3553 return _windows.PrintPreview_PaintPage(*args, **kwargs)
3554
3555 def DrawBlankPage(*args, **kwargs):
3556 """DrawBlankPage(PreviewCanvas canvas, wxDC dc) -> bool"""
3557 return _windows.PrintPreview_DrawBlankPage(*args, **kwargs)
3558
3559 def RenderPage(*args, **kwargs):
3560 """RenderPage(int pageNum) -> bool"""
3561 return _windows.PrintPreview_RenderPage(*args, **kwargs)
3562
3563 def AdjustScrollbars(*args, **kwargs):
3564 """AdjustScrollbars(PreviewCanvas canvas)"""
3565 return _windows.PrintPreview_AdjustScrollbars(*args, **kwargs)
3566
3567 def GetPrintDialogData(*args, **kwargs):
3568 """GetPrintDialogData() -> PrintDialogData"""
3569 return _windows.PrintPreview_GetPrintDialogData(*args, **kwargs)
3570
3571 def SetZoom(*args, **kwargs):
3572 """SetZoom(int percent)"""
3573 return _windows.PrintPreview_SetZoom(*args, **kwargs)
3574
3575 def GetZoom(*args, **kwargs):
3576 """GetZoom() -> int"""
3577 return _windows.PrintPreview_GetZoom(*args, **kwargs)
3578
3579 def GetMaxPage(*args, **kwargs):
3580 """GetMaxPage() -> int"""
3581 return _windows.PrintPreview_GetMaxPage(*args, **kwargs)
3582
3583 def GetMinPage(*args, **kwargs):
3584 """GetMinPage() -> int"""
3585 return _windows.PrintPreview_GetMinPage(*args, **kwargs)
3586
3587 def Ok(*args, **kwargs):
3588 """Ok() -> bool"""
3589 return _windows.PrintPreview_Ok(*args, **kwargs)
3590
3591 def SetOk(*args, **kwargs):
3592 """SetOk(bool ok)"""
3593 return _windows.PrintPreview_SetOk(*args, **kwargs)
3594
3595 def Print(*args, **kwargs):
3596 """Print(bool interactive) -> bool"""
3597 return _windows.PrintPreview_Print(*args, **kwargs)
3598
3599 def DetermineScaling(*args, **kwargs):
3600 """DetermineScaling()"""
3601 return _windows.PrintPreview_DetermineScaling(*args, **kwargs)
3602
3603 def __nonzero__(self): return self.Ok()
3604
3605 class PrintPreviewPtr(PrintPreview):
3606 def __init__(self, this):
3607 self.this = this
3608 if not hasattr(self,"thisown"): self.thisown = 0
3609 self.__class__ = PrintPreview
3610 _windows.PrintPreview_swigregister(PrintPreviewPtr)
3611
3612 class PyPrintPreview(PrintPreview):
3613 """"""
3614 def __repr__(self):
3615 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3616 def __init__(self, *args, **kwargs):
3617 """__init__(Printout printout, Printout printoutForPrinting, PrintData data=None) -> PyPrintPreview"""
3618 newobj = _windows.new_PyPrintPreview(*args, **kwargs)
3619 self.this = newobj.this
3620 self.thisown = 1
3621 del newobj.thisown
3622 self._setCallbackInfo(self, PyPrintPreview)
3623
3624 def _setCallbackInfo(*args, **kwargs):
3625 """_setCallbackInfo(PyObject self, PyObject _class)"""
3626 return _windows.PyPrintPreview__setCallbackInfo(*args, **kwargs)
3627
3628 def base_SetCurrentPage(*args, **kwargs):
3629 """base_SetCurrentPage(int pageNum) -> bool"""
3630 return _windows.PyPrintPreview_base_SetCurrentPage(*args, **kwargs)
3631
3632 def base_PaintPage(*args, **kwargs):
3633 """base_PaintPage(PreviewCanvas canvas, wxDC dc) -> bool"""
3634 return _windows.PyPrintPreview_base_PaintPage(*args, **kwargs)
3635
3636 def base_DrawBlankPage(*args, **kwargs):
3637 """base_DrawBlankPage(PreviewCanvas canvas, wxDC dc) -> bool"""
3638 return _windows.PyPrintPreview_base_DrawBlankPage(*args, **kwargs)
3639
3640 def base_RenderPage(*args, **kwargs):
3641 """base_RenderPage(int pageNum) -> bool"""
3642 return _windows.PyPrintPreview_base_RenderPage(*args, **kwargs)
3643
3644 def base_SetZoom(*args, **kwargs):
3645 """base_SetZoom(int percent)"""
3646 return _windows.PyPrintPreview_base_SetZoom(*args, **kwargs)
3647
3648 def base_Print(*args, **kwargs):
3649 """base_Print(bool interactive) -> bool"""
3650 return _windows.PyPrintPreview_base_Print(*args, **kwargs)
3651
3652 def base_DetermineScaling(*args, **kwargs):
3653 """base_DetermineScaling()"""
3654 return _windows.PyPrintPreview_base_DetermineScaling(*args, **kwargs)
3655
3656
3657 class PyPrintPreviewPtr(PyPrintPreview):
3658 def __init__(self, this):
3659 self.this = this
3660 if not hasattr(self,"thisown"): self.thisown = 0
3661 self.__class__ = PyPrintPreview
3662 _windows.PyPrintPreview_swigregister(PyPrintPreviewPtr)
3663
3664 class PyPreviewFrame(PreviewFrame):
3665 """"""
3666 def __repr__(self):
3667 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3668 def __init__(self, *args, **kwargs):
3669 """__init__(PrintPreview preview, Frame parent, wxString title,
3670 Point pos=DefaultPosition, Size size=DefaultSize,
3671 long style=DEFAULT_FRAME_STYLE, wxString name=wxPyFrameNameStr) -> PyPreviewFrame"""
3672 newobj = _windows.new_PyPreviewFrame(*args, **kwargs)
3673 self.this = newobj.this
3674 self.thisown = 1
3675 del newobj.thisown
3676 self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self)
3677
3678 def _setCallbackInfo(*args, **kwargs):
3679 """_setCallbackInfo(PyObject self, PyObject _class)"""
3680 return _windows.PyPreviewFrame__setCallbackInfo(*args, **kwargs)
3681
3682 def SetPreviewCanvas(*args, **kwargs):
3683 """SetPreviewCanvas(PreviewCanvas canvas)"""
3684 return _windows.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs)
3685
3686 def SetControlBar(*args, **kwargs):
3687 """SetControlBar(PreviewControlBar bar)"""
3688 return _windows.PyPreviewFrame_SetControlBar(*args, **kwargs)
3689
3690 def base_Initialize(*args, **kwargs):
3691 """base_Initialize()"""
3692 return _windows.PyPreviewFrame_base_Initialize(*args, **kwargs)
3693
3694 def base_CreateCanvas(*args, **kwargs):
3695 """base_CreateCanvas()"""
3696 return _windows.PyPreviewFrame_base_CreateCanvas(*args, **kwargs)
3697
3698 def base_CreateControlBar(*args, **kwargs):
3699 """base_CreateControlBar()"""
3700 return _windows.PyPreviewFrame_base_CreateControlBar(*args, **kwargs)
3701
3702
3703 class PyPreviewFramePtr(PyPreviewFrame):
3704 def __init__(self, this):
3705 self.this = this
3706 if not hasattr(self,"thisown"): self.thisown = 0
3707 self.__class__ = PyPreviewFrame
3708 _windows.PyPreviewFrame_swigregister(PyPreviewFramePtr)
3709
3710 class PyPreviewControlBar(PreviewControlBar):
3711 """"""
3712 def __repr__(self):
3713 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3714 def __init__(self, *args, **kwargs):
3715 """__init__(PrintPreview preview, long buttons, Window parent,
3716 Point pos=DefaultPosition, Size size=DefaultSize,
3717 long style=0, wxString name=PanelNameStr) -> PyPreviewControlBar"""
3718 newobj = _windows.new_PyPreviewControlBar(*args, **kwargs)
3719 self.this = newobj.this
3720 self.thisown = 1
3721 del newobj.thisown
3722 self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self)
3723
3724 def _setCallbackInfo(*args, **kwargs):
3725 """_setCallbackInfo(PyObject self, PyObject _class)"""
3726 return _windows.PyPreviewControlBar__setCallbackInfo(*args, **kwargs)
3727
3728 def SetPrintPreview(*args, **kwargs):
3729 """SetPrintPreview(PrintPreview preview)"""
3730 return _windows.PyPreviewControlBar_SetPrintPreview(*args, **kwargs)
3731
3732 def base_CreateButtons(*args, **kwargs):
3733 """base_CreateButtons()"""
3734 return _windows.PyPreviewControlBar_base_CreateButtons(*args, **kwargs)
3735
3736 def base_SetZoomControl(*args, **kwargs):
3737 """base_SetZoomControl(int zoom)"""
3738 return _windows.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs)
3739
3740
3741 class PyPreviewControlBarPtr(PyPreviewControlBar):
3742 def __init__(self, this):
3743 self.this = this
3744 if not hasattr(self,"thisown"): self.thisown = 0
3745 self.__class__ = PyPreviewControlBar
3746 _windows.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr)
3747
3748