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