]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_windows.py
forward declare wxPyTaskBarIcon
[wxWidgets.git] / wxPython / src / mac / _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
01ac03ba
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
15817c7e
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
15817c7e
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
a5ee0656
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
15817c7e 55 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
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
15817c7e
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
a5ee0656
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
15817c7e 87 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
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
01ac03ba
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
15817c7e
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
a5ee0656
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
15817c7e 236 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
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
15817c7e
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
a5ee0656
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
15817c7e 268 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
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
b411df4a 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
c370783e
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
c370783e
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
d55e5bfc
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
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 """
bfddbb17
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 """
bfddbb17
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
15817c7e
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
a5ee0656
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
15817c7e 526 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
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
15817c7e
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
a5ee0656
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
15817c7e 558 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
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 """
bfddbb17
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 """
bfddbb17
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
15817c7e
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
a5ee0656
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
15817c7e 628 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
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
15817c7e
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
a5ee0656
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
15817c7e 663 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
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 """
bfddbb17
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 """
bfddbb17
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,
bfddbb17 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):
bfddbb17 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
15817c7e
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
a5ee0656
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
15817c7e 859 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
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
15817c7e
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
a5ee0656
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
15817c7e 891 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
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 """
15817c7e
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
15817c7e
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
15817c7e
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
15817c7e
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
15817c7e
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
15817c7e
RD
1041 Causes any pending sizing of the sash and child panes to take place
1042 immediately.
d55e5bfc 1043
15817c7e
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
15817c7e
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
15817c7e
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
15817c7e
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
a5ee0656
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
15817c7e 1168 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
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
15817c7e
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
a5ee0656
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
15817c7e 1205 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
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
15817c7e
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
15817c7e
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
15817c7e
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 """
bfddbb17
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 """
bfddbb17
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 """
bfddbb17
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 """
bfddbb17
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
1669class PopupWindow(_core.Window):
1670 def __repr__(self):
1671 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1672 def __init__(self, *args, **kwargs):
1673 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1674 newobj = _windows_.new_PopupWindow(*args, **kwargs)
1675 self.this = newobj.this
1676 self.thisown = 1
1677 del newobj.thisown
1678
1679class PopupWindowPtr(PopupWindow):
1680 def __init__(self, this):
1681 self.this = this
1682 if not hasattr(self,"thisown"): self.thisown = 0
1683 self.__class__ = PopupWindow
1684_windows_.PopupWindow_swigregister(PopupWindowPtr)
1685
1686def PrePopupWindow(*args, **kwargs):
1687 """PrePopupWindow() -> PopupWindow"""
1688 val = _windows_.new_PrePopupWindow(*args, **kwargs)
1689 val.thisown = 1
1690 return val
1691
1692class PopupTransientWindow(PopupWindow):
1693 def __repr__(self):
1694 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1695 def __init__(self, *args, **kwargs):
1696 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1697 newobj = _windows_.new_PopupTransientWindow(*args, **kwargs)
1698 self.this = newobj.this
1699 self.thisown = 1
1700 del newobj.thisown
1701
1702class PopupTransientWindowPtr(PopupTransientWindow):
1703 def __init__(self, this):
1704 self.this = this
1705 if not hasattr(self,"thisown"): self.thisown = 0
1706 self.__class__ = PopupTransientWindow
1707_windows_.PopupTransientWindow_swigregister(PopupTransientWindowPtr)
1708
1709def PrePopupTransientWindow(*args, **kwargs):
1710 """PrePopupTransientWindow() -> PopupTransientWindow"""
1711 val = _windows_.new_PrePopupTransientWindow(*args, **kwargs)
1712 val.thisown = 1
1713 return val
1714
1715#---------------------------------------------------------------------------
1716
1717class TipWindow(Frame):
1718 def __repr__(self):
1719 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1720 def __init__(self, *args, **kwargs):
1721 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1722 newobj = _windows_.new_TipWindow(*args, **kwargs)
1723 self.this = newobj.this
1724 self.thisown = 1
1725 del newobj.thisown
1726 self._setOORInfo(self)
1727
1728 def SetBoundingRect(*args, **kwargs):
1729 """SetBoundingRect(self, Rect rectBound)"""
1730 return _windows_.TipWindow_SetBoundingRect(*args, **kwargs)
1731
1732 def Close(*args, **kwargs):
1733 """Close(self)"""
1734 return _windows_.TipWindow_Close(*args, **kwargs)
1735
1736
1737class TipWindowPtr(TipWindow):
1738 def __init__(self, this):
1739 self.this = this
1740 if not hasattr(self,"thisown"): self.thisown = 0
1741 self.__class__ = TipWindow
1742_windows_.TipWindow_swigregister(TipWindowPtr)
1743
1744#---------------------------------------------------------------------------
1745
1746class VScrolledWindow(Panel):
1747 def __repr__(self):
1748 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1749 def __init__(self, *args, **kwargs):
1750 """
1751 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1752 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1753 """
1754 newobj = _windows_.new_VScrolledWindow(*args, **kwargs)
1755 self.this = newobj.this
1756 self.thisown = 1
1757 del newobj.thisown
1758 self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow)
1759
1760 def _setCallbackInfo(*args, **kwargs):
1761 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1762 return _windows_.VScrolledWindow__setCallbackInfo(*args, **kwargs)
1763
1764 def Create(*args, **kwargs):
1765 """
1766 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1767 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1768 """
1769 return _windows_.VScrolledWindow_Create(*args, **kwargs)
1770
1771 def SetLineCount(*args, **kwargs):
1772 """SetLineCount(self, size_t count)"""
1773 return _windows_.VScrolledWindow_SetLineCount(*args, **kwargs)
1774
1775 def ScrollToLine(*args, **kwargs):
1776 """ScrollToLine(self, size_t line) -> bool"""
1777 return _windows_.VScrolledWindow_ScrollToLine(*args, **kwargs)
1778
1779 def ScrollLines(*args, **kwargs):
01ac03ba
RD
1780 """
1781 ScrollLines(self, int lines) -> bool
1782
1783 If the platform and window class supports it, scrolls the window by
1784 the given number of lines down, if lines is positive, or up if lines
1785 is negative. Returns True if the window was scrolled, False if it was
1786 already on top/bottom and nothing was done.
1787 """
d55e5bfc
RD
1788 return _windows_.VScrolledWindow_ScrollLines(*args, **kwargs)
1789
1790 def ScrollPages(*args, **kwargs):
1791 """
1792 ScrollPages(self, int pages) -> bool
1793
15817c7e 1794 If the platform and window class supports it, scrolls the window by
d55e5bfc
RD
1795 the given number of pages down, if pages is positive, or up if pages
1796 is negative. Returns True if the window was scrolled, False if it was
1797 already on top/bottom and nothing was done.
1798 """
1799 return _windows_.VScrolledWindow_ScrollPages(*args, **kwargs)
1800
1801 def RefreshLine(*args, **kwargs):
1802 """RefreshLine(self, size_t line)"""
1803 return _windows_.VScrolledWindow_RefreshLine(*args, **kwargs)
1804
1805 def RefreshLines(*args, **kwargs):
1806 """RefreshLines(self, size_t from, size_t to)"""
1807 return _windows_.VScrolledWindow_RefreshLines(*args, **kwargs)
1808
03ee685a
RD
1809 def HitTestXY(*args, **kwargs):
1810 """
1811 HitTestXY(self, int x, int y) -> int
1812
1813 Test where the given (in client coords) point lies
1814 """
1815 return _windows_.VScrolledWindow_HitTestXY(*args, **kwargs)
d55e5bfc
RD
1816
1817 def HitTest(*args, **kwargs):
03ee685a
RD
1818 """
1819 HitTest(self, Point pt) -> int
1820
1821 Test where the given (in client coords) point lies
1822 """
d55e5bfc
RD
1823 return _windows_.VScrolledWindow_HitTest(*args, **kwargs)
1824
1825 def RefreshAll(*args, **kwargs):
1826 """RefreshAll(self)"""
1827 return _windows_.VScrolledWindow_RefreshAll(*args, **kwargs)
1828
1829 def GetLineCount(*args, **kwargs):
1830 """GetLineCount(self) -> size_t"""
1831 return _windows_.VScrolledWindow_GetLineCount(*args, **kwargs)
1832
1833 def GetFirstVisibleLine(*args, **kwargs):
1834 """GetFirstVisibleLine(self) -> size_t"""
1835 return _windows_.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs)
1836
1837 def GetLastVisibleLine(*args, **kwargs):
1838 """GetLastVisibleLine(self) -> size_t"""
1839 return _windows_.VScrolledWindow_GetLastVisibleLine(*args, **kwargs)
1840
1841 def IsVisible(*args, **kwargs):
1842 """IsVisible(self, size_t line) -> bool"""
1843 return _windows_.VScrolledWindow_IsVisible(*args, **kwargs)
1844
1845
1846class VScrolledWindowPtr(VScrolledWindow):
1847 def __init__(self, this):
1848 self.this = this
1849 if not hasattr(self,"thisown"): self.thisown = 0
1850 self.__class__ = VScrolledWindow
1851_windows_.VScrolledWindow_swigregister(VScrolledWindowPtr)
1852
1853def PreVScrolledWindow(*args, **kwargs):
1854 """PreVScrolledWindow() -> VScrolledWindow"""
1855 val = _windows_.new_PreVScrolledWindow(*args, **kwargs)
1856 val.thisown = 1
1857 return val
1858
1859class VListBox(VScrolledWindow):
1860 def __repr__(self):
1861 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1862 def __init__(self, *args, **kwargs):
1863 """
1864 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1865 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1866 """
1867 newobj = _windows_.new_VListBox(*args, **kwargs)
1868 self.this = newobj.this
1869 self.thisown = 1
1870 del newobj.thisown
1871 self._setOORInfo(self);self._setCallbackInfo(self, VListBox)
1872
1873 def _setCallbackInfo(*args, **kwargs):
1874 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1875 return _windows_.VListBox__setCallbackInfo(*args, **kwargs)
1876
1877 def Create(*args, **kwargs):
1878 """
1879 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1880 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1881 """
1882 return _windows_.VListBox_Create(*args, **kwargs)
1883
1884 def GetItemCount(*args, **kwargs):
1885 """GetItemCount(self) -> size_t"""
1886 return _windows_.VListBox_GetItemCount(*args, **kwargs)
1887
1888 def HasMultipleSelection(*args, **kwargs):
1889 """HasMultipleSelection(self) -> bool"""
1890 return _windows_.VListBox_HasMultipleSelection(*args, **kwargs)
1891
1892 def GetSelection(*args, **kwargs):
1893 """GetSelection(self) -> int"""
1894 return _windows_.VListBox_GetSelection(*args, **kwargs)
1895
1896 def IsCurrent(*args, **kwargs):
1897 """IsCurrent(self, size_t item) -> bool"""
1898 return _windows_.VListBox_IsCurrent(*args, **kwargs)
1899
1900 def IsSelected(*args, **kwargs):
1901 """IsSelected(self, size_t item) -> bool"""
1902 return _windows_.VListBox_IsSelected(*args, **kwargs)
1903
1904 def GetSelectedCount(*args, **kwargs):
1905 """GetSelectedCount(self) -> size_t"""
1906 return _windows_.VListBox_GetSelectedCount(*args, **kwargs)
1907
1908 def GetFirstSelected(*args, **kwargs):
09c21d3b 1909 """GetFirstSelected(self) -> PyObject"""
d55e5bfc
RD
1910 return _windows_.VListBox_GetFirstSelected(*args, **kwargs)
1911
1912 def GetNextSelected(*args, **kwargs):
09c21d3b 1913 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
d55e5bfc
RD
1914 return _windows_.VListBox_GetNextSelected(*args, **kwargs)
1915
1916 def GetMargins(*args, **kwargs):
1917 """GetMargins(self) -> Point"""
1918 return _windows_.VListBox_GetMargins(*args, **kwargs)
1919
1920 def GetSelectionBackground(*args, **kwargs):
1921 """GetSelectionBackground(self) -> Colour"""
1922 return _windows_.VListBox_GetSelectionBackground(*args, **kwargs)
1923
1924 def SetItemCount(*args, **kwargs):
1925 """SetItemCount(self, size_t count)"""
1926 return _windows_.VListBox_SetItemCount(*args, **kwargs)
1927
1928 def Clear(*args, **kwargs):
1929 """Clear(self)"""
1930 return _windows_.VListBox_Clear(*args, **kwargs)
1931
1932 def SetSelection(*args, **kwargs):
1933 """SetSelection(self, int selection)"""
1934 return _windows_.VListBox_SetSelection(*args, **kwargs)
1935
1936 def Select(*args, **kwargs):
1937 """Select(self, size_t item, bool select=True) -> bool"""
1938 return _windows_.VListBox_Select(*args, **kwargs)
1939
1940 def SelectRange(*args, **kwargs):
1941 """SelectRange(self, size_t from, size_t to) -> bool"""
1942 return _windows_.VListBox_SelectRange(*args, **kwargs)
1943
1944 def Toggle(*args, **kwargs):
1945 """Toggle(self, size_t item)"""
1946 return _windows_.VListBox_Toggle(*args, **kwargs)
1947
1948 def SelectAll(*args, **kwargs):
1949 """SelectAll(self) -> bool"""
1950 return _windows_.VListBox_SelectAll(*args, **kwargs)
1951
1952 def DeselectAll(*args, **kwargs):
1953 """DeselectAll(self) -> bool"""
1954 return _windows_.VListBox_DeselectAll(*args, **kwargs)
1955
1956 def SetMargins(*args, **kwargs):
1957 """SetMargins(self, Point pt)"""
1958 return _windows_.VListBox_SetMargins(*args, **kwargs)
1959
1960 def SetMarginsXY(*args, **kwargs):
1961 """SetMarginsXY(self, int x, int y)"""
1962 return _windows_.VListBox_SetMarginsXY(*args, **kwargs)
1963
1964 def SetSelectionBackground(*args, **kwargs):
1965 """SetSelectionBackground(self, Colour col)"""
1966 return _windows_.VListBox_SetSelectionBackground(*args, **kwargs)
1967
1968
1969class VListBoxPtr(VListBox):
1970 def __init__(self, this):
1971 self.this = this
1972 if not hasattr(self,"thisown"): self.thisown = 0
1973 self.__class__ = VListBox
1974_windows_.VListBox_swigregister(VListBoxPtr)
1975VListBoxNameStr = cvar.VListBoxNameStr
1976
1977def PreVListBox(*args, **kwargs):
1978 """PreVListBox() -> VListBox"""
1979 val = _windows_.new_PreVListBox(*args, **kwargs)
1980 val.thisown = 1
1981 return val
1982
1983class HtmlListBox(VListBox):
1984 def __repr__(self):
1985 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1986 def __init__(self, *args, **kwargs):
1987 """
1988 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1989 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1990 """
1991 newobj = _windows_.new_HtmlListBox(*args, **kwargs)
1992 self.this = newobj.this
1993 self.thisown = 1
1994 del newobj.thisown
1995 self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox)
1996
1997 def _setCallbackInfo(*args, **kwargs):
1998 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1999 return _windows_.HtmlListBox__setCallbackInfo(*args, **kwargs)
2000
2001 def Create(*args, **kwargs):
2002 """
2003 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2004 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2005 """
2006 return _windows_.HtmlListBox_Create(*args, **kwargs)
2007
2008 def RefreshAll(*args, **kwargs):
2009 """RefreshAll(self)"""
2010 return _windows_.HtmlListBox_RefreshAll(*args, **kwargs)
2011
2012 def SetItemCount(*args, **kwargs):
2013 """SetItemCount(self, size_t count)"""
2014 return _windows_.HtmlListBox_SetItemCount(*args, **kwargs)
2015
d6c14a4c
RD
2016 def GetFileSystem(*args, **kwargs):
2017 """GetFileSystem(self) -> FileSystem"""
2018 return _windows_.HtmlListBox_GetFileSystem(*args, **kwargs)
2019
d55e5bfc
RD
2020
2021class HtmlListBoxPtr(HtmlListBox):
2022 def __init__(self, this):
2023 self.this = this
2024 if not hasattr(self,"thisown"): self.thisown = 0
2025 self.__class__ = HtmlListBox
2026_windows_.HtmlListBox_swigregister(HtmlListBoxPtr)
2027
2028def PreHtmlListBox(*args, **kwargs):
2029 """PreHtmlListBox() -> HtmlListBox"""
2030 val = _windows_.new_PreHtmlListBox(*args, **kwargs)
2031 val.thisown = 1
2032 return val
2033
2034#---------------------------------------------------------------------------
2035
2036class TaskBarIcon(_core.EvtHandler):
2037 def __repr__(self):
5e483524 2038 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d55e5bfc
RD
2039 def __init__(self, *args, **kwargs):
2040 """__init__(self) -> TaskBarIcon"""
2041 newobj = _windows_.new_TaskBarIcon(*args, **kwargs)
2042 self.this = newobj.this
2043 self.thisown = 1
2044 del newobj.thisown
5e483524
RD
2045 self._setCallbackInfo(self, TaskBarIcon, 0)
2046
2047 def _setCallbackInfo(*args, **kwargs):
2048 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2049 return _windows_.TaskBarIcon__setCallbackInfo(*args, **kwargs)
d55e5bfc
RD
2050
2051 def Destroy(*args, **kwargs):
2052 """
2053 Destroy(self)
2054
2055 Deletes the C++ object this Python object is a proxy for.
2056 """
2057 return _windows_.TaskBarIcon_Destroy(*args, **kwargs)
2058
b411df4a
RD
2059 def IsOk(*args, **kwargs):
2060 """IsOk(self) -> bool"""
2061 return _windows_.TaskBarIcon_IsOk(*args, **kwargs)
2062
2063 def __nonzero__(self): return self.IsOk()
2064 def IsIconInstalled(*args, **kwargs):
2065 """IsIconInstalled(self) -> bool"""
2066 return _windows_.TaskBarIcon_IsIconInstalled(*args, **kwargs)
2067
2068 def SetIcon(*args, **kwargs):
2069 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2070 return _windows_.TaskBarIcon_SetIcon(*args, **kwargs)
2071
2072 def RemoveIcon(*args, **kwargs):
2073 """RemoveIcon(self) -> bool"""
2074 return _windows_.TaskBarIcon_RemoveIcon(*args, **kwargs)
2075
2076 def PopupMenu(*args, **kwargs):
2077 """PopupMenu(self, Menu menu) -> bool"""
2078 return _windows_.TaskBarIcon_PopupMenu(*args, **kwargs)
2079
d55e5bfc
RD
2080
2081class TaskBarIconPtr(TaskBarIcon):
2082 def __init__(self, this):
2083 self.this = this
2084 if not hasattr(self,"thisown"): self.thisown = 0
2085 self.__class__ = TaskBarIcon
2086_windows_.TaskBarIcon_swigregister(TaskBarIconPtr)
2087
2088class TaskBarIconEvent(_core.Event):
2089 def __repr__(self):
2090 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2091 def __init__(self, *args, **kwargs):
5e483524 2092 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
d55e5bfc
RD
2093 newobj = _windows_.new_TaskBarIconEvent(*args, **kwargs)
2094 self.this = newobj.this
2095 self.thisown = 1
2096 del newobj.thisown
2097
2098class TaskBarIconEventPtr(TaskBarIconEvent):
2099 def __init__(self, this):
2100 self.this = this
2101 if not hasattr(self,"thisown"): self.thisown = 0
2102 self.__class__ = TaskBarIconEvent
2103_windows_.TaskBarIconEvent_swigregister(TaskBarIconEventPtr)
2104
2105wxEVT_TASKBAR_MOVE = _windows_.wxEVT_TASKBAR_MOVE
2106wxEVT_TASKBAR_LEFT_DOWN = _windows_.wxEVT_TASKBAR_LEFT_DOWN
2107wxEVT_TASKBAR_LEFT_UP = _windows_.wxEVT_TASKBAR_LEFT_UP
2108wxEVT_TASKBAR_RIGHT_DOWN = _windows_.wxEVT_TASKBAR_RIGHT_DOWN
2109wxEVT_TASKBAR_RIGHT_UP = _windows_.wxEVT_TASKBAR_RIGHT_UP
2110wxEVT_TASKBAR_LEFT_DCLICK = _windows_.wxEVT_TASKBAR_LEFT_DCLICK
2111wxEVT_TASKBAR_RIGHT_DCLICK = _windows_.wxEVT_TASKBAR_RIGHT_DCLICK
2112EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE )
2113EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN )
2114EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP )
2115EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN )
2116EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP )
2117EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK )
2118EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK )
2119
2120#---------------------------------------------------------------------------
2121
2122class ColourData(_core.Object):
d6c14a4c
RD
2123 """
2124 This class holds a variety of information related to the colour
2125 chooser dialog, used to transfer settings and results to and from the
2126 `wx.ColourDialog`.
2127 """
d55e5bfc
RD
2128 def __repr__(self):
2129 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2130 def __init__(self, *args, **kwargs):
2131 """
2132 __init__(self) -> ColourData
2133
2134 Constructor, sets default values.
2135 """
2136 newobj = _windows_.new_ColourData(*args, **kwargs)
2137 self.this = newobj.this
2138 self.thisown = 1
2139 del newobj.thisown
2140 def __del__(self, destroy=_windows_.delete_ColourData):
2141 """__del__(self)"""
2142 try:
2143 if self.thisown: destroy(self)
2144 except: pass
2145
2146 def GetChooseFull(*args, **kwargs):
2147 """
2148 GetChooseFull(self) -> bool
2149
d6c14a4c
RD
2150 Under Windows, determines whether the Windows colour dialog will
2151 display the full dialog with custom colour selection controls. Has no
2152 meaning under other platforms. The default value is true.
d55e5bfc
RD
2153 """
2154 return _windows_.ColourData_GetChooseFull(*args, **kwargs)
2155
2156 def GetColour(*args, **kwargs):
2157 """
2158 GetColour(self) -> Colour
2159
2160 Gets the colour (pre)selected by the dialog.
2161 """
2162 return _windows_.ColourData_GetColour(*args, **kwargs)
2163
2164 def GetCustomColour(*args, **kwargs):
2165 """
2166 GetCustomColour(self, int i) -> Colour
2167
d6c14a4c
RD
2168 Gets the i'th custom colour associated with the colour dialog. i
2169 should be an integer between 0 and 15. The default custom colours are
bfddbb17 2170 all invalid colours.
d55e5bfc
RD
2171 """
2172 return _windows_.ColourData_GetCustomColour(*args, **kwargs)
2173
2174 def SetChooseFull(*args, **kwargs):
2175 """
2176 SetChooseFull(self, int flag)
2177
d6c14a4c
RD
2178 Under Windows, tells the Windows colour dialog to display the full
2179 dialog with custom colour selection controls. Under other platforms,
2180 has no effect. The default value is true.
d55e5bfc
RD
2181 """
2182 return _windows_.ColourData_SetChooseFull(*args, **kwargs)
2183
2184 def SetColour(*args, **kwargs):
2185 """
2186 SetColour(self, Colour colour)
2187
d6c14a4c
RD
2188 Sets the default colour for the colour dialog. The default colour is
2189 black.
d55e5bfc
RD
2190 """
2191 return _windows_.ColourData_SetColour(*args, **kwargs)
2192
2193 def SetCustomColour(*args, **kwargs):
2194 """
2195 SetCustomColour(self, int i, Colour colour)
2196
d6c14a4c 2197 Sets the i'th custom colour for the colour dialog. i should be an
bfddbb17 2198 integer between 0 and 15. The default custom colours are all invalid colours.
d55e5bfc
RD
2199 """
2200 return _windows_.ColourData_SetCustomColour(*args, **kwargs)
2201
2202
2203class ColourDataPtr(ColourData):
2204 def __init__(self, this):
2205 self.this = this
2206 if not hasattr(self,"thisown"): self.thisown = 0
2207 self.__class__ = ColourData
2208_windows_.ColourData_swigregister(ColourDataPtr)
2209FileSelectorPromptStr = cvar.FileSelectorPromptStr
2210DirSelectorPromptStr = cvar.DirSelectorPromptStr
2211DirDialogNameStr = cvar.DirDialogNameStr
2212FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
2213GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr
2214MessageBoxCaptionStr = cvar.MessageBoxCaptionStr
2215
2216class ColourDialog(Dialog):
2217 """This class represents the colour chooser dialog."""
2218 def __repr__(self):
2219 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2220 def __init__(self, *args, **kwargs):
2221 """
2222 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2223
d6c14a4c
RD
2224 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2225 which will be copied to the colour dialog's internal ColourData
2226 instance.
d55e5bfc
RD
2227 """
2228 newobj = _windows_.new_ColourDialog(*args, **kwargs)
2229 self.this = newobj.this
2230 self.thisown = 1
2231 del newobj.thisown
2232 self._setOORInfo(self)
2233
2234 def GetColourData(*args, **kwargs):
2235 """
2236 GetColourData(self) -> ColourData
2237
d6c14a4c 2238 Returns a reference to the `wx.ColourData` used by the dialog.
d55e5bfc
RD
2239 """
2240 return _windows_.ColourDialog_GetColourData(*args, **kwargs)
2241
2242
2243class ColourDialogPtr(ColourDialog):
2244 def __init__(self, this):
2245 self.this = this
2246 if not hasattr(self,"thisown"): self.thisown = 0
2247 self.__class__ = ColourDialog
2248_windows_.ColourDialog_swigregister(ColourDialogPtr)
2249
2250class DirDialog(Dialog):
d6c14a4c
RD
2251 """
2252 wx.DirDialog allows the user to select a directory by browising the
2253 file system.
d6c14a4c 2254 """
d55e5bfc
RD
2255 def __repr__(self):
2256 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2257 def __init__(self, *args, **kwargs):
2258 """
2259 __init__(self, Window parent, String message=DirSelectorPromptStr,
2260 String defaultPath=EmptyString, long style=0,
2261 Point pos=DefaultPosition, Size size=DefaultSize,
2262 String name=DirDialogNameStr) -> DirDialog
2263
2264 Constructor. Use ShowModal method to show the dialog.
2265 """
2266 newobj = _windows_.new_DirDialog(*args, **kwargs)
2267 self.this = newobj.this
2268 self.thisown = 1
2269 del newobj.thisown
2270 self._setOORInfo(self)
2271
2272 def GetPath(*args, **kwargs):
2273 """
2274 GetPath(self) -> String
2275
2276 Returns the default or user-selected path.
2277 """
2278 return _windows_.DirDialog_GetPath(*args, **kwargs)
2279
2280 def GetMessage(*args, **kwargs):
2281 """
2282 GetMessage(self) -> String
2283
2284 Returns the message that will be displayed on the dialog.
2285 """
2286 return _windows_.DirDialog_GetMessage(*args, **kwargs)
2287
2288 def GetStyle(*args, **kwargs):
2289 """
2290 GetStyle(self) -> long
2291
2292 Returns the dialog style.
2293 """
2294 return _windows_.DirDialog_GetStyle(*args, **kwargs)
2295
2296 def SetMessage(*args, **kwargs):
2297 """
2298 SetMessage(self, String message)
2299
2300 Sets the message that will be displayed on the dialog.
2301 """
2302 return _windows_.DirDialog_SetMessage(*args, **kwargs)
2303
2304 def SetPath(*args, **kwargs):
2305 """
2306 SetPath(self, String path)
2307
2308 Sets the default path.
2309 """
2310 return _windows_.DirDialog_SetPath(*args, **kwargs)
2311
2312
2313class DirDialogPtr(DirDialog):
2314 def __init__(self, this):
2315 self.this = this
2316 if not hasattr(self,"thisown"): self.thisown = 0
2317 self.__class__ = DirDialog
2318_windows_.DirDialog_swigregister(DirDialogPtr)
2319
2320class FileDialog(Dialog):
d6c14a4c
RD
2321 """
2322 wx.FileDialog allows the user to select one or more files from the
2323 filesystem.
d6c14a4c 2324 """
d55e5bfc
RD
2325 def __repr__(self):
2326 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2327 def __init__(self, *args, **kwargs):
2328 """
2329 __init__(self, Window parent, String message=FileSelectorPromptStr,
2330 String defaultDir=EmptyString, String defaultFile=EmptyString,
2331 String wildcard=FileSelectorDefaultWildcardStr,
2332 long style=0, Point pos=DefaultPosition) -> FileDialog
2333
2334 Constructor. Use ShowModal method to show the dialog.
2335 """
2336 newobj = _windows_.new_FileDialog(*args, **kwargs)
2337 self.this = newobj.this
2338 self.thisown = 1
2339 del newobj.thisown
2340 self._setOORInfo(self)
2341
2342 def SetMessage(*args, **kwargs):
2343 """
2344 SetMessage(self, String message)
2345
2346 Sets the message that will be displayed on the dialog.
2347 """
2348 return _windows_.FileDialog_SetMessage(*args, **kwargs)
2349
2350 def SetPath(*args, **kwargs):
2351 """
2352 SetPath(self, String path)
2353
d6c14a4c
RD
2354 Sets the path (the combined directory and filename that will be
2355 returned when the dialog is dismissed).
d55e5bfc
RD
2356 """
2357 return _windows_.FileDialog_SetPath(*args, **kwargs)
2358
2359 def SetDirectory(*args, **kwargs):
2360 """
2361 SetDirectory(self, String dir)
2362
2363 Sets the default directory.
2364 """
2365 return _windows_.FileDialog_SetDirectory(*args, **kwargs)
2366
2367 def SetFilename(*args, **kwargs):
2368 """
2369 SetFilename(self, String name)
2370
2371 Sets the default filename.
2372 """
2373 return _windows_.FileDialog_SetFilename(*args, **kwargs)
2374
2375 def SetWildcard(*args, **kwargs):
2376 """
2377 SetWildcard(self, String wildCard)
2378
d6c14a4c
RD
2379 Sets the wildcard, which can contain multiple file types, for
2380 example::
2381
d55e5bfc 2382 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
d6c14a4c 2383
d55e5bfc
RD
2384 """
2385 return _windows_.FileDialog_SetWildcard(*args, **kwargs)
2386
2387 def SetStyle(*args, **kwargs):
2388 """
2389 SetStyle(self, long style)
2390
2391 Sets the dialog style.
2392 """
2393 return _windows_.FileDialog_SetStyle(*args, **kwargs)
2394
2395 def SetFilterIndex(*args, **kwargs):
2396 """
2397 SetFilterIndex(self, int filterIndex)
2398
2399 Sets the default filter index, starting from zero.
2400 """
2401 return _windows_.FileDialog_SetFilterIndex(*args, **kwargs)
2402
2403 def GetMessage(*args, **kwargs):
2404 """
2405 GetMessage(self) -> String
2406
2407 Returns the message that will be displayed on the dialog.
2408 """
2409 return _windows_.FileDialog_GetMessage(*args, **kwargs)
2410
2411 def GetPath(*args, **kwargs):
2412 """
2413 GetPath(self) -> String
2414
2415 Returns the full path (directory and filename) of the selected file.
2416 """
2417 return _windows_.FileDialog_GetPath(*args, **kwargs)
2418
2419 def GetDirectory(*args, **kwargs):
2420 """
2421 GetDirectory(self) -> String
2422
2423 Returns the default directory.
2424 """
2425 return _windows_.FileDialog_GetDirectory(*args, **kwargs)
2426
2427 def GetFilename(*args, **kwargs):
2428 """
2429 GetFilename(self) -> String
2430
2431 Returns the default filename.
2432 """
2433 return _windows_.FileDialog_GetFilename(*args, **kwargs)
2434
2435 def GetWildcard(*args, **kwargs):
2436 """
2437 GetWildcard(self) -> String
2438
2439 Returns the file dialog wildcard.
2440 """
2441 return _windows_.FileDialog_GetWildcard(*args, **kwargs)
2442
2443 def GetStyle(*args, **kwargs):
2444 """
2445 GetStyle(self) -> long
2446
2447 Returns the dialog style.
2448 """
2449 return _windows_.FileDialog_GetStyle(*args, **kwargs)
2450
2451 def GetFilterIndex(*args, **kwargs):
2452 """
2453 GetFilterIndex(self) -> int
2454
2455 Returns the index into the list of filters supplied, optionally, in
2456 the wildcard parameter. Before the dialog is shown, this is the index
d6c14a4c
RD
2457 which will be used when the dialog is first displayed. After the
2458 dialog is shown, this is the index selected by the user.
d55e5bfc
RD
2459 """
2460 return _windows_.FileDialog_GetFilterIndex(*args, **kwargs)
2461
2462 def GetFilenames(*args, **kwargs):
2463 """
2464 GetFilenames(self) -> PyObject
2465
d6c14a4c
RD
2466 Returns a list of filenames chosen in the dialog. This function
2467 should only be used with the dialogs which have wx.MULTIPLE style, use
d55e5bfc
RD
2468 GetFilename for the others.
2469 """
2470 return _windows_.FileDialog_GetFilenames(*args, **kwargs)
2471
2472 def GetPaths(*args, **kwargs):
2473 """
2474 GetPaths(self) -> PyObject
2475
2476 Fills the array paths with the full paths of the files chosen. This
d6c14a4c
RD
2477 function should only be used with the dialogs which have wx.MULTIPLE
2478 style, use GetPath for the others.
d55e5bfc
RD
2479 """
2480 return _windows_.FileDialog_GetPaths(*args, **kwargs)
2481
2482
2483class FileDialogPtr(FileDialog):
2484 def __init__(self, this):
2485 self.this = this
2486 if not hasattr(self,"thisown"): self.thisown = 0
2487 self.__class__ = FileDialog
2488_windows_.FileDialog_swigregister(FileDialogPtr)
2489
2490CHOICEDLG_STYLE = _windows_.CHOICEDLG_STYLE
2491class MultiChoiceDialog(Dialog):
2492 """A simple dialog with a multi selection listbox."""
2493 def __repr__(self):
2494 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2495 def __init__(self, *args, **kwargs):
2496 """
2497 __init__(Window parent, String message, String caption,
2498 List choices=[], long style=CHOICEDLG_STYLE,
2499 Point pos=DefaultPosition) -> MultiChoiceDialog
2500
2501 Constructor. Use ShowModal method to show the dialog.
2502 """
2503 newobj = _windows_.new_MultiChoiceDialog(*args, **kwargs)
2504 self.this = newobj.this
2505 self.thisown = 1
2506 del newobj.thisown
2507 self._setOORInfo(self)
2508
2509 def SetSelections(*args, **kwargs):
a001823c
RD
2510 """
2511 SetSelections(List selections)
2512
2513 Specify the items in the list that should be selected, using a list of
2514 integers.
2515 """
d55e5bfc
RD
2516 return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs)
2517
2518 def GetSelections(*args, **kwargs):
2519 """
2520 GetSelections() -> [selections]
2521
2522 Returns a list of integers representing the items that are selected.
2523 """
2524 return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs)
2525
2526
2527class MultiChoiceDialogPtr(MultiChoiceDialog):
2528 def __init__(self, this):
2529 self.this = this
2530 if not hasattr(self,"thisown"): self.thisown = 0
2531 self.__class__ = MultiChoiceDialog
2532_windows_.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr)
2533
2534class SingleChoiceDialog(Dialog):
2535 """A simple dialog with a single selection listbox."""
2536 def __repr__(self):
2537 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2538 def __init__(self, *args, **kwargs):
2539 """
2540 __init__(Window parent, String message, String caption,
2541 List choices=[], long style=CHOICEDLG_STYLE,
2542 Point pos=DefaultPosition) -> SingleChoiceDialog
2543
2544 Constructor. Use ShowModal method to show the dialog.
2545 """
2546 newobj = _windows_.new_SingleChoiceDialog(*args, **kwargs)
2547 self.this = newobj.this
2548 self.thisown = 1
2549 del newobj.thisown
2550 self._setOORInfo(self)
2551
2552 def GetSelection(*args, **kwargs):
2553 """
2554 GetSelection(self) -> int
2555
2556 Get the index of teh currently selected item.
2557 """
2558 return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs)
2559
2560 def GetStringSelection(*args, **kwargs):
2561 """
2562 GetStringSelection(self) -> String
2563
2564 Returns the string value of the currently selected item
2565 """
2566 return _windows_.SingleChoiceDialog_GetStringSelection(*args, **kwargs)
2567
2568 def SetSelection(*args, **kwargs):
2569 """
2570 SetSelection(self, int sel)
2571
2572 Set the current selected item to sel
2573 """
2574 return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs)
2575
2576
2577class SingleChoiceDialogPtr(SingleChoiceDialog):
2578 def __init__(self, this):
2579 self.this = this
2580 if not hasattr(self,"thisown"): self.thisown = 0
2581 self.__class__ = SingleChoiceDialog
2582_windows_.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr)
2583
2584class TextEntryDialog(Dialog):
2585 """A dialog with text control, [ok] and [cancel] buttons"""
2586 def __repr__(self):
2587 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2588 def __init__(self, *args, **kwargs):
2589 """
2590 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2591 String defaultValue=EmptyString,
2592 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2593
2594 Constructor. Use ShowModal method to show the dialog.
2595 """
2596 newobj = _windows_.new_TextEntryDialog(*args, **kwargs)
2597 self.this = newobj.this
2598 self.thisown = 1
2599 del newobj.thisown
2600 self._setOORInfo(self)
2601
2602 def GetValue(*args, **kwargs):
2603 """
2604 GetValue(self) -> String
2605
2606 Returns the text that the user has entered if the user has pressed OK,
2607 or the original value if the user has pressed Cancel.
2608 """
2609 return _windows_.TextEntryDialog_GetValue(*args, **kwargs)
2610
2611 def SetValue(*args, **kwargs):
2612 """
2613 SetValue(self, String value)
2614
2615 Sets the default text value.
2616 """
2617 return _windows_.TextEntryDialog_SetValue(*args, **kwargs)
2618
2619
2620class TextEntryDialogPtr(TextEntryDialog):
2621 def __init__(self, this):
2622 self.this = this
2623 if not hasattr(self,"thisown"): self.thisown = 0
2624 self.__class__ = TextEntryDialog
2625_windows_.TextEntryDialog_swigregister(TextEntryDialogPtr)
2626
2627class FontData(_core.Object):
d6c14a4c
RD
2628 """
2629 This class holds a variety of information related to font dialogs and
2630 is used to transfer settings to and results from a `wx.FontDialog`.
2631 """
d55e5bfc
RD
2632 def __repr__(self):
2633 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2634 def __init__(self, *args, **kwargs):
2635 """
2636 __init__(self) -> FontData
2637
d6c14a4c
RD
2638 This class holds a variety of information related to font dialogs and
2639 is used to transfer settings to and results from a `wx.FontDialog`.
d55e5bfc
RD
2640 """
2641 newobj = _windows_.new_FontData(*args, **kwargs)
2642 self.this = newobj.this
2643 self.thisown = 1
2644 del newobj.thisown
2645 def __del__(self, destroy=_windows_.delete_FontData):
2646 """__del__(self)"""
2647 try:
2648 if self.thisown: destroy(self)
2649 except: pass
2650
2651 def EnableEffects(*args, **kwargs):
2652 """
2653 EnableEffects(self, bool enable)
2654
d6c14a4c
RD
2655 Enables or disables 'effects' under MS Windows only. This refers to
2656 the controls for manipulating colour, strikeout and underline
d55e5bfc
RD
2657 properties. The default value is true.
2658 """
2659 return _windows_.FontData_EnableEffects(*args, **kwargs)
2660
2661 def GetAllowSymbols(*args, **kwargs):
2662 """
2663 GetAllowSymbols(self) -> bool
2664
d6c14a4c
RD
2665 Under MS Windows, returns a flag determining whether symbol fonts can
2666 be selected. Has no effect on other platforms. The default value is
2667 true.
d55e5bfc
RD
2668 """
2669 return _windows_.FontData_GetAllowSymbols(*args, **kwargs)
2670
2671 def GetColour(*args, **kwargs):
2672 """
2673 GetColour(self) -> Colour
2674
d6c14a4c
RD
2675 Gets the colour associated with the font dialog. The default value is
2676 black.
d55e5bfc
RD
2677 """
2678 return _windows_.FontData_GetColour(*args, **kwargs)
2679
2680 def GetChosenFont(*args, **kwargs):
2681 """
2682 GetChosenFont(self) -> Font
2683
2684 Gets the font chosen by the user.
2685 """
2686 return _windows_.FontData_GetChosenFont(*args, **kwargs)
2687
2688 def GetEnableEffects(*args, **kwargs):
2689 """
2690 GetEnableEffects(self) -> bool
2691
2692 Determines whether 'effects' are enabled under Windows.
2693 """
2694 return _windows_.FontData_GetEnableEffects(*args, **kwargs)
2695
2696 def GetInitialFont(*args, **kwargs):
2697 """
2698 GetInitialFont(self) -> Font
2699
d6c14a4c
RD
2700 Gets the font that will be initially used by the font dialog. This
2701 should have previously been set by the application.
d55e5bfc
RD
2702 """
2703 return _windows_.FontData_GetInitialFont(*args, **kwargs)
2704
2705 def GetShowHelp(*args, **kwargs):
2706 """
2707 GetShowHelp(self) -> bool
2708
d6c14a4c
RD
2709 Returns true if the Help button will be shown (Windows only). The
2710 default value is false.
d55e5bfc
RD
2711 """
2712 return _windows_.FontData_GetShowHelp(*args, **kwargs)
2713
2714 def SetAllowSymbols(*args, **kwargs):
2715 """
2716 SetAllowSymbols(self, bool allowSymbols)
2717
d6c14a4c
RD
2718 Under MS Windows, determines whether symbol fonts can be selected. Has
2719 no effect on other platforms. The default value is true.
d55e5bfc
RD
2720 """
2721 return _windows_.FontData_SetAllowSymbols(*args, **kwargs)
2722
2723 def SetChosenFont(*args, **kwargs):
2724 """
2725 SetChosenFont(self, Font font)
2726
d6c14a4c
RD
2727 Sets the font that will be returned to the user (normally for internal
2728 use only).
d55e5bfc
RD
2729 """
2730 return _windows_.FontData_SetChosenFont(*args, **kwargs)
2731
2732 def SetColour(*args, **kwargs):
2733 """
2734 SetColour(self, Colour colour)
2735
d6c14a4c
RD
2736 Sets the colour that will be used for the font foreground colour. The
2737 default colour is black.
d55e5bfc
RD
2738 """
2739 return _windows_.FontData_SetColour(*args, **kwargs)
2740
2741 def SetInitialFont(*args, **kwargs):
2742 """
2743 SetInitialFont(self, Font font)
2744
2745 Sets the font that will be initially used by the font dialog.
2746 """
2747 return _windows_.FontData_SetInitialFont(*args, **kwargs)
2748
2749 def SetRange(*args, **kwargs):
2750 """
2751 SetRange(self, int min, int max)
2752
d6c14a4c
RD
2753 Sets the valid range for the font point size (Windows only). The
2754 default is 0, 0 (unrestricted range).
d55e5bfc
RD
2755 """
2756 return _windows_.FontData_SetRange(*args, **kwargs)
2757
2758 def SetShowHelp(*args, **kwargs):
2759 """
2760 SetShowHelp(self, bool showHelp)
2761
d6c14a4c
RD
2762 Determines whether the Help button will be displayed in the font
2763 dialog (Windows only). The default value is false.
d55e5bfc
RD
2764 """
2765 return _windows_.FontData_SetShowHelp(*args, **kwargs)
2766
2767
2768class FontDataPtr(FontData):
2769 def __init__(self, this):
2770 self.this = this
2771 if not hasattr(self,"thisown"): self.thisown = 0
2772 self.__class__ = FontData
2773_windows_.FontData_swigregister(FontDataPtr)
2774
2775class FontDialog(Dialog):
d6c14a4c
RD
2776 """
2777 wx.FontDialog allows the user to select a system font and its attributes.
2778
2779 :see: `wx.FontData`
2780
2781 """
d55e5bfc
RD
2782 def __repr__(self):
2783 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2784 def __init__(self, *args, **kwargs):
2785 """
2786 __init__(self, Window parent, FontData data) -> FontDialog
2787
d6c14a4c
RD
2788 Constructor. Pass a parent window and the `wx.FontData` object to be
2789 used to initialize the dialog controls. Call `ShowModal` to display
2790 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2791 results with via the `wx.FontData` returned by `GetFontData`.
d55e5bfc
RD
2792 """
2793 newobj = _windows_.new_FontDialog(*args, **kwargs)
2794 self.this = newobj.this
2795 self.thisown = 1
2796 del newobj.thisown
2797 self._setOORInfo(self)
2798
2799 def GetFontData(*args, **kwargs):
2800 """
2801 GetFontData(self) -> FontData
2802
d6c14a4c
RD
2803 Returns a reference to the internal `wx.FontData` used by the
2804 wx.FontDialog.
d55e5bfc
RD
2805 """
2806 return _windows_.FontDialog_GetFontData(*args, **kwargs)
2807
2808
2809class FontDialogPtr(FontDialog):
2810 def __init__(self, this):
2811 self.this = this
2812 if not hasattr(self,"thisown"): self.thisown = 0
2813 self.__class__ = FontDialog
2814_windows_.FontDialog_swigregister(FontDialogPtr)
2815
2816class MessageDialog(Dialog):
2817 """
d6c14a4c
RD
2818 This class provides a simple dialog that shows a single or multi-line
2819 message, with a choice of OK, Yes, No and/or Cancel buttons.
d55e5bfc
RD
2820 """
2821 def __repr__(self):
2822 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2823 def __init__(self, *args, **kwargs):
2824 """
2825 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2826 long style=wxOK|wxCANCEL|wxCENTRE,
2827 Point pos=DefaultPosition) -> MessageDialog
2828
d6c14a4c 2829 Constructor, use `ShowModal` to display the dialog.
d55e5bfc
RD
2830 """
2831 newobj = _windows_.new_MessageDialog(*args, **kwargs)
2832 self.this = newobj.this
2833 self.thisown = 1
2834 del newobj.thisown
2835 self._setOORInfo(self)
2836
2837
2838class MessageDialogPtr(MessageDialog):
2839 def __init__(self, this):
2840 self.this = this
2841 if not hasattr(self,"thisown"): self.thisown = 0
2842 self.__class__ = MessageDialog
2843_windows_.MessageDialog_swigregister(MessageDialogPtr)
2844
2845class ProgressDialog(Frame):
2846 """
d6c14a4c
RD
2847 A dialog that shows a short message and a progress bar. Optionally, it
2848 can display an ABORT button.
d55e5bfc
RD
2849 """
2850 def __repr__(self):
2851 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2852 def __init__(self, *args, **kwargs):
2853 """
2854 __init__(self, String title, String message, int maximum=100, Window parent=None,
2855 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2856
d6c14a4c
RD
2857 Constructor. Creates the dialog, displays it and disables user input
2858 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2859 parent window only.
d55e5bfc
RD
2860 """
2861 newobj = _windows_.new_ProgressDialog(*args, **kwargs)
2862 self.this = newobj.this
2863 self.thisown = 1
2864 del newobj.thisown
2865 self._setOORInfo(self)
2866
2867 def Update(*args, **kwargs):
2868 """
2869 Update(self, int value, String newmsg=EmptyString) -> bool
2870
d6c14a4c 2871 Updates the dialog, setting the progress bar to the new value and, if
6923d0a9
RD
2872 given changes the message above it. The value given should be less
2873 than or equal to the maximum value given to the constructor and the
2874 dialog is closed if it is equal to the maximum. Returns true unless
2875 the Cancel button has been pressed.
d55e5bfc 2876
d6c14a4c
RD
2877 If false is returned, the application can either immediately destroy
2878 the dialog or ask the user for the confirmation and if the abort is
2879 not confirmed the dialog may be resumed with Resume function.
d55e5bfc
RD
2880 """
2881 return _windows_.ProgressDialog_Update(*args, **kwargs)
2882
2883 def Resume(*args, **kwargs):
2884 """
2885 Resume(self)
2886
d6c14a4c
RD
2887 Can be used to continue with the dialog, after the user had chosen to
2888 abort.
d55e5bfc
RD
2889 """
2890 return _windows_.ProgressDialog_Resume(*args, **kwargs)
2891
2892
2893class ProgressDialogPtr(ProgressDialog):
2894 def __init__(self, this):
2895 self.this = this
2896 if not hasattr(self,"thisown"): self.thisown = 0
2897 self.__class__ = ProgressDialog
2898_windows_.ProgressDialog_swigregister(ProgressDialogPtr)
2899
2900FR_DOWN = _windows_.FR_DOWN
2901FR_WHOLEWORD = _windows_.FR_WHOLEWORD
2902FR_MATCHCASE = _windows_.FR_MATCHCASE
2903FR_REPLACEDIALOG = _windows_.FR_REPLACEDIALOG
2904FR_NOUPDOWN = _windows_.FR_NOUPDOWN
2905FR_NOMATCHCASE = _windows_.FR_NOMATCHCASE
2906FR_NOWHOLEWORD = _windows_.FR_NOWHOLEWORD
2907wxEVT_COMMAND_FIND = _windows_.wxEVT_COMMAND_FIND
2908wxEVT_COMMAND_FIND_NEXT = _windows_.wxEVT_COMMAND_FIND_NEXT
2909wxEVT_COMMAND_FIND_REPLACE = _windows_.wxEVT_COMMAND_FIND_REPLACE
2910wxEVT_COMMAND_FIND_REPLACE_ALL = _windows_.wxEVT_COMMAND_FIND_REPLACE_ALL
2911wxEVT_COMMAND_FIND_CLOSE = _windows_.wxEVT_COMMAND_FIND_CLOSE
2912EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 )
2913EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 )
2914EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 )
2915EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 )
2916EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 )
2917
2918# For backwards compatibility. Should they be removed?
2919EVT_COMMAND_FIND = EVT_FIND
2920EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT
2921EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE
2922EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL
2923EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE
2924
2925class FindDialogEvent(_core.CommandEvent):
2926 """Events for the FindReplaceDialog"""
2927 def __repr__(self):
2928 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2929 def __init__(self, *args, **kwargs):
2930 """
2931 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2932
2933 Events for the FindReplaceDialog
2934 """
2935 newobj = _windows_.new_FindDialogEvent(*args, **kwargs)
2936 self.this = newobj.this
2937 self.thisown = 1
2938 del newobj.thisown
2939 def GetFlags(*args, **kwargs):
2940 """
2941 GetFlags(self) -> int
2942
2943 Get the currently selected flags: this is the combination of
2944 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2945 """
2946 return _windows_.FindDialogEvent_GetFlags(*args, **kwargs)
2947
2948 def GetFindString(*args, **kwargs):
2949 """
2950 GetFindString(self) -> String
2951
2952 Return the string to find (never empty).
2953 """
2954 return _windows_.FindDialogEvent_GetFindString(*args, **kwargs)
2955
2956 def GetReplaceString(*args, **kwargs):
2957 """
2958 GetReplaceString(self) -> String
2959
d6c14a4c
RD
2960 Return the string to replace the search string with (only for replace
2961 and replace all events).
d55e5bfc
RD
2962 """
2963 return _windows_.FindDialogEvent_GetReplaceString(*args, **kwargs)
2964
2965 def GetDialog(*args, **kwargs):
2966 """
2967 GetDialog(self) -> FindReplaceDialog
2968
2969 Return the pointer to the dialog which generated this event.
2970 """
2971 return _windows_.FindDialogEvent_GetDialog(*args, **kwargs)
2972
2973 def SetFlags(*args, **kwargs):
2974 """SetFlags(self, int flags)"""
2975 return _windows_.FindDialogEvent_SetFlags(*args, **kwargs)
2976
2977 def SetFindString(*args, **kwargs):
2978 """SetFindString(self, String str)"""
2979 return _windows_.FindDialogEvent_SetFindString(*args, **kwargs)
2980
2981 def SetReplaceString(*args, **kwargs):
2982 """SetReplaceString(self, String str)"""
2983 return _windows_.FindDialogEvent_SetReplaceString(*args, **kwargs)
2984
2985
2986class FindDialogEventPtr(FindDialogEvent):
2987 def __init__(self, this):
2988 self.this = this
2989 if not hasattr(self,"thisown"): self.thisown = 0
2990 self.__class__ = FindDialogEvent
2991_windows_.FindDialogEvent_swigregister(FindDialogEventPtr)
2992
2993class FindReplaceData(_core.Object):
2994 """
d6c14a4c
RD
2995 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2996 to initialize the dialog with the default values and will keep the
2997 last values from the dialog when it is closed. It is also updated each
2998 time a `wx.FindDialogEvent` is generated so instead of using the
2999 `wx.FindDialogEvent` methods you can also directly query this object.
d55e5bfc 3000
d6c14a4c
RD
3001 Note that all SetXXX() methods may only be called before showing the
3002 dialog and calling them has no effect later.
d55e5bfc
RD
3003 """
3004 def __repr__(self):
3005 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3006 def __init__(self, *args, **kwargs):
3007 """
3008 __init__(self, int flags=0) -> FindReplaceData
3009
3010 Constuctor initializes the flags to default value (0).
3011 """
3012 newobj = _windows_.new_FindReplaceData(*args, **kwargs)
3013 self.this = newobj.this
3014 self.thisown = 1
3015 del newobj.thisown
3016 def __del__(self, destroy=_windows_.delete_FindReplaceData):
3017 """__del__(self)"""
3018 try:
3019 if self.thisown: destroy(self)
3020 except: pass
3021
3022 def GetFindString(*args, **kwargs):
3023 """
3024 GetFindString(self) -> String
3025
3026 Get the string to find.
3027 """
3028 return _windows_.FindReplaceData_GetFindString(*args, **kwargs)
3029
3030 def GetReplaceString(*args, **kwargs):
3031 """
3032 GetReplaceString(self) -> String
3033
3034 Get the replacement string.
3035 """
3036 return _windows_.FindReplaceData_GetReplaceString(*args, **kwargs)
3037
3038 def GetFlags(*args, **kwargs):
3039 """
3040 GetFlags(self) -> int
3041
3042 Get the combination of flag values.
3043 """
3044 return _windows_.FindReplaceData_GetFlags(*args, **kwargs)
3045
3046 def SetFlags(*args, **kwargs):
3047 """
3048 SetFlags(self, int flags)
3049
3050 Set the flags to use to initialize the controls of the dialog.
3051 """
3052 return _windows_.FindReplaceData_SetFlags(*args, **kwargs)
3053
3054 def SetFindString(*args, **kwargs):
3055 """
3056 SetFindString(self, String str)
3057
3058 Set the string to find (used as initial value by the dialog).
3059 """
3060 return _windows_.FindReplaceData_SetFindString(*args, **kwargs)
3061
3062 def SetReplaceString(*args, **kwargs):
3063 """
3064 SetReplaceString(self, String str)
3065
3066 Set the replacement string (used as initial value by the dialog).
3067 """
3068 return _windows_.FindReplaceData_SetReplaceString(*args, **kwargs)
3069
3070
3071class FindReplaceDataPtr(FindReplaceData):
3072 def __init__(self, this):
3073 self.this = this
3074 if not hasattr(self,"thisown"): self.thisown = 0
3075 self.__class__ = FindReplaceData
3076_windows_.FindReplaceData_swigregister(FindReplaceDataPtr)
3077
3078class FindReplaceDialog(Dialog):
3079 """
d6c14a4c
RD
3080 wx.FindReplaceDialog is a standard modeless dialog which is used to
3081 allow the user to search for some text (and possibly replace it with
3082 something else). The actual searching is supposed to be done in the
3083 owner window which is the parent of this dialog. Note that it means
3084 that unlike for the other standard dialogs this one must have a parent
3085 window. Also note that there is no way to use this dialog in a modal
3086 way; it is always, by design and implementation, modeless.
d55e5bfc
RD
3087 """
3088 def __repr__(self):
3089 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3090 def __init__(self, *args, **kwargs):
3091 """
3092 __init__(self, Window parent, FindReplaceData data, String title,
3093 int style=0) -> FindReplaceDialog
3094
3095 Create a FindReplaceDialog. The parent and data parameters must be
3096 non-None. Use Show to display the dialog.
3097 """
3098 newobj = _windows_.new_FindReplaceDialog(*args, **kwargs)
3099 self.this = newobj.this
3100 self.thisown = 1
3101 del newobj.thisown
3102 self._setOORInfo(self)
3103
3104 def Create(*args, **kwargs):
3105 """
3106 Create(self, Window parent, FindReplaceData data, String title,
3107 int style=0) -> bool
3108
3109 Create the dialog, for 2-phase create.
3110 """
3111 return _windows_.FindReplaceDialog_Create(*args, **kwargs)
3112
3113 def GetData(*args, **kwargs):
3114 """
3115 GetData(self) -> FindReplaceData
3116
3117 Get the FindReplaceData object used by this dialog.
3118 """
3119 return _windows_.FindReplaceDialog_GetData(*args, **kwargs)
3120
3121 def SetData(*args, **kwargs):
3122 """
3123 SetData(self, FindReplaceData data)
3124
3125 Set the FindReplaceData object used by this dialog.
3126 """
3127 return _windows_.FindReplaceDialog_SetData(*args, **kwargs)
3128
3129
3130class FindReplaceDialogPtr(FindReplaceDialog):
3131 def __init__(self, this):
3132 self.this = this
3133 if not hasattr(self,"thisown"): self.thisown = 0
3134 self.__class__ = FindReplaceDialog
3135_windows_.FindReplaceDialog_swigregister(FindReplaceDialogPtr)
3136
3137def PreFindReplaceDialog(*args, **kwargs):
3138 """
3139 PreFindReplaceDialog() -> FindReplaceDialog
3140
3141 Precreate a FindReplaceDialog for 2-phase creation
3142 """
3143 val = _windows_.new_PreFindReplaceDialog(*args, **kwargs)
3144 val.thisown = 1
3145 return val
3146
3147#---------------------------------------------------------------------------
3148
3149IDM_WINDOWTILE = _windows_.IDM_WINDOWTILE
3150IDM_WINDOWTILEHOR = _windows_.IDM_WINDOWTILEHOR
3151IDM_WINDOWCASCADE = _windows_.IDM_WINDOWCASCADE
3152IDM_WINDOWICONS = _windows_.IDM_WINDOWICONS
3153IDM_WINDOWNEXT = _windows_.IDM_WINDOWNEXT
3154IDM_WINDOWTILEVERT = _windows_.IDM_WINDOWTILEVERT
3155FIRST_MDI_CHILD = _windows_.FIRST_MDI_CHILD
3156LAST_MDI_CHILD = _windows_.LAST_MDI_CHILD
3157class MDIParentFrame(Frame):
3158 def __repr__(self):
3159 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3160 def __init__(self, *args, **kwargs):
3161 """
bfddbb17
RD
3162 __init__(self, Window parent, int id=-1, String title=EmptyString,
3163 Point pos=DefaultPosition, Size size=DefaultSize,
3164 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
d55e5bfc
RD
3165 String name=FrameNameStr) -> MDIParentFrame
3166 """
3167 newobj = _windows_.new_MDIParentFrame(*args, **kwargs)
3168 self.this = newobj.this
3169 self.thisown = 1
3170 del newobj.thisown
3171 self._setOORInfo(self)
3172
3173 def Create(*args, **kwargs):
3174 """
bfddbb17
RD
3175 Create(self, Window parent, int id=-1, String title=EmptyString,
3176 Point pos=DefaultPosition, Size size=DefaultSize,
3177 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
d55e5bfc
RD
3178 String name=FrameNameStr) -> bool
3179 """
3180 return _windows_.MDIParentFrame_Create(*args, **kwargs)
3181
3182 def ActivateNext(*args, **kwargs):
3183 """ActivateNext(self)"""
3184 return _windows_.MDIParentFrame_ActivateNext(*args, **kwargs)
3185
3186 def ActivatePrevious(*args, **kwargs):
3187 """ActivatePrevious(self)"""
3188 return _windows_.MDIParentFrame_ActivatePrevious(*args, **kwargs)
3189
3190 def ArrangeIcons(*args, **kwargs):
3191 """ArrangeIcons(self)"""
3192 return _windows_.MDIParentFrame_ArrangeIcons(*args, **kwargs)
3193
3194 def Cascade(*args, **kwargs):
3195 """Cascade(self)"""
3196 return _windows_.MDIParentFrame_Cascade(*args, **kwargs)
3197
3198 def GetActiveChild(*args, **kwargs):
3199 """GetActiveChild(self) -> MDIChildFrame"""
3200 return _windows_.MDIParentFrame_GetActiveChild(*args, **kwargs)
3201
3202 def GetClientWindow(*args, **kwargs):
3203 """GetClientWindow(self) -> MDIClientWindow"""
3204 return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs)
3205
3206 def GetToolBar(*args, **kwargs):
3207 """GetToolBar(self) -> Window"""
3208 return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs)
3209
3210 def Tile(*args, **kwargs):
3211 """Tile(self)"""
3212 return _windows_.MDIParentFrame_Tile(*args, **kwargs)
3213
3214
3215class MDIParentFramePtr(MDIParentFrame):
3216 def __init__(self, this):
3217 self.this = this
3218 if not hasattr(self,"thisown"): self.thisown = 0
3219 self.__class__ = MDIParentFrame
3220_windows_.MDIParentFrame_swigregister(MDIParentFramePtr)
3221
3222def PreMDIParentFrame(*args, **kwargs):
3223 """PreMDIParentFrame() -> MDIParentFrame"""
3224 val = _windows_.new_PreMDIParentFrame(*args, **kwargs)
3225 val.thisown = 1
3226 return val
3227
3228class MDIChildFrame(Frame):
3229 def __repr__(self):
3230 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3231 def __init__(self, *args, **kwargs):
3232 """
bfddbb17
RD
3233 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3234 Point pos=DefaultPosition, Size size=DefaultSize,
3235 long style=DEFAULT_FRAME_STYLE,
d55e5bfc
RD
3236 String name=FrameNameStr) -> MDIChildFrame
3237 """
3238 newobj = _windows_.new_MDIChildFrame(*args, **kwargs)
3239 self.this = newobj.this
3240 self.thisown = 1
3241 del newobj.thisown
3242 self._setOORInfo(self)
3243
3244 def Create(*args, **kwargs):
3245 """
bfddbb17
RD
3246 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3247 Point pos=DefaultPosition, Size size=DefaultSize,
3248 long style=DEFAULT_FRAME_STYLE,
d55e5bfc
RD
3249 String name=FrameNameStr) -> bool
3250 """
3251 return _windows_.MDIChildFrame_Create(*args, **kwargs)
3252
3253 def Activate(*args, **kwargs):
3254 """Activate(self)"""
3255 return _windows_.MDIChildFrame_Activate(*args, **kwargs)
3256
3257 def Maximize(*args, **kwargs):
3258 """Maximize(self, bool maximize)"""
3259 return _windows_.MDIChildFrame_Maximize(*args, **kwargs)
3260
3261 def Restore(*args, **kwargs):
3262 """Restore(self)"""
3263 return _windows_.MDIChildFrame_Restore(*args, **kwargs)
3264
3265
3266class MDIChildFramePtr(MDIChildFrame):
3267 def __init__(self, this):
3268 self.this = this
3269 if not hasattr(self,"thisown"): self.thisown = 0
3270 self.__class__ = MDIChildFrame
3271_windows_.MDIChildFrame_swigregister(MDIChildFramePtr)
3272
3273def PreMDIChildFrame(*args, **kwargs):
3274 """PreMDIChildFrame() -> MDIChildFrame"""
3275 val = _windows_.new_PreMDIChildFrame(*args, **kwargs)
3276 val.thisown = 1
3277 return val
3278
3279class MDIClientWindow(_core.Window):
3280 def __repr__(self):
3281 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3282 def __init__(self, *args, **kwargs):
3283 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3284 newobj = _windows_.new_MDIClientWindow(*args, **kwargs)
3285 self.this = newobj.this
3286 self.thisown = 1
3287 del newobj.thisown
3288 self._setOORInfo(self)
3289
3290 def Create(*args, **kwargs):
3291 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3292 return _windows_.MDIClientWindow_Create(*args, **kwargs)
3293
3294
3295class MDIClientWindowPtr(MDIClientWindow):
3296 def __init__(self, this):
3297 self.this = this
3298 if not hasattr(self,"thisown"): self.thisown = 0
3299 self.__class__ = MDIClientWindow
3300_windows_.MDIClientWindow_swigregister(MDIClientWindowPtr)
3301
3302def PreMDIClientWindow(*args, **kwargs):
3303 """PreMDIClientWindow() -> MDIClientWindow"""
3304 val = _windows_.new_PreMDIClientWindow(*args, **kwargs)
3305 val.thisown = 1
3306 return val
3307
3308#---------------------------------------------------------------------------
3309
3310class PyWindow(_core.Window):
3311 def __repr__(self):
3312 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3313 def __init__(self, *args, **kwargs):
3314 """
bfddbb17
RD
3315 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3316 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
d55e5bfc
RD
3317 """
3318 newobj = _windows_.new_PyWindow(*args, **kwargs)
3319 self.this = newobj.this
3320 self.thisown = 1
3321 del newobj.thisown
3322 self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)
3323
3324 def _setCallbackInfo(*args, **kwargs):
3325 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3326 return _windows_.PyWindow__setCallbackInfo(*args, **kwargs)
3327
a5ee0656
RD
3328 def SetBestSize(*args, **kwargs):
3329 """SetBestSize(self, Size size)"""
3330 return _windows_.PyWindow_SetBestSize(*args, **kwargs)
3331
d55e5bfc
RD
3332 def base_DoMoveWindow(*args, **kwargs):
3333 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3334 return _windows_.PyWindow_base_DoMoveWindow(*args, **kwargs)
3335
3336 def base_DoSetSize(*args, **kwargs):
3337 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3338 return _windows_.PyWindow_base_DoSetSize(*args, **kwargs)
3339
3340 def base_DoSetClientSize(*args, **kwargs):
3341 """base_DoSetClientSize(self, int width, int height)"""
3342 return _windows_.PyWindow_base_DoSetClientSize(*args, **kwargs)
3343
3344 def base_DoSetVirtualSize(*args, **kwargs):
3345 """base_DoSetVirtualSize(self, int x, int y)"""
3346 return _windows_.PyWindow_base_DoSetVirtualSize(*args, **kwargs)
3347
3348 def base_DoGetSize(*args, **kwargs):
3349 """base_DoGetSize() -> (width, height)"""
3350 return _windows_.PyWindow_base_DoGetSize(*args, **kwargs)
3351
3352 def base_DoGetClientSize(*args, **kwargs):
3353 """base_DoGetClientSize() -> (width, height)"""
3354 return _windows_.PyWindow_base_DoGetClientSize(*args, **kwargs)
3355
3356 def base_DoGetPosition(*args, **kwargs):
3357 """base_DoGetPosition() -> (x,y)"""
3358 return _windows_.PyWindow_base_DoGetPosition(*args, **kwargs)
3359
3360 def base_DoGetVirtualSize(*args, **kwargs):
3361 """base_DoGetVirtualSize(self) -> Size"""
3362 return _windows_.PyWindow_base_DoGetVirtualSize(*args, **kwargs)
3363
3364 def base_DoGetBestSize(*args, **kwargs):
3365 """base_DoGetBestSize(self) -> Size"""
3366 return _windows_.PyWindow_base_DoGetBestSize(*args, **kwargs)
3367
3368 def base_InitDialog(*args, **kwargs):
3369 """base_InitDialog(self)"""
3370 return _windows_.PyWindow_base_InitDialog(*args, **kwargs)
3371
3372 def base_TransferDataToWindow(*args, **kwargs):
3373 """base_TransferDataToWindow(self) -> bool"""
3374 return _windows_.PyWindow_base_TransferDataToWindow(*args, **kwargs)
3375
3376 def base_TransferDataFromWindow(*args, **kwargs):
3377 """base_TransferDataFromWindow(self) -> bool"""
3378 return _windows_.PyWindow_base_TransferDataFromWindow(*args, **kwargs)
3379
3380 def base_Validate(*args, **kwargs):
3381 """base_Validate(self) -> bool"""
3382 return _windows_.PyWindow_base_Validate(*args, **kwargs)
3383
3384 def base_AcceptsFocus(*args, **kwargs):
3385 """base_AcceptsFocus(self) -> bool"""
3386 return _windows_.PyWindow_base_AcceptsFocus(*args, **kwargs)
3387
3388 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
3389 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3390 return _windows_.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs)
3391
3392 def base_GetMaxSize(*args, **kwargs):
3393 """base_GetMaxSize(self) -> Size"""
3394 return _windows_.PyWindow_base_GetMaxSize(*args, **kwargs)
3395
3396 def base_AddChild(*args, **kwargs):
3397 """base_AddChild(self, Window child)"""
3398 return _windows_.PyWindow_base_AddChild(*args, **kwargs)
3399
3400 def base_RemoveChild(*args, **kwargs):
3401 """base_RemoveChild(self, Window child)"""
3402 return _windows_.PyWindow_base_RemoveChild(*args, **kwargs)
3403
3404 def base_ShouldInheritColours(*args, **kwargs):
3405 """base_ShouldInheritColours(self) -> bool"""
3406 return _windows_.PyWindow_base_ShouldInheritColours(*args, **kwargs)
3407
3408 def base_ApplyParentThemeBackground(*args, **kwargs):
3409 """base_ApplyParentThemeBackground(self, Colour c)"""
3410 return _windows_.PyWindow_base_ApplyParentThemeBackground(*args, **kwargs)
3411
a5ee0656
RD
3412 def base_GetDefaultAttributes(*args, **kwargs):
3413 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3414 return _windows_.PyWindow_base_GetDefaultAttributes(*args, **kwargs)
3415
d55e5bfc
RD
3416
3417class PyWindowPtr(PyWindow):
3418 def __init__(self, this):
3419 self.this = this
3420 if not hasattr(self,"thisown"): self.thisown = 0
3421 self.__class__ = PyWindow
3422_windows_.PyWindow_swigregister(PyWindowPtr)
3423
3424def PrePyWindow(*args, **kwargs):
3425 """PrePyWindow() -> PyWindow"""
3426 val = _windows_.new_PrePyWindow(*args, **kwargs)
3427 val.thisown = 1
3428 return val
3429
3430class PyPanel(Panel):
3431 def __repr__(self):
3432 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3433 def __init__(self, *args, **kwargs):
3434 """
bfddbb17
RD
3435 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3436 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
d55e5bfc
RD
3437 """
3438 newobj = _windows_.new_PyPanel(*args, **kwargs)
3439 self.this = newobj.this
3440 self.thisown = 1
3441 del newobj.thisown
3442 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
3443
3444 def _setCallbackInfo(*args, **kwargs):
3445 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3446 return _windows_.PyPanel__setCallbackInfo(*args, **kwargs)
3447
a5ee0656
RD
3448 def SetBestSize(*args, **kwargs):
3449 """SetBestSize(self, Size size)"""
3450 return _windows_.PyPanel_SetBestSize(*args, **kwargs)
3451
d55e5bfc
RD
3452 def base_DoMoveWindow(*args, **kwargs):
3453 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3454 return _windows_.PyPanel_base_DoMoveWindow(*args, **kwargs)
3455
3456 def base_DoSetSize(*args, **kwargs):
3457 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3458 return _windows_.PyPanel_base_DoSetSize(*args, **kwargs)
3459
3460 def base_DoSetClientSize(*args, **kwargs):
3461 """base_DoSetClientSize(self, int width, int height)"""
3462 return _windows_.PyPanel_base_DoSetClientSize(*args, **kwargs)
3463
3464 def base_DoSetVirtualSize(*args, **kwargs):
3465 """base_DoSetVirtualSize(self, int x, int y)"""
3466 return _windows_.PyPanel_base_DoSetVirtualSize(*args, **kwargs)
3467
3468 def base_DoGetSize(*args, **kwargs):
3469 """base_DoGetSize() -> (width, height)"""
3470 return _windows_.PyPanel_base_DoGetSize(*args, **kwargs)
3471
3472 def base_DoGetClientSize(*args, **kwargs):
3473 """base_DoGetClientSize() -> (width, height)"""
3474 return _windows_.PyPanel_base_DoGetClientSize(*args, **kwargs)
3475
3476 def base_DoGetPosition(*args, **kwargs):
3477 """base_DoGetPosition() -> (x,y)"""
3478 return _windows_.PyPanel_base_DoGetPosition(*args, **kwargs)
3479
3480 def base_DoGetVirtualSize(*args, **kwargs):
3481 """base_DoGetVirtualSize(self) -> Size"""
3482 return _windows_.PyPanel_base_DoGetVirtualSize(*args, **kwargs)
3483
3484 def base_DoGetBestSize(*args, **kwargs):
3485 """base_DoGetBestSize(self) -> Size"""
3486 return _windows_.PyPanel_base_DoGetBestSize(*args, **kwargs)
3487
3488 def base_InitDialog(*args, **kwargs):
3489 """base_InitDialog(self)"""
3490 return _windows_.PyPanel_base_InitDialog(*args, **kwargs)
3491
3492 def base_TransferDataToWindow(*args, **kwargs):
3493 """base_TransferDataToWindow(self) -> bool"""
3494 return _windows_.PyPanel_base_TransferDataToWindow(*args, **kwargs)
3495
3496 def base_TransferDataFromWindow(*args, **kwargs):
3497 """base_TransferDataFromWindow(self) -> bool"""
3498 return _windows_.PyPanel_base_TransferDataFromWindow(*args, **kwargs)
3499
3500 def base_Validate(*args, **kwargs):
3501 """base_Validate(self) -> bool"""
3502 return _windows_.PyPanel_base_Validate(*args, **kwargs)
3503
3504 def base_AcceptsFocus(*args, **kwargs):
3505 """base_AcceptsFocus(self) -> bool"""
3506 return _windows_.PyPanel_base_AcceptsFocus(*args, **kwargs)
3507
3508 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
3509 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3510 return _windows_.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs)
3511
3512 def base_GetMaxSize(*args, **kwargs):
3513 """base_GetMaxSize(self) -> Size"""
3514 return _windows_.PyPanel_base_GetMaxSize(*args, **kwargs)
3515
3516 def base_AddChild(*args, **kwargs):
3517 """base_AddChild(self, Window child)"""
3518 return _windows_.PyPanel_base_AddChild(*args, **kwargs)
3519
3520 def base_RemoveChild(*args, **kwargs):
3521 """base_RemoveChild(self, Window child)"""
3522 return _windows_.PyPanel_base_RemoveChild(*args, **kwargs)
3523
3524 def base_ShouldInheritColours(*args, **kwargs):
3525 """base_ShouldInheritColours(self) -> bool"""
3526 return _windows_.PyPanel_base_ShouldInheritColours(*args, **kwargs)
3527
3528 def base_ApplyParentThemeBackground(*args, **kwargs):
3529 """base_ApplyParentThemeBackground(self, Colour c)"""
3530 return _windows_.PyPanel_base_ApplyParentThemeBackground(*args, **kwargs)
3531
a5ee0656
RD
3532 def base_GetDefaultAttributes(*args, **kwargs):
3533 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3534 return _windows_.PyPanel_base_GetDefaultAttributes(*args, **kwargs)
3535
d55e5bfc
RD
3536
3537class PyPanelPtr(PyPanel):
3538 def __init__(self, this):
3539 self.this = this
3540 if not hasattr(self,"thisown"): self.thisown = 0
3541 self.__class__ = PyPanel
3542_windows_.PyPanel_swigregister(PyPanelPtr)
3543
3544def PrePyPanel(*args, **kwargs):
3545 """PrePyPanel() -> PyPanel"""
3546 val = _windows_.new_PrePyPanel(*args, **kwargs)
3547 val.thisown = 1
3548 return val
3549
3550class PyScrolledWindow(ScrolledWindow):
3551 def __repr__(self):
3552 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3553 def __init__(self, *args, **kwargs):
3554 """
bfddbb17
RD
3555 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3556 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
d55e5bfc
RD
3557 """
3558 newobj = _windows_.new_PyScrolledWindow(*args, **kwargs)
3559 self.this = newobj.this
3560 self.thisown = 1
3561 del newobj.thisown
3562 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
3563
3564 def _setCallbackInfo(*args, **kwargs):
3565 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3566 return _windows_.PyScrolledWindow__setCallbackInfo(*args, **kwargs)
3567
a5ee0656
RD
3568 def SetBestSize(*args, **kwargs):
3569 """SetBestSize(self, Size size)"""
3570 return _windows_.PyScrolledWindow_SetBestSize(*args, **kwargs)
3571
d55e5bfc
RD
3572 def base_DoMoveWindow(*args, **kwargs):
3573 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3574 return _windows_.PyScrolledWindow_base_DoMoveWindow(*args, **kwargs)
3575
3576 def base_DoSetSize(*args, **kwargs):
3577 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3578 return _windows_.PyScrolledWindow_base_DoSetSize(*args, **kwargs)
3579
3580 def base_DoSetClientSize(*args, **kwargs):
3581 """base_DoSetClientSize(self, int width, int height)"""
3582 return _windows_.PyScrolledWindow_base_DoSetClientSize(*args, **kwargs)
3583
3584 def base_DoSetVirtualSize(*args, **kwargs):
3585 """base_DoSetVirtualSize(self, int x, int y)"""
3586 return _windows_.PyScrolledWindow_base_DoSetVirtualSize(*args, **kwargs)
3587
3588 def base_DoGetSize(*args, **kwargs):
3589 """base_DoGetSize() -> (width, height)"""
3590 return _windows_.PyScrolledWindow_base_DoGetSize(*args, **kwargs)
3591
3592 def base_DoGetClientSize(*args, **kwargs):
3593 """base_DoGetClientSize() -> (width, height)"""
3594 return _windows_.PyScrolledWindow_base_DoGetClientSize(*args, **kwargs)
3595
3596 def base_DoGetPosition(*args, **kwargs):
3597 """base_DoGetPosition() -> (x,y)"""
3598 return _windows_.PyScrolledWindow_base_DoGetPosition(*args, **kwargs)
3599
3600 def base_DoGetVirtualSize(*args, **kwargs):
3601 """base_DoGetVirtualSize(self) -> Size"""
3602 return _windows_.PyScrolledWindow_base_DoGetVirtualSize(*args, **kwargs)
3603
3604 def base_DoGetBestSize(*args, **kwargs):
3605 """base_DoGetBestSize(self) -> Size"""
3606 return _windows_.PyScrolledWindow_base_DoGetBestSize(*args, **kwargs)
3607
3608 def base_InitDialog(*args, **kwargs):
3609 """base_InitDialog(self)"""
3610 return _windows_.PyScrolledWindow_base_InitDialog(*args, **kwargs)
3611
3612 def base_TransferDataToWindow(*args, **kwargs):
3613 """base_TransferDataToWindow(self) -> bool"""
3614 return _windows_.PyScrolledWindow_base_TransferDataToWindow(*args, **kwargs)
3615
3616 def base_TransferDataFromWindow(*args, **kwargs):
3617 """base_TransferDataFromWindow(self) -> bool"""
3618 return _windows_.PyScrolledWindow_base_TransferDataFromWindow(*args, **kwargs)
3619
3620 def base_Validate(*args, **kwargs):
3621 """base_Validate(self) -> bool"""
3622 return _windows_.PyScrolledWindow_base_Validate(*args, **kwargs)
3623
3624 def base_AcceptsFocus(*args, **kwargs):
3625 """base_AcceptsFocus(self) -> bool"""
3626 return _windows_.PyScrolledWindow_base_AcceptsFocus(*args, **kwargs)
3627
3628 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
3629 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3630 return _windows_.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs)
3631
3632 def base_GetMaxSize(*args, **kwargs):
3633 """base_GetMaxSize(self) -> Size"""
3634 return _windows_.PyScrolledWindow_base_GetMaxSize(*args, **kwargs)
3635
3636 def base_AddChild(*args, **kwargs):
3637 """base_AddChild(self, Window child)"""
3638 return _windows_.PyScrolledWindow_base_AddChild(*args, **kwargs)
3639
3640 def base_RemoveChild(*args, **kwargs):
3641 """base_RemoveChild(self, Window child)"""
3642 return _windows_.PyScrolledWindow_base_RemoveChild(*args, **kwargs)
3643
3644 def base_ShouldInheritColours(*args, **kwargs):
3645 """base_ShouldInheritColours(self) -> bool"""
3646 return _windows_.PyScrolledWindow_base_ShouldInheritColours(*args, **kwargs)
3647
3648 def base_ApplyParentThemeBackground(*args, **kwargs):
3649 """base_ApplyParentThemeBackground(self, Colour c)"""
3650 return _windows_.PyScrolledWindow_base_ApplyParentThemeBackground(*args, **kwargs)
3651
a5ee0656
RD
3652 def base_GetDefaultAttributes(*args, **kwargs):
3653 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3654 return _windows_.PyScrolledWindow_base_GetDefaultAttributes(*args, **kwargs)
3655
d55e5bfc
RD
3656
3657class PyScrolledWindowPtr(PyScrolledWindow):
3658 def __init__(self, this):
3659 self.this = this
3660 if not hasattr(self,"thisown"): self.thisown = 0
3661 self.__class__ = PyScrolledWindow
3662_windows_.PyScrolledWindow_swigregister(PyScrolledWindowPtr)
3663
3664def PrePyScrolledWindow(*args, **kwargs):
3665 """PrePyScrolledWindow() -> PyScrolledWindow"""
3666 val = _windows_.new_PrePyScrolledWindow(*args, **kwargs)
3667 val.thisown = 1
3668 return val
3669
3670#---------------------------------------------------------------------------
3671
3672PRINT_MODE_NONE = _windows_.PRINT_MODE_NONE
3673PRINT_MODE_PREVIEW = _windows_.PRINT_MODE_PREVIEW
3674PRINT_MODE_FILE = _windows_.PRINT_MODE_FILE
3675PRINT_MODE_PRINTER = _windows_.PRINT_MODE_PRINTER
3676PRINT_MODE_STREAM = _windows_.PRINT_MODE_STREAM
b411df4a
RD
3677PRINTBIN_DEFAULT = _windows_.PRINTBIN_DEFAULT
3678PRINTBIN_ONLYONE = _windows_.PRINTBIN_ONLYONE
3679PRINTBIN_LOWER = _windows_.PRINTBIN_LOWER
3680PRINTBIN_MIDDLE = _windows_.PRINTBIN_MIDDLE
3681PRINTBIN_MANUAL = _windows_.PRINTBIN_MANUAL
3682PRINTBIN_ENVELOPE = _windows_.PRINTBIN_ENVELOPE
3683PRINTBIN_ENVMANUAL = _windows_.PRINTBIN_ENVMANUAL
3684PRINTBIN_AUTO = _windows_.PRINTBIN_AUTO
3685PRINTBIN_TRACTOR = _windows_.PRINTBIN_TRACTOR
3686PRINTBIN_SMALLFMT = _windows_.PRINTBIN_SMALLFMT
3687PRINTBIN_LARGEFMT = _windows_.PRINTBIN_LARGEFMT
3688PRINTBIN_LARGECAPACITY = _windows_.PRINTBIN_LARGECAPACITY
3689PRINTBIN_CASSETTE = _windows_.PRINTBIN_CASSETTE
3690PRINTBIN_FORMSOURCE = _windows_.PRINTBIN_FORMSOURCE
3691PRINTBIN_USER = _windows_.PRINTBIN_USER
d55e5bfc
RD
3692class PrintData(_core.Object):
3693 def __repr__(self):
3694 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
09c21d3b
RD
3695 def __init__(self, *args):
3696 """
3697 __init__(self) -> PrintData
3698 __init__(self, PrintData data) -> PrintData
3699 """
3700 newobj = _windows_.new_PrintData(*args)
d55e5bfc
RD
3701 self.this = newobj.this
3702 self.thisown = 1
3703 del newobj.thisown
3704 def __del__(self, destroy=_windows_.delete_PrintData):
3705 """__del__(self)"""
3706 try:
3707 if self.thisown: destroy(self)
3708 except: pass
3709
3710 def GetNoCopies(*args, **kwargs):
3711 """GetNoCopies(self) -> int"""
3712 return _windows_.PrintData_GetNoCopies(*args, **kwargs)
3713
3714 def GetCollate(*args, **kwargs):
3715 """GetCollate(self) -> bool"""
3716 return _windows_.PrintData_GetCollate(*args, **kwargs)
3717
3718 def GetOrientation(*args, **kwargs):
3719 """GetOrientation(self) -> int"""
3720 return _windows_.PrintData_GetOrientation(*args, **kwargs)
3721
3722 def Ok(*args, **kwargs):
3723 """Ok(self) -> bool"""
3724 return _windows_.PrintData_Ok(*args, **kwargs)
3725
3726 def GetPrinterName(*args, **kwargs):
3727 """GetPrinterName(self) -> String"""
3728 return _windows_.PrintData_GetPrinterName(*args, **kwargs)
3729
3730 def GetColour(*args, **kwargs):
3731 """GetColour(self) -> bool"""
3732 return _windows_.PrintData_GetColour(*args, **kwargs)
3733
3734 def GetDuplex(*args, **kwargs):
3735 """GetDuplex(self) -> int"""
3736 return _windows_.PrintData_GetDuplex(*args, **kwargs)
3737
3738 def GetPaperId(*args, **kwargs):
3739 """GetPaperId(self) -> int"""
3740 return _windows_.PrintData_GetPaperId(*args, **kwargs)
3741
3742 def GetPaperSize(*args, **kwargs):
3743 """GetPaperSize(self) -> Size"""
3744 return _windows_.PrintData_GetPaperSize(*args, **kwargs)
3745
3746 def GetQuality(*args, **kwargs):
3747 """GetQuality(self) -> int"""
3748 return _windows_.PrintData_GetQuality(*args, **kwargs)
3749
b411df4a
RD
3750 def GetBin(*args, **kwargs):
3751 """GetBin(self) -> int"""
3752 return _windows_.PrintData_GetBin(*args, **kwargs)
3753
d55e5bfc
RD
3754 def SetNoCopies(*args, **kwargs):
3755 """SetNoCopies(self, int v)"""
3756 return _windows_.PrintData_SetNoCopies(*args, **kwargs)
3757
3758 def SetCollate(*args, **kwargs):
3759 """SetCollate(self, bool flag)"""
3760 return _windows_.PrintData_SetCollate(*args, **kwargs)
3761
3762 def SetOrientation(*args, **kwargs):
3763 """SetOrientation(self, int orient)"""
3764 return _windows_.PrintData_SetOrientation(*args, **kwargs)
3765
3766 def SetPrinterName(*args, **kwargs):
3767 """SetPrinterName(self, String name)"""
3768 return _windows_.PrintData_SetPrinterName(*args, **kwargs)
3769
3770 def SetColour(*args, **kwargs):
3771 """SetColour(self, bool colour)"""
3772 return _windows_.PrintData_SetColour(*args, **kwargs)
3773
3774 def SetDuplex(*args, **kwargs):
3775 """SetDuplex(self, int duplex)"""
3776 return _windows_.PrintData_SetDuplex(*args, **kwargs)
3777
3778 def SetPaperId(*args, **kwargs):
3779 """SetPaperId(self, int sizeId)"""
3780 return _windows_.PrintData_SetPaperId(*args, **kwargs)
3781
3782 def SetPaperSize(*args, **kwargs):
3783 """SetPaperSize(self, Size sz)"""
3784 return _windows_.PrintData_SetPaperSize(*args, **kwargs)
3785
3786 def SetQuality(*args, **kwargs):
3787 """SetQuality(self, int quality)"""
3788 return _windows_.PrintData_SetQuality(*args, **kwargs)
3789
b411df4a
RD
3790 def SetBin(*args, **kwargs):
3791 """SetBin(self, int bin)"""
3792 return _windows_.PrintData_SetBin(*args, **kwargs)
3793
d55e5bfc
RD
3794 def GetPrinterCommand(*args, **kwargs):
3795 """GetPrinterCommand(self) -> String"""
3796 return _windows_.PrintData_GetPrinterCommand(*args, **kwargs)
3797
3798 def GetPrinterOptions(*args, **kwargs):
3799 """GetPrinterOptions(self) -> String"""
3800 return _windows_.PrintData_GetPrinterOptions(*args, **kwargs)
3801
3802 def GetPreviewCommand(*args, **kwargs):
3803 """GetPreviewCommand(self) -> String"""
3804 return _windows_.PrintData_GetPreviewCommand(*args, **kwargs)
3805
3806 def GetFilename(*args, **kwargs):
3807 """GetFilename(self) -> String"""
3808 return _windows_.PrintData_GetFilename(*args, **kwargs)
3809
3810 def GetFontMetricPath(*args, **kwargs):
3811 """GetFontMetricPath(self) -> String"""
3812 return _windows_.PrintData_GetFontMetricPath(*args, **kwargs)
3813
3814 def GetPrinterScaleX(*args, **kwargs):
3815 """GetPrinterScaleX(self) -> double"""
3816 return _windows_.PrintData_GetPrinterScaleX(*args, **kwargs)
3817
3818 def GetPrinterScaleY(*args, **kwargs):
3819 """GetPrinterScaleY(self) -> double"""
3820 return _windows_.PrintData_GetPrinterScaleY(*args, **kwargs)
3821
3822 def GetPrinterTranslateX(*args, **kwargs):
3823 """GetPrinterTranslateX(self) -> long"""
3824 return _windows_.PrintData_GetPrinterTranslateX(*args, **kwargs)
3825
3826 def GetPrinterTranslateY(*args, **kwargs):
3827 """GetPrinterTranslateY(self) -> long"""
3828 return _windows_.PrintData_GetPrinterTranslateY(*args, **kwargs)
3829
3830 def GetPrintMode(*args, **kwargs):
3831 """GetPrintMode(self) -> int"""
3832 return _windows_.PrintData_GetPrintMode(*args, **kwargs)
3833
3834 def SetPrinterCommand(*args, **kwargs):
3835 """SetPrinterCommand(self, String command)"""
3836 return _windows_.PrintData_SetPrinterCommand(*args, **kwargs)
3837
3838 def SetPrinterOptions(*args, **kwargs):
3839 """SetPrinterOptions(self, String options)"""
3840 return _windows_.PrintData_SetPrinterOptions(*args, **kwargs)
3841
3842 def SetPreviewCommand(*args, **kwargs):
3843 """SetPreviewCommand(self, String command)"""
3844 return _windows_.PrintData_SetPreviewCommand(*args, **kwargs)
3845
3846 def SetFilename(*args, **kwargs):
3847 """SetFilename(self, String filename)"""
3848 return _windows_.PrintData_SetFilename(*args, **kwargs)
3849
3850 def SetFontMetricPath(*args, **kwargs):
3851 """SetFontMetricPath(self, String path)"""
3852 return _windows_.PrintData_SetFontMetricPath(*args, **kwargs)
3853
3854 def SetPrinterScaleX(*args, **kwargs):
3855 """SetPrinterScaleX(self, double x)"""
3856 return _windows_.PrintData_SetPrinterScaleX(*args, **kwargs)
3857
3858 def SetPrinterScaleY(*args, **kwargs):
3859 """SetPrinterScaleY(self, double y)"""
3860 return _windows_.PrintData_SetPrinterScaleY(*args, **kwargs)
3861
3862 def SetPrinterScaling(*args, **kwargs):
3863 """SetPrinterScaling(self, double x, double y)"""
3864 return _windows_.PrintData_SetPrinterScaling(*args, **kwargs)
3865
3866 def SetPrinterTranslateX(*args, **kwargs):
3867 """SetPrinterTranslateX(self, long x)"""
3868 return _windows_.PrintData_SetPrinterTranslateX(*args, **kwargs)
3869
3870 def SetPrinterTranslateY(*args, **kwargs):
3871 """SetPrinterTranslateY(self, long y)"""
3872 return _windows_.PrintData_SetPrinterTranslateY(*args, **kwargs)
3873
3874 def SetPrinterTranslation(*args, **kwargs):
3875 """SetPrinterTranslation(self, long x, long y)"""
3876 return _windows_.PrintData_SetPrinterTranslation(*args, **kwargs)
3877
3878 def SetPrintMode(*args, **kwargs):
3879 """SetPrintMode(self, int printMode)"""
3880 return _windows_.PrintData_SetPrintMode(*args, **kwargs)
3881
3882 def GetOutputStream(*args, **kwargs):
3883 """GetOutputStream(self) -> OutputStream"""
3884 return _windows_.PrintData_GetOutputStream(*args, **kwargs)
3885
3886 def SetOutputStream(*args, **kwargs):
3887 """SetOutputStream(self, OutputStream outputstream)"""
3888 return _windows_.PrintData_SetOutputStream(*args, **kwargs)
3889
3890 def __nonzero__(self): return self.Ok()
3891
3892class PrintDataPtr(PrintData):
3893 def __init__(self, this):
3894 self.this = this
3895 if not hasattr(self,"thisown"): self.thisown = 0
3896 self.__class__ = PrintData
3897_windows_.PrintData_swigregister(PrintDataPtr)
3898PrintoutTitleStr = cvar.PrintoutTitleStr
3899PreviewCanvasNameStr = cvar.PreviewCanvasNameStr
3900
3901class PageSetupDialogData(_core.Object):
3902 def __repr__(self):
3903 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
09c21d3b
RD
3904 def __init__(self, *args):
3905 """
3906 __init__(self) -> PageSetupDialogData
3907 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3908 """
3909 newobj = _windows_.new_PageSetupDialogData(*args)
d55e5bfc
RD
3910 self.this = newobj.this
3911 self.thisown = 1
3912 del newobj.thisown
3913 def __del__(self, destroy=_windows_.delete_PageSetupDialogData):
3914 """__del__(self)"""
3915 try:
3916 if self.thisown: destroy(self)
3917 except: pass
3918
3919 def EnableHelp(*args, **kwargs):
3920 """EnableHelp(self, bool flag)"""
3921 return _windows_.PageSetupDialogData_EnableHelp(*args, **kwargs)
3922
3923 def EnableMargins(*args, **kwargs):
3924 """EnableMargins(self, bool flag)"""
3925 return _windows_.PageSetupDialogData_EnableMargins(*args, **kwargs)
3926
3927 def EnableOrientation(*args, **kwargs):
3928 """EnableOrientation(self, bool flag)"""
3929 return _windows_.PageSetupDialogData_EnableOrientation(*args, **kwargs)
3930
3931 def EnablePaper(*args, **kwargs):
3932 """EnablePaper(self, bool flag)"""
3933 return _windows_.PageSetupDialogData_EnablePaper(*args, **kwargs)
3934
3935 def EnablePrinter(*args, **kwargs):
3936 """EnablePrinter(self, bool flag)"""
3937 return _windows_.PageSetupDialogData_EnablePrinter(*args, **kwargs)
3938
3939 def GetDefaultMinMargins(*args, **kwargs):
3940 """GetDefaultMinMargins(self) -> bool"""
3941 return _windows_.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs)
3942
3943 def GetEnableMargins(*args, **kwargs):
3944 """GetEnableMargins(self) -> bool"""
3945 return _windows_.PageSetupDialogData_GetEnableMargins(*args, **kwargs)
3946
3947 def GetEnableOrientation(*args, **kwargs):
3948 """GetEnableOrientation(self) -> bool"""
3949 return _windows_.PageSetupDialogData_GetEnableOrientation(*args, **kwargs)
3950
3951 def GetEnablePaper(*args, **kwargs):
3952 """GetEnablePaper(self) -> bool"""
3953 return _windows_.PageSetupDialogData_GetEnablePaper(*args, **kwargs)
3954
3955 def GetEnablePrinter(*args, **kwargs):
3956 """GetEnablePrinter(self) -> bool"""
3957 return _windows_.PageSetupDialogData_GetEnablePrinter(*args, **kwargs)
3958
3959 def GetEnableHelp(*args, **kwargs):
3960 """GetEnableHelp(self) -> bool"""
3961 return _windows_.PageSetupDialogData_GetEnableHelp(*args, **kwargs)
3962
3963 def GetDefaultInfo(*args, **kwargs):
3964 """GetDefaultInfo(self) -> bool"""
3965 return _windows_.PageSetupDialogData_GetDefaultInfo(*args, **kwargs)
3966
3967 def GetMarginTopLeft(*args, **kwargs):
3968 """GetMarginTopLeft(self) -> Point"""
3969 return _windows_.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs)
3970
3971 def GetMarginBottomRight(*args, **kwargs):
3972 """GetMarginBottomRight(self) -> Point"""
3973 return _windows_.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs)
3974
3975 def GetMinMarginTopLeft(*args, **kwargs):
3976 """GetMinMarginTopLeft(self) -> Point"""
3977 return _windows_.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs)
3978
3979 def GetMinMarginBottomRight(*args, **kwargs):
3980 """GetMinMarginBottomRight(self) -> Point"""
3981 return _windows_.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs)
3982
3983 def GetPaperId(*args, **kwargs):
3984 """GetPaperId(self) -> int"""
3985 return _windows_.PageSetupDialogData_GetPaperId(*args, **kwargs)
3986
3987 def GetPaperSize(*args, **kwargs):
3988 """GetPaperSize(self) -> Size"""
3989 return _windows_.PageSetupDialogData_GetPaperSize(*args, **kwargs)
3990
3991 def GetPrintData(*args, **kwargs):
3992 """GetPrintData(self) -> PrintData"""
3993 return _windows_.PageSetupDialogData_GetPrintData(*args, **kwargs)
3994
3995 def Ok(*args, **kwargs):
3996 """Ok(self) -> bool"""
3997 return _windows_.PageSetupDialogData_Ok(*args, **kwargs)
3998
3999 def SetDefaultInfo(*args, **kwargs):
4000 """SetDefaultInfo(self, bool flag)"""
4001 return _windows_.PageSetupDialogData_SetDefaultInfo(*args, **kwargs)
4002
4003 def SetDefaultMinMargins(*args, **kwargs):
4004 """SetDefaultMinMargins(self, bool flag)"""
4005 return _windows_.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs)
4006
4007 def SetMarginTopLeft(*args, **kwargs):
4008 """SetMarginTopLeft(self, Point pt)"""
4009 return _windows_.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs)
4010
4011 def SetMarginBottomRight(*args, **kwargs):
4012 """SetMarginBottomRight(self, Point pt)"""
4013 return _windows_.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs)
4014
4015 def SetMinMarginTopLeft(*args, **kwargs):
4016 """SetMinMarginTopLeft(self, Point pt)"""
4017 return _windows_.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs)
4018
4019 def SetMinMarginBottomRight(*args, **kwargs):
4020 """SetMinMarginBottomRight(self, Point pt)"""
4021 return _windows_.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs)
4022
4023 def SetPaperId(*args, **kwargs):
4024 """SetPaperId(self, int id)"""
4025 return _windows_.PageSetupDialogData_SetPaperId(*args, **kwargs)
4026
4027 def SetPaperSize(*args, **kwargs):
4028 """SetPaperSize(self, Size size)"""
4029 return _windows_.PageSetupDialogData_SetPaperSize(*args, **kwargs)
4030
4031 def SetPrintData(*args, **kwargs):
4032 """SetPrintData(self, PrintData printData)"""
4033 return _windows_.PageSetupDialogData_SetPrintData(*args, **kwargs)
4034
4035 def __nonzero__(self): return self.Ok()
4036
4037class PageSetupDialogDataPtr(PageSetupDialogData):
4038 def __init__(self, this):
4039 self.this = this
4040 if not hasattr(self,"thisown"): self.thisown = 0
4041 self.__class__ = PageSetupDialogData
4042_windows_.PageSetupDialogData_swigregister(PageSetupDialogDataPtr)
4043
4044class PageSetupDialog(Dialog):
4045 def __repr__(self):
4046 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4047 def __init__(self, *args, **kwargs):
4048 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4049 newobj = _windows_.new_PageSetupDialog(*args, **kwargs)
4050 self.this = newobj.this
4051 self.thisown = 1
4052 del newobj.thisown
4053 self._setOORInfo(self)
4054
4055 def GetPageSetupData(*args, **kwargs):
4056 """GetPageSetupData(self) -> PageSetupDialogData"""
4057 return _windows_.PageSetupDialog_GetPageSetupData(*args, **kwargs)
4058
4059 def ShowModal(*args, **kwargs):
4060 """ShowModal(self) -> int"""
4061 return _windows_.PageSetupDialog_ShowModal(*args, **kwargs)
4062
4063
4064class PageSetupDialogPtr(PageSetupDialog):
4065 def __init__(self, this):
4066 self.this = this
4067 if not hasattr(self,"thisown"): self.thisown = 0
4068 self.__class__ = PageSetupDialog
4069_windows_.PageSetupDialog_swigregister(PageSetupDialogPtr)
4070
4071class PrintDialogData(_core.Object):
4072 def __repr__(self):
4073 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4074 def __init__(self, *args):
4075 """
4076 __init__(self) -> PrintDialogData
4077 __init__(self, PrintData printData) -> PrintDialogData
4078 """
4079 newobj = _windows_.new_PrintDialogData(*args)
4080 self.this = newobj.this
4081 self.thisown = 1
4082 del newobj.thisown
4083 def __del__(self, destroy=_windows_.delete_PrintDialogData):
4084 """__del__(self)"""
4085 try:
4086 if self.thisown: destroy(self)
4087 except: pass
4088
4089 def GetFromPage(*args, **kwargs):
4090 """GetFromPage(self) -> int"""
4091 return _windows_.PrintDialogData_GetFromPage(*args, **kwargs)
4092
4093 def GetToPage(*args, **kwargs):
4094 """GetToPage(self) -> int"""
4095 return _windows_.PrintDialogData_GetToPage(*args, **kwargs)
4096
4097 def GetMinPage(*args, **kwargs):
4098 """GetMinPage(self) -> int"""
4099 return _windows_.PrintDialogData_GetMinPage(*args, **kwargs)
4100
4101 def GetMaxPage(*args, **kwargs):
4102 """GetMaxPage(self) -> int"""
4103 return _windows_.PrintDialogData_GetMaxPage(*args, **kwargs)
4104
4105 def GetNoCopies(*args, **kwargs):
4106 """GetNoCopies(self) -> int"""
4107 return _windows_.PrintDialogData_GetNoCopies(*args, **kwargs)
4108
4109 def GetAllPages(*args, **kwargs):
4110 """GetAllPages(self) -> bool"""
4111 return _windows_.PrintDialogData_GetAllPages(*args, **kwargs)
4112
4113 def GetSelection(*args, **kwargs):
4114 """GetSelection(self) -> bool"""
4115 return _windows_.PrintDialogData_GetSelection(*args, **kwargs)
4116
4117 def GetCollate(*args, **kwargs):
4118 """GetCollate(self) -> bool"""
4119 return _windows_.PrintDialogData_GetCollate(*args, **kwargs)
4120
4121 def GetPrintToFile(*args, **kwargs):
4122 """GetPrintToFile(self) -> bool"""
4123 return _windows_.PrintDialogData_GetPrintToFile(*args, **kwargs)
4124
4125 def GetSetupDialog(*args, **kwargs):
4126 """GetSetupDialog(self) -> bool"""
4127 return _windows_.PrintDialogData_GetSetupDialog(*args, **kwargs)
4128
4129 def SetFromPage(*args, **kwargs):
4130 """SetFromPage(self, int v)"""
4131 return _windows_.PrintDialogData_SetFromPage(*args, **kwargs)
4132
4133 def SetToPage(*args, **kwargs):
4134 """SetToPage(self, int v)"""
4135 return _windows_.PrintDialogData_SetToPage(*args, **kwargs)
4136
4137 def SetMinPage(*args, **kwargs):
4138 """SetMinPage(self, int v)"""
4139 return _windows_.PrintDialogData_SetMinPage(*args, **kwargs)
4140
4141 def SetMaxPage(*args, **kwargs):
4142 """SetMaxPage(self, int v)"""
4143 return _windows_.PrintDialogData_SetMaxPage(*args, **kwargs)
4144
4145 def SetNoCopies(*args, **kwargs):
4146 """SetNoCopies(self, int v)"""
4147 return _windows_.PrintDialogData_SetNoCopies(*args, **kwargs)
4148
4149 def SetAllPages(*args, **kwargs):
4150 """SetAllPages(self, bool flag)"""
4151 return _windows_.PrintDialogData_SetAllPages(*args, **kwargs)
4152
4153 def SetSelection(*args, **kwargs):
4154 """SetSelection(self, bool flag)"""
4155 return _windows_.PrintDialogData_SetSelection(*args, **kwargs)
4156
4157 def SetCollate(*args, **kwargs):
4158 """SetCollate(self, bool flag)"""
4159 return _windows_.PrintDialogData_SetCollate(*args, **kwargs)
4160
4161 def SetPrintToFile(*args, **kwargs):
4162 """SetPrintToFile(self, bool flag)"""
4163 return _windows_.PrintDialogData_SetPrintToFile(*args, **kwargs)
4164
4165 def SetSetupDialog(*args, **kwargs):
4166 """SetSetupDialog(self, bool flag)"""
4167 return _windows_.PrintDialogData_SetSetupDialog(*args, **kwargs)
4168
4169 def EnablePrintToFile(*args, **kwargs):
4170 """EnablePrintToFile(self, bool flag)"""
4171 return _windows_.PrintDialogData_EnablePrintToFile(*args, **kwargs)
4172
4173 def EnableSelection(*args, **kwargs):
4174 """EnableSelection(self, bool flag)"""
4175 return _windows_.PrintDialogData_EnableSelection(*args, **kwargs)
4176
4177 def EnablePageNumbers(*args, **kwargs):
4178 """EnablePageNumbers(self, bool flag)"""
4179 return _windows_.PrintDialogData_EnablePageNumbers(*args, **kwargs)
4180
4181 def EnableHelp(*args, **kwargs):
4182 """EnableHelp(self, bool flag)"""
4183 return _windows_.PrintDialogData_EnableHelp(*args, **kwargs)
4184
4185 def GetEnablePrintToFile(*args, **kwargs):
4186 """GetEnablePrintToFile(self) -> bool"""
4187 return _windows_.PrintDialogData_GetEnablePrintToFile(*args, **kwargs)
4188
4189 def GetEnableSelection(*args, **kwargs):
4190 """GetEnableSelection(self) -> bool"""
4191 return _windows_.PrintDialogData_GetEnableSelection(*args, **kwargs)
4192
4193 def GetEnablePageNumbers(*args, **kwargs):
4194 """GetEnablePageNumbers(self) -> bool"""
4195 return _windows_.PrintDialogData_GetEnablePageNumbers(*args, **kwargs)
4196
4197 def GetEnableHelp(*args, **kwargs):
4198 """GetEnableHelp(self) -> bool"""
4199 return _windows_.PrintDialogData_GetEnableHelp(*args, **kwargs)
4200
4201 def Ok(*args, **kwargs):
4202 """Ok(self) -> bool"""
4203 return _windows_.PrintDialogData_Ok(*args, **kwargs)
4204
4205 def GetPrintData(*args, **kwargs):
4206 """GetPrintData(self) -> PrintData"""
4207 return _windows_.PrintDialogData_GetPrintData(*args, **kwargs)
4208
4209 def SetPrintData(*args, **kwargs):
4210 """SetPrintData(self, PrintData printData)"""
4211 return _windows_.PrintDialogData_SetPrintData(*args, **kwargs)
4212
4213 def __nonzero__(self): return self.Ok()
4214
4215class PrintDialogDataPtr(PrintDialogData):
4216 def __init__(self, this):
4217 self.this = this
4218 if not hasattr(self,"thisown"): self.thisown = 0
4219 self.__class__ = PrintDialogData
4220_windows_.PrintDialogData_swigregister(PrintDialogDataPtr)
4221
4222class PrintDialog(Dialog):
4223 def __repr__(self):
4224 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4225 def __init__(self, *args, **kwargs):
4226 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4227 newobj = _windows_.new_PrintDialog(*args, **kwargs)
4228 self.this = newobj.this
4229 self.thisown = 1
4230 del newobj.thisown
4231 self._setOORInfo(self)
4232
4233 def GetPrintDialogData(*args, **kwargs):
4234 """GetPrintDialogData(self) -> PrintDialogData"""
4235 return _windows_.PrintDialog_GetPrintDialogData(*args, **kwargs)
4236
4237 def GetPrintDC(*args, **kwargs):
4238 """GetPrintDC(self) -> DC"""
4239 return _windows_.PrintDialog_GetPrintDC(*args, **kwargs)
4240
4241 def ShowModal(*args, **kwargs):
4242 """ShowModal(self) -> int"""
4243 return _windows_.PrintDialog_ShowModal(*args, **kwargs)
4244
4245
4246class PrintDialogPtr(PrintDialog):
4247 def __init__(self, this):
4248 self.this = this
4249 if not hasattr(self,"thisown"): self.thisown = 0
4250 self.__class__ = PrintDialog
4251_windows_.PrintDialog_swigregister(PrintDialogPtr)
4252
4253PRINTER_NO_ERROR = _windows_.PRINTER_NO_ERROR
4254PRINTER_CANCELLED = _windows_.PRINTER_CANCELLED
4255PRINTER_ERROR = _windows_.PRINTER_ERROR
4256class Printer(_core.Object):
4257 def __repr__(self):
4258 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4259 def __init__(self, *args, **kwargs):
4260 """__init__(self, PrintDialogData data=None) -> Printer"""
4261 newobj = _windows_.new_Printer(*args, **kwargs)
4262 self.this = newobj.this
4263 self.thisown = 1
4264 del newobj.thisown
4265 def __del__(self, destroy=_windows_.delete_Printer):
4266 """__del__(self)"""
4267 try:
4268 if self.thisown: destroy(self)
4269 except: pass
4270
4271 def CreateAbortWindow(*args, **kwargs):
4272 """CreateAbortWindow(self, Window parent, Printout printout)"""
4273 return _windows_.Printer_CreateAbortWindow(*args, **kwargs)
4274
4275 def GetPrintDialogData(*args, **kwargs):
4276 """GetPrintDialogData(self) -> PrintDialogData"""
4277 return _windows_.Printer_GetPrintDialogData(*args, **kwargs)
4278
4279 def Print(*args, **kwargs):
4280 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4281 return _windows_.Printer_Print(*args, **kwargs)
4282
4283 def PrintDialog(*args, **kwargs):
4284 """PrintDialog(self, Window parent) -> DC"""
4285 return _windows_.Printer_PrintDialog(*args, **kwargs)
4286
4287 def ReportError(*args, **kwargs):
4288 """ReportError(self, Window parent, Printout printout, String message)"""
4289 return _windows_.Printer_ReportError(*args, **kwargs)
4290
4291 def Setup(*args, **kwargs):
4292 """Setup(self, Window parent) -> bool"""
4293 return _windows_.Printer_Setup(*args, **kwargs)
4294
4295 def GetAbort(*args, **kwargs):
4296 """GetAbort(self) -> bool"""
4297 return _windows_.Printer_GetAbort(*args, **kwargs)
4298
4299 def GetLastError(*args, **kwargs):
d6c14a4c 4300 """GetLastError() -> int"""
d55e5bfc
RD
4301 return _windows_.Printer_GetLastError(*args, **kwargs)
4302
4303 GetLastError = staticmethod(GetLastError)
4304
4305class PrinterPtr(Printer):
4306 def __init__(self, this):
4307 self.this = this
4308 if not hasattr(self,"thisown"): self.thisown = 0
4309 self.__class__ = Printer
4310_windows_.Printer_swigregister(PrinterPtr)
4311
4312def Printer_GetLastError(*args, **kwargs):
4313 """Printer_GetLastError() -> int"""
4314 return _windows_.Printer_GetLastError(*args, **kwargs)
4315
4316class Printout(_core.Object):
4317 def __repr__(self):
4318 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4319 def __init__(self, *args, **kwargs):
4320 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4321 newobj = _windows_.new_Printout(*args, **kwargs)
4322 self.this = newobj.this
4323 self.thisown = 1
4324 del newobj.thisown
4325 self._setCallbackInfo(self, Printout)
4326
4327 def _setCallbackInfo(*args, **kwargs):
4328 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4329 return _windows_.Printout__setCallbackInfo(*args, **kwargs)
4330
4331 def GetTitle(*args, **kwargs):
4332 """GetTitle(self) -> String"""
4333 return _windows_.Printout_GetTitle(*args, **kwargs)
4334
4335 def GetDC(*args, **kwargs):
4336 """GetDC(self) -> DC"""
4337 return _windows_.Printout_GetDC(*args, **kwargs)
4338
4339 def SetDC(*args, **kwargs):
4340 """SetDC(self, DC dc)"""
4341 return _windows_.Printout_SetDC(*args, **kwargs)
4342
4343 def SetPageSizePixels(*args, **kwargs):
4344 """SetPageSizePixels(self, int w, int h)"""
4345 return _windows_.Printout_SetPageSizePixels(*args, **kwargs)
4346
4347 def GetPageSizePixels(*args, **kwargs):
4348 """GetPageSizePixels() -> (w, h)"""
4349 return _windows_.Printout_GetPageSizePixels(*args, **kwargs)
4350
4351 def SetPageSizeMM(*args, **kwargs):
4352 """SetPageSizeMM(self, int w, int h)"""
4353 return _windows_.Printout_SetPageSizeMM(*args, **kwargs)
4354
4355 def GetPageSizeMM(*args, **kwargs):
4356 """GetPageSizeMM() -> (w, h)"""
4357 return _windows_.Printout_GetPageSizeMM(*args, **kwargs)
4358
4359 def SetPPIScreen(*args, **kwargs):
4360 """SetPPIScreen(self, int x, int y)"""
4361 return _windows_.Printout_SetPPIScreen(*args, **kwargs)
4362
4363 def GetPPIScreen(*args, **kwargs):
4364 """GetPPIScreen() -> (x,y)"""
4365 return _windows_.Printout_GetPPIScreen(*args, **kwargs)
4366
4367 def SetPPIPrinter(*args, **kwargs):
4368 """SetPPIPrinter(self, int x, int y)"""
4369 return _windows_.Printout_SetPPIPrinter(*args, **kwargs)
4370
4371 def GetPPIPrinter(*args, **kwargs):
4372 """GetPPIPrinter() -> (x,y)"""
4373 return _windows_.Printout_GetPPIPrinter(*args, **kwargs)
4374
4375 def IsPreview(*args, **kwargs):
4376 """IsPreview(self) -> bool"""
4377 return _windows_.Printout_IsPreview(*args, **kwargs)
4378
4379 def SetIsPreview(*args, **kwargs):
4380 """SetIsPreview(self, bool p)"""
4381 return _windows_.Printout_SetIsPreview(*args, **kwargs)
4382
4383 def base_OnBeginDocument(*args, **kwargs):
4384 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4385 return _windows_.Printout_base_OnBeginDocument(*args, **kwargs)
4386
4387 def base_OnEndDocument(*args, **kwargs):
4388 """base_OnEndDocument(self)"""
4389 return _windows_.Printout_base_OnEndDocument(*args, **kwargs)
4390
4391 def base_OnBeginPrinting(*args, **kwargs):
4392 """base_OnBeginPrinting(self)"""
4393 return _windows_.Printout_base_OnBeginPrinting(*args, **kwargs)
4394
4395 def base_OnEndPrinting(*args, **kwargs):
4396 """base_OnEndPrinting(self)"""
4397 return _windows_.Printout_base_OnEndPrinting(*args, **kwargs)
4398
4399 def base_OnPreparePrinting(*args, **kwargs):
4400 """base_OnPreparePrinting(self)"""
4401 return _windows_.Printout_base_OnPreparePrinting(*args, **kwargs)
4402
4403 def base_HasPage(*args, **kwargs):
4404 """base_HasPage(self, int page) -> bool"""
4405 return _windows_.Printout_base_HasPage(*args, **kwargs)
4406
4407 def base_GetPageInfo(*args, **kwargs):
4408 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4409 return _windows_.Printout_base_GetPageInfo(*args, **kwargs)
4410
4411
4412class PrintoutPtr(Printout):
4413 def __init__(self, this):
4414 self.this = this
4415 if not hasattr(self,"thisown"): self.thisown = 0
4416 self.__class__ = Printout
4417_windows_.Printout_swigregister(PrintoutPtr)
4418
4419class PreviewCanvas(ScrolledWindow):
4420 def __repr__(self):
4421 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4422 def __init__(self, *args, **kwargs):
4423 """
4424 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4425 Size size=DefaultSize, long style=0,
4426 String name=PreviewCanvasNameStr) -> PreviewCanvas
4427 """
4428 newobj = _windows_.new_PreviewCanvas(*args, **kwargs)
4429 self.this = newobj.this
4430 self.thisown = 1
4431 del newobj.thisown
4432 self._setOORInfo(self)
4433
4434
4435class PreviewCanvasPtr(PreviewCanvas):
4436 def __init__(self, this):
4437 self.this = this
4438 if not hasattr(self,"thisown"): self.thisown = 0
4439 self.__class__ = PreviewCanvas
4440_windows_.PreviewCanvas_swigregister(PreviewCanvasPtr)
4441
4442class PreviewFrame(Frame):
4443 def __repr__(self):
4444 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4445 def __init__(self, *args, **kwargs):
4446 """
4447 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4448 Size size=DefaultSize,
4449 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4450 """
4451 newobj = _windows_.new_PreviewFrame(*args, **kwargs)
4452 self.this = newobj.this
4453 self.thisown = 1
4454 del newobj.thisown
4455 self._setOORInfo(self)
4456
4457 def Initialize(*args, **kwargs):
4458 """Initialize(self)"""
4459 return _windows_.PreviewFrame_Initialize(*args, **kwargs)
4460
4461 def CreateControlBar(*args, **kwargs):
4462 """CreateControlBar(self)"""
4463 return _windows_.PreviewFrame_CreateControlBar(*args, **kwargs)
4464
4465 def CreateCanvas(*args, **kwargs):
4466 """CreateCanvas(self)"""
4467 return _windows_.PreviewFrame_CreateCanvas(*args, **kwargs)
4468
4469 def GetControlBar(*args, **kwargs):
4470 """GetControlBar(self) -> PreviewControlBar"""
4471 return _windows_.PreviewFrame_GetControlBar(*args, **kwargs)
4472
4473
4474class PreviewFramePtr(PreviewFrame):
4475 def __init__(self, this):
4476 self.this = this
4477 if not hasattr(self,"thisown"): self.thisown = 0
4478 self.__class__ = PreviewFrame
4479_windows_.PreviewFrame_swigregister(PreviewFramePtr)
4480
4481PREVIEW_PRINT = _windows_.PREVIEW_PRINT
4482PREVIEW_PREVIOUS = _windows_.PREVIEW_PREVIOUS
4483PREVIEW_NEXT = _windows_.PREVIEW_NEXT
4484PREVIEW_ZOOM = _windows_.PREVIEW_ZOOM
4485PREVIEW_FIRST = _windows_.PREVIEW_FIRST
4486PREVIEW_LAST = _windows_.PREVIEW_LAST
4487PREVIEW_GOTO = _windows_.PREVIEW_GOTO
4488PREVIEW_DEFAULT = _windows_.PREVIEW_DEFAULT
4489ID_PREVIEW_CLOSE = _windows_.ID_PREVIEW_CLOSE
4490ID_PREVIEW_NEXT = _windows_.ID_PREVIEW_NEXT
4491ID_PREVIEW_PREVIOUS = _windows_.ID_PREVIEW_PREVIOUS
4492ID_PREVIEW_PRINT = _windows_.ID_PREVIEW_PRINT
4493ID_PREVIEW_ZOOM = _windows_.ID_PREVIEW_ZOOM
4494ID_PREVIEW_FIRST = _windows_.ID_PREVIEW_FIRST
4495ID_PREVIEW_LAST = _windows_.ID_PREVIEW_LAST
4496ID_PREVIEW_GOTO = _windows_.ID_PREVIEW_GOTO
4497class PreviewControlBar(Panel):
4498 def __repr__(self):
4499 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4500 def __init__(self, *args, **kwargs):
4501 """
4502 __init__(self, PrintPreview preview, long buttons, Window parent,
4503 Point pos=DefaultPosition, Size size=DefaultSize,
4504 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4505 """
4506 newobj = _windows_.new_PreviewControlBar(*args, **kwargs)
4507 self.this = newobj.this
4508 self.thisown = 1
4509 del newobj.thisown
4510 self._setOORInfo(self)
4511
4512 def GetZoomControl(*args, **kwargs):
4513 """GetZoomControl(self) -> int"""
4514 return _windows_.PreviewControlBar_GetZoomControl(*args, **kwargs)
4515
4516 def SetZoomControl(*args, **kwargs):
4517 """SetZoomControl(self, int zoom)"""
4518 return _windows_.PreviewControlBar_SetZoomControl(*args, **kwargs)
4519
4520 def GetPrintPreview(*args, **kwargs):
4521 """GetPrintPreview(self) -> PrintPreview"""
4522 return _windows_.PreviewControlBar_GetPrintPreview(*args, **kwargs)
4523
4524 def OnNext(*args, **kwargs):
4525 """OnNext(self)"""
4526 return _windows_.PreviewControlBar_OnNext(*args, **kwargs)
4527
4528 def OnPrevious(*args, **kwargs):
4529 """OnPrevious(self)"""
4530 return _windows_.PreviewControlBar_OnPrevious(*args, **kwargs)
4531
4532 def OnFirst(*args, **kwargs):
4533 """OnFirst(self)"""
4534 return _windows_.PreviewControlBar_OnFirst(*args, **kwargs)
4535
4536 def OnLast(*args, **kwargs):
4537 """OnLast(self)"""
4538 return _windows_.PreviewControlBar_OnLast(*args, **kwargs)
4539
4540 def OnGoto(*args, **kwargs):
4541 """OnGoto(self)"""
4542 return _windows_.PreviewControlBar_OnGoto(*args, **kwargs)
4543
4544
4545class PreviewControlBarPtr(PreviewControlBar):
4546 def __init__(self, this):
4547 self.this = this
4548 if not hasattr(self,"thisown"): self.thisown = 0
4549 self.__class__ = PreviewControlBar
4550_windows_.PreviewControlBar_swigregister(PreviewControlBarPtr)
4551
4552class PrintPreview(_core.Object):
4553 def __repr__(self):
4554 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4555 def __init__(self, *args):
4556 """
4557 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4558 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4559 """
4560 newobj = _windows_.new_PrintPreview(*args)
4561 self.this = newobj.this
4562 self.thisown = 1
4563 del newobj.thisown
4564 def SetCurrentPage(*args, **kwargs):
4565 """SetCurrentPage(self, int pageNum) -> bool"""
4566 return _windows_.PrintPreview_SetCurrentPage(*args, **kwargs)
4567
4568 def GetCurrentPage(*args, **kwargs):
4569 """GetCurrentPage(self) -> int"""
4570 return _windows_.PrintPreview_GetCurrentPage(*args, **kwargs)
4571
4572 def SetPrintout(*args, **kwargs):
4573 """SetPrintout(self, Printout printout)"""
4574 return _windows_.PrintPreview_SetPrintout(*args, **kwargs)
4575
4576 def GetPrintout(*args, **kwargs):
4577 """GetPrintout(self) -> Printout"""
4578 return _windows_.PrintPreview_GetPrintout(*args, **kwargs)
4579
4580 def GetPrintoutForPrinting(*args, **kwargs):
4581 """GetPrintoutForPrinting(self) -> Printout"""
4582 return _windows_.PrintPreview_GetPrintoutForPrinting(*args, **kwargs)
4583
4584 def SetFrame(*args, **kwargs):
4585 """SetFrame(self, Frame frame)"""
4586 return _windows_.PrintPreview_SetFrame(*args, **kwargs)
4587
4588 def SetCanvas(*args, **kwargs):
4589 """SetCanvas(self, PreviewCanvas canvas)"""
4590 return _windows_.PrintPreview_SetCanvas(*args, **kwargs)
4591
4592 def GetFrame(*args, **kwargs):
4593 """GetFrame(self) -> Frame"""
4594 return _windows_.PrintPreview_GetFrame(*args, **kwargs)
4595
4596 def GetCanvas(*args, **kwargs):
4597 """GetCanvas(self) -> PreviewCanvas"""
4598 return _windows_.PrintPreview_GetCanvas(*args, **kwargs)
4599
4600 def PaintPage(*args, **kwargs):
4601 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4602 return _windows_.PrintPreview_PaintPage(*args, **kwargs)
4603
4604 def DrawBlankPage(*args, **kwargs):
4605 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4606 return _windows_.PrintPreview_DrawBlankPage(*args, **kwargs)
4607
4608 def RenderPage(*args, **kwargs):
4609 """RenderPage(self, int pageNum) -> bool"""
4610 return _windows_.PrintPreview_RenderPage(*args, **kwargs)
4611
4612 def AdjustScrollbars(*args, **kwargs):
4613 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4614 return _windows_.PrintPreview_AdjustScrollbars(*args, **kwargs)
4615
4616 def GetPrintDialogData(*args, **kwargs):
4617 """GetPrintDialogData(self) -> PrintDialogData"""
4618 return _windows_.PrintPreview_GetPrintDialogData(*args, **kwargs)
4619
4620 def SetZoom(*args, **kwargs):
4621 """SetZoom(self, int percent)"""
4622 return _windows_.PrintPreview_SetZoom(*args, **kwargs)
4623
4624 def GetZoom(*args, **kwargs):
4625 """GetZoom(self) -> int"""
4626 return _windows_.PrintPreview_GetZoom(*args, **kwargs)
4627
4628 def GetMaxPage(*args, **kwargs):
4629 """GetMaxPage(self) -> int"""
4630 return _windows_.PrintPreview_GetMaxPage(*args, **kwargs)
4631
4632 def GetMinPage(*args, **kwargs):
4633 """GetMinPage(self) -> int"""
4634 return _windows_.PrintPreview_GetMinPage(*args, **kwargs)
4635
4636 def Ok(*args, **kwargs):
4637 """Ok(self) -> bool"""
4638 return _windows_.PrintPreview_Ok(*args, **kwargs)
4639
4640 def SetOk(*args, **kwargs):
4641 """SetOk(self, bool ok)"""
4642 return _windows_.PrintPreview_SetOk(*args, **kwargs)
4643
4644 def Print(*args, **kwargs):
4645 """Print(self, bool interactive) -> bool"""
4646 return _windows_.PrintPreview_Print(*args, **kwargs)
4647
4648 def DetermineScaling(*args, **kwargs):
4649 """DetermineScaling(self)"""
4650 return _windows_.PrintPreview_DetermineScaling(*args, **kwargs)
4651
4652 def __nonzero__(self): return self.Ok()
4653
4654class PrintPreviewPtr(PrintPreview):
4655 def __init__(self, this):
4656 self.this = this
4657 if not hasattr(self,"thisown"): self.thisown = 0
4658 self.__class__ = PrintPreview
4659_windows_.PrintPreview_swigregister(PrintPreviewPtr)
4660
4661class PyPrintPreview(PrintPreview):
4662 def __repr__(self):
4663 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4664 def __init__(self, *args):
4665 """
4666 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4667 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4668 """
4669 newobj = _windows_.new_PyPrintPreview(*args)
4670 self.this = newobj.this
4671 self.thisown = 1
4672 del newobj.thisown
4673 self._setCallbackInfo(self, PyPrintPreview)
4674
4675 def _setCallbackInfo(*args, **kwargs):
4676 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4677 return _windows_.PyPrintPreview__setCallbackInfo(*args, **kwargs)
4678
4679 def base_SetCurrentPage(*args, **kwargs):
4680 """base_SetCurrentPage(self, int pageNum) -> bool"""
4681 return _windows_.PyPrintPreview_base_SetCurrentPage(*args, **kwargs)
4682
4683 def base_PaintPage(*args, **kwargs):
4684 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4685 return _windows_.PyPrintPreview_base_PaintPage(*args, **kwargs)
4686
4687 def base_DrawBlankPage(*args, **kwargs):
4688 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4689 return _windows_.PyPrintPreview_base_DrawBlankPage(*args, **kwargs)
4690
4691 def base_RenderPage(*args, **kwargs):
4692 """base_RenderPage(self, int pageNum) -> bool"""
4693 return _windows_.PyPrintPreview_base_RenderPage(*args, **kwargs)
4694
4695 def base_SetZoom(*args, **kwargs):
4696 """base_SetZoom(self, int percent)"""
4697 return _windows_.PyPrintPreview_base_SetZoom(*args, **kwargs)
4698
4699 def base_Print(*args, **kwargs):
4700 """base_Print(self, bool interactive) -> bool"""
4701 return _windows_.PyPrintPreview_base_Print(*args, **kwargs)
4702
4703 def base_DetermineScaling(*args, **kwargs):
4704 """base_DetermineScaling(self)"""
4705 return _windows_.PyPrintPreview_base_DetermineScaling(*args, **kwargs)
4706
4707
4708class PyPrintPreviewPtr(PyPrintPreview):
4709 def __init__(self, this):
4710 self.this = this
4711 if not hasattr(self,"thisown"): self.thisown = 0
4712 self.__class__ = PyPrintPreview
4713_windows_.PyPrintPreview_swigregister(PyPrintPreviewPtr)
4714
4715class PyPreviewFrame(PreviewFrame):
4716 def __repr__(self):
4717 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4718 def __init__(self, *args, **kwargs):
4719 """
4720 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4721 Size size=DefaultSize,
4722 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4723 """
4724 newobj = _windows_.new_PyPreviewFrame(*args, **kwargs)
4725 self.this = newobj.this
4726 self.thisown = 1
4727 del newobj.thisown
4728 self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self)
4729
4730 def _setCallbackInfo(*args, **kwargs):
4731 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4732 return _windows_.PyPreviewFrame__setCallbackInfo(*args, **kwargs)
4733
4734 def SetPreviewCanvas(*args, **kwargs):
4735 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4736 return _windows_.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs)
4737
4738 def SetControlBar(*args, **kwargs):
4739 """SetControlBar(self, PreviewControlBar bar)"""
4740 return _windows_.PyPreviewFrame_SetControlBar(*args, **kwargs)
4741
4742 def base_Initialize(*args, **kwargs):
4743 """base_Initialize(self)"""
4744 return _windows_.PyPreviewFrame_base_Initialize(*args, **kwargs)
4745
4746 def base_CreateCanvas(*args, **kwargs):
4747 """base_CreateCanvas(self)"""
4748 return _windows_.PyPreviewFrame_base_CreateCanvas(*args, **kwargs)
4749
4750 def base_CreateControlBar(*args, **kwargs):
4751 """base_CreateControlBar(self)"""
4752 return _windows_.PyPreviewFrame_base_CreateControlBar(*args, **kwargs)
4753
4754
4755class PyPreviewFramePtr(PyPreviewFrame):
4756 def __init__(self, this):
4757 self.this = this
4758 if not hasattr(self,"thisown"): self.thisown = 0
4759 self.__class__ = PyPreviewFrame
4760_windows_.PyPreviewFrame_swigregister(PyPreviewFramePtr)
4761
4762class PyPreviewControlBar(PreviewControlBar):
4763 def __repr__(self):
4764 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4765 def __init__(self, *args, **kwargs):
4766 """
4767 __init__(self, PrintPreview preview, long buttons, Window parent,
4768 Point pos=DefaultPosition, Size size=DefaultSize,
4769 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4770 """
4771 newobj = _windows_.new_PyPreviewControlBar(*args, **kwargs)
4772 self.this = newobj.this
4773 self.thisown = 1
4774 del newobj.thisown
4775 self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self)
4776
4777 def _setCallbackInfo(*args, **kwargs):
4778 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4779 return _windows_.PyPreviewControlBar__setCallbackInfo(*args, **kwargs)
4780
4781 def SetPrintPreview(*args, **kwargs):
4782 """SetPrintPreview(self, PrintPreview preview)"""
4783 return _windows_.PyPreviewControlBar_SetPrintPreview(*args, **kwargs)
4784
4785 def base_CreateButtons(*args, **kwargs):
4786 """base_CreateButtons(self)"""
4787 return _windows_.PyPreviewControlBar_base_CreateButtons(*args, **kwargs)
4788
4789 def base_SetZoomControl(*args, **kwargs):
4790 """base_SetZoomControl(self, int zoom)"""
4791 return _windows_.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs)
4792
4793
4794class PyPreviewControlBarPtr(PyPreviewControlBar):
4795 def __init__(self, this):
4796 self.this = this
4797 if not hasattr(self,"thisown"): self.thisown = 0
4798 self.__class__ = PyPreviewControlBar
4799_windows_.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr)
4800
4801