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