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