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