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