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