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