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