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