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