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