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