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