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