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