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