]>
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 | """""" | |
12 | def __repr__(self): | |
13 | return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
14 | def __init__(self, *args, **kwargs): | |
15 | """__init__(Window parent, int id=-1, Point pos=DefaultPosition, | |
16 | Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, | |
17 | wxString name=PanelNameStr) -> Panel""" | |
18 | newobj = _windows.new_Panel(*args, **kwargs) | |
19 | self.this = newobj.this | |
20 | self.thisown = 1 | |
21 | del newobj.thisown | |
22 | self._setOORInfo(self) | |
23 | ||
24 | def Create(*args, **kwargs): | |
25 | """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
26 | long style=wxTAB_TRAVERSAL|wxNO_BORDER, | |
27 | wxString name=PanelNameStr) -> bool""" | |
28 | return _windows.Panel_Create(*args, **kwargs) | |
29 | ||
30 | def InitDialog(*args, **kwargs): | |
31 | """InitDialog()""" | |
32 | return _windows.Panel_InitDialog(*args, **kwargs) | |
33 | ||
34 | ||
35 | class PanelPtr(Panel): | |
36 | def __init__(self, this): | |
37 | self.this = this | |
38 | if not hasattr(self,"thisown"): self.thisown = 0 | |
39 | self.__class__ = Panel | |
40 | _windows.Panel_swigregister(PanelPtr) | |
41 | ||
42 | def PrePanel(*args, **kwargs): | |
43 | """PrePanel() -> Panel""" | |
44 | val = _windows.new_PrePanel(*args, **kwargs) | |
45 | val.thisown = 1 | |
46 | return val | |
47 | ||
48 | #--------------------------------------------------------------------------- | |
49 | ||
50 | class ScrolledWindow(Panel): | |
51 | """""" | |
52 | def __repr__(self): | |
53 | return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
54 | def __init__(self, *args, **kwargs): | |
55 | """__init__(Window parent, int id=-1, Point pos=DefaultPosition, | |
56 | Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, | |
57 | wxString name=PanelNameStr) -> ScrolledWindow""" | |
58 | newobj = _windows.new_ScrolledWindow(*args, **kwargs) | |
59 | self.this = newobj.this | |
60 | self.thisown = 1 | |
61 | del newobj.thisown | |
62 | self._setOORInfo(self) | |
63 | ||
64 | def Create(*args, **kwargs): | |
65 | """Create(Window parent, int id=-1, Point pos=DefaultPosition, | |
66 | Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, | |
67 | wxString name=PanelNameStr) -> bool""" | |
68 | return _windows.ScrolledWindow_Create(*args, **kwargs) | |
69 | ||
70 | def SetScrollbars(*args, **kwargs): | |
71 | """SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, | |
72 | int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)""" | |
73 | return _windows.ScrolledWindow_SetScrollbars(*args, **kwargs) | |
74 | ||
75 | def Scroll(*args, **kwargs): | |
76 | """Scroll(int x, int y)""" | |
77 | return _windows.ScrolledWindow_Scroll(*args, **kwargs) | |
78 | ||
79 | def GetScrollPageSize(*args, **kwargs): | |
80 | """GetScrollPageSize(int orient) -> int""" | |
81 | return _windows.ScrolledWindow_GetScrollPageSize(*args, **kwargs) | |
82 | ||
83 | def SetScrollPageSize(*args, **kwargs): | |
84 | """SetScrollPageSize(int orient, int pageSize)""" | |
85 | return _windows.ScrolledWindow_SetScrollPageSize(*args, **kwargs) | |
86 | ||
87 | def SetScrollRate(*args, **kwargs): | |
88 | """SetScrollRate(int xstep, int ystep)""" | |
89 | return _windows.ScrolledWindow_SetScrollRate(*args, **kwargs) | |
90 | ||
91 | def GetScrollPixelsPerUnit(*args, **kwargs): | |
92 | """GetScrollPixelsPerUnit() -> (xUnit, yUnit) | |
93 | ||
94 | Get the size of one logical unit in physical units.""" | |
95 | return _windows.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs) | |
96 | ||
97 | def EnableScrolling(*args, **kwargs): | |
98 | """EnableScrolling(bool x_scrolling, bool y_scrolling)""" | |
99 | return _windows.ScrolledWindow_EnableScrolling(*args, **kwargs) | |
100 | ||
101 | def GetViewStart(*args, **kwargs): | |
102 | """GetViewStart() -> (x,y) | |
103 | ||
104 | Get the view start""" | |
105 | return _windows.ScrolledWindow_GetViewStart(*args, **kwargs) | |
106 | ||
107 | def SetScale(*args, **kwargs): | |
108 | """SetScale(double xs, double ys)""" | |
109 | return _windows.ScrolledWindow_SetScale(*args, **kwargs) | |
110 | ||
111 | def GetScaleX(*args, **kwargs): | |
112 | """GetScaleX() -> double""" | |
113 | return _windows.ScrolledWindow_GetScaleX(*args, **kwargs) | |
114 | ||
115 | def GetScaleY(*args, **kwargs): | |
116 | """GetScaleY() -> double""" | |
117 | return _windows.ScrolledWindow_GetScaleY(*args, **kwargs) | |
118 | ||
119 | def CalcScrolledPosition(*args): | |
120 | """CalcScrolledPosition(Point pt) -> Point | |
121 | CalcScrolledPosition(int x, int y) -> (sx, sy) | |
122 | ||
123 | Translate between scrolled and unscrolled coordinates.""" | |
124 | return _windows.ScrolledWindow_CalcScrolledPosition(*args) | |
125 | ||
126 | def CalcUnscrolledPosition(*args): | |
127 | """CalcUnscrolledPosition(Point pt) -> Point | |
128 | CalcUnscrolledPosition(int x, int y) -> (ux, uy) | |
129 | ||
130 | Translate between scrolled and unscrolled coordinates.""" | |
131 | return _windows.ScrolledWindow_CalcUnscrolledPosition(*args) | |
132 | ||
133 | def AdjustScrollbars(*args, **kwargs): | |
134 | """AdjustScrollbars()""" | |
135 | return _windows.ScrolledWindow_AdjustScrollbars(*args, **kwargs) | |
136 | ||
137 | def CalcScrollInc(*args, **kwargs): | |
138 | """CalcScrollInc(ScrollWinEvent event) -> int""" | |
139 | return _windows.ScrolledWindow_CalcScrollInc(*args, **kwargs) | |
140 | ||
141 | def SetTargetWindow(*args, **kwargs): | |
142 | """SetTargetWindow(Window target)""" | |
143 | return _windows.ScrolledWindow_SetTargetWindow(*args, **kwargs) | |
144 | ||
145 | def GetTargetWindow(*args, **kwargs): | |
146 | """GetTargetWindow() -> Window""" | |
147 | return _windows.ScrolledWindow_GetTargetWindow(*args, **kwargs) | |
148 | ||
149 | def SetTargetRect(*args, **kwargs): | |
150 | """SetTargetRect(Rect rect)""" | |
151 | return _windows.ScrolledWindow_SetTargetRect(*args, **kwargs) | |
152 | ||
153 | def GetTargetRect(*args, **kwargs): | |
154 | """GetTargetRect() -> Rect""" | |
155 | return _windows.ScrolledWindow_GetTargetRect(*args, **kwargs) | |
156 | ||
157 | ||
158 | class ScrolledWindowPtr(ScrolledWindow): | |
159 | def __init__(self, this): | |
160 | self.this = this | |
161 | if not hasattr(self,"thisown"): self.thisown = 0 | |
162 | self.__class__ = ScrolledWindow | |
163 | _windows.ScrolledWindow_swigregister(ScrolledWindowPtr) | |
164 | ||
165 | def PreScrolledWindow(*args, **kwargs): | |
166 | """PreScrolledWindow() -> ScrolledWindow""" | |
167 | val = _windows.new_PreScrolledWindow(*args, **kwargs) | |
168 | val.thisown = 1 | |
169 | return val | |
170 | ||
171 | #--------------------------------------------------------------------------- | |
172 | ||
173 | class AcceleratorEntry(object): | |
174 | """""" | |
175 | def __repr__(self): | |
176 | return "<%s.%s; proxy of C++ wxAcceleratorEntry instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
177 | def __init__(self, *args, **kwargs): | |
178 | """__init__(int flags=0, int keyCode=0, int cmd=0, MenuItem item=None) -> AcceleratorEntry""" | |
179 | newobj = _windows.new_AcceleratorEntry(*args, **kwargs) | |
180 | self.this = newobj.this | |
181 | self.thisown = 1 | |
182 | del newobj.thisown | |
183 | def __del__(self, destroy=_windows.delete_AcceleratorEntry): | |
184 | """__del__()""" | |
185 | try: | |
186 | if self.thisown: destroy(self) | |
187 | except: pass | |
188 | ||
189 | def Set(*args, **kwargs): | |
190 | """Set(int flags, int keyCode, int cmd, MenuItem item=None)""" | |
191 | return _windows.AcceleratorEntry_Set(*args, **kwargs) | |
192 | ||
193 | def SetMenuItem(*args, **kwargs): | |
194 | """SetMenuItem(MenuItem item)""" | |
195 | return _windows.AcceleratorEntry_SetMenuItem(*args, **kwargs) | |
196 | ||
197 | def GetMenuItem(*args, **kwargs): | |
198 | """GetMenuItem() -> MenuItem""" | |
199 | return _windows.AcceleratorEntry_GetMenuItem(*args, **kwargs) | |
200 | ||
201 | def GetFlags(*args, **kwargs): | |
202 | """GetFlags() -> int""" | |
203 | return _windows.AcceleratorEntry_GetFlags(*args, **kwargs) | |
204 | ||
205 | def GetKeyCode(*args, **kwargs): | |
206 | """GetKeyCode() -> int""" | |
207 | return _windows.AcceleratorEntry_GetKeyCode(*args, **kwargs) | |
208 | ||
209 | def GetCommand(*args, **kwargs): | |
210 | """GetCommand() -> int""" | |
211 | return _windows.AcceleratorEntry_GetCommand(*args, **kwargs) | |
212 | ||
213 | ||
214 | class AcceleratorEntryPtr(AcceleratorEntry): | |
215 | def __init__(self, this): | |
216 | self.this = this | |
217 | if not hasattr(self,"thisown"): self.thisown = 0 | |
218 | self.__class__ = AcceleratorEntry | |
219 | _windows.AcceleratorEntry_swigregister(AcceleratorEntryPtr) | |
220 | ||
221 | class AcceleratorTable(core.Object): | |
222 | """""" | |
223 | def __repr__(self): | |
224 | return "<%s.%s; proxy of C++ wxAcceleratorTable instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
225 | def __init__(self, *args, **kwargs): | |
226 | """__init__(int n, AcceleratorEntry entries) -> AcceleratorTable""" | |
227 | newobj = _windows.new_AcceleratorTable(*args, **kwargs) | |
228 | self.this = newobj.this | |
229 | self.thisown = 1 | |
230 | del newobj.thisown | |
231 | def __del__(self, destroy=_windows.delete_AcceleratorTable): | |
232 | """__del__()""" | |
233 | try: | |
234 | if self.thisown: destroy(self) | |
235 | except: pass | |
236 | ||
237 | def Ok(*args, **kwargs): | |
238 | """Ok() -> bool""" | |
239 | return _windows.AcceleratorTable_Ok(*args, **kwargs) | |
240 | ||
241 | ||
242 | class AcceleratorTablePtr(AcceleratorTable): | |
243 | def __init__(self, this): | |
244 | self.this = this | |
245 | if not hasattr(self,"thisown"): self.thisown = 0 | |
246 | self.__class__ = AcceleratorTable | |
247 | _windows.AcceleratorTable_swigregister(AcceleratorTablePtr) | |
248 | ||
249 | ||
250 | def GetAccelFromString(*args, **kwargs): | |
251 | """GetAccelFromString(wxString label) -> AcceleratorEntry""" | |
252 | return _windows.GetAccelFromString(*args, **kwargs) | |
253 | #--------------------------------------------------------------------------- | |
254 | ||
255 | FULLSCREEN_NOMENUBAR = _windows.FULLSCREEN_NOMENUBAR | |
256 | FULLSCREEN_NOTOOLBAR = _windows.FULLSCREEN_NOTOOLBAR | |
257 | FULLSCREEN_NOSTATUSBAR = _windows.FULLSCREEN_NOSTATUSBAR | |
258 | FULLSCREEN_NOBORDER = _windows.FULLSCREEN_NOBORDER | |
259 | FULLSCREEN_NOCAPTION = _windows.FULLSCREEN_NOCAPTION | |
260 | FULLSCREEN_ALL = _windows.FULLSCREEN_ALL | |
261 | TOPLEVEL_EX_DIALOG = _windows.TOPLEVEL_EX_DIALOG | |
262 | class TopLevelWindow(core.Window): | |
263 | """""" | |
264 | def __init__(self): raise RuntimeError, "No constructor defined" | |
265 | def __repr__(self): | |
266 | return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
267 | def Maximize(*args, **kwargs): | |
268 | """Maximize(bool maximize=True)""" | |
269 | return _windows.TopLevelWindow_Maximize(*args, **kwargs) | |
270 | ||
271 | def Restore(*args, **kwargs): | |
272 | """Restore()""" | |
273 | return _windows.TopLevelWindow_Restore(*args, **kwargs) | |
274 | ||
275 | def Iconize(*args, **kwargs): | |
276 | """Iconize(bool iconize=True)""" | |
277 | return _windows.TopLevelWindow_Iconize(*args, **kwargs) | |
278 | ||
279 | def IsMaximized(*args, **kwargs): | |
280 | """IsMaximized() -> bool""" | |
281 | return _windows.TopLevelWindow_IsMaximized(*args, **kwargs) | |
282 | ||
283 | def IsIconized(*args, **kwargs): | |
284 | """IsIconized() -> bool""" | |
285 | return _windows.TopLevelWindow_IsIconized(*args, **kwargs) | |
286 | ||
287 | def GetIcon(*args, **kwargs): | |
288 | """GetIcon() -> wxIcon""" | |
289 | return _windows.TopLevelWindow_GetIcon(*args, **kwargs) | |
290 | ||
291 | def SetIcon(*args, **kwargs): | |
292 | """SetIcon(wxIcon icon)""" | |
293 | return _windows.TopLevelWindow_SetIcon(*args, **kwargs) | |
294 | ||
295 | def SetIcons(*args, **kwargs): | |
296 | """SetIcons(wxIconBundle icons)""" | |
297 | return _windows.TopLevelWindow_SetIcons(*args, **kwargs) | |
298 | ||
299 | def ShowFullScreen(*args, **kwargs): | |
300 | """ShowFullScreen(bool show, long style=FULLSCREEN_ALL) -> bool""" | |
301 | return _windows.TopLevelWindow_ShowFullScreen(*args, **kwargs) | |
302 | ||
303 | def IsFullScreen(*args, **kwargs): | |
304 | """IsFullScreen() -> bool""" | |
305 | return _windows.TopLevelWindow_IsFullScreen(*args, **kwargs) | |
306 | ||
307 | def SetTitle(*args, **kwargs): | |
308 | """SetTitle(wxString title)""" | |
309 | return _windows.TopLevelWindow_SetTitle(*args, **kwargs) | |
310 | ||
311 | def GetTitle(*args, **kwargs): | |
312 | """GetTitle() -> wxString""" | |
313 | return _windows.TopLevelWindow_GetTitle(*args, **kwargs) | |
314 | ||
315 | def SetShape(*args, **kwargs): | |
316 | """SetShape(wxRegion region) -> bool""" | |
317 | return _windows.TopLevelWindow_SetShape(*args, **kwargs) | |
318 | ||
319 | ||
320 | class TopLevelWindowPtr(TopLevelWindow): | |
321 | def __init__(self, this): | |
322 | self.this = this | |
323 | if not hasattr(self,"thisown"): self.thisown = 0 | |
324 | self.__class__ = TopLevelWindow | |
325 | _windows.TopLevelWindow_swigregister(TopLevelWindowPtr) | |
326 | cvar = _windows.cvar | |
327 | NullAcceleratorTable = cvar.NullAcceleratorTable | |
328 | ||
329 | #--------------------------------------------------------------------------- | |
330 | ||
331 | class Frame(TopLevelWindow): | |
332 | """""" | |
333 | def __repr__(self): | |
334 | return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
335 | def __init__(self, *args, **kwargs): | |
336 | """__init__(Window parent, int id, wxString title, Point pos=DefaultPosition, | |
337 | Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, | |
338 | wxString name=wxPyFrameNameStr) -> Frame""" | |
339 | newobj = _windows.new_Frame(*args, **kwargs) | |
340 | self.this = newobj.this | |
341 | self.thisown = 1 | |
342 | del newobj.thisown | |
343 | self._setOORInfo(self) | |
344 | ||
345 | def Create(*args, **kwargs): | |
346 | """Create(Window parent, int id, wxString title, Point pos=DefaultPosition, | |
347 | Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, | |
348 | wxString name=wxPyFrameNameStr) -> bool""" | |
349 | return _windows.Frame_Create(*args, **kwargs) | |
350 | ||
351 | def GetClientAreaOrigin(*args, **kwargs): | |
352 | """GetClientAreaOrigin() -> Point""" | |
353 | return _windows.Frame_GetClientAreaOrigin(*args, **kwargs) | |
354 | ||
355 | def SendSizeEvent(*args, **kwargs): | |
356 | """SendSizeEvent()""" | |
357 | return _windows.Frame_SendSizeEvent(*args, **kwargs) | |
358 | ||
359 | def SetMenuBar(*args, **kwargs): | |
360 | """SetMenuBar(MenuBar menubar)""" | |
361 | return _windows.Frame_SetMenuBar(*args, **kwargs) | |
362 | ||
363 | def GetMenuBar(*args, **kwargs): | |
364 | """GetMenuBar() -> MenuBar""" | |
365 | return _windows.Frame_GetMenuBar(*args, **kwargs) | |
366 | ||
367 | def ProcessCommand(*args, **kwargs): | |
368 | """ProcessCommand(int winid) -> bool""" | |
369 | return _windows.Frame_ProcessCommand(*args, **kwargs) | |
370 | ||
371 | Command = ProcessCommand | |
372 | def CreateStatusBar(*args, **kwargs): | |
373 | """CreateStatusBar(int number=1, long style=ST_SIZEGRIP, int winid=0, | |
374 | wxString name=wxPyStatusLineNameStr) -> StatusBar""" | |
375 | return _windows.Frame_CreateStatusBar(*args, **kwargs) | |
376 | ||
377 | def GetStatusBar(*args, **kwargs): | |
378 | """GetStatusBar() -> StatusBar""" | |
379 | return _windows.Frame_GetStatusBar(*args, **kwargs) | |
380 | ||
381 | def SetStatusBar(*args, **kwargs): | |
382 | """SetStatusBar(StatusBar statBar)""" | |
383 | return _windows.Frame_SetStatusBar(*args, **kwargs) | |
384 | ||
385 | def SetStatusText(*args, **kwargs): | |
386 | """SetStatusText(wxString text, int number=0)""" | |
387 | return _windows.Frame_SetStatusText(*args, **kwargs) | |
388 | ||
389 | def SetStatusWidths(*args, **kwargs): | |
390 | """SetStatusWidths(int widths, int widths_field)""" | |
391 | return _windows.Frame_SetStatusWidths(*args, **kwargs) | |
392 | ||
393 | def PushStatusText(*args, **kwargs): | |
394 | """PushStatusText(wxString text, int number=0)""" | |
395 | return _windows.Frame_PushStatusText(*args, **kwargs) | |
396 | ||
397 | def PopStatusText(*args, **kwargs): | |
398 | """PopStatusText(int number=0)""" | |
399 | return _windows.Frame_PopStatusText(*args, **kwargs) | |
400 | ||
401 | def SetStatusBarPane(*args, **kwargs): | |
402 | """SetStatusBarPane(int n)""" | |
403 | return _windows.Frame_SetStatusBarPane(*args, **kwargs) | |
404 | ||
405 | def GetStatusBarPane(*args, **kwargs): | |
406 | """GetStatusBarPane() -> int""" | |
407 | return _windows.Frame_GetStatusBarPane(*args, **kwargs) | |
408 | ||
409 | def CreateToolBar(*args, **kwargs): | |
410 | """CreateToolBar(long style=-1, int winid=-1, wxString name=wxPyToolBarNameStr) -> wxToolBar""" | |
411 | return _windows.Frame_CreateToolBar(*args, **kwargs) | |
412 | ||
413 | def GetToolBar(*args, **kwargs): | |
414 | """GetToolBar() -> wxToolBar""" | |
415 | return _windows.Frame_GetToolBar(*args, **kwargs) | |
416 | ||
417 | def SetToolBar(*args, **kwargs): | |
418 | """SetToolBar(wxToolBar toolbar)""" | |
419 | return _windows.Frame_SetToolBar(*args, **kwargs) | |
420 | ||
421 | def DoGiveHelp(*args, **kwargs): | |
422 | """DoGiveHelp(wxString text, bool show)""" | |
423 | return _windows.Frame_DoGiveHelp(*args, **kwargs) | |
424 | ||
425 | def DoMenuUpdates(*args, **kwargs): | |
426 | """DoMenuUpdates(Menu menu=None)""" | |
427 | return _windows.Frame_DoMenuUpdates(*args, **kwargs) | |
428 | ||
429 | ||
430 | class FramePtr(Frame): | |
431 | def __init__(self, this): | |
432 | self.this = this | |
433 | if not hasattr(self,"thisown"): self.thisown = 0 | |
434 | self.__class__ = Frame | |
435 | _windows.Frame_swigregister(FramePtr) | |
436 | ||
437 | def PreFrame(*args, **kwargs): | |
438 | """PreFrame() -> Frame""" | |
439 | val = _windows.new_PreFrame(*args, **kwargs) | |
440 | val.thisown = 1 | |
441 | return val | |
442 | ||
443 | #--------------------------------------------------------------------------- | |
444 | ||
445 | class Dialog(TopLevelWindow): | |
446 | """""" | |
447 | def __repr__(self): | |
448 | return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
449 | def __init__(self, *args, **kwargs): | |
450 | """__init__(Window parent, int id, wxString title, Point pos=DefaultPosition, | |
451 | Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE, | |
452 | wxString name=wxPyDialogNameStr) -> Dialog""" | |
453 | newobj = _windows.new_Dialog(*args, **kwargs) | |
454 | self.this = newobj.this | |
455 | self.thisown = 1 | |
456 | del newobj.thisown | |
457 | self._setOORInfo(self) | |
458 | ||
459 | def Create(*args, **kwargs): | |
460 | """Create(Window parent, int id, wxString title, Point pos=DefaultPosition, | |
461 | Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE, | |
462 | wxString name=wxPyDialogNameStr) -> bool""" | |
463 | return _windows.Dialog_Create(*args, **kwargs) | |
464 | ||
465 | def SetReturnCode(*args, **kwargs): | |
466 | """SetReturnCode(int returnCode)""" | |
467 | return _windows.Dialog_SetReturnCode(*args, **kwargs) | |
468 | ||
469 | def GetReturnCode(*args, **kwargs): | |
470 | """GetReturnCode() -> int""" | |
471 | return _windows.Dialog_GetReturnCode(*args, **kwargs) | |
472 | ||
473 | def CreateTextSizer(*args, **kwargs): | |
474 | """CreateTextSizer(wxString message) -> Sizer""" | |
475 | return _windows.Dialog_CreateTextSizer(*args, **kwargs) | |
476 | ||
477 | def CreateButtonSizer(*args, **kwargs): | |
478 | """CreateButtonSizer(long flags) -> Sizer""" | |
479 | return _windows.Dialog_CreateButtonSizer(*args, **kwargs) | |
480 | ||
481 | def SetModal(*args, **kwargs): | |
482 | """SetModal(bool flag)""" | |
483 | return _windows.Dialog_SetModal(*args, **kwargs) | |
484 | ||
485 | def IsModal(*args, **kwargs): | |
486 | """IsModal() -> bool""" | |
487 | return _windows.Dialog_IsModal(*args, **kwargs) | |
488 | ||
489 | def ShowModal(*args, **kwargs): | |
490 | """ShowModal() -> int""" | |
491 | return _windows.Dialog_ShowModal(*args, **kwargs) | |
492 | ||
493 | def EndModal(*args, **kwargs): | |
494 | """EndModal(int retCode)""" | |
495 | return _windows.Dialog_EndModal(*args, **kwargs) | |
496 | ||
497 | def IsModalShowing(*args, **kwargs): | |
498 | """IsModalShowing() -> bool""" | |
499 | return _windows.Dialog_IsModalShowing(*args, **kwargs) | |
500 | ||
501 | ||
502 | class DialogPtr(Dialog): | |
503 | def __init__(self, this): | |
504 | self.this = this | |
505 | if not hasattr(self,"thisown"): self.thisown = 0 | |
506 | self.__class__ = Dialog | |
507 | _windows.Dialog_swigregister(DialogPtr) | |
508 | ||
509 | def PreDialog(*args, **kwargs): | |
510 | """PreDialog() -> Dialog""" | |
511 | val = _windows.new_PreDialog(*args, **kwargs) | |
512 | val.thisown = 1 | |
513 | return val | |
514 | ||
515 | #--------------------------------------------------------------------------- | |
516 | ||
517 | class MiniFrame(Frame): | |
518 | """""" | |
519 | def __repr__(self): | |
520 | return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
521 | def __init__(self, *args, **kwargs): | |
522 | """__init__(Window parent, int id, wxString title, Point pos=DefaultPosition, | |
523 | Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, | |
524 | wxString name=wxPyFrameNameStr) -> MiniFrame""" | |
525 | newobj = _windows.new_MiniFrame(*args, **kwargs) | |
526 | self.this = newobj.this | |
527 | self.thisown = 1 | |
528 | del newobj.thisown | |
529 | self._setOORInfo(self) | |
530 | ||
531 | def Create(*args, **kwargs): | |
532 | """Create(Window parent, int id, wxString title, Point pos=DefaultPosition, | |
533 | Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, | |
534 | wxString name=wxPyFrameNameStr) -> bool""" | |
535 | return _windows.MiniFrame_Create(*args, **kwargs) | |
536 | ||
537 | ||
538 | class MiniFramePtr(MiniFrame): | |
539 | def __init__(self, this): | |
540 | self.this = this | |
541 | if not hasattr(self,"thisown"): self.thisown = 0 | |
542 | self.__class__ = MiniFrame | |
543 | _windows.MiniFrame_swigregister(MiniFramePtr) | |
544 | ||
545 | def PreMiniFrame(*args, **kwargs): | |
546 | """PreMiniFrame() -> MiniFrame""" | |
547 | val = _windows.new_PreMiniFrame(*args, **kwargs) | |
548 | val.thisown = 1 | |
549 | return val | |
550 | ||
551 | #--------------------------------------------------------------------------- | |
552 | ||
553 | SPLASH_CENTRE_ON_PARENT = _windows.SPLASH_CENTRE_ON_PARENT | |
554 | SPLASH_CENTRE_ON_SCREEN = _windows.SPLASH_CENTRE_ON_SCREEN | |
555 | SPLASH_NO_CENTRE = _windows.SPLASH_NO_CENTRE | |
556 | SPLASH_TIMEOUT = _windows.SPLASH_TIMEOUT | |
557 | SPLASH_NO_TIMEOUT = _windows.SPLASH_NO_TIMEOUT | |
558 | class SplashScreenWindow(core.Window): | |
559 | """""" | |
560 | def __repr__(self): | |
561 | return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
562 | def __init__(self, *args, **kwargs): | |
563 | """__init__(wxBitmap bitmap, Window parent, int id, Point pos=DefaultPosition, | |
564 | Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow""" | |
565 | newobj = _windows.new_SplashScreenWindow(*args, **kwargs) | |
566 | self.this = newobj.this | |
567 | self.thisown = 1 | |
568 | del newobj.thisown | |
569 | self._setOORInfo(self) | |
570 | ||
571 | def SetBitmap(*args, **kwargs): | |
572 | """SetBitmap(wxBitmap bitmap)""" | |
573 | return _windows.SplashScreenWindow_SetBitmap(*args, **kwargs) | |
574 | ||
575 | def GetBitmap(*args, **kwargs): | |
576 | """GetBitmap() -> wxBitmap""" | |
577 | return _windows.SplashScreenWindow_GetBitmap(*args, **kwargs) | |
578 | ||
579 | ||
580 | class SplashScreenWindowPtr(SplashScreenWindow): | |
581 | def __init__(self, this): | |
582 | self.this = this | |
583 | if not hasattr(self,"thisown"): self.thisown = 0 | |
584 | self.__class__ = SplashScreenWindow | |
585 | _windows.SplashScreenWindow_swigregister(SplashScreenWindowPtr) | |
586 | ||
587 | class SplashScreen(Frame): | |
588 | """""" | |
589 | def __repr__(self): | |
590 | return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
591 | def __init__(self, *args, **kwargs): | |
592 | """__init__(wxBitmap bitmap, long splashStyle, int milliseconds, | |
593 | Window parent, int id, Point pos=DefaultPosition, | |
594 | Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen""" | |
595 | newobj = _windows.new_SplashScreen(*args, **kwargs) | |
596 | self.this = newobj.this | |
597 | self.thisown = 1 | |
598 | del newobj.thisown | |
599 | self._setOORInfo(self) | |
600 | ||
601 | def GetSplashStyle(*args, **kwargs): | |
602 | """GetSplashStyle() -> long""" | |
603 | return _windows.SplashScreen_GetSplashStyle(*args, **kwargs) | |
604 | ||
605 | def GetSplashWindow(*args, **kwargs): | |
606 | """GetSplashWindow() -> SplashScreenWindow""" | |
607 | return _windows.SplashScreen_GetSplashWindow(*args, **kwargs) | |
608 | ||
609 | def GetTimeout(*args, **kwargs): | |
610 | """GetTimeout() -> int""" | |
611 | return _windows.SplashScreen_GetTimeout(*args, **kwargs) | |
612 | ||
613 | ||
614 | class SplashScreenPtr(SplashScreen): | |
615 | def __init__(self, this): | |
616 | self.this = this | |
617 | if not hasattr(self,"thisown"): self.thisown = 0 | |
618 | self.__class__ = SplashScreen | |
619 | _windows.SplashScreen_swigregister(SplashScreenPtr) | |
620 | ||
621 | #--------------------------------------------------------------------------- | |
622 | ||
623 | class StatusBar(core.Window): | |
624 | """""" | |
625 | def __repr__(self): | |
626 | return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
627 | def __init__(self, *args, **kwargs): | |
628 | """__init__(Window parent, int id=-1, long style=ST_SIZEGRIP, wxString name=wxPyStatusLineNameStr) -> StatusBar""" | |
629 | newobj = _windows.new_StatusBar(*args, **kwargs) | |
630 | self.this = newobj.this | |
631 | self.thisown = 1 | |
632 | del newobj.thisown | |
633 | self._setOORInfo(self) | |
634 | ||
635 | def Create(*args, **kwargs): | |
636 | """Create(Window parent, int id, long style=ST_SIZEGRIP, wxString name=wxPyStatusLineNameStr) -> bool""" | |
637 | return _windows.StatusBar_Create(*args, **kwargs) | |
638 | ||
639 | def SetFieldsCount(*args, **kwargs): | |
640 | """SetFieldsCount(int number=1)""" | |
641 | return _windows.StatusBar_SetFieldsCount(*args, **kwargs) | |
642 | ||
643 | def GetFieldsCount(*args, **kwargs): | |
644 | """GetFieldsCount() -> int""" | |
645 | return _windows.StatusBar_GetFieldsCount(*args, **kwargs) | |
646 | ||
647 | def SetStatusText(*args, **kwargs): | |
648 | """SetStatusText(wxString text, int number=0)""" | |
649 | return _windows.StatusBar_SetStatusText(*args, **kwargs) | |
650 | ||
651 | def GetStatusText(*args, **kwargs): | |
652 | """GetStatusText(int number=0) -> wxString""" | |
653 | return _windows.StatusBar_GetStatusText(*args, **kwargs) | |
654 | ||
655 | def PushStatusText(*args, **kwargs): | |
656 | """PushStatusText(wxString text, int number=0)""" | |
657 | return _windows.StatusBar_PushStatusText(*args, **kwargs) | |
658 | ||
659 | def PopStatusText(*args, **kwargs): | |
660 | """PopStatusText(int number=0)""" | |
661 | return _windows.StatusBar_PopStatusText(*args, **kwargs) | |
662 | ||
663 | def SetStatusWidths(*args, **kwargs): | |
664 | """SetStatusWidths(int widths, int widths_field)""" | |
665 | return _windows.StatusBar_SetStatusWidths(*args, **kwargs) | |
666 | ||
667 | def GetFieldRect(*args, **kwargs): | |
668 | """GetFieldRect(int i) -> Rect""" | |
669 | return _windows.StatusBar_GetFieldRect(*args, **kwargs) | |
670 | ||
671 | def SetMinHeight(*args, **kwargs): | |
672 | """SetMinHeight(int height)""" | |
673 | return _windows.StatusBar_SetMinHeight(*args, **kwargs) | |
674 | ||
675 | def GetBorderX(*args, **kwargs): | |
676 | """GetBorderX() -> int""" | |
677 | return _windows.StatusBar_GetBorderX(*args, **kwargs) | |
678 | ||
679 | def GetBorderY(*args, **kwargs): | |
680 | """GetBorderY() -> int""" | |
681 | return _windows.StatusBar_GetBorderY(*args, **kwargs) | |
682 | ||
683 | ||
684 | class StatusBarPtr(StatusBar): | |
685 | def __init__(self, this): | |
686 | self.this = this | |
687 | if not hasattr(self,"thisown"): self.thisown = 0 | |
688 | self.__class__ = StatusBar | |
689 | _windows.StatusBar_swigregister(StatusBarPtr) | |
690 | ||
691 | def PreStatusBar(*args, **kwargs): | |
692 | """PreStatusBar() -> StatusBar""" | |
693 | val = _windows.new_PreStatusBar(*args, **kwargs) | |
694 | val.thisown = 1 | |
695 | return val | |
696 | ||
697 | #--------------------------------------------------------------------------- | |
698 | ||
699 | SP_NOBORDER = _windows.SP_NOBORDER | |
700 | SP_NOSASH = _windows.SP_NOSASH | |
701 | SP_PERMIT_UNSPLIT = _windows.SP_PERMIT_UNSPLIT | |
702 | SP_LIVE_UPDATE = _windows.SP_LIVE_UPDATE | |
703 | SP_3DSASH = _windows.SP_3DSASH | |
704 | SP_3DBORDER = _windows.SP_3DBORDER | |
705 | SP_BORDER = _windows.SP_BORDER | |
706 | SP_3D = _windows.SP_3D | |
707 | SPLIT_HORIZONTAL = _windows.SPLIT_HORIZONTAL | |
708 | SPLIT_VERTICAL = _windows.SPLIT_VERTICAL | |
709 | SPLIT_DRAG_NONE = _windows.SPLIT_DRAG_NONE | |
710 | SPLIT_DRAG_DRAGGING = _windows.SPLIT_DRAG_DRAGGING | |
711 | SPLIT_DRAG_LEFT_DOWN = _windows.SPLIT_DRAG_LEFT_DOWN | |
712 | class SplitterWindow(core.Window): | |
713 | """""" | |
714 | def __repr__(self): | |
715 | return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
716 | def __init__(self, *args, **kwargs): | |
717 | """__init__(Window parent, int id, Point point=DefaultPosition, | |
718 | Size size=DefaultSize, long style=SP_3D, wxString name=wxPySplitterNameStr) -> SplitterWindow""" | |
719 | newobj = _windows.new_SplitterWindow(*args, **kwargs) | |
720 | self.this = newobj.this | |
721 | self.thisown = 1 | |
722 | del newobj.thisown | |
723 | self._setOORInfo(self) | |
724 | ||
725 | def Create(*args, **kwargs): | |
726 | """Create(Window parent, int id, Point point=DefaultPosition, | |
727 | Size size=DefaultSize, long style=SP_3D, wxString name=wxPySplitterNameStr) -> bool""" | |
728 | return _windows.SplitterWindow_Create(*args, **kwargs) | |
729 | ||
730 | def GetWindow1(*args, **kwargs): | |
731 | """GetWindow1() -> Window""" | |
732 | return _windows.SplitterWindow_GetWindow1(*args, **kwargs) | |
733 | ||
734 | def GetWindow2(*args, **kwargs): | |
735 | """GetWindow2() -> Window""" | |
736 | return _windows.SplitterWindow_GetWindow2(*args, **kwargs) | |
737 | ||
738 | def SetSplitMode(*args, **kwargs): | |
739 | """SetSplitMode(int mode)""" | |
740 | return _windows.SplitterWindow_SetSplitMode(*args, **kwargs) | |
741 | ||
742 | def GetSplitMode(*args, **kwargs): | |
743 | """GetSplitMode() -> wxSplitMode""" | |
744 | return _windows.SplitterWindow_GetSplitMode(*args, **kwargs) | |
745 | ||
746 | def Initialize(*args, **kwargs): | |
747 | """Initialize(Window window)""" | |
748 | return _windows.SplitterWindow_Initialize(*args, **kwargs) | |
749 | ||
750 | def SplitVertically(*args, **kwargs): | |
751 | """SplitVertically(Window window1, Window window2, int sashPosition=0) -> bool""" | |
752 | return _windows.SplitterWindow_SplitVertically(*args, **kwargs) | |
753 | ||
754 | def SplitHorizontally(*args, **kwargs): | |
755 | """SplitHorizontally(Window window1, Window window2, int sashPosition=0) -> bool""" | |
756 | return _windows.SplitterWindow_SplitHorizontally(*args, **kwargs) | |
757 | ||
758 | def Unsplit(*args, **kwargs): | |
759 | """Unsplit(Window toRemove=None) -> bool""" | |
760 | return _windows.SplitterWindow_Unsplit(*args, **kwargs) | |
761 | ||
762 | def ReplaceWindow(*args, **kwargs): | |
763 | """ReplaceWindow(Window winOld, Window winNew) -> bool""" | |
764 | return _windows.SplitterWindow_ReplaceWindow(*args, **kwargs) | |
765 | ||
766 | def IsSplit(*args, **kwargs): | |
767 | """IsSplit() -> bool""" | |
768 | return _windows.SplitterWindow_IsSplit(*args, **kwargs) | |
769 | ||
770 | def SetSashSize(*args, **kwargs): | |
771 | """SetSashSize(int width)""" | |
772 | return _windows.SplitterWindow_SetSashSize(*args, **kwargs) | |
773 | ||
774 | def SetBorderSize(*args, **kwargs): | |
775 | """SetBorderSize(int width)""" | |
776 | return _windows.SplitterWindow_SetBorderSize(*args, **kwargs) | |
777 | ||
778 | def GetSashSize(*args, **kwargs): | |
779 | """GetSashSize() -> int""" | |
780 | return _windows.SplitterWindow_GetSashSize(*args, **kwargs) | |
781 | ||
782 | def GetBorderSize(*args, **kwargs): | |
783 | """GetBorderSize() -> int""" | |
784 | return _windows.SplitterWindow_GetBorderSize(*args, **kwargs) | |
785 | ||
786 | def SetSashPosition(*args, **kwargs): | |
787 | """SetSashPosition(int position, bool redraw=True)""" | |
788 | return _windows.SplitterWindow_SetSashPosition(*args, **kwargs) | |
789 | ||
790 | def GetSashPosition(*args, **kwargs): | |
791 | """GetSashPosition() -> int""" | |
792 | return _windows.SplitterWindow_GetSashPosition(*args, **kwargs) | |
793 | ||
794 | def SetMinimumPaneSize(*args, **kwargs): | |
795 | """SetMinimumPaneSize(int min)""" | |
796 | return _windows.SplitterWindow_SetMinimumPaneSize(*args, **kwargs) | |
797 | ||
798 | def GetMinimumPaneSize(*args, **kwargs): | |
799 | """GetMinimumPaneSize() -> int""" | |
800 | return _windows.SplitterWindow_GetMinimumPaneSize(*args, **kwargs) | |
801 | ||
802 | def SashHitTest(*args, **kwargs): | |
803 | """SashHitTest(int x, int y, int tolerance=5) -> bool""" | |
804 | return _windows.SplitterWindow_SashHitTest(*args, **kwargs) | |
805 | ||
806 | def SizeWindows(*args, **kwargs): | |
807 | """SizeWindows()""" | |
808 | return _windows.SplitterWindow_SizeWindows(*args, **kwargs) | |
809 | ||
810 | def SetNeedUpdating(*args, **kwargs): | |
811 | """SetNeedUpdating(bool needUpdating)""" | |
812 | return _windows.SplitterWindow_SetNeedUpdating(*args, **kwargs) | |
813 | ||
814 | def GetNeedUpdating(*args, **kwargs): | |
815 | """GetNeedUpdating() -> bool""" | |
816 | return _windows.SplitterWindow_GetNeedUpdating(*args, **kwargs) | |
817 | ||
818 | ||
819 | class SplitterWindowPtr(SplitterWindow): | |
820 | def __init__(self, this): | |
821 | self.this = this | |
822 | if not hasattr(self,"thisown"): self.thisown = 0 | |
823 | self.__class__ = SplitterWindow | |
824 | _windows.SplitterWindow_swigregister(SplitterWindowPtr) | |
825 | ||
826 | def PreSplitterWindow(*args, **kwargs): | |
827 | """PreSplitterWindow() -> SplitterWindow""" | |
828 | val = _windows.new_PreSplitterWindow(*args, **kwargs) | |
829 | val.thisown = 1 | |
830 | return val | |
831 | ||
832 | class SplitterEvent(core.NotifyEvent): | |
833 | """""" | |
834 | def __repr__(self): | |
835 | return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
836 | def __init__(self, *args, **kwargs): | |
837 | """__init__(wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent""" | |
838 | newobj = _windows.new_SplitterEvent(*args, **kwargs) | |
839 | self.this = newobj.this | |
840 | self.thisown = 1 | |
841 | del newobj.thisown | |
842 | def SetSashPosition(*args, **kwargs): | |
843 | """SetSashPosition(int pos)""" | |
844 | return _windows.SplitterEvent_SetSashPosition(*args, **kwargs) | |
845 | ||
846 | def GetSashPosition(*args, **kwargs): | |
847 | """GetSashPosition() -> int""" | |
848 | return _windows.SplitterEvent_GetSashPosition(*args, **kwargs) | |
849 | ||
850 | def GetWindowBeingRemoved(*args, **kwargs): | |
851 | """GetWindowBeingRemoved() -> Window""" | |
852 | return _windows.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs) | |
853 | ||
854 | def GetX(*args, **kwargs): | |
855 | """GetX() -> int""" | |
856 | return _windows.SplitterEvent_GetX(*args, **kwargs) | |
857 | ||
858 | def GetY(*args, **kwargs): | |
859 | """GetY() -> int""" | |
860 | return _windows.SplitterEvent_GetY(*args, **kwargs) | |
861 | ||
862 | ||
863 | class SplitterEventPtr(SplitterEvent): | |
864 | def __init__(self, this): | |
865 | self.this = this | |
866 | if not hasattr(self,"thisown"): self.thisown = 0 | |
867 | self.__class__ = SplitterEvent | |
868 | _windows.SplitterEvent_swigregister(SplitterEventPtr) | |
869 | ||
870 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED | |
871 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING | |
872 | wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED | |
873 | wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows.wxEVT_COMMAND_SPLITTER_UNSPLIT | |
874 | EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 ) | |
875 | EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 ) | |
876 | EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 ) | |
877 | EVT_SPLITTER_UNSPLIT = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT, 1 ) | |
878 | ||
879 | #--------------------------------------------------------------------------- | |
880 | ||
881 | SASH_DRAG_NONE = _windows.SASH_DRAG_NONE | |
882 | SASH_DRAG_DRAGGING = _windows.SASH_DRAG_DRAGGING | |
883 | SASH_DRAG_LEFT_DOWN = _windows.SASH_DRAG_LEFT_DOWN | |
884 | SW_NOBORDER = _windows.SW_NOBORDER | |
885 | SW_BORDER = _windows.SW_BORDER | |
886 | SW_3DSASH = _windows.SW_3DSASH | |
887 | SW_3DBORDER = _windows.SW_3DBORDER | |
888 | SW_3D = _windows.SW_3D | |
889 | SASH_TOP = _windows.SASH_TOP | |
890 | SASH_RIGHT = _windows.SASH_RIGHT | |
891 | SASH_BOTTOM = _windows.SASH_BOTTOM | |
892 | SASH_LEFT = _windows.SASH_LEFT | |
893 | SASH_NONE = _windows.SASH_NONE | |
894 | class SashWindow(core.Window): | |
895 | """""" | |
896 | def __repr__(self): | |
897 | return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
898 | def __init__(self, *args, **kwargs): | |
899 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
900 | long style=wxCLIP_CHILDREN|wxSW_3D, | |
901 | wxString name=wxPySashNameStr) -> SashWindow""" | |
902 | newobj = _windows.new_SashWindow(*args, **kwargs) | |
903 | self.this = newobj.this | |
904 | self.thisown = 1 | |
905 | del newobj.thisown | |
906 | self._setOORInfo(self) | |
907 | ||
908 | def Create(*args, **kwargs): | |
909 | """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
910 | long style=wxCLIP_CHILDREN|wxSW_3D, | |
911 | wxString name=wxPySashNameStr) -> bool""" | |
912 | return _windows.SashWindow_Create(*args, **kwargs) | |
913 | ||
914 | def SetSashVisible(*args, **kwargs): | |
915 | """SetSashVisible(wxSashEdgePosition edge, bool sash)""" | |
916 | return _windows.SashWindow_SetSashVisible(*args, **kwargs) | |
917 | ||
918 | def GetSashVisible(*args, **kwargs): | |
919 | """GetSashVisible(wxSashEdgePosition edge) -> bool""" | |
920 | return _windows.SashWindow_GetSashVisible(*args, **kwargs) | |
921 | ||
922 | def SetSashBorder(*args, **kwargs): | |
923 | """SetSashBorder(wxSashEdgePosition edge, bool border)""" | |
924 | return _windows.SashWindow_SetSashBorder(*args, **kwargs) | |
925 | ||
926 | def HasBorder(*args, **kwargs): | |
927 | """HasBorder(wxSashEdgePosition edge) -> bool""" | |
928 | return _windows.SashWindow_HasBorder(*args, **kwargs) | |
929 | ||
930 | def GetEdgeMargin(*args, **kwargs): | |
931 | """GetEdgeMargin(wxSashEdgePosition edge) -> int""" | |
932 | return _windows.SashWindow_GetEdgeMargin(*args, **kwargs) | |
933 | ||
934 | def SetDefaultBorderSize(*args, **kwargs): | |
935 | """SetDefaultBorderSize(int width)""" | |
936 | return _windows.SashWindow_SetDefaultBorderSize(*args, **kwargs) | |
937 | ||
938 | def GetDefaultBorderSize(*args, **kwargs): | |
939 | """GetDefaultBorderSize() -> int""" | |
940 | return _windows.SashWindow_GetDefaultBorderSize(*args, **kwargs) | |
941 | ||
942 | def SetExtraBorderSize(*args, **kwargs): | |
943 | """SetExtraBorderSize(int width)""" | |
944 | return _windows.SashWindow_SetExtraBorderSize(*args, **kwargs) | |
945 | ||
946 | def GetExtraBorderSize(*args, **kwargs): | |
947 | """GetExtraBorderSize() -> int""" | |
948 | return _windows.SashWindow_GetExtraBorderSize(*args, **kwargs) | |
949 | ||
950 | def SetMinimumSizeX(*args, **kwargs): | |
951 | """SetMinimumSizeX(int min)""" | |
952 | return _windows.SashWindow_SetMinimumSizeX(*args, **kwargs) | |
953 | ||
954 | def SetMinimumSizeY(*args, **kwargs): | |
955 | """SetMinimumSizeY(int min)""" | |
956 | return _windows.SashWindow_SetMinimumSizeY(*args, **kwargs) | |
957 | ||
958 | def GetMinimumSizeX(*args, **kwargs): | |
959 | """GetMinimumSizeX() -> int""" | |
960 | return _windows.SashWindow_GetMinimumSizeX(*args, **kwargs) | |
961 | ||
962 | def GetMinimumSizeY(*args, **kwargs): | |
963 | """GetMinimumSizeY() -> int""" | |
964 | return _windows.SashWindow_GetMinimumSizeY(*args, **kwargs) | |
965 | ||
966 | def SetMaximumSizeX(*args, **kwargs): | |
967 | """SetMaximumSizeX(int max)""" | |
968 | return _windows.SashWindow_SetMaximumSizeX(*args, **kwargs) | |
969 | ||
970 | def SetMaximumSizeY(*args, **kwargs): | |
971 | """SetMaximumSizeY(int max)""" | |
972 | return _windows.SashWindow_SetMaximumSizeY(*args, **kwargs) | |
973 | ||
974 | def GetMaximumSizeX(*args, **kwargs): | |
975 | """GetMaximumSizeX() -> int""" | |
976 | return _windows.SashWindow_GetMaximumSizeX(*args, **kwargs) | |
977 | ||
978 | def GetMaximumSizeY(*args, **kwargs): | |
979 | """GetMaximumSizeY() -> int""" | |
980 | return _windows.SashWindow_GetMaximumSizeY(*args, **kwargs) | |
981 | ||
982 | def SashHitTest(*args, **kwargs): | |
983 | """SashHitTest(int x, int y, int tolerance=2) -> wxSashEdgePosition""" | |
984 | return _windows.SashWindow_SashHitTest(*args, **kwargs) | |
985 | ||
986 | def SizeWindows(*args, **kwargs): | |
987 | """SizeWindows()""" | |
988 | return _windows.SashWindow_SizeWindows(*args, **kwargs) | |
989 | ||
990 | ||
991 | class SashWindowPtr(SashWindow): | |
992 | def __init__(self, this): | |
993 | self.this = this | |
994 | if not hasattr(self,"thisown"): self.thisown = 0 | |
995 | self.__class__ = SashWindow | |
996 | _windows.SashWindow_swigregister(SashWindowPtr) | |
997 | ||
998 | def PreSashWindow(*args, **kwargs): | |
999 | """PreSashWindow() -> SashWindow""" | |
1000 | val = _windows.new_PreSashWindow(*args, **kwargs) | |
1001 | val.thisown = 1 | |
1002 | return val | |
1003 | ||
1004 | SASH_STATUS_OK = _windows.SASH_STATUS_OK | |
1005 | SASH_STATUS_OUT_OF_RANGE = _windows.SASH_STATUS_OUT_OF_RANGE | |
1006 | class SashEvent(core.CommandEvent): | |
1007 | """""" | |
1008 | def __repr__(self): | |
1009 | return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1010 | def __init__(self, *args, **kwargs): | |
1011 | """__init__(int id=0, wxSashEdgePosition edge=SASH_NONE) -> SashEvent""" | |
1012 | newobj = _windows.new_SashEvent(*args, **kwargs) | |
1013 | self.this = newobj.this | |
1014 | self.thisown = 1 | |
1015 | del newobj.thisown | |
1016 | def SetEdge(*args, **kwargs): | |
1017 | """SetEdge(wxSashEdgePosition edge)""" | |
1018 | return _windows.SashEvent_SetEdge(*args, **kwargs) | |
1019 | ||
1020 | def GetEdge(*args, **kwargs): | |
1021 | """GetEdge() -> wxSashEdgePosition""" | |
1022 | return _windows.SashEvent_GetEdge(*args, **kwargs) | |
1023 | ||
1024 | def SetDragRect(*args, **kwargs): | |
1025 | """SetDragRect(Rect rect)""" | |
1026 | return _windows.SashEvent_SetDragRect(*args, **kwargs) | |
1027 | ||
1028 | def GetDragRect(*args, **kwargs): | |
1029 | """GetDragRect() -> Rect""" | |
1030 | return _windows.SashEvent_GetDragRect(*args, **kwargs) | |
1031 | ||
1032 | def SetDragStatus(*args, **kwargs): | |
1033 | """SetDragStatus(wxSashDragStatus status)""" | |
1034 | return _windows.SashEvent_SetDragStatus(*args, **kwargs) | |
1035 | ||
1036 | def GetDragStatus(*args, **kwargs): | |
1037 | """GetDragStatus() -> wxSashDragStatus""" | |
1038 | return _windows.SashEvent_GetDragStatus(*args, **kwargs) | |
1039 | ||
1040 | ||
1041 | class SashEventPtr(SashEvent): | |
1042 | def __init__(self, this): | |
1043 | self.this = this | |
1044 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1045 | self.__class__ = SashEvent | |
1046 | _windows.SashEvent_swigregister(SashEventPtr) | |
1047 | ||
1048 | wxEVT_SASH_DRAGGED = _windows.wxEVT_SASH_DRAGGED | |
1049 | EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 ) | |
1050 | EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 ) | |
1051 | ||
1052 | #--------------------------------------------------------------------------- | |
1053 | ||
1054 | LAYOUT_HORIZONTAL = _windows.LAYOUT_HORIZONTAL | |
1055 | LAYOUT_VERTICAL = _windows.LAYOUT_VERTICAL | |
1056 | LAYOUT_NONE = _windows.LAYOUT_NONE | |
1057 | LAYOUT_TOP = _windows.LAYOUT_TOP | |
1058 | LAYOUT_LEFT = _windows.LAYOUT_LEFT | |
1059 | LAYOUT_RIGHT = _windows.LAYOUT_RIGHT | |
1060 | LAYOUT_BOTTOM = _windows.LAYOUT_BOTTOM | |
1061 | LAYOUT_LENGTH_Y = _windows.LAYOUT_LENGTH_Y | |
1062 | LAYOUT_LENGTH_X = _windows.LAYOUT_LENGTH_X | |
1063 | LAYOUT_MRU_LENGTH = _windows.LAYOUT_MRU_LENGTH | |
1064 | LAYOUT_QUERY = _windows.LAYOUT_QUERY | |
1065 | wxEVT_QUERY_LAYOUT_INFO = _windows.wxEVT_QUERY_LAYOUT_INFO | |
1066 | wxEVT_CALCULATE_LAYOUT = _windows.wxEVT_CALCULATE_LAYOUT | |
1067 | class QueryLayoutInfoEvent(core.Event): | |
1068 | """""" | |
1069 | def __repr__(self): | |
1070 | return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1071 | def __init__(self, *args, **kwargs): | |
1072 | """__init__(int id=0) -> QueryLayoutInfoEvent""" | |
1073 | newobj = _windows.new_QueryLayoutInfoEvent(*args, **kwargs) | |
1074 | self.this = newobj.this | |
1075 | self.thisown = 1 | |
1076 | del newobj.thisown | |
1077 | def SetRequestedLength(*args, **kwargs): | |
1078 | """SetRequestedLength(int length)""" | |
1079 | return _windows.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs) | |
1080 | ||
1081 | def GetRequestedLength(*args, **kwargs): | |
1082 | """GetRequestedLength() -> int""" | |
1083 | return _windows.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs) | |
1084 | ||
1085 | def SetFlags(*args, **kwargs): | |
1086 | """SetFlags(int flags)""" | |
1087 | return _windows.QueryLayoutInfoEvent_SetFlags(*args, **kwargs) | |
1088 | ||
1089 | def GetFlags(*args, **kwargs): | |
1090 | """GetFlags() -> int""" | |
1091 | return _windows.QueryLayoutInfoEvent_GetFlags(*args, **kwargs) | |
1092 | ||
1093 | def SetSize(*args, **kwargs): | |
1094 | """SetSize(Size size)""" | |
1095 | return _windows.QueryLayoutInfoEvent_SetSize(*args, **kwargs) | |
1096 | ||
1097 | def GetSize(*args, **kwargs): | |
1098 | """GetSize() -> Size""" | |
1099 | return _windows.QueryLayoutInfoEvent_GetSize(*args, **kwargs) | |
1100 | ||
1101 | def SetOrientation(*args, **kwargs): | |
1102 | """SetOrientation(wxLayoutOrientation orient)""" | |
1103 | return _windows.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs) | |
1104 | ||
1105 | def GetOrientation(*args, **kwargs): | |
1106 | """GetOrientation() -> wxLayoutOrientation""" | |
1107 | return _windows.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs) | |
1108 | ||
1109 | def SetAlignment(*args, **kwargs): | |
1110 | """SetAlignment(wxLayoutAlignment align)""" | |
1111 | return _windows.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs) | |
1112 | ||
1113 | def GetAlignment(*args, **kwargs): | |
1114 | """GetAlignment() -> wxLayoutAlignment""" | |
1115 | return _windows.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs) | |
1116 | ||
1117 | ||
1118 | class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent): | |
1119 | def __init__(self, this): | |
1120 | self.this = this | |
1121 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1122 | self.__class__ = QueryLayoutInfoEvent | |
1123 | _windows.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr) | |
1124 | ||
1125 | class CalculateLayoutEvent(core.Event): | |
1126 | """""" | |
1127 | def __repr__(self): | |
1128 | return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1129 | def __init__(self, *args, **kwargs): | |
1130 | """__init__(int id=0) -> CalculateLayoutEvent""" | |
1131 | newobj = _windows.new_CalculateLayoutEvent(*args, **kwargs) | |
1132 | self.this = newobj.this | |
1133 | self.thisown = 1 | |
1134 | del newobj.thisown | |
1135 | def SetFlags(*args, **kwargs): | |
1136 | """SetFlags(int flags)""" | |
1137 | return _windows.CalculateLayoutEvent_SetFlags(*args, **kwargs) | |
1138 | ||
1139 | def GetFlags(*args, **kwargs): | |
1140 | """GetFlags() -> int""" | |
1141 | return _windows.CalculateLayoutEvent_GetFlags(*args, **kwargs) | |
1142 | ||
1143 | def SetRect(*args, **kwargs): | |
1144 | """SetRect(Rect rect)""" | |
1145 | return _windows.CalculateLayoutEvent_SetRect(*args, **kwargs) | |
1146 | ||
1147 | def GetRect(*args, **kwargs): | |
1148 | """GetRect() -> Rect""" | |
1149 | return _windows.CalculateLayoutEvent_GetRect(*args, **kwargs) | |
1150 | ||
1151 | ||
1152 | class CalculateLayoutEventPtr(CalculateLayoutEvent): | |
1153 | def __init__(self, this): | |
1154 | self.this = this | |
1155 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1156 | self.__class__ = CalculateLayoutEvent | |
1157 | _windows.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr) | |
1158 | ||
1159 | EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO ) | |
1160 | EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT ) | |
1161 | ||
1162 | class SashLayoutWindow(SashWindow): | |
1163 | """""" | |
1164 | def __repr__(self): | |
1165 | return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1166 | def __init__(self, *args, **kwargs): | |
1167 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
1168 | long style=wxCLIP_CHILDREN|wxSW_3D, | |
1169 | wxString name=wxPySashLayoutNameStr) -> SashLayoutWindow""" | |
1170 | newobj = _windows.new_SashLayoutWindow(*args, **kwargs) | |
1171 | self.this = newobj.this | |
1172 | self.thisown = 1 | |
1173 | del newobj.thisown | |
1174 | self._setOORInfo(self) | |
1175 | ||
1176 | def Create(*args, **kwargs): | |
1177 | """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
1178 | long style=wxCLIP_CHILDREN|wxSW_3D, | |
1179 | wxString name=wxPySashLayoutNameStr) -> bool""" | |
1180 | return _windows.SashLayoutWindow_Create(*args, **kwargs) | |
1181 | ||
1182 | def GetAlignment(*args, **kwargs): | |
1183 | """GetAlignment() -> wxLayoutAlignment""" | |
1184 | return _windows.SashLayoutWindow_GetAlignment(*args, **kwargs) | |
1185 | ||
1186 | def GetOrientation(*args, **kwargs): | |
1187 | """GetOrientation() -> wxLayoutOrientation""" | |
1188 | return _windows.SashLayoutWindow_GetOrientation(*args, **kwargs) | |
1189 | ||
1190 | def SetAlignment(*args, **kwargs): | |
1191 | """SetAlignment(wxLayoutAlignment alignment)""" | |
1192 | return _windows.SashLayoutWindow_SetAlignment(*args, **kwargs) | |
1193 | ||
1194 | def SetDefaultSize(*args, **kwargs): | |
1195 | """SetDefaultSize(Size size)""" | |
1196 | return _windows.SashLayoutWindow_SetDefaultSize(*args, **kwargs) | |
1197 | ||
1198 | def SetOrientation(*args, **kwargs): | |
1199 | """SetOrientation(wxLayoutOrientation orientation)""" | |
1200 | return _windows.SashLayoutWindow_SetOrientation(*args, **kwargs) | |
1201 | ||
1202 | ||
1203 | class SashLayoutWindowPtr(SashLayoutWindow): | |
1204 | def __init__(self, this): | |
1205 | self.this = this | |
1206 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1207 | self.__class__ = SashLayoutWindow | |
1208 | _windows.SashLayoutWindow_swigregister(SashLayoutWindowPtr) | |
1209 | ||
1210 | def PreSashLayoutWindow(*args, **kwargs): | |
1211 | """PreSashLayoutWindow() -> SashLayoutWindow""" | |
1212 | val = _windows.new_PreSashLayoutWindow(*args, **kwargs) | |
1213 | val.thisown = 1 | |
1214 | return val | |
1215 | ||
1216 | class LayoutAlgorithm(core.Object): | |
1217 | """""" | |
1218 | def __repr__(self): | |
1219 | return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1220 | def __init__(self, *args, **kwargs): | |
1221 | """__init__() -> LayoutAlgorithm""" | |
1222 | newobj = _windows.new_LayoutAlgorithm(*args, **kwargs) | |
1223 | self.this = newobj.this | |
1224 | self.thisown = 1 | |
1225 | del newobj.thisown | |
1226 | def __del__(self, destroy=_windows.delete_LayoutAlgorithm): | |
1227 | """__del__()""" | |
1228 | try: | |
1229 | if self.thisown: destroy(self) | |
1230 | except: pass | |
1231 | ||
1232 | def LayoutMDIFrame(*args, **kwargs): | |
1233 | """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool""" | |
1234 | return _windows.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs) | |
1235 | ||
1236 | def LayoutFrame(*args, **kwargs): | |
1237 | """LayoutFrame(Frame frame, Window mainWindow=None) -> bool""" | |
1238 | return _windows.LayoutAlgorithm_LayoutFrame(*args, **kwargs) | |
1239 | ||
1240 | def LayoutWindow(*args, **kwargs): | |
1241 | """LayoutWindow(Window parent, Window mainWindow=None) -> bool""" | |
1242 | return _windows.LayoutAlgorithm_LayoutWindow(*args, **kwargs) | |
1243 | ||
1244 | ||
1245 | class LayoutAlgorithmPtr(LayoutAlgorithm): | |
1246 | def __init__(self, this): | |
1247 | self.this = this | |
1248 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1249 | self.__class__ = LayoutAlgorithm | |
1250 | _windows.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr) | |
1251 | ||
1252 | #--------------------------------------------------------------------------- | |
1253 | ||
1254 | class PopupWindow(core.Window): | |
1255 | """""" | |
1256 | def __repr__(self): | |
1257 | return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1258 | def __init__(self, *args, **kwargs): | |
1259 | """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow""" | |
1260 | newobj = _windows.new_PopupWindow(*args, **kwargs) | |
1261 | self.this = newobj.this | |
1262 | self.thisown = 1 | |
1263 | del newobj.thisown | |
1264 | self._setOORInfo(self) | |
1265 | ||
1266 | def Create(*args, **kwargs): | |
1267 | """Create(Window parent, int flags=BORDER_NONE) -> bool""" | |
1268 | return _windows.PopupWindow_Create(*args, **kwargs) | |
1269 | ||
1270 | def Position(*args, **kwargs): | |
1271 | """Position(Point ptOrigin, Size size)""" | |
1272 | return _windows.PopupWindow_Position(*args, **kwargs) | |
1273 | ||
1274 | ||
1275 | class PopupWindowPtr(PopupWindow): | |
1276 | def __init__(self, this): | |
1277 | self.this = this | |
1278 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1279 | self.__class__ = PopupWindow | |
1280 | _windows.PopupWindow_swigregister(PopupWindowPtr) | |
1281 | ||
1282 | def PrePopupWindow(*args, **kwargs): | |
1283 | """PrePopupWindow() -> PopupWindow""" | |
1284 | val = _windows.new_PrePopupWindow(*args, **kwargs) | |
1285 | val.thisown = 1 | |
1286 | return val | |
1287 | ||
1288 | #--------------------------------------------------------------------------- | |
1289 | ||
1290 | class PopupTransientWindow(PopupWindow): | |
1291 | """""" | |
1292 | def __repr__(self): | |
1293 | return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1294 | def __init__(self, *args, **kwargs): | |
1295 | """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow""" | |
1296 | newobj = _windows.new_PopupTransientWindow(*args, **kwargs) | |
1297 | self.this = newobj.this | |
1298 | self.thisown = 1 | |
1299 | del newobj.thisown | |
1300 | self._setOORInfo(self);self._setCallbackInfo(self, PopupTransientWindow) | |
1301 | ||
1302 | def _setCallbackInfo(*args, **kwargs): | |
1303 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
1304 | return _windows.PopupTransientWindow__setCallbackInfo(*args, **kwargs) | |
1305 | ||
1306 | def Popup(*args, **kwargs): | |
1307 | """Popup(Window focus=None)""" | |
1308 | return _windows.PopupTransientWindow_Popup(*args, **kwargs) | |
1309 | ||
1310 | def Dismiss(*args, **kwargs): | |
1311 | """Dismiss()""" | |
1312 | return _windows.PopupTransientWindow_Dismiss(*args, **kwargs) | |
1313 | ||
1314 | ||
1315 | class PopupTransientWindowPtr(PopupTransientWindow): | |
1316 | def __init__(self, this): | |
1317 | self.this = this | |
1318 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1319 | self.__class__ = PopupTransientWindow | |
1320 | _windows.PopupTransientWindow_swigregister(PopupTransientWindowPtr) | |
1321 | ||
1322 | def PrePopupTransientWindow(*args, **kwargs): | |
1323 | """PrePopupTransientWindow() -> PopupTransientWindow""" | |
1324 | val = _windows.new_PrePopupTransientWindow(*args, **kwargs) | |
1325 | val.thisown = 1 | |
1326 | return val | |
1327 | ||
1328 | #--------------------------------------------------------------------------- | |
1329 | ||
1330 | class TipWindow(PopupTransientWindow): | |
1331 | """""" | |
1332 | def __repr__(self): | |
1333 | return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1334 | def __init__(self, *args, **kwargs): | |
1335 | """__init__(Window parent, wxString text, int maxLength=100, Rect rectBound=None) -> TipWindow""" | |
1336 | newobj = _windows.new_TipWindow(*args, **kwargs) | |
1337 | self.this = newobj.this | |
1338 | self.thisown = 1 | |
1339 | del newobj.thisown | |
1340 | self._setOORInfo(self) | |
1341 | ||
1342 | def SetBoundingRect(*args, **kwargs): | |
1343 | """SetBoundingRect(Rect rectBound)""" | |
1344 | return _windows.TipWindow_SetBoundingRect(*args, **kwargs) | |
1345 | ||
1346 | def Close(*args, **kwargs): | |
1347 | """Close()""" | |
1348 | return _windows.TipWindow_Close(*args, **kwargs) | |
1349 | ||
1350 | ||
1351 | class TipWindowPtr(TipWindow): | |
1352 | def __init__(self, this): | |
1353 | self.this = this | |
1354 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1355 | self.__class__ = TipWindow | |
1356 | _windows.TipWindow_swigregister(TipWindowPtr) | |
1357 | ||
1358 | #--------------------------------------------------------------------------- | |
1359 | ||
1360 | class VScrolledWindow(Panel): | |
1361 | """""" | |
1362 | def __repr__(self): | |
1363 | return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1364 | def __init__(self, *args, **kwargs): | |
1365 | """__init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1366 | Size size=DefaultSize, long style=0, wxString name=PanelNameStr) -> VScrolledWindow""" | |
1367 | newobj = _windows.new_VScrolledWindow(*args, **kwargs) | |
1368 | self.this = newobj.this | |
1369 | self.thisown = 1 | |
1370 | del newobj.thisown | |
1371 | self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow) | |
1372 | ||
1373 | def _setCallbackInfo(*args, **kwargs): | |
1374 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
1375 | return _windows.VScrolledWindow__setCallbackInfo(*args, **kwargs) | |
1376 | ||
1377 | def Create(*args, **kwargs): | |
1378 | """Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1379 | Size size=DefaultSize, long style=0, wxString name=PanelNameStr) -> bool""" | |
1380 | return _windows.VScrolledWindow_Create(*args, **kwargs) | |
1381 | ||
1382 | def SetLineCount(*args, **kwargs): | |
1383 | """SetLineCount(size_t count)""" | |
1384 | return _windows.VScrolledWindow_SetLineCount(*args, **kwargs) | |
1385 | ||
1386 | def ScrollToLine(*args, **kwargs): | |
1387 | """ScrollToLine(size_t line) -> bool""" | |
1388 | return _windows.VScrolledWindow_ScrollToLine(*args, **kwargs) | |
1389 | ||
1390 | def ScrollLines(*args, **kwargs): | |
1391 | """ScrollLines(int lines) -> bool""" | |
1392 | return _windows.VScrolledWindow_ScrollLines(*args, **kwargs) | |
1393 | ||
1394 | def ScrollPages(*args, **kwargs): | |
1395 | """ScrollPages(int pages) -> bool""" | |
1396 | return _windows.VScrolledWindow_ScrollPages(*args, **kwargs) | |
1397 | ||
1398 | def RefreshLine(*args, **kwargs): | |
1399 | """RefreshLine(size_t line)""" | |
1400 | return _windows.VScrolledWindow_RefreshLine(*args, **kwargs) | |
1401 | ||
1402 | def RefreshLines(*args, **kwargs): | |
1403 | """RefreshLines(size_t from, size_t to)""" | |
1404 | return _windows.VScrolledWindow_RefreshLines(*args, **kwargs) | |
1405 | ||
1406 | def HitTestXT(*args, **kwargs): | |
1407 | """HitTestXT(int x, int y) -> int""" | |
1408 | return _windows.VScrolledWindow_HitTestXT(*args, **kwargs) | |
1409 | ||
1410 | def HitTest(*args, **kwargs): | |
1411 | """HitTest(Point pt) -> int""" | |
1412 | return _windows.VScrolledWindow_HitTest(*args, **kwargs) | |
1413 | ||
1414 | def RefreshAll(*args, **kwargs): | |
1415 | """RefreshAll()""" | |
1416 | return _windows.VScrolledWindow_RefreshAll(*args, **kwargs) | |
1417 | ||
1418 | def GetLineCount(*args, **kwargs): | |
1419 | """GetLineCount() -> size_t""" | |
1420 | return _windows.VScrolledWindow_GetLineCount(*args, **kwargs) | |
1421 | ||
1422 | def GetFirstVisibleLine(*args, **kwargs): | |
1423 | """GetFirstVisibleLine() -> size_t""" | |
1424 | return _windows.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs) | |
1425 | ||
1426 | def GetLastVisibleLine(*args, **kwargs): | |
1427 | """GetLastVisibleLine() -> size_t""" | |
1428 | return _windows.VScrolledWindow_GetLastVisibleLine(*args, **kwargs) | |
1429 | ||
1430 | def IsVisible(*args, **kwargs): | |
1431 | """IsVisible(size_t line) -> bool""" | |
1432 | return _windows.VScrolledWindow_IsVisible(*args, **kwargs) | |
1433 | ||
1434 | ||
1435 | class VScrolledWindowPtr(VScrolledWindow): | |
1436 | def __init__(self, this): | |
1437 | self.this = this | |
1438 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1439 | self.__class__ = VScrolledWindow | |
1440 | _windows.VScrolledWindow_swigregister(VScrolledWindowPtr) | |
1441 | ||
1442 | def PreVScrolledWindow(*args, **kwargs): | |
1443 | """PreVScrolledWindow() -> VScrolledWindow""" | |
1444 | val = _windows.new_PreVScrolledWindow(*args, **kwargs) | |
1445 | val.thisown = 1 | |
1446 | return val | |
1447 | ||
1448 | class VListBox(VScrolledWindow): | |
1449 | """""" | |
1450 | def __repr__(self): | |
1451 | return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1452 | def __init__(self, *args, **kwargs): | |
1453 | """__init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1454 | Size size=DefaultSize, long style=0, wxString name=wxPyVListBoxNameStr) -> VListBox""" | |
1455 | newobj = _windows.new_VListBox(*args, **kwargs) | |
1456 | self.this = newobj.this | |
1457 | self.thisown = 1 | |
1458 | del newobj.thisown | |
1459 | self._setOORInfo(self);self._setCallbackInfo(self, VListBox) | |
1460 | ||
1461 | def _setCallbackInfo(*args, **kwargs): | |
1462 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
1463 | return _windows.VListBox__setCallbackInfo(*args, **kwargs) | |
1464 | ||
1465 | def Create(*args, **kwargs): | |
1466 | """Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1467 | Size size=DefaultSize, long style=0, wxString name=wxPyVListBoxNameStr) -> bool""" | |
1468 | return _windows.VListBox_Create(*args, **kwargs) | |
1469 | ||
1470 | def GetItemCount(*args, **kwargs): | |
1471 | """GetItemCount() -> size_t""" | |
1472 | return _windows.VListBox_GetItemCount(*args, **kwargs) | |
1473 | ||
1474 | def HasMultipleSelection(*args, **kwargs): | |
1475 | """HasMultipleSelection() -> bool""" | |
1476 | return _windows.VListBox_HasMultipleSelection(*args, **kwargs) | |
1477 | ||
1478 | def GetSelection(*args, **kwargs): | |
1479 | """GetSelection() -> int""" | |
1480 | return _windows.VListBox_GetSelection(*args, **kwargs) | |
1481 | ||
1482 | def IsCurrent(*args, **kwargs): | |
1483 | """IsCurrent(size_t item) -> bool""" | |
1484 | return _windows.VListBox_IsCurrent(*args, **kwargs) | |
1485 | ||
1486 | def IsSelected(*args, **kwargs): | |
1487 | """IsSelected(size_t item) -> bool""" | |
1488 | return _windows.VListBox_IsSelected(*args, **kwargs) | |
1489 | ||
1490 | def GetSelectedCount(*args, **kwargs): | |
1491 | """GetSelectedCount() -> size_t""" | |
1492 | return _windows.VListBox_GetSelectedCount(*args, **kwargs) | |
1493 | ||
1494 | def GetFirstSelected(*args, **kwargs): | |
1495 | """GetFirstSelected(unsigned long cookie) -> int""" | |
1496 | return _windows.VListBox_GetFirstSelected(*args, **kwargs) | |
1497 | ||
1498 | def GetNextSelected(*args, **kwargs): | |
1499 | """GetNextSelected(unsigned long cookie) -> int""" | |
1500 | return _windows.VListBox_GetNextSelected(*args, **kwargs) | |
1501 | ||
1502 | def GetMargins(*args, **kwargs): | |
1503 | """GetMargins() -> Point""" | |
1504 | return _windows.VListBox_GetMargins(*args, **kwargs) | |
1505 | ||
1506 | def GetSelectionBackground(*args, **kwargs): | |
1507 | """GetSelectionBackground() -> wxColour""" | |
1508 | return _windows.VListBox_GetSelectionBackground(*args, **kwargs) | |
1509 | ||
1510 | def SetItemCount(*args, **kwargs): | |
1511 | """SetItemCount(size_t count)""" | |
1512 | return _windows.VListBox_SetItemCount(*args, **kwargs) | |
1513 | ||
1514 | def Clear(*args, **kwargs): | |
1515 | """Clear()""" | |
1516 | return _windows.VListBox_Clear(*args, **kwargs) | |
1517 | ||
1518 | def SetSelection(*args, **kwargs): | |
1519 | """SetSelection(int selection)""" | |
1520 | return _windows.VListBox_SetSelection(*args, **kwargs) | |
1521 | ||
1522 | def Select(*args, **kwargs): | |
1523 | """Select(size_t item, bool select=True) -> bool""" | |
1524 | return _windows.VListBox_Select(*args, **kwargs) | |
1525 | ||
1526 | def SelectRange(*args, **kwargs): | |
1527 | """SelectRange(size_t from, size_t to) -> bool""" | |
1528 | return _windows.VListBox_SelectRange(*args, **kwargs) | |
1529 | ||
1530 | def Toggle(*args, **kwargs): | |
1531 | """Toggle(size_t item)""" | |
1532 | return _windows.VListBox_Toggle(*args, **kwargs) | |
1533 | ||
1534 | def SelectAll(*args, **kwargs): | |
1535 | """SelectAll() -> bool""" | |
1536 | return _windows.VListBox_SelectAll(*args, **kwargs) | |
1537 | ||
1538 | def DeselectAll(*args, **kwargs): | |
1539 | """DeselectAll() -> bool""" | |
1540 | return _windows.VListBox_DeselectAll(*args, **kwargs) | |
1541 | ||
1542 | def SetMargins(*args, **kwargs): | |
1543 | """SetMargins(Point pt)""" | |
1544 | return _windows.VListBox_SetMargins(*args, **kwargs) | |
1545 | ||
1546 | def SetMarginsXY(*args, **kwargs): | |
1547 | """SetMarginsXY(int x, int y)""" | |
1548 | return _windows.VListBox_SetMarginsXY(*args, **kwargs) | |
1549 | ||
1550 | def SetSelectionBackground(*args, **kwargs): | |
1551 | """SetSelectionBackground(wxColour col)""" | |
1552 | return _windows.VListBox_SetSelectionBackground(*args, **kwargs) | |
1553 | ||
1554 | ||
1555 | class VListBoxPtr(VListBox): | |
1556 | def __init__(self, this): | |
1557 | self.this = this | |
1558 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1559 | self.__class__ = VListBox | |
1560 | _windows.VListBox_swigregister(VListBoxPtr) | |
1561 | ||
1562 | def PreVListBox(*args, **kwargs): | |
1563 | """PreVListBox() -> VListBox""" | |
1564 | val = _windows.new_PreVListBox(*args, **kwargs) | |
1565 | val.thisown = 1 | |
1566 | return val | |
1567 | ||
1568 | class HtmlListBox(VListBox): | |
1569 | """""" | |
1570 | def __repr__(self): | |
1571 | return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1572 | def __init__(self, *args, **kwargs): | |
1573 | """__init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1574 | Size size=DefaultSize, long style=0, wxString name=wxPyVListBoxNameStr) -> HtmlListBox""" | |
1575 | newobj = _windows.new_HtmlListBox(*args, **kwargs) | |
1576 | self.this = newobj.this | |
1577 | self.thisown = 1 | |
1578 | del newobj.thisown | |
1579 | self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox) | |
1580 | ||
1581 | def _setCallbackInfo(*args, **kwargs): | |
1582 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
1583 | return _windows.HtmlListBox__setCallbackInfo(*args, **kwargs) | |
1584 | ||
1585 | def Create(*args, **kwargs): | |
1586 | """Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1587 | Size size=DefaultSize, long style=0, wxString name=wxPyVListBoxNameStr) -> bool""" | |
1588 | return _windows.HtmlListBox_Create(*args, **kwargs) | |
1589 | ||
1590 | def RefreshAll(*args, **kwargs): | |
1591 | """RefreshAll()""" | |
1592 | return _windows.HtmlListBox_RefreshAll(*args, **kwargs) | |
1593 | ||
1594 | def SetItemCount(*args, **kwargs): | |
1595 | """SetItemCount(size_t count)""" | |
1596 | return _windows.HtmlListBox_SetItemCount(*args, **kwargs) | |
1597 | ||
1598 | ||
1599 | class HtmlListBoxPtr(HtmlListBox): | |
1600 | def __init__(self, this): | |
1601 | self.this = this | |
1602 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1603 | self.__class__ = HtmlListBox | |
1604 | _windows.HtmlListBox_swigregister(HtmlListBoxPtr) | |
1605 | ||
1606 | def PreHtmlListBox(*args, **kwargs): | |
1607 | """PreHtmlListBox() -> HtmlListBox""" | |
1608 | val = _windows.new_PreHtmlListBox(*args, **kwargs) | |
1609 | val.thisown = 1 | |
1610 | return val | |
1611 | ||
1612 | #--------------------------------------------------------------------------- | |
1613 | ||
1614 | class TaskBarIcon(core.EvtHandler): | |
1615 | """""" | |
1616 | def __repr__(self): | |
1617 | return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1618 | def __init__(self, *args, **kwargs): | |
1619 | """__init__() -> TaskBarIcon""" | |
1620 | newobj = _windows.new_TaskBarIcon(*args, **kwargs) | |
1621 | self.this = newobj.this | |
1622 | self.thisown = 1 | |
1623 | del newobj.thisown | |
1624 | def __del__(self, destroy=_windows.delete_TaskBarIcon): | |
1625 | """__del__()""" | |
1626 | try: | |
1627 | if self.thisown: destroy(self) | |
1628 | except: pass | |
1629 | ||
1630 | def IsOk(*args, **kwargs): | |
1631 | """IsOk() -> bool""" | |
1632 | return _windows.TaskBarIcon_IsOk(*args, **kwargs) | |
1633 | ||
1634 | def IsIconInstalled(*args, **kwargs): | |
1635 | """IsIconInstalled() -> bool""" | |
1636 | return _windows.TaskBarIcon_IsIconInstalled(*args, **kwargs) | |
1637 | ||
1638 | def SetIcon(*args, **kwargs): | |
1639 | """SetIcon(wxIcon icon, wxString tooltip=wxPyEmptyString) -> bool""" | |
1640 | return _windows.TaskBarIcon_SetIcon(*args, **kwargs) | |
1641 | ||
1642 | def RemoveIcon(*args, **kwargs): | |
1643 | """RemoveIcon(void ??) -> bool""" | |
1644 | return _windows.TaskBarIcon_RemoveIcon(*args, **kwargs) | |
1645 | ||
1646 | def PopupMenu(*args, **kwargs): | |
1647 | """PopupMenu(Menu menu) -> bool""" | |
1648 | return _windows.TaskBarIcon_PopupMenu(*args, **kwargs) | |
1649 | ||
1650 | ||
1651 | class TaskBarIconPtr(TaskBarIcon): | |
1652 | def __init__(self, this): | |
1653 | self.this = this | |
1654 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1655 | self.__class__ = TaskBarIcon | |
1656 | _windows.TaskBarIcon_swigregister(TaskBarIconPtr) | |
1657 | ||
1658 | class TaskBarIconEvent(core.Event): | |
1659 | """""" | |
1660 | def __repr__(self): | |
1661 | return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1662 | def __init__(self, *args, **kwargs): | |
1663 | """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent""" | |
1664 | newobj = _windows.new_TaskBarIconEvent(*args, **kwargs) | |
1665 | self.this = newobj.this | |
1666 | self.thisown = 1 | |
1667 | del newobj.thisown | |
1668 | ||
1669 | class TaskBarIconEventPtr(TaskBarIconEvent): | |
1670 | def __init__(self, this): | |
1671 | self.this = this | |
1672 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1673 | self.__class__ = TaskBarIconEvent | |
1674 | _windows.TaskBarIconEvent_swigregister(TaskBarIconEventPtr) | |
1675 | ||
1676 | wxEVT_TASKBAR_MOVE = _windows.wxEVT_TASKBAR_MOVE | |
1677 | wxEVT_TASKBAR_LEFT_DOWN = _windows.wxEVT_TASKBAR_LEFT_DOWN | |
1678 | wxEVT_TASKBAR_LEFT_UP = _windows.wxEVT_TASKBAR_LEFT_UP | |
1679 | wxEVT_TASKBAR_RIGHT_DOWN = _windows.wxEVT_TASKBAR_RIGHT_DOWN | |
1680 | wxEVT_TASKBAR_RIGHT_UP = _windows.wxEVT_TASKBAR_RIGHT_UP | |
1681 | wxEVT_TASKBAR_LEFT_DCLICK = _windows.wxEVT_TASKBAR_LEFT_DCLICK | |
1682 | wxEVT_TASKBAR_RIGHT_DCLICK = _windows.wxEVT_TASKBAR_RIGHT_DCLICK | |
1683 | EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE ) | |
1684 | EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN ) | |
1685 | EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP ) | |
1686 | EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN ) | |
1687 | EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP ) | |
1688 | EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK ) | |
1689 | EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK ) | |
1690 | ||
1691 | #--------------------------------------------------------------------------- | |
1692 | ||
1693 | class ColourData(core.Object): | |
1694 | """""" | |
1695 | def __repr__(self): | |
1696 | return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1697 | def __init__(self, *args, **kwargs): | |
1698 | """__init__() -> ColourData""" | |
1699 | newobj = _windows.new_ColourData(*args, **kwargs) | |
1700 | self.this = newobj.this | |
1701 | self.thisown = 1 | |
1702 | del newobj.thisown | |
1703 | def __del__(self, destroy=_windows.delete_ColourData): | |
1704 | """__del__()""" | |
1705 | try: | |
1706 | if self.thisown: destroy(self) | |
1707 | except: pass | |
1708 | ||
1709 | def GetChooseFull(*args, **kwargs): | |
1710 | """GetChooseFull() -> bool""" | |
1711 | return _windows.ColourData_GetChooseFull(*args, **kwargs) | |
1712 | ||
1713 | def GetColour(*args, **kwargs): | |
1714 | """GetColour() -> wxColour""" | |
1715 | return _windows.ColourData_GetColour(*args, **kwargs) | |
1716 | ||
1717 | def GetCustomColour(*args, **kwargs): | |
1718 | """GetCustomColour(int i) -> wxColour""" | |
1719 | return _windows.ColourData_GetCustomColour(*args, **kwargs) | |
1720 | ||
1721 | def SetChooseFull(*args, **kwargs): | |
1722 | """SetChooseFull(int flag)""" | |
1723 | return _windows.ColourData_SetChooseFull(*args, **kwargs) | |
1724 | ||
1725 | def SetColour(*args, **kwargs): | |
1726 | """SetColour(wxColour colour)""" | |
1727 | return _windows.ColourData_SetColour(*args, **kwargs) | |
1728 | ||
1729 | def SetCustomColour(*args, **kwargs): | |
1730 | """SetCustomColour(int i, wxColour colour)""" | |
1731 | return _windows.ColourData_SetCustomColour(*args, **kwargs) | |
1732 | ||
1733 | ||
1734 | class ColourDataPtr(ColourData): | |
1735 | def __init__(self, this): | |
1736 | self.this = this | |
1737 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1738 | self.__class__ = ColourData | |
1739 | _windows.ColourData_swigregister(ColourDataPtr) | |
1740 | ||
1741 | class ColourDialog(Dialog): | |
1742 | """""" | |
1743 | def __repr__(self): | |
1744 | return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1745 | def __init__(self, *args, **kwargs): | |
1746 | """__init__(Window parent, ColourData data=None) -> ColourDialog""" | |
1747 | newobj = _windows.new_ColourDialog(*args, **kwargs) | |
1748 | self.this = newobj.this | |
1749 | self.thisown = 1 | |
1750 | del newobj.thisown | |
1751 | self._setOORInfo(self) | |
1752 | ||
1753 | def GetColourData(*args, **kwargs): | |
1754 | """GetColourData() -> ColourData""" | |
1755 | return _windows.ColourDialog_GetColourData(*args, **kwargs) | |
1756 | ||
1757 | def ShowModal(*args, **kwargs): | |
1758 | """ShowModal() -> int""" | |
1759 | return _windows.ColourDialog_ShowModal(*args, **kwargs) | |
1760 | ||
1761 | ||
1762 | class ColourDialogPtr(ColourDialog): | |
1763 | def __init__(self, this): | |
1764 | self.this = this | |
1765 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1766 | self.__class__ = ColourDialog | |
1767 | _windows.ColourDialog_swigregister(ColourDialogPtr) | |
1768 | ||
1769 | class DirDialog(Dialog): | |
1770 | """""" | |
1771 | def __repr__(self): | |
1772 | return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1773 | def __init__(self, *args, **kwargs): | |
1774 | """__init__(Window parent, wxString message=wxPyDirSelectorPromptStr, | |
1775 | wxString defaultPath=wxPyEmptyString, | |
1776 | long style=0, Point pos=DefaultPosition, Size size=DefaultSize, | |
1777 | wxString name=wxPyDirDialogNameStr) -> DirDialog""" | |
1778 | newobj = _windows.new_DirDialog(*args, **kwargs) | |
1779 | self.this = newobj.this | |
1780 | self.thisown = 1 | |
1781 | del newobj.thisown | |
1782 | self._setOORInfo(self) | |
1783 | ||
1784 | def GetPath(*args, **kwargs): | |
1785 | """GetPath() -> wxString""" | |
1786 | return _windows.DirDialog_GetPath(*args, **kwargs) | |
1787 | ||
1788 | def GetMessage(*args, **kwargs): | |
1789 | """GetMessage() -> wxString""" | |
1790 | return _windows.DirDialog_GetMessage(*args, **kwargs) | |
1791 | ||
1792 | def GetStyle(*args, **kwargs): | |
1793 | """GetStyle() -> long""" | |
1794 | return _windows.DirDialog_GetStyle(*args, **kwargs) | |
1795 | ||
1796 | def SetMessage(*args, **kwargs): | |
1797 | """SetMessage(wxString message)""" | |
1798 | return _windows.DirDialog_SetMessage(*args, **kwargs) | |
1799 | ||
1800 | def SetPath(*args, **kwargs): | |
1801 | """SetPath(wxString path)""" | |
1802 | return _windows.DirDialog_SetPath(*args, **kwargs) | |
1803 | ||
1804 | def ShowModal(*args, **kwargs): | |
1805 | """ShowModal() -> int""" | |
1806 | return _windows.DirDialog_ShowModal(*args, **kwargs) | |
1807 | ||
1808 | ||
1809 | class DirDialogPtr(DirDialog): | |
1810 | def __init__(self, this): | |
1811 | self.this = this | |
1812 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1813 | self.__class__ = DirDialog | |
1814 | _windows.DirDialog_swigregister(DirDialogPtr) | |
1815 | ||
1816 | class FileDialog(Dialog): | |
1817 | """""" | |
1818 | def __repr__(self): | |
1819 | return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1820 | def __init__(self, *args, **kwargs): | |
1821 | """__init__(Window parent, wxString message=wxPyFileSelectorPromptStr, | |
1822 | wxString defaultDir=wxPyEmptyString, | |
1823 | wxString defaultFile=wxPyEmptyString, wxString wildcard=wxPyFileSelectorDefaultWildcardStr, | |
1824 | long style=0, | |
1825 | Point pos=DefaultPosition) -> FileDialog""" | |
1826 | newobj = _windows.new_FileDialog(*args, **kwargs) | |
1827 | self.this = newobj.this | |
1828 | self.thisown = 1 | |
1829 | del newobj.thisown | |
1830 | self._setOORInfo(self) | |
1831 | ||
1832 | def SetMessage(*args, **kwargs): | |
1833 | """SetMessage(wxString message)""" | |
1834 | return _windows.FileDialog_SetMessage(*args, **kwargs) | |
1835 | ||
1836 | def SetPath(*args, **kwargs): | |
1837 | """SetPath(wxString path)""" | |
1838 | return _windows.FileDialog_SetPath(*args, **kwargs) | |
1839 | ||
1840 | def SetDirectory(*args, **kwargs): | |
1841 | """SetDirectory(wxString dir)""" | |
1842 | return _windows.FileDialog_SetDirectory(*args, **kwargs) | |
1843 | ||
1844 | def SetFilename(*args, **kwargs): | |
1845 | """SetFilename(wxString name)""" | |
1846 | return _windows.FileDialog_SetFilename(*args, **kwargs) | |
1847 | ||
1848 | def SetWildcard(*args, **kwargs): | |
1849 | """SetWildcard(wxString wildCard)""" | |
1850 | return _windows.FileDialog_SetWildcard(*args, **kwargs) | |
1851 | ||
1852 | def SetStyle(*args, **kwargs): | |
1853 | """SetStyle(long style)""" | |
1854 | return _windows.FileDialog_SetStyle(*args, **kwargs) | |
1855 | ||
1856 | def SetFilterIndex(*args, **kwargs): | |
1857 | """SetFilterIndex(int filterIndex)""" | |
1858 | return _windows.FileDialog_SetFilterIndex(*args, **kwargs) | |
1859 | ||
1860 | def GetMessage(*args, **kwargs): | |
1861 | """GetMessage() -> wxString""" | |
1862 | return _windows.FileDialog_GetMessage(*args, **kwargs) | |
1863 | ||
1864 | def GetPath(*args, **kwargs): | |
1865 | """GetPath() -> wxString""" | |
1866 | return _windows.FileDialog_GetPath(*args, **kwargs) | |
1867 | ||
1868 | def GetDirectory(*args, **kwargs): | |
1869 | """GetDirectory() -> wxString""" | |
1870 | return _windows.FileDialog_GetDirectory(*args, **kwargs) | |
1871 | ||
1872 | def GetFilename(*args, **kwargs): | |
1873 | """GetFilename() -> wxString""" | |
1874 | return _windows.FileDialog_GetFilename(*args, **kwargs) | |
1875 | ||
1876 | def GetWildcard(*args, **kwargs): | |
1877 | """GetWildcard() -> wxString""" | |
1878 | return _windows.FileDialog_GetWildcard(*args, **kwargs) | |
1879 | ||
1880 | def GetStyle(*args, **kwargs): | |
1881 | """GetStyle() -> long""" | |
1882 | return _windows.FileDialog_GetStyle(*args, **kwargs) | |
1883 | ||
1884 | def GetFilterIndex(*args, **kwargs): | |
1885 | """GetFilterIndex() -> int""" | |
1886 | return _windows.FileDialog_GetFilterIndex(*args, **kwargs) | |
1887 | ||
1888 | def GetFilenames(*args, **kwargs): | |
1889 | """GetFilenames() -> PyObject""" | |
1890 | return _windows.FileDialog_GetFilenames(*args, **kwargs) | |
1891 | ||
1892 | def GetPaths(*args, **kwargs): | |
1893 | """GetPaths() -> PyObject""" | |
1894 | return _windows.FileDialog_GetPaths(*args, **kwargs) | |
1895 | ||
1896 | ||
1897 | class FileDialogPtr(FileDialog): | |
1898 | def __init__(self, this): | |
1899 | self.this = this | |
1900 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1901 | self.__class__ = FileDialog | |
1902 | _windows.FileDialog_swigregister(FileDialogPtr) | |
1903 | ||
1904 | CHOICEDLG_STYLE = _windows.CHOICEDLG_STYLE | |
1905 | class MultiChoiceDialog(Dialog): | |
1906 | """""" | |
1907 | def __repr__(self): | |
1908 | return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1909 | def __init__(self, *args, **kwargs): | |
1910 | """__init__(Window parent, wxString message, wxString caption, | |
1911 | int LCOUNT, wxString choices, long style=CHOICEDLG_STYLE, | |
1912 | Point pos=DefaultPosition) -> MultiChoiceDialog""" | |
1913 | newobj = _windows.new_MultiChoiceDialog(*args, **kwargs) | |
1914 | self.this = newobj.this | |
1915 | self.thisown = 1 | |
1916 | del newobj.thisown | |
1917 | self._setOORInfo(self) | |
1918 | ||
1919 | def SetSelections(*args, **kwargs): | |
1920 | """SetSelections(wxArrayInt selections)""" | |
1921 | return _windows.MultiChoiceDialog_SetSelections(*args, **kwargs) | |
1922 | ||
1923 | def GetSelections(*args, **kwargs): | |
1924 | """GetSelections() -> PyObject""" | |
1925 | return _windows.MultiChoiceDialog_GetSelections(*args, **kwargs) | |
1926 | ||
1927 | ||
1928 | class MultiChoiceDialogPtr(MultiChoiceDialog): | |
1929 | def __init__(self, this): | |
1930 | self.this = this | |
1931 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1932 | self.__class__ = MultiChoiceDialog | |
1933 | _windows.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr) | |
1934 | ||
1935 | class SingleChoiceDialog(Dialog): | |
1936 | """""" | |
1937 | def __repr__(self): | |
1938 | return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1939 | def __init__(self, *args, **kwargs): | |
1940 | """__init__(Window parent, wxString message, wxString caption, | |
1941 | int choices, wxString choices_array, long style=CHOICEDLG_STYLE, | |
1942 | Point pos=DefaultPosition) -> SingleChoiceDialog""" | |
1943 | newobj = _windows.new_SingleChoiceDialog(*args, **kwargs) | |
1944 | self.this = newobj.this | |
1945 | self.thisown = 1 | |
1946 | del newobj.thisown | |
1947 | self._setOORInfo(self) | |
1948 | ||
1949 | def GetSelection(*args, **kwargs): | |
1950 | """GetSelection() -> int""" | |
1951 | return _windows.SingleChoiceDialog_GetSelection(*args, **kwargs) | |
1952 | ||
1953 | def GetStringSelection(*args, **kwargs): | |
1954 | """GetStringSelection() -> wxString""" | |
1955 | return _windows.SingleChoiceDialog_GetStringSelection(*args, **kwargs) | |
1956 | ||
1957 | def SetSelection(*args, **kwargs): | |
1958 | """SetSelection(int sel)""" | |
1959 | return _windows.SingleChoiceDialog_SetSelection(*args, **kwargs) | |
1960 | ||
1961 | def ShowModal(*args, **kwargs): | |
1962 | """ShowModal() -> int""" | |
1963 | return _windows.SingleChoiceDialog_ShowModal(*args, **kwargs) | |
1964 | ||
1965 | ||
1966 | class SingleChoiceDialogPtr(SingleChoiceDialog): | |
1967 | def __init__(self, this): | |
1968 | self.this = this | |
1969 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1970 | self.__class__ = SingleChoiceDialog | |
1971 | _windows.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr) | |
1972 | ||
1973 | class TextEntryDialog(Dialog): | |
1974 | """""" | |
1975 | def __repr__(self): | |
1976 | return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1977 | def __init__(self, *args, **kwargs): | |
1978 | """__init__(Window parent, wxString message, wxString caption=wxPyGetTextFromUserPromptStr, | |
1979 | wxString defaultValue=wxPyEmptyString, | |
1980 | long style=wxOK|wxCANCEL|wxCENTRE, | |
1981 | Point pos=DefaultPosition) -> TextEntryDialog""" | |
1982 | newobj = _windows.new_TextEntryDialog(*args, **kwargs) | |
1983 | self.this = newobj.this | |
1984 | self.thisown = 1 | |
1985 | del newobj.thisown | |
1986 | self._setOORInfo(self) | |
1987 | ||
1988 | def GetValue(*args, **kwargs): | |
1989 | """GetValue() -> wxString""" | |
1990 | return _windows.TextEntryDialog_GetValue(*args, **kwargs) | |
1991 | ||
1992 | def SetValue(*args, **kwargs): | |
1993 | """SetValue(wxString value)""" | |
1994 | return _windows.TextEntryDialog_SetValue(*args, **kwargs) | |
1995 | ||
1996 | def ShowModal(*args, **kwargs): | |
1997 | """ShowModal() -> int""" | |
1998 | return _windows.TextEntryDialog_ShowModal(*args, **kwargs) | |
1999 | ||
2000 | ||
2001 | class TextEntryDialogPtr(TextEntryDialog): | |
2002 | def __init__(self, this): | |
2003 | self.this = this | |
2004 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2005 | self.__class__ = TextEntryDialog | |
2006 | _windows.TextEntryDialog_swigregister(TextEntryDialogPtr) | |
2007 | ||
2008 | class FontData(core.Object): | |
2009 | """""" | |
2010 | def __repr__(self): | |
2011 | return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2012 | def __init__(self, *args, **kwargs): | |
2013 | """__init__() -> FontData""" | |
2014 | newobj = _windows.new_FontData(*args, **kwargs) | |
2015 | self.this = newobj.this | |
2016 | self.thisown = 1 | |
2017 | del newobj.thisown | |
2018 | def __del__(self, destroy=_windows.delete_FontData): | |
2019 | """__del__()""" | |
2020 | try: | |
2021 | if self.thisown: destroy(self) | |
2022 | except: pass | |
2023 | ||
2024 | def EnableEffects(*args, **kwargs): | |
2025 | """EnableEffects(bool enable)""" | |
2026 | return _windows.FontData_EnableEffects(*args, **kwargs) | |
2027 | ||
2028 | def GetAllowSymbols(*args, **kwargs): | |
2029 | """GetAllowSymbols() -> bool""" | |
2030 | return _windows.FontData_GetAllowSymbols(*args, **kwargs) | |
2031 | ||
2032 | def GetColour(*args, **kwargs): | |
2033 | """GetColour() -> wxColour""" | |
2034 | return _windows.FontData_GetColour(*args, **kwargs) | |
2035 | ||
2036 | def GetChosenFont(*args, **kwargs): | |
2037 | """GetChosenFont() -> wxFont""" | |
2038 | return _windows.FontData_GetChosenFont(*args, **kwargs) | |
2039 | ||
2040 | def GetEnableEffects(*args, **kwargs): | |
2041 | """GetEnableEffects() -> bool""" | |
2042 | return _windows.FontData_GetEnableEffects(*args, **kwargs) | |
2043 | ||
2044 | def GetInitialFont(*args, **kwargs): | |
2045 | """GetInitialFont() -> wxFont""" | |
2046 | return _windows.FontData_GetInitialFont(*args, **kwargs) | |
2047 | ||
2048 | def GetShowHelp(*args, **kwargs): | |
2049 | """GetShowHelp() -> bool""" | |
2050 | return _windows.FontData_GetShowHelp(*args, **kwargs) | |
2051 | ||
2052 | def SetAllowSymbols(*args, **kwargs): | |
2053 | """SetAllowSymbols(bool allowSymbols)""" | |
2054 | return _windows.FontData_SetAllowSymbols(*args, **kwargs) | |
2055 | ||
2056 | def SetChosenFont(*args, **kwargs): | |
2057 | """SetChosenFont(wxFont font)""" | |
2058 | return _windows.FontData_SetChosenFont(*args, **kwargs) | |
2059 | ||
2060 | def SetColour(*args, **kwargs): | |
2061 | """SetColour(wxColour colour)""" | |
2062 | return _windows.FontData_SetColour(*args, **kwargs) | |
2063 | ||
2064 | def SetInitialFont(*args, **kwargs): | |
2065 | """SetInitialFont(wxFont font)""" | |
2066 | return _windows.FontData_SetInitialFont(*args, **kwargs) | |
2067 | ||
2068 | def SetRange(*args, **kwargs): | |
2069 | """SetRange(int min, int max)""" | |
2070 | return _windows.FontData_SetRange(*args, **kwargs) | |
2071 | ||
2072 | def SetShowHelp(*args, **kwargs): | |
2073 | """SetShowHelp(bool showHelp)""" | |
2074 | return _windows.FontData_SetShowHelp(*args, **kwargs) | |
2075 | ||
2076 | ||
2077 | class FontDataPtr(FontData): | |
2078 | def __init__(self, this): | |
2079 | self.this = this | |
2080 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2081 | self.__class__ = FontData | |
2082 | _windows.FontData_swigregister(FontDataPtr) | |
2083 | ||
2084 | class FontDialog(Dialog): | |
2085 | """""" | |
2086 | def __repr__(self): | |
2087 | return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2088 | def __init__(self, *args, **kwargs): | |
2089 | """__init__(Window parent, FontData data) -> FontDialog""" | |
2090 | newobj = _windows.new_FontDialog(*args, **kwargs) | |
2091 | self.this = newobj.this | |
2092 | self.thisown = 1 | |
2093 | del newobj.thisown | |
2094 | self._setOORInfo(self) | |
2095 | ||
2096 | def GetFontData(*args, **kwargs): | |
2097 | """GetFontData() -> FontData""" | |
2098 | return _windows.FontDialog_GetFontData(*args, **kwargs) | |
2099 | ||
2100 | def ShowModal(*args, **kwargs): | |
2101 | """ShowModal() -> int""" | |
2102 | return _windows.FontDialog_ShowModal(*args, **kwargs) | |
2103 | ||
2104 | ||
2105 | class FontDialogPtr(FontDialog): | |
2106 | def __init__(self, this): | |
2107 | self.this = this | |
2108 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2109 | self.__class__ = FontDialog | |
2110 | _windows.FontDialog_swigregister(FontDialogPtr) | |
2111 | ||
2112 | class MessageDialog(Dialog): | |
2113 | """""" | |
2114 | def __repr__(self): | |
2115 | return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2116 | def __init__(self, *args, **kwargs): | |
2117 | """__init__(Window parent, wxString message, wxString caption=wxPyMessageBoxCaptionStr, | |
2118 | long style=wxOK|wxCANCEL|wxCENTRE, | |
2119 | Point pos=DefaultPosition) -> MessageDialog""" | |
2120 | newobj = _windows.new_MessageDialog(*args, **kwargs) | |
2121 | self.this = newobj.this | |
2122 | self.thisown = 1 | |
2123 | del newobj.thisown | |
2124 | self._setOORInfo(self) | |
2125 | ||
2126 | def ShowModal(*args, **kwargs): | |
2127 | """ShowModal() -> int""" | |
2128 | return _windows.MessageDialog_ShowModal(*args, **kwargs) | |
2129 | ||
2130 | ||
2131 | class MessageDialogPtr(MessageDialog): | |
2132 | def __init__(self, this): | |
2133 | self.this = this | |
2134 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2135 | self.__class__ = MessageDialog | |
2136 | _windows.MessageDialog_swigregister(MessageDialogPtr) | |
2137 | ||
2138 | class ProgressDialog(Frame): | |
2139 | """""" | |
2140 | def __repr__(self): | |
2141 | return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2142 | def __init__(self, *args, **kwargs): | |
2143 | """__init__(wxString title, wxString message, int maximum=100, | |
2144 | Window parent=None, int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog""" | |
2145 | newobj = _windows.new_ProgressDialog(*args, **kwargs) | |
2146 | self.this = newobj.this | |
2147 | self.thisown = 1 | |
2148 | del newobj.thisown | |
2149 | self._setOORInfo(self) | |
2150 | ||
2151 | def Update(*args, **kwargs): | |
2152 | """Update(int value, wxString newmsg=wxPyEmptyString) -> bool""" | |
2153 | return _windows.ProgressDialog_Update(*args, **kwargs) | |
2154 | ||
2155 | def Resume(*args, **kwargs): | |
2156 | """Resume()""" | |
2157 | return _windows.ProgressDialog_Resume(*args, **kwargs) | |
2158 | ||
2159 | ||
2160 | class ProgressDialogPtr(ProgressDialog): | |
2161 | def __init__(self, this): | |
2162 | self.this = this | |
2163 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2164 | self.__class__ = ProgressDialog | |
2165 | _windows.ProgressDialog_swigregister(ProgressDialogPtr) | |
2166 | ||
2167 | FR_DOWN = _windows.FR_DOWN | |
2168 | FR_WHOLEWORD = _windows.FR_WHOLEWORD | |
2169 | FR_MATCHCASE = _windows.FR_MATCHCASE | |
2170 | FR_REPLACEDIALOG = _windows.FR_REPLACEDIALOG | |
2171 | FR_NOUPDOWN = _windows.FR_NOUPDOWN | |
2172 | FR_NOMATCHCASE = _windows.FR_NOMATCHCASE | |
2173 | FR_NOWHOLEWORD = _windows.FR_NOWHOLEWORD | |
2174 | wxEVT_COMMAND_FIND = _windows.wxEVT_COMMAND_FIND | |
2175 | wxEVT_COMMAND_FIND_NEXT = _windows.wxEVT_COMMAND_FIND_NEXT | |
2176 | wxEVT_COMMAND_FIND_REPLACE = _windows.wxEVT_COMMAND_FIND_REPLACE | |
2177 | wxEVT_COMMAND_FIND_REPLACE_ALL = _windows.wxEVT_COMMAND_FIND_REPLACE_ALL | |
2178 | wxEVT_COMMAND_FIND_CLOSE = _windows.wxEVT_COMMAND_FIND_CLOSE | |
2179 | EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 ) | |
2180 | EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 ) | |
2181 | EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 ) | |
2182 | EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 ) | |
2183 | EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 ) | |
2184 | ||
2185 | # For backwards compatibility. Should they be removed? | |
2186 | EVT_COMMAND_FIND = EVT_FIND | |
2187 | EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT | |
2188 | EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE | |
2189 | EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL | |
2190 | EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE | |
2191 | ||
2192 | class FindDialogEvent(core.CommandEvent): | |
2193 | """""" | |
2194 | def __repr__(self): | |
2195 | return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2196 | def __init__(self, *args, **kwargs): | |
2197 | """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent""" | |
2198 | newobj = _windows.new_FindDialogEvent(*args, **kwargs) | |
2199 | self.this = newobj.this | |
2200 | self.thisown = 1 | |
2201 | del newobj.thisown | |
2202 | def GetFlags(*args, **kwargs): | |
2203 | """GetFlags() -> int""" | |
2204 | return _windows.FindDialogEvent_GetFlags(*args, **kwargs) | |
2205 | ||
2206 | def GetFindString(*args, **kwargs): | |
2207 | """GetFindString() -> wxString""" | |
2208 | return _windows.FindDialogEvent_GetFindString(*args, **kwargs) | |
2209 | ||
2210 | def GetReplaceString(*args, **kwargs): | |
2211 | """GetReplaceString() -> wxString""" | |
2212 | return _windows.FindDialogEvent_GetReplaceString(*args, **kwargs) | |
2213 | ||
2214 | def GetDialog(*args, **kwargs): | |
2215 | """GetDialog() -> FindReplaceDialog""" | |
2216 | return _windows.FindDialogEvent_GetDialog(*args, **kwargs) | |
2217 | ||
2218 | def SetFlags(*args, **kwargs): | |
2219 | """SetFlags(int flags)""" | |
2220 | return _windows.FindDialogEvent_SetFlags(*args, **kwargs) | |
2221 | ||
2222 | def SetFindString(*args, **kwargs): | |
2223 | """SetFindString(wxString str)""" | |
2224 | return _windows.FindDialogEvent_SetFindString(*args, **kwargs) | |
2225 | ||
2226 | def SetReplaceString(*args, **kwargs): | |
2227 | """SetReplaceString(wxString str)""" | |
2228 | return _windows.FindDialogEvent_SetReplaceString(*args, **kwargs) | |
2229 | ||
2230 | ||
2231 | class FindDialogEventPtr(FindDialogEvent): | |
2232 | def __init__(self, this): | |
2233 | self.this = this | |
2234 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2235 | self.__class__ = FindDialogEvent | |
2236 | _windows.FindDialogEvent_swigregister(FindDialogEventPtr) | |
2237 | ||
2238 | class FindReplaceData(core.Object): | |
2239 | """""" | |
2240 | def __repr__(self): | |
2241 | return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2242 | def __init__(self, *args, **kwargs): | |
2243 | """__init__(int flags=0) -> FindReplaceData""" | |
2244 | newobj = _windows.new_FindReplaceData(*args, **kwargs) | |
2245 | self.this = newobj.this | |
2246 | self.thisown = 1 | |
2247 | del newobj.thisown | |
2248 | def __del__(self, destroy=_windows.delete_FindReplaceData): | |
2249 | """__del__()""" | |
2250 | try: | |
2251 | if self.thisown: destroy(self) | |
2252 | except: pass | |
2253 | ||
2254 | def GetFindString(*args, **kwargs): | |
2255 | """GetFindString() -> wxString""" | |
2256 | return _windows.FindReplaceData_GetFindString(*args, **kwargs) | |
2257 | ||
2258 | def GetReplaceString(*args, **kwargs): | |
2259 | """GetReplaceString() -> wxString""" | |
2260 | return _windows.FindReplaceData_GetReplaceString(*args, **kwargs) | |
2261 | ||
2262 | def GetFlags(*args, **kwargs): | |
2263 | """GetFlags() -> int""" | |
2264 | return _windows.FindReplaceData_GetFlags(*args, **kwargs) | |
2265 | ||
2266 | def SetFlags(*args, **kwargs): | |
2267 | """SetFlags(int flags)""" | |
2268 | return _windows.FindReplaceData_SetFlags(*args, **kwargs) | |
2269 | ||
2270 | def SetFindString(*args, **kwargs): | |
2271 | """SetFindString(wxString str)""" | |
2272 | return _windows.FindReplaceData_SetFindString(*args, **kwargs) | |
2273 | ||
2274 | def SetReplaceString(*args, **kwargs): | |
2275 | """SetReplaceString(wxString str)""" | |
2276 | return _windows.FindReplaceData_SetReplaceString(*args, **kwargs) | |
2277 | ||
2278 | ||
2279 | class FindReplaceDataPtr(FindReplaceData): | |
2280 | def __init__(self, this): | |
2281 | self.this = this | |
2282 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2283 | self.__class__ = FindReplaceData | |
2284 | _windows.FindReplaceData_swigregister(FindReplaceDataPtr) | |
2285 | ||
2286 | class FindReplaceDialog(Dialog): | |
2287 | """""" | |
2288 | def __repr__(self): | |
2289 | return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2290 | def __init__(self, *args, **kwargs): | |
2291 | """__init__(Window parent, FindReplaceData data, wxString title, | |
2292 | int style=0) -> FindReplaceDialog""" | |
2293 | newobj = _windows.new_FindReplaceDialog(*args, **kwargs) | |
2294 | self.this = newobj.this | |
2295 | self.thisown = 1 | |
2296 | del newobj.thisown | |
2297 | self._setOORInfo(self) | |
2298 | ||
2299 | def Create(*args, **kwargs): | |
2300 | """Create(Window parent, FindReplaceData data, wxString title, | |
2301 | int style=0) -> bool""" | |
2302 | return _windows.FindReplaceDialog_Create(*args, **kwargs) | |
2303 | ||
2304 | def GetData(*args, **kwargs): | |
2305 | """GetData() -> FindReplaceData""" | |
2306 | return _windows.FindReplaceDialog_GetData(*args, **kwargs) | |
2307 | ||
2308 | def SetData(*args, **kwargs): | |
2309 | """SetData(FindReplaceData data)""" | |
2310 | return _windows.FindReplaceDialog_SetData(*args, **kwargs) | |
2311 | ||
2312 | ||
2313 | class FindReplaceDialogPtr(FindReplaceDialog): | |
2314 | def __init__(self, this): | |
2315 | self.this = this | |
2316 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2317 | self.__class__ = FindReplaceDialog | |
2318 | _windows.FindReplaceDialog_swigregister(FindReplaceDialogPtr) | |
2319 | ||
2320 | def PreFindReplaceDialog(*args, **kwargs): | |
2321 | """PreFindReplaceDialog() -> FindReplaceDialog""" | |
2322 | val = _windows.new_PreFindReplaceDialog(*args, **kwargs) | |
2323 | val.thisown = 1 | |
2324 | return val | |
2325 | ||
2326 | #--------------------------------------------------------------------------- | |
2327 | ||
2328 | IDM_WINDOWTILE = _windows.IDM_WINDOWTILE | |
2329 | IDM_WINDOWTILEHOR = _windows.IDM_WINDOWTILEHOR | |
2330 | IDM_WINDOWCASCADE = _windows.IDM_WINDOWCASCADE | |
2331 | IDM_WINDOWICONS = _windows.IDM_WINDOWICONS | |
2332 | IDM_WINDOWNEXT = _windows.IDM_WINDOWNEXT | |
2333 | IDM_WINDOWTILEVERT = _windows.IDM_WINDOWTILEVERT | |
2334 | FIRST_MDI_CHILD = _windows.FIRST_MDI_CHILD | |
2335 | LAST_MDI_CHILD = _windows.LAST_MDI_CHILD | |
2336 | class MDIParentFrame(Frame): | |
2337 | """""" | |
2338 | def __repr__(self): | |
2339 | return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2340 | def __init__(self, *args, **kwargs): | |
2341 | """__init__(Window parent, int id, wxString title, Point pos=DefaultPosition, | |
2342 | Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, | |
2343 | wxString name=wxPyFrameNameStr) -> MDIParentFrame""" | |
2344 | newobj = _windows.new_MDIParentFrame(*args, **kwargs) | |
2345 | self.this = newobj.this | |
2346 | self.thisown = 1 | |
2347 | del newobj.thisown | |
2348 | self._setOORInfo(self) | |
2349 | ||
2350 | def Create(*args, **kwargs): | |
2351 | """Create(Window parent, int id, wxString title, Point pos=DefaultPosition, | |
2352 | Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, | |
2353 | wxString name=wxPyFrameNameStr) -> bool""" | |
2354 | return _windows.MDIParentFrame_Create(*args, **kwargs) | |
2355 | ||
2356 | def ActivateNext(*args, **kwargs): | |
2357 | """ActivateNext()""" | |
2358 | return _windows.MDIParentFrame_ActivateNext(*args, **kwargs) | |
2359 | ||
2360 | def ActivatePrevious(*args, **kwargs): | |
2361 | """ActivatePrevious()""" | |
2362 | return _windows.MDIParentFrame_ActivatePrevious(*args, **kwargs) | |
2363 | ||
2364 | def ArrangeIcons(*args, **kwargs): | |
2365 | """ArrangeIcons()""" | |
2366 | return _windows.MDIParentFrame_ArrangeIcons(*args, **kwargs) | |
2367 | ||
2368 | def Cascade(*args, **kwargs): | |
2369 | """Cascade()""" | |
2370 | return _windows.MDIParentFrame_Cascade(*args, **kwargs) | |
2371 | ||
2372 | def GetActiveChild(*args, **kwargs): | |
2373 | """GetActiveChild() -> MDIChildFrame""" | |
2374 | return _windows.MDIParentFrame_GetActiveChild(*args, **kwargs) | |
2375 | ||
2376 | def GetClientWindow(*args, **kwargs): | |
2377 | """GetClientWindow() -> MDIClientWindow""" | |
2378 | return _windows.MDIParentFrame_GetClientWindow(*args, **kwargs) | |
2379 | ||
2380 | def GetToolBar(*args, **kwargs): | |
2381 | """GetToolBar() -> Window""" | |
2382 | return _windows.MDIParentFrame_GetToolBar(*args, **kwargs) | |
2383 | ||
2384 | def GetWindowMenu(*args, **kwargs): | |
2385 | """GetWindowMenu() -> Menu""" | |
2386 | return _windows.MDIParentFrame_GetWindowMenu(*args, **kwargs) | |
2387 | ||
2388 | def SetWindowMenu(*args, **kwargs): | |
2389 | """SetWindowMenu(Menu menu)""" | |
2390 | return _windows.MDIParentFrame_SetWindowMenu(*args, **kwargs) | |
2391 | ||
2392 | def SetToolBar(*args, **kwargs): | |
2393 | """SetToolBar(wxToolBar toolbar)""" | |
2394 | return _windows.MDIParentFrame_SetToolBar(*args, **kwargs) | |
2395 | ||
2396 | def Tile(*args, **kwargs): | |
2397 | """Tile()""" | |
2398 | return _windows.MDIParentFrame_Tile(*args, **kwargs) | |
2399 | ||
2400 | ||
2401 | class MDIParentFramePtr(MDIParentFrame): | |
2402 | def __init__(self, this): | |
2403 | self.this = this | |
2404 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2405 | self.__class__ = MDIParentFrame | |
2406 | _windows.MDIParentFrame_swigregister(MDIParentFramePtr) | |
2407 | ||
2408 | def PreMDIParentFrame(*args, **kwargs): | |
2409 | """PreMDIParentFrame() -> MDIParentFrame""" | |
2410 | val = _windows.new_PreMDIParentFrame(*args, **kwargs) | |
2411 | val.thisown = 1 | |
2412 | return val | |
2413 | ||
2414 | class MDIChildFrame(Frame): | |
2415 | """""" | |
2416 | def __repr__(self): | |
2417 | return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2418 | def __init__(self, *args, **kwargs): | |
2419 | """__init__(MDIParentFrame parent, int id, wxString title, Point pos=DefaultPosition, | |
2420 | Size size=DefaultSize, | |
2421 | long style=DEFAULT_FRAME_STYLE, wxString name=wxPyFrameNameStr) -> MDIChildFrame""" | |
2422 | newobj = _windows.new_MDIChildFrame(*args, **kwargs) | |
2423 | self.this = newobj.this | |
2424 | self.thisown = 1 | |
2425 | del newobj.thisown | |
2426 | self._setOORInfo(self) | |
2427 | ||
2428 | def Create(*args, **kwargs): | |
2429 | """Create(MDIParentFrame parent, int id, wxString title, Point pos=DefaultPosition, | |
2430 | Size size=DefaultSize, | |
2431 | long style=DEFAULT_FRAME_STYLE, wxString name=wxPyFrameNameStr) -> bool""" | |
2432 | return _windows.MDIChildFrame_Create(*args, **kwargs) | |
2433 | ||
2434 | def Activate(*args, **kwargs): | |
2435 | """Activate()""" | |
2436 | return _windows.MDIChildFrame_Activate(*args, **kwargs) | |
2437 | ||
2438 | def Maximize(*args, **kwargs): | |
2439 | """Maximize(bool maximize)""" | |
2440 | return _windows.MDIChildFrame_Maximize(*args, **kwargs) | |
2441 | ||
2442 | def Restore(*args, **kwargs): | |
2443 | """Restore()""" | |
2444 | return _windows.MDIChildFrame_Restore(*args, **kwargs) | |
2445 | ||
2446 | ||
2447 | class MDIChildFramePtr(MDIChildFrame): | |
2448 | def __init__(self, this): | |
2449 | self.this = this | |
2450 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2451 | self.__class__ = MDIChildFrame | |
2452 | _windows.MDIChildFrame_swigregister(MDIChildFramePtr) | |
2453 | ||
2454 | def PreMDIChildFrame(*args, **kwargs): | |
2455 | """PreMDIChildFrame() -> MDIChildFrame""" | |
2456 | val = _windows.new_PreMDIChildFrame(*args, **kwargs) | |
2457 | val.thisown = 1 | |
2458 | return val | |
2459 | ||
2460 | class MDIClientWindow(core.Window): | |
2461 | """""" | |
2462 | def __repr__(self): | |
2463 | return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2464 | def __init__(self, *args, **kwargs): | |
2465 | """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow""" | |
2466 | newobj = _windows.new_MDIClientWindow(*args, **kwargs) | |
2467 | self.this = newobj.this | |
2468 | self.thisown = 1 | |
2469 | del newobj.thisown | |
2470 | self._setOORInfo(self) | |
2471 | ||
2472 | def Create(*args, **kwargs): | |
2473 | """Create(MDIParentFrame parent, long style=0) -> bool""" | |
2474 | return _windows.MDIClientWindow_Create(*args, **kwargs) | |
2475 | ||
2476 | ||
2477 | class MDIClientWindowPtr(MDIClientWindow): | |
2478 | def __init__(self, this): | |
2479 | self.this = this | |
2480 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2481 | self.__class__ = MDIClientWindow | |
2482 | _windows.MDIClientWindow_swigregister(MDIClientWindowPtr) | |
2483 | ||
2484 | def PreMDIClientWindow(*args, **kwargs): | |
2485 | """PreMDIClientWindow() -> MDIClientWindow""" | |
2486 | val = _windows.new_PreMDIClientWindow(*args, **kwargs) | |
2487 | val.thisown = 1 | |
2488 | return val | |
2489 | ||
2490 | #--------------------------------------------------------------------------- | |
2491 | ||
2492 | class PyWindow(core.Window): | |
2493 | """""" | |
2494 | def __repr__(self): | |
2495 | return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2496 | def __init__(self, *args, **kwargs): | |
2497 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
2498 | long style=0, wxString name=PanelNameStr) -> PyWindow""" | |
2499 | newobj = _windows.new_PyWindow(*args, **kwargs) | |
2500 | self.this = newobj.this | |
2501 | self.thisown = 1 | |
2502 | del newobj.thisown | |
2503 | self._setOORInfo(self); self._setCallbackInfo(self, PyWindow) | |
2504 | ||
2505 | def _setCallbackInfo(*args, **kwargs): | |
2506 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
2507 | return _windows.PyWindow__setCallbackInfo(*args, **kwargs) | |
2508 | ||
2509 | def base_DoMoveWindow(*args, **kwargs): | |
2510 | """base_DoMoveWindow(int x, int y, int width, int height)""" | |
2511 | return _windows.PyWindow_base_DoMoveWindow(*args, **kwargs) | |
2512 | ||
2513 | def base_DoSetSize(*args, **kwargs): | |
2514 | """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
2515 | return _windows.PyWindow_base_DoSetSize(*args, **kwargs) | |
2516 | ||
2517 | def base_DoSetClientSize(*args, **kwargs): | |
2518 | """base_DoSetClientSize(int width, int height)""" | |
2519 | return _windows.PyWindow_base_DoSetClientSize(*args, **kwargs) | |
2520 | ||
2521 | def base_DoSetVirtualSize(*args, **kwargs): | |
2522 | """base_DoSetVirtualSize(int x, int y)""" | |
2523 | return _windows.PyWindow_base_DoSetVirtualSize(*args, **kwargs) | |
2524 | ||
2525 | def base_DoGetSize(*args, **kwargs): | |
2526 | """base_DoGetSize() -> (width, height)""" | |
2527 | return _windows.PyWindow_base_DoGetSize(*args, **kwargs) | |
2528 | ||
2529 | def base_DoGetClientSize(*args, **kwargs): | |
2530 | """base_DoGetClientSize() -> (width, height)""" | |
2531 | return _windows.PyWindow_base_DoGetClientSize(*args, **kwargs) | |
2532 | ||
2533 | def base_DoGetPosition(*args, **kwargs): | |
2534 | """base_DoGetPosition() -> (x,y)""" | |
2535 | return _windows.PyWindow_base_DoGetPosition(*args, **kwargs) | |
2536 | ||
2537 | def base_DoGetVirtualSize(*args, **kwargs): | |
2538 | """base_DoGetVirtualSize() -> Size""" | |
2539 | return _windows.PyWindow_base_DoGetVirtualSize(*args, **kwargs) | |
2540 | ||
2541 | def base_DoGetBestSize(*args, **kwargs): | |
2542 | """base_DoGetBestSize() -> Size""" | |
2543 | return _windows.PyWindow_base_DoGetBestSize(*args, **kwargs) | |
2544 | ||
2545 | def base_InitDialog(*args, **kwargs): | |
2546 | """base_InitDialog()""" | |
2547 | return _windows.PyWindow_base_InitDialog(*args, **kwargs) | |
2548 | ||
2549 | def base_TransferDataToWindow(*args, **kwargs): | |
2550 | """base_TransferDataToWindow() -> bool""" | |
2551 | return _windows.PyWindow_base_TransferDataToWindow(*args, **kwargs) | |
2552 | ||
2553 | def base_TransferDataFromWindow(*args, **kwargs): | |
2554 | """base_TransferDataFromWindow() -> bool""" | |
2555 | return _windows.PyWindow_base_TransferDataFromWindow(*args, **kwargs) | |
2556 | ||
2557 | def base_Validate(*args, **kwargs): | |
2558 | """base_Validate() -> bool""" | |
2559 | return _windows.PyWindow_base_Validate(*args, **kwargs) | |
2560 | ||
2561 | def base_AcceptsFocus(*args, **kwargs): | |
2562 | """base_AcceptsFocus() -> bool""" | |
2563 | return _windows.PyWindow_base_AcceptsFocus(*args, **kwargs) | |
2564 | ||
2565 | def base_AcceptsFocusFromKeyboard(*args, **kwargs): | |
2566 | """base_AcceptsFocusFromKeyboard() -> bool""" | |
2567 | return _windows.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) | |
2568 | ||
2569 | def base_GetMaxSize(*args, **kwargs): | |
2570 | """base_GetMaxSize() -> Size""" | |
2571 | return _windows.PyWindow_base_GetMaxSize(*args, **kwargs) | |
2572 | ||
2573 | def base_AddChild(*args, **kwargs): | |
2574 | """base_AddChild(Window child)""" | |
2575 | return _windows.PyWindow_base_AddChild(*args, **kwargs) | |
2576 | ||
2577 | def base_RemoveChild(*args, **kwargs): | |
2578 | """base_RemoveChild(Window child)""" | |
2579 | return _windows.PyWindow_base_RemoveChild(*args, **kwargs) | |
2580 | ||
2581 | ||
2582 | class PyWindowPtr(PyWindow): | |
2583 | def __init__(self, this): | |
2584 | self.this = this | |
2585 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2586 | self.__class__ = PyWindow | |
2587 | _windows.PyWindow_swigregister(PyWindowPtr) | |
2588 | ||
2589 | class PyPanel(Panel): | |
2590 | """""" | |
2591 | def __repr__(self): | |
2592 | return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2593 | def __init__(self, *args, **kwargs): | |
2594 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
2595 | long style=0, wxString name=PanelNameStr) -> PyPanel""" | |
2596 | newobj = _windows.new_PyPanel(*args, **kwargs) | |
2597 | self.this = newobj.this | |
2598 | self.thisown = 1 | |
2599 | del newobj.thisown | |
2600 | self._setOORInfo(self); self._setCallbackInfo(self, PyPanel) | |
2601 | ||
2602 | def _setCallbackInfo(*args, **kwargs): | |
2603 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
2604 | return _windows.PyPanel__setCallbackInfo(*args, **kwargs) | |
2605 | ||
2606 | def base_DoMoveWindow(*args, **kwargs): | |
2607 | """base_DoMoveWindow(int x, int y, int width, int height)""" | |
2608 | return _windows.PyPanel_base_DoMoveWindow(*args, **kwargs) | |
2609 | ||
2610 | def base_DoSetSize(*args, **kwargs): | |
2611 | """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
2612 | return _windows.PyPanel_base_DoSetSize(*args, **kwargs) | |
2613 | ||
2614 | def base_DoSetClientSize(*args, **kwargs): | |
2615 | """base_DoSetClientSize(int width, int height)""" | |
2616 | return _windows.PyPanel_base_DoSetClientSize(*args, **kwargs) | |
2617 | ||
2618 | def base_DoSetVirtualSize(*args, **kwargs): | |
2619 | """base_DoSetVirtualSize(int x, int y)""" | |
2620 | return _windows.PyPanel_base_DoSetVirtualSize(*args, **kwargs) | |
2621 | ||
2622 | def base_DoGetSize(*args, **kwargs): | |
2623 | """base_DoGetSize() -> (width, height)""" | |
2624 | return _windows.PyPanel_base_DoGetSize(*args, **kwargs) | |
2625 | ||
2626 | def base_DoGetClientSize(*args, **kwargs): | |
2627 | """base_DoGetClientSize() -> (width, height)""" | |
2628 | return _windows.PyPanel_base_DoGetClientSize(*args, **kwargs) | |
2629 | ||
2630 | def base_DoGetPosition(*args, **kwargs): | |
2631 | """base_DoGetPosition() -> (x,y)""" | |
2632 | return _windows.PyPanel_base_DoGetPosition(*args, **kwargs) | |
2633 | ||
2634 | def base_DoGetVirtualSize(*args, **kwargs): | |
2635 | """base_DoGetVirtualSize() -> Size""" | |
2636 | return _windows.PyPanel_base_DoGetVirtualSize(*args, **kwargs) | |
2637 | ||
2638 | def base_DoGetBestSize(*args, **kwargs): | |
2639 | """base_DoGetBestSize() -> Size""" | |
2640 | return _windows.PyPanel_base_DoGetBestSize(*args, **kwargs) | |
2641 | ||
2642 | def base_InitDialog(*args, **kwargs): | |
2643 | """base_InitDialog()""" | |
2644 | return _windows.PyPanel_base_InitDialog(*args, **kwargs) | |
2645 | ||
2646 | def base_TransferDataToWindow(*args, **kwargs): | |
2647 | """base_TransferDataToWindow() -> bool""" | |
2648 | return _windows.PyPanel_base_TransferDataToWindow(*args, **kwargs) | |
2649 | ||
2650 | def base_TransferDataFromWindow(*args, **kwargs): | |
2651 | """base_TransferDataFromWindow() -> bool""" | |
2652 | return _windows.PyPanel_base_TransferDataFromWindow(*args, **kwargs) | |
2653 | ||
2654 | def base_Validate(*args, **kwargs): | |
2655 | """base_Validate() -> bool""" | |
2656 | return _windows.PyPanel_base_Validate(*args, **kwargs) | |
2657 | ||
2658 | def base_AcceptsFocus(*args, **kwargs): | |
2659 | """base_AcceptsFocus() -> bool""" | |
2660 | return _windows.PyPanel_base_AcceptsFocus(*args, **kwargs) | |
2661 | ||
2662 | def base_AcceptsFocusFromKeyboard(*args, **kwargs): | |
2663 | """base_AcceptsFocusFromKeyboard() -> bool""" | |
2664 | return _windows.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs) | |
2665 | ||
2666 | def base_GetMaxSize(*args, **kwargs): | |
2667 | """base_GetMaxSize() -> Size""" | |
2668 | return _windows.PyPanel_base_GetMaxSize(*args, **kwargs) | |
2669 | ||
2670 | def base_AddChild(*args, **kwargs): | |
2671 | """base_AddChild(Window child)""" | |
2672 | return _windows.PyPanel_base_AddChild(*args, **kwargs) | |
2673 | ||
2674 | def base_RemoveChild(*args, **kwargs): | |
2675 | """base_RemoveChild(Window child)""" | |
2676 | return _windows.PyPanel_base_RemoveChild(*args, **kwargs) | |
2677 | ||
2678 | ||
2679 | class PyPanelPtr(PyPanel): | |
2680 | def __init__(self, this): | |
2681 | self.this = this | |
2682 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2683 | self.__class__ = PyPanel | |
2684 | _windows.PyPanel_swigregister(PyPanelPtr) | |
2685 | ||
2686 | #--------------------------------------------------------------------------- | |
2687 | ||
2688 | PRINT_MODE_NONE = _windows.PRINT_MODE_NONE | |
2689 | PRINT_MODE_PREVIEW = _windows.PRINT_MODE_PREVIEW | |
2690 | PRINT_MODE_FILE = _windows.PRINT_MODE_FILE | |
2691 | PRINT_MODE_PRINTER = _windows.PRINT_MODE_PRINTER | |
2692 | class PrintData(core.Object): | |
2693 | """""" | |
2694 | def __repr__(self): | |
2695 | return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2696 | def __init__(self, *args, **kwargs): | |
2697 | """__init__() -> PrintData""" | |
2698 | newobj = _windows.new_PrintData(*args, **kwargs) | |
2699 | self.this = newobj.this | |
2700 | self.thisown = 1 | |
2701 | del newobj.thisown | |
2702 | def __del__(self, destroy=_windows.delete_PrintData): | |
2703 | """__del__()""" | |
2704 | try: | |
2705 | if self.thisown: destroy(self) | |
2706 | except: pass | |
2707 | ||
2708 | def GetNoCopies(*args, **kwargs): | |
2709 | """GetNoCopies() -> int""" | |
2710 | return _windows.PrintData_GetNoCopies(*args, **kwargs) | |
2711 | ||
2712 | def GetCollate(*args, **kwargs): | |
2713 | """GetCollate() -> bool""" | |
2714 | return _windows.PrintData_GetCollate(*args, **kwargs) | |
2715 | ||
2716 | def GetOrientation(*args, **kwargs): | |
2717 | """GetOrientation() -> int""" | |
2718 | return _windows.PrintData_GetOrientation(*args, **kwargs) | |
2719 | ||
2720 | def Ok(*args, **kwargs): | |
2721 | """Ok() -> bool""" | |
2722 | return _windows.PrintData_Ok(*args, **kwargs) | |
2723 | ||
2724 | def GetPrinterName(*args, **kwargs): | |
2725 | """GetPrinterName() -> wxString""" | |
2726 | return _windows.PrintData_GetPrinterName(*args, **kwargs) | |
2727 | ||
2728 | def GetColour(*args, **kwargs): | |
2729 | """GetColour() -> bool""" | |
2730 | return _windows.PrintData_GetColour(*args, **kwargs) | |
2731 | ||
2732 | def GetDuplex(*args, **kwargs): | |
2733 | """GetDuplex() -> wxDuplexMode""" | |
2734 | return _windows.PrintData_GetDuplex(*args, **kwargs) | |
2735 | ||
2736 | def GetPaperId(*args, **kwargs): | |
2737 | """GetPaperId() -> wxPaperSize""" | |
2738 | return _windows.PrintData_GetPaperId(*args, **kwargs) | |
2739 | ||
2740 | def GetPaperSize(*args, **kwargs): | |
2741 | """GetPaperSize() -> Size""" | |
2742 | return _windows.PrintData_GetPaperSize(*args, **kwargs) | |
2743 | ||
2744 | def GetQuality(*args, **kwargs): | |
2745 | """GetQuality() -> wxPrintQuality""" | |
2746 | return _windows.PrintData_GetQuality(*args, **kwargs) | |
2747 | ||
2748 | def SetNoCopies(*args, **kwargs): | |
2749 | """SetNoCopies(int v)""" | |
2750 | return _windows.PrintData_SetNoCopies(*args, **kwargs) | |
2751 | ||
2752 | def SetCollate(*args, **kwargs): | |
2753 | """SetCollate(bool flag)""" | |
2754 | return _windows.PrintData_SetCollate(*args, **kwargs) | |
2755 | ||
2756 | def SetOrientation(*args, **kwargs): | |
2757 | """SetOrientation(int orient)""" | |
2758 | return _windows.PrintData_SetOrientation(*args, **kwargs) | |
2759 | ||
2760 | def SetPrinterName(*args, **kwargs): | |
2761 | """SetPrinterName(wxString name)""" | |
2762 | return _windows.PrintData_SetPrinterName(*args, **kwargs) | |
2763 | ||
2764 | def SetColour(*args, **kwargs): | |
2765 | """SetColour(bool colour)""" | |
2766 | return _windows.PrintData_SetColour(*args, **kwargs) | |
2767 | ||
2768 | def SetDuplex(*args, **kwargs): | |
2769 | """SetDuplex(wxDuplexMode duplex)""" | |
2770 | return _windows.PrintData_SetDuplex(*args, **kwargs) | |
2771 | ||
2772 | def SetPaperId(*args, **kwargs): | |
2773 | """SetPaperId(wxPaperSize sizeId)""" | |
2774 | return _windows.PrintData_SetPaperId(*args, **kwargs) | |
2775 | ||
2776 | def SetPaperSize(*args, **kwargs): | |
2777 | """SetPaperSize(Size sz)""" | |
2778 | return _windows.PrintData_SetPaperSize(*args, **kwargs) | |
2779 | ||
2780 | def SetQuality(*args, **kwargs): | |
2781 | """SetQuality(wxPrintQuality quality)""" | |
2782 | return _windows.PrintData_SetQuality(*args, **kwargs) | |
2783 | ||
2784 | def GetPrinterCommand(*args, **kwargs): | |
2785 | """GetPrinterCommand() -> wxString""" | |
2786 | return _windows.PrintData_GetPrinterCommand(*args, **kwargs) | |
2787 | ||
2788 | def GetPrinterOptions(*args, **kwargs): | |
2789 | """GetPrinterOptions() -> wxString""" | |
2790 | return _windows.PrintData_GetPrinterOptions(*args, **kwargs) | |
2791 | ||
2792 | def GetPreviewCommand(*args, **kwargs): | |
2793 | """GetPreviewCommand() -> wxString""" | |
2794 | return _windows.PrintData_GetPreviewCommand(*args, **kwargs) | |
2795 | ||
2796 | def GetFilename(*args, **kwargs): | |
2797 | """GetFilename() -> wxString""" | |
2798 | return _windows.PrintData_GetFilename(*args, **kwargs) | |
2799 | ||
2800 | def GetFontMetricPath(*args, **kwargs): | |
2801 | """GetFontMetricPath() -> wxString""" | |
2802 | return _windows.PrintData_GetFontMetricPath(*args, **kwargs) | |
2803 | ||
2804 | def GetPrinterScaleX(*args, **kwargs): | |
2805 | """GetPrinterScaleX() -> double""" | |
2806 | return _windows.PrintData_GetPrinterScaleX(*args, **kwargs) | |
2807 | ||
2808 | def GetPrinterScaleY(*args, **kwargs): | |
2809 | """GetPrinterScaleY() -> double""" | |
2810 | return _windows.PrintData_GetPrinterScaleY(*args, **kwargs) | |
2811 | ||
2812 | def GetPrinterTranslateX(*args, **kwargs): | |
2813 | """GetPrinterTranslateX() -> long""" | |
2814 | return _windows.PrintData_GetPrinterTranslateX(*args, **kwargs) | |
2815 | ||
2816 | def GetPrinterTranslateY(*args, **kwargs): | |
2817 | """GetPrinterTranslateY() -> long""" | |
2818 | return _windows.PrintData_GetPrinterTranslateY(*args, **kwargs) | |
2819 | ||
2820 | def GetPrintMode(*args, **kwargs): | |
2821 | """GetPrintMode() -> wxPrintMode""" | |
2822 | return _windows.PrintData_GetPrintMode(*args, **kwargs) | |
2823 | ||
2824 | def SetPrinterCommand(*args, **kwargs): | |
2825 | """SetPrinterCommand(wxString command)""" | |
2826 | return _windows.PrintData_SetPrinterCommand(*args, **kwargs) | |
2827 | ||
2828 | def SetPrinterOptions(*args, **kwargs): | |
2829 | """SetPrinterOptions(wxString options)""" | |
2830 | return _windows.PrintData_SetPrinterOptions(*args, **kwargs) | |
2831 | ||
2832 | def SetPreviewCommand(*args, **kwargs): | |
2833 | """SetPreviewCommand(wxString command)""" | |
2834 | return _windows.PrintData_SetPreviewCommand(*args, **kwargs) | |
2835 | ||
2836 | def SetFilename(*args, **kwargs): | |
2837 | """SetFilename(wxString filename)""" | |
2838 | return _windows.PrintData_SetFilename(*args, **kwargs) | |
2839 | ||
2840 | def SetFontMetricPath(*args, **kwargs): | |
2841 | """SetFontMetricPath(wxString path)""" | |
2842 | return _windows.PrintData_SetFontMetricPath(*args, **kwargs) | |
2843 | ||
2844 | def SetPrinterScaleX(*args, **kwargs): | |
2845 | """SetPrinterScaleX(double x)""" | |
2846 | return _windows.PrintData_SetPrinterScaleX(*args, **kwargs) | |
2847 | ||
2848 | def SetPrinterScaleY(*args, **kwargs): | |
2849 | """SetPrinterScaleY(double y)""" | |
2850 | return _windows.PrintData_SetPrinterScaleY(*args, **kwargs) | |
2851 | ||
2852 | def SetPrinterScaling(*args, **kwargs): | |
2853 | """SetPrinterScaling(double x, double y)""" | |
2854 | return _windows.PrintData_SetPrinterScaling(*args, **kwargs) | |
2855 | ||
2856 | def SetPrinterTranslateX(*args, **kwargs): | |
2857 | """SetPrinterTranslateX(long x)""" | |
2858 | return _windows.PrintData_SetPrinterTranslateX(*args, **kwargs) | |
2859 | ||
2860 | def SetPrinterTranslateY(*args, **kwargs): | |
2861 | """SetPrinterTranslateY(long y)""" | |
2862 | return _windows.PrintData_SetPrinterTranslateY(*args, **kwargs) | |
2863 | ||
2864 | def SetPrinterTranslation(*args, **kwargs): | |
2865 | """SetPrinterTranslation(long x, long y)""" | |
2866 | return _windows.PrintData_SetPrinterTranslation(*args, **kwargs) | |
2867 | ||
2868 | def SetPrintMode(*args, **kwargs): | |
2869 | """SetPrintMode(wxPrintMode printMode)""" | |
2870 | return _windows.PrintData_SetPrintMode(*args, **kwargs) | |
2871 | ||
2872 | def __nonzero__(self): return self.Ok() | |
2873 | ||
2874 | class PrintDataPtr(PrintData): | |
2875 | def __init__(self, this): | |
2876 | self.this = this | |
2877 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2878 | self.__class__ = PrintData | |
2879 | _windows.PrintData_swigregister(PrintDataPtr) | |
2880 | ||
2881 | class PageSetupDialogData(core.Object): | |
2882 | """""" | |
2883 | def __repr__(self): | |
2884 | return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2885 | def __init__(self, *args, **kwargs): | |
2886 | """__init__() -> PageSetupDialogData""" | |
2887 | newobj = _windows.new_PageSetupDialogData(*args, **kwargs) | |
2888 | self.this = newobj.this | |
2889 | self.thisown = 1 | |
2890 | del newobj.thisown | |
2891 | def __del__(self, destroy=_windows.delete_PageSetupDialogData): | |
2892 | """__del__()""" | |
2893 | try: | |
2894 | if self.thisown: destroy(self) | |
2895 | except: pass | |
2896 | ||
2897 | def EnableHelp(*args, **kwargs): | |
2898 | """EnableHelp(bool flag)""" | |
2899 | return _windows.PageSetupDialogData_EnableHelp(*args, **kwargs) | |
2900 | ||
2901 | def EnableMargins(*args, **kwargs): | |
2902 | """EnableMargins(bool flag)""" | |
2903 | return _windows.PageSetupDialogData_EnableMargins(*args, **kwargs) | |
2904 | ||
2905 | def EnableOrientation(*args, **kwargs): | |
2906 | """EnableOrientation(bool flag)""" | |
2907 | return _windows.PageSetupDialogData_EnableOrientation(*args, **kwargs) | |
2908 | ||
2909 | def EnablePaper(*args, **kwargs): | |
2910 | """EnablePaper(bool flag)""" | |
2911 | return _windows.PageSetupDialogData_EnablePaper(*args, **kwargs) | |
2912 | ||
2913 | def EnablePrinter(*args, **kwargs): | |
2914 | """EnablePrinter(bool flag)""" | |
2915 | return _windows.PageSetupDialogData_EnablePrinter(*args, **kwargs) | |
2916 | ||
2917 | def GetDefaultMinMargins(*args, **kwargs): | |
2918 | """GetDefaultMinMargins() -> bool""" | |
2919 | return _windows.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs) | |
2920 | ||
2921 | def GetEnableMargins(*args, **kwargs): | |
2922 | """GetEnableMargins() -> bool""" | |
2923 | return _windows.PageSetupDialogData_GetEnableMargins(*args, **kwargs) | |
2924 | ||
2925 | def GetEnableOrientation(*args, **kwargs): | |
2926 | """GetEnableOrientation() -> bool""" | |
2927 | return _windows.PageSetupDialogData_GetEnableOrientation(*args, **kwargs) | |
2928 | ||
2929 | def GetEnablePaper(*args, **kwargs): | |
2930 | """GetEnablePaper() -> bool""" | |
2931 | return _windows.PageSetupDialogData_GetEnablePaper(*args, **kwargs) | |
2932 | ||
2933 | def GetEnablePrinter(*args, **kwargs): | |
2934 | """GetEnablePrinter() -> bool""" | |
2935 | return _windows.PageSetupDialogData_GetEnablePrinter(*args, **kwargs) | |
2936 | ||
2937 | def GetEnableHelp(*args, **kwargs): | |
2938 | """GetEnableHelp() -> bool""" | |
2939 | return _windows.PageSetupDialogData_GetEnableHelp(*args, **kwargs) | |
2940 | ||
2941 | def GetDefaultInfo(*args, **kwargs): | |
2942 | """GetDefaultInfo() -> bool""" | |
2943 | return _windows.PageSetupDialogData_GetDefaultInfo(*args, **kwargs) | |
2944 | ||
2945 | def GetMarginTopLeft(*args, **kwargs): | |
2946 | """GetMarginTopLeft() -> Point""" | |
2947 | return _windows.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs) | |
2948 | ||
2949 | def GetMarginBottomRight(*args, **kwargs): | |
2950 | """GetMarginBottomRight() -> Point""" | |
2951 | return _windows.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs) | |
2952 | ||
2953 | def GetMinMarginTopLeft(*args, **kwargs): | |
2954 | """GetMinMarginTopLeft() -> Point""" | |
2955 | return _windows.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs) | |
2956 | ||
2957 | def GetMinMarginBottomRight(*args, **kwargs): | |
2958 | """GetMinMarginBottomRight() -> Point""" | |
2959 | return _windows.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs) | |
2960 | ||
2961 | def GetPaperId(*args, **kwargs): | |
2962 | """GetPaperId() -> wxPaperSize""" | |
2963 | return _windows.PageSetupDialogData_GetPaperId(*args, **kwargs) | |
2964 | ||
2965 | def GetPaperSize(*args, **kwargs): | |
2966 | """GetPaperSize() -> Size""" | |
2967 | return _windows.PageSetupDialogData_GetPaperSize(*args, **kwargs) | |
2968 | ||
2969 | def GetPrintData(*args, **kwargs): | |
2970 | """GetPrintData() -> PrintData""" | |
2971 | return _windows.PageSetupDialogData_GetPrintData(*args, **kwargs) | |
2972 | ||
2973 | def Ok(*args, **kwargs): | |
2974 | """Ok() -> bool""" | |
2975 | return _windows.PageSetupDialogData_Ok(*args, **kwargs) | |
2976 | ||
2977 | def SetDefaultInfo(*args, **kwargs): | |
2978 | """SetDefaultInfo(bool flag)""" | |
2979 | return _windows.PageSetupDialogData_SetDefaultInfo(*args, **kwargs) | |
2980 | ||
2981 | def SetDefaultMinMargins(*args, **kwargs): | |
2982 | """SetDefaultMinMargins(bool flag)""" | |
2983 | return _windows.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs) | |
2984 | ||
2985 | def SetMarginTopLeft(*args, **kwargs): | |
2986 | """SetMarginTopLeft(Point pt)""" | |
2987 | return _windows.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs) | |
2988 | ||
2989 | def SetMarginBottomRight(*args, **kwargs): | |
2990 | """SetMarginBottomRight(Point pt)""" | |
2991 | return _windows.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs) | |
2992 | ||
2993 | def SetMinMarginTopLeft(*args, **kwargs): | |
2994 | """SetMinMarginTopLeft(Point pt)""" | |
2995 | return _windows.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs) | |
2996 | ||
2997 | def SetMinMarginBottomRight(*args, **kwargs): | |
2998 | """SetMinMarginBottomRight(Point pt)""" | |
2999 | return _windows.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs) | |
3000 | ||
3001 | def SetPaperId(*args, **kwargs): | |
3002 | """SetPaperId(wxPaperSize id)""" | |
3003 | return _windows.PageSetupDialogData_SetPaperId(*args, **kwargs) | |
3004 | ||
3005 | def SetPaperSize(*args, **kwargs): | |
3006 | """SetPaperSize(Size size)""" | |
3007 | return _windows.PageSetupDialogData_SetPaperSize(*args, **kwargs) | |
3008 | ||
3009 | def SetPrintData(*args, **kwargs): | |
3010 | """SetPrintData(PrintData printData)""" | |
3011 | return _windows.PageSetupDialogData_SetPrintData(*args, **kwargs) | |
3012 | ||
3013 | def __nonzero__(self): return self.Ok() | |
3014 | ||
3015 | class PageSetupDialogDataPtr(PageSetupDialogData): | |
3016 | def __init__(self, this): | |
3017 | self.this = this | |
3018 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3019 | self.__class__ = PageSetupDialogData | |
3020 | _windows.PageSetupDialogData_swigregister(PageSetupDialogDataPtr) | |
3021 | ||
3022 | class PageSetupDialog(Dialog): | |
3023 | """""" | |
3024 | def __repr__(self): | |
3025 | return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3026 | def __init__(self, *args, **kwargs): | |
3027 | """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog""" | |
3028 | newobj = _windows.new_PageSetupDialog(*args, **kwargs) | |
3029 | self.this = newobj.this | |
3030 | self.thisown = 1 | |
3031 | del newobj.thisown | |
3032 | self._setOORInfo(self) | |
3033 | ||
3034 | def GetPageSetupData(*args, **kwargs): | |
3035 | """GetPageSetupData() -> PageSetupDialogData""" | |
3036 | return _windows.PageSetupDialog_GetPageSetupData(*args, **kwargs) | |
3037 | ||
3038 | def ShowModal(*args, **kwargs): | |
3039 | """ShowModal() -> int""" | |
3040 | return _windows.PageSetupDialog_ShowModal(*args, **kwargs) | |
3041 | ||
3042 | ||
3043 | class PageSetupDialogPtr(PageSetupDialog): | |
3044 | def __init__(self, this): | |
3045 | self.this = this | |
3046 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3047 | self.__class__ = PageSetupDialog | |
3048 | _windows.PageSetupDialog_swigregister(PageSetupDialogPtr) | |
3049 | ||
3050 | class PrintDialogData(core.Object): | |
3051 | """""" | |
3052 | def __repr__(self): | |
3053 | return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3054 | def __init__(self, *args, **kwargs): | |
3055 | """__init__() -> PrintDialogData""" | |
3056 | newobj = _windows.new_PrintDialogData(*args, **kwargs) | |
3057 | self.this = newobj.this | |
3058 | self.thisown = 1 | |
3059 | del newobj.thisown | |
3060 | def __del__(self, destroy=_windows.delete_PrintDialogData): | |
3061 | """__del__()""" | |
3062 | try: | |
3063 | if self.thisown: destroy(self) | |
3064 | except: pass | |
3065 | ||
3066 | def GetFromPage(*args, **kwargs): | |
3067 | """GetFromPage() -> int""" | |
3068 | return _windows.PrintDialogData_GetFromPage(*args, **kwargs) | |
3069 | ||
3070 | def GetToPage(*args, **kwargs): | |
3071 | """GetToPage() -> int""" | |
3072 | return _windows.PrintDialogData_GetToPage(*args, **kwargs) | |
3073 | ||
3074 | def GetMinPage(*args, **kwargs): | |
3075 | """GetMinPage() -> int""" | |
3076 | return _windows.PrintDialogData_GetMinPage(*args, **kwargs) | |
3077 | ||
3078 | def GetMaxPage(*args, **kwargs): | |
3079 | """GetMaxPage() -> int""" | |
3080 | return _windows.PrintDialogData_GetMaxPage(*args, **kwargs) | |
3081 | ||
3082 | def GetNoCopies(*args, **kwargs): | |
3083 | """GetNoCopies() -> int""" | |
3084 | return _windows.PrintDialogData_GetNoCopies(*args, **kwargs) | |
3085 | ||
3086 | def GetAllPages(*args, **kwargs): | |
3087 | """GetAllPages() -> bool""" | |
3088 | return _windows.PrintDialogData_GetAllPages(*args, **kwargs) | |
3089 | ||
3090 | def GetSelection(*args, **kwargs): | |
3091 | """GetSelection() -> bool""" | |
3092 | return _windows.PrintDialogData_GetSelection(*args, **kwargs) | |
3093 | ||
3094 | def GetCollate(*args, **kwargs): | |
3095 | """GetCollate() -> bool""" | |
3096 | return _windows.PrintDialogData_GetCollate(*args, **kwargs) | |
3097 | ||
3098 | def GetPrintToFile(*args, **kwargs): | |
3099 | """GetPrintToFile() -> bool""" | |
3100 | return _windows.PrintDialogData_GetPrintToFile(*args, **kwargs) | |
3101 | ||
3102 | def GetSetupDialog(*args, **kwargs): | |
3103 | """GetSetupDialog() -> bool""" | |
3104 | return _windows.PrintDialogData_GetSetupDialog(*args, **kwargs) | |
3105 | ||
3106 | def SetFromPage(*args, **kwargs): | |
3107 | """SetFromPage(int v)""" | |
3108 | return _windows.PrintDialogData_SetFromPage(*args, **kwargs) | |
3109 | ||
3110 | def SetToPage(*args, **kwargs): | |
3111 | """SetToPage(int v)""" | |
3112 | return _windows.PrintDialogData_SetToPage(*args, **kwargs) | |
3113 | ||
3114 | def SetMinPage(*args, **kwargs): | |
3115 | """SetMinPage(int v)""" | |
3116 | return _windows.PrintDialogData_SetMinPage(*args, **kwargs) | |
3117 | ||
3118 | def SetMaxPage(*args, **kwargs): | |
3119 | """SetMaxPage(int v)""" | |
3120 | return _windows.PrintDialogData_SetMaxPage(*args, **kwargs) | |
3121 | ||
3122 | def SetNoCopies(*args, **kwargs): | |
3123 | """SetNoCopies(int v)""" | |
3124 | return _windows.PrintDialogData_SetNoCopies(*args, **kwargs) | |
3125 | ||
3126 | def SetAllPages(*args, **kwargs): | |
3127 | """SetAllPages(bool flag)""" | |
3128 | return _windows.PrintDialogData_SetAllPages(*args, **kwargs) | |
3129 | ||
3130 | def SetSelection(*args, **kwargs): | |
3131 | """SetSelection(bool flag)""" | |
3132 | return _windows.PrintDialogData_SetSelection(*args, **kwargs) | |
3133 | ||
3134 | def SetCollate(*args, **kwargs): | |
3135 | """SetCollate(bool flag)""" | |
3136 | return _windows.PrintDialogData_SetCollate(*args, **kwargs) | |
3137 | ||
3138 | def SetPrintToFile(*args, **kwargs): | |
3139 | """SetPrintToFile(bool flag)""" | |
3140 | return _windows.PrintDialogData_SetPrintToFile(*args, **kwargs) | |
3141 | ||
3142 | def SetSetupDialog(*args, **kwargs): | |
3143 | """SetSetupDialog(bool flag)""" | |
3144 | return _windows.PrintDialogData_SetSetupDialog(*args, **kwargs) | |
3145 | ||
3146 | def EnablePrintToFile(*args, **kwargs): | |
3147 | """EnablePrintToFile(bool flag)""" | |
3148 | return _windows.PrintDialogData_EnablePrintToFile(*args, **kwargs) | |
3149 | ||
3150 | def EnableSelection(*args, **kwargs): | |
3151 | """EnableSelection(bool flag)""" | |
3152 | return _windows.PrintDialogData_EnableSelection(*args, **kwargs) | |
3153 | ||
3154 | def EnablePageNumbers(*args, **kwargs): | |
3155 | """EnablePageNumbers(bool flag)""" | |
3156 | return _windows.PrintDialogData_EnablePageNumbers(*args, **kwargs) | |
3157 | ||
3158 | def EnableHelp(*args, **kwargs): | |
3159 | """EnableHelp(bool flag)""" | |
3160 | return _windows.PrintDialogData_EnableHelp(*args, **kwargs) | |
3161 | ||
3162 | def GetEnablePrintToFile(*args, **kwargs): | |
3163 | """GetEnablePrintToFile() -> bool""" | |
3164 | return _windows.PrintDialogData_GetEnablePrintToFile(*args, **kwargs) | |
3165 | ||
3166 | def GetEnableSelection(*args, **kwargs): | |
3167 | """GetEnableSelection() -> bool""" | |
3168 | return _windows.PrintDialogData_GetEnableSelection(*args, **kwargs) | |
3169 | ||
3170 | def GetEnablePageNumbers(*args, **kwargs): | |
3171 | """GetEnablePageNumbers() -> bool""" | |
3172 | return _windows.PrintDialogData_GetEnablePageNumbers(*args, **kwargs) | |
3173 | ||
3174 | def GetEnableHelp(*args, **kwargs): | |
3175 | """GetEnableHelp() -> bool""" | |
3176 | return _windows.PrintDialogData_GetEnableHelp(*args, **kwargs) | |
3177 | ||
3178 | def Ok(*args, **kwargs): | |
3179 | """Ok() -> bool""" | |
3180 | return _windows.PrintDialogData_Ok(*args, **kwargs) | |
3181 | ||
3182 | def GetPrintData(*args, **kwargs): | |
3183 | """GetPrintData() -> PrintData""" | |
3184 | return _windows.PrintDialogData_GetPrintData(*args, **kwargs) | |
3185 | ||
3186 | def SetPrintData(*args, **kwargs): | |
3187 | """SetPrintData(PrintData printData)""" | |
3188 | return _windows.PrintDialogData_SetPrintData(*args, **kwargs) | |
3189 | ||
3190 | def __nonzero__(self): return self.Ok() | |
3191 | ||
3192 | class PrintDialogDataPtr(PrintDialogData): | |
3193 | def __init__(self, this): | |
3194 | self.this = this | |
3195 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3196 | self.__class__ = PrintDialogData | |
3197 | _windows.PrintDialogData_swigregister(PrintDialogDataPtr) | |
3198 | ||
3199 | class PrintDialog(Dialog): | |
3200 | """""" | |
3201 | def __repr__(self): | |
3202 | return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3203 | def __init__(self, *args, **kwargs): | |
3204 | """__init__(Window parent, PrintDialogData data=None) -> PrintDialog""" | |
3205 | newobj = _windows.new_PrintDialog(*args, **kwargs) | |
3206 | self.this = newobj.this | |
3207 | self.thisown = 1 | |
3208 | del newobj.thisown | |
3209 | self._setOORInfo(self) | |
3210 | ||
3211 | def GetPrintDialogData(*args, **kwargs): | |
3212 | """GetPrintDialogData() -> PrintDialogData""" | |
3213 | return _windows.PrintDialog_GetPrintDialogData(*args, **kwargs) | |
3214 | ||
3215 | def GetPrintDC(*args, **kwargs): | |
3216 | """GetPrintDC() -> wxDC""" | |
3217 | return _windows.PrintDialog_GetPrintDC(*args, **kwargs) | |
3218 | ||
3219 | def ShowModal(*args, **kwargs): | |
3220 | """ShowModal() -> int""" | |
3221 | return _windows.PrintDialog_ShowModal(*args, **kwargs) | |
3222 | ||
3223 | ||
3224 | class PrintDialogPtr(PrintDialog): | |
3225 | def __init__(self, this): | |
3226 | self.this = this | |
3227 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3228 | self.__class__ = PrintDialog | |
3229 | _windows.PrintDialog_swigregister(PrintDialogPtr) | |
3230 | ||
3231 | PRINTER_NO_ERROR = _windows.PRINTER_NO_ERROR | |
3232 | PRINTER_CANCELLED = _windows.PRINTER_CANCELLED | |
3233 | PRINTER_ERROR = _windows.PRINTER_ERROR | |
3234 | class Printer(core.Object): | |
3235 | """""" | |
3236 | def __repr__(self): | |
3237 | return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3238 | def __init__(self, *args, **kwargs): | |
3239 | """__init__(PrintDialogData data=None) -> Printer""" | |
3240 | newobj = _windows.new_Printer(*args, **kwargs) | |
3241 | self.this = newobj.this | |
3242 | self.thisown = 1 | |
3243 | del newobj.thisown | |
3244 | def __del__(self, destroy=_windows.delete_Printer): | |
3245 | """__del__()""" | |
3246 | try: | |
3247 | if self.thisown: destroy(self) | |
3248 | except: pass | |
3249 | ||
3250 | def CreateAbortWindow(*args, **kwargs): | |
3251 | """CreateAbortWindow(Window parent, Printout printout)""" | |
3252 | return _windows.Printer_CreateAbortWindow(*args, **kwargs) | |
3253 | ||
3254 | def GetPrintDialogData(*args, **kwargs): | |
3255 | """GetPrintDialogData() -> PrintDialogData""" | |
3256 | return _windows.Printer_GetPrintDialogData(*args, **kwargs) | |
3257 | ||
3258 | def Print(*args, **kwargs): | |
3259 | """Print(Window parent, Printout printout, int prompt=True) -> bool""" | |
3260 | return _windows.Printer_Print(*args, **kwargs) | |
3261 | ||
3262 | def PrintDialog(*args, **kwargs): | |
3263 | """PrintDialog(Window parent) -> wxDC""" | |
3264 | return _windows.Printer_PrintDialog(*args, **kwargs) | |
3265 | ||
3266 | def ReportError(*args, **kwargs): | |
3267 | """ReportError(Window parent, Printout printout, wxString message)""" | |
3268 | return _windows.Printer_ReportError(*args, **kwargs) | |
3269 | ||
3270 | def Setup(*args, **kwargs): | |
3271 | """Setup(Window parent) -> bool""" | |
3272 | return _windows.Printer_Setup(*args, **kwargs) | |
3273 | ||
3274 | def GetAbort(*args, **kwargs): | |
3275 | """GetAbort() -> bool""" | |
3276 | return _windows.Printer_GetAbort(*args, **kwargs) | |
3277 | ||
3278 | def GetLastError(*args, **kwargs): | |
3279 | """Printer.GetLastError() -> wxPrinterError""" | |
3280 | return _windows.Printer_GetLastError(*args, **kwargs) | |
3281 | ||
3282 | GetLastError = staticmethod(GetLastError) | |
3283 | ||
3284 | class PrinterPtr(Printer): | |
3285 | def __init__(self, this): | |
3286 | self.this = this | |
3287 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3288 | self.__class__ = Printer | |
3289 | _windows.Printer_swigregister(PrinterPtr) | |
3290 | ||
3291 | def Printer_GetLastError(*args, **kwargs): | |
3292 | """Printer_GetLastError() -> wxPrinterError""" | |
3293 | return _windows.Printer_GetLastError(*args, **kwargs) | |
3294 | ||
3295 | class Printout(core.Object): | |
3296 | """""" | |
3297 | def __repr__(self): | |
3298 | return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3299 | def __init__(self, *args, **kwargs): | |
3300 | """__init__(wxString title=wxPyPrintoutTitleStr) -> Printout""" | |
3301 | newobj = _windows.new_Printout(*args, **kwargs) | |
3302 | self.this = newobj.this | |
3303 | self.thisown = 1 | |
3304 | del newobj.thisown | |
3305 | self._setCallbackInfo(self, Printout) | |
3306 | ||
3307 | def _setCallbackInfo(*args, **kwargs): | |
3308 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
3309 | return _windows.Printout__setCallbackInfo(*args, **kwargs) | |
3310 | ||
3311 | def GetTitle(*args, **kwargs): | |
3312 | """GetTitle() -> wxString""" | |
3313 | return _windows.Printout_GetTitle(*args, **kwargs) | |
3314 | ||
3315 | def GetDC(*args, **kwargs): | |
3316 | """GetDC() -> wxDC""" | |
3317 | return _windows.Printout_GetDC(*args, **kwargs) | |
3318 | ||
3319 | def SetDC(*args, **kwargs): | |
3320 | """SetDC(wxDC dc)""" | |
3321 | return _windows.Printout_SetDC(*args, **kwargs) | |
3322 | ||
3323 | def SetPageSizePixels(*args, **kwargs): | |
3324 | """SetPageSizePixels(int w, int h)""" | |
3325 | return _windows.Printout_SetPageSizePixels(*args, **kwargs) | |
3326 | ||
3327 | def GetPageSizePixels(*args, **kwargs): | |
3328 | """GetPageSizePixels() -> (w, h)""" | |
3329 | return _windows.Printout_GetPageSizePixels(*args, **kwargs) | |
3330 | ||
3331 | def SetPageSizeMM(*args, **kwargs): | |
3332 | """SetPageSizeMM(int w, int h)""" | |
3333 | return _windows.Printout_SetPageSizeMM(*args, **kwargs) | |
3334 | ||
3335 | def GetPageSizeMM(*args, **kwargs): | |
3336 | """GetPageSizeMM() -> (w, h)""" | |
3337 | return _windows.Printout_GetPageSizeMM(*args, **kwargs) | |
3338 | ||
3339 | def SetPPIScreen(*args, **kwargs): | |
3340 | """SetPPIScreen(int x, int y)""" | |
3341 | return _windows.Printout_SetPPIScreen(*args, **kwargs) | |
3342 | ||
3343 | def GetPPIScreen(*args, **kwargs): | |
3344 | """GetPPIScreen() -> (x,y)""" | |
3345 | return _windows.Printout_GetPPIScreen(*args, **kwargs) | |
3346 | ||
3347 | def SetPPIPrinter(*args, **kwargs): | |
3348 | """SetPPIPrinter(int x, int y)""" | |
3349 | return _windows.Printout_SetPPIPrinter(*args, **kwargs) | |
3350 | ||
3351 | def GetPPIPrinter(*args, **kwargs): | |
3352 | """GetPPIPrinter() -> (x,y)""" | |
3353 | return _windows.Printout_GetPPIPrinter(*args, **kwargs) | |
3354 | ||
3355 | def IsPreview(*args, **kwargs): | |
3356 | """IsPreview() -> bool""" | |
3357 | return _windows.Printout_IsPreview(*args, **kwargs) | |
3358 | ||
3359 | def SetIsPreview(*args, **kwargs): | |
3360 | """SetIsPreview(bool p)""" | |
3361 | return _windows.Printout_SetIsPreview(*args, **kwargs) | |
3362 | ||
3363 | def base_OnBeginDocument(*args, **kwargs): | |
3364 | """base_OnBeginDocument(int startPage, int endPage) -> bool""" | |
3365 | return _windows.Printout_base_OnBeginDocument(*args, **kwargs) | |
3366 | ||
3367 | def base_OnEndDocument(*args, **kwargs): | |
3368 | """base_OnEndDocument()""" | |
3369 | return _windows.Printout_base_OnEndDocument(*args, **kwargs) | |
3370 | ||
3371 | def base_OnBeginPrinting(*args, **kwargs): | |
3372 | """base_OnBeginPrinting()""" | |
3373 | return _windows.Printout_base_OnBeginPrinting(*args, **kwargs) | |
3374 | ||
3375 | def base_OnEndPrinting(*args, **kwargs): | |
3376 | """base_OnEndPrinting()""" | |
3377 | return _windows.Printout_base_OnEndPrinting(*args, **kwargs) | |
3378 | ||
3379 | def base_OnPreparePrinting(*args, **kwargs): | |
3380 | """base_OnPreparePrinting()""" | |
3381 | return _windows.Printout_base_OnPreparePrinting(*args, **kwargs) | |
3382 | ||
3383 | def base_HasPage(*args, **kwargs): | |
3384 | """base_HasPage(int page) -> bool""" | |
3385 | return _windows.Printout_base_HasPage(*args, **kwargs) | |
3386 | ||
3387 | def base_GetPageInfo(*args, **kwargs): | |
3388 | """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)""" | |
3389 | return _windows.Printout_base_GetPageInfo(*args, **kwargs) | |
3390 | ||
3391 | ||
3392 | class PrintoutPtr(Printout): | |
3393 | def __init__(self, this): | |
3394 | self.this = this | |
3395 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3396 | self.__class__ = Printout | |
3397 | _windows.Printout_swigregister(PrintoutPtr) | |
3398 | ||
3399 | class PreviewCanvas(ScrolledWindow): | |
3400 | """""" | |
3401 | def __repr__(self): | |
3402 | return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3403 | def __init__(self, *args, **kwargs): | |
3404 | """__init__(PrintPreview preview, Window parent, Point pos=DefaultPosition, | |
3405 | Size size=DefaultSize, long style=0, | |
3406 | wxString name=wxPyPreviewCanvasNameStr) -> PreviewCanvas""" | |
3407 | newobj = _windows.new_PreviewCanvas(*args, **kwargs) | |
3408 | self.this = newobj.this | |
3409 | self.thisown = 1 | |
3410 | del newobj.thisown | |
3411 | self._setOORInfo(self) | |
3412 | ||
3413 | ||
3414 | class PreviewCanvasPtr(PreviewCanvas): | |
3415 | def __init__(self, this): | |
3416 | self.this = this | |
3417 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3418 | self.__class__ = PreviewCanvas | |
3419 | _windows.PreviewCanvas_swigregister(PreviewCanvasPtr) | |
3420 | ||
3421 | class PreviewFrame(Frame): | |
3422 | """""" | |
3423 | def __repr__(self): | |
3424 | return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3425 | def __init__(self, *args, **kwargs): | |
3426 | """__init__(PrintPreview preview, Frame parent, wxString title, | |
3427 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3428 | long style=DEFAULT_FRAME_STYLE, wxString name=wxPyFrameNameStr) -> PreviewFrame""" | |
3429 | newobj = _windows.new_PreviewFrame(*args, **kwargs) | |
3430 | self.this = newobj.this | |
3431 | self.thisown = 1 | |
3432 | del newobj.thisown | |
3433 | self._setOORInfo(self) | |
3434 | ||
3435 | def Initialize(*args, **kwargs): | |
3436 | """Initialize()""" | |
3437 | return _windows.PreviewFrame_Initialize(*args, **kwargs) | |
3438 | ||
3439 | def CreateControlBar(*args, **kwargs): | |
3440 | """CreateControlBar()""" | |
3441 | return _windows.PreviewFrame_CreateControlBar(*args, **kwargs) | |
3442 | ||
3443 | def CreateCanvas(*args, **kwargs): | |
3444 | """CreateCanvas()""" | |
3445 | return _windows.PreviewFrame_CreateCanvas(*args, **kwargs) | |
3446 | ||
3447 | def GetControlBar(*args, **kwargs): | |
3448 | """GetControlBar() -> PreviewControlBar""" | |
3449 | return _windows.PreviewFrame_GetControlBar(*args, **kwargs) | |
3450 | ||
3451 | ||
3452 | class PreviewFramePtr(PreviewFrame): | |
3453 | def __init__(self, this): | |
3454 | self.this = this | |
3455 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3456 | self.__class__ = PreviewFrame | |
3457 | _windows.PreviewFrame_swigregister(PreviewFramePtr) | |
3458 | ||
3459 | PREVIEW_PRINT = _windows.PREVIEW_PRINT | |
3460 | PREVIEW_PREVIOUS = _windows.PREVIEW_PREVIOUS | |
3461 | PREVIEW_NEXT = _windows.PREVIEW_NEXT | |
3462 | PREVIEW_ZOOM = _windows.PREVIEW_ZOOM | |
3463 | PREVIEW_FIRST = _windows.PREVIEW_FIRST | |
3464 | PREVIEW_LAST = _windows.PREVIEW_LAST | |
3465 | PREVIEW_GOTO = _windows.PREVIEW_GOTO | |
3466 | PREVIEW_DEFAULT = _windows.PREVIEW_DEFAULT | |
3467 | ID_PREVIEW_CLOSE = _windows.ID_PREVIEW_CLOSE | |
3468 | ID_PREVIEW_NEXT = _windows.ID_PREVIEW_NEXT | |
3469 | ID_PREVIEW_PREVIOUS = _windows.ID_PREVIEW_PREVIOUS | |
3470 | ID_PREVIEW_PRINT = _windows.ID_PREVIEW_PRINT | |
3471 | ID_PREVIEW_ZOOM = _windows.ID_PREVIEW_ZOOM | |
3472 | ID_PREVIEW_FIRST = _windows.ID_PREVIEW_FIRST | |
3473 | ID_PREVIEW_LAST = _windows.ID_PREVIEW_LAST | |
3474 | ID_PREVIEW_GOTO = _windows.ID_PREVIEW_GOTO | |
3475 | class PreviewControlBar(Panel): | |
3476 | """""" | |
3477 | def __repr__(self): | |
3478 | return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3479 | def __init__(self, *args, **kwargs): | |
3480 | """__init__(PrintPreview preview, long buttons, Window parent, | |
3481 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3482 | long style=TAB_TRAVERSAL, wxString name=PanelNameStr) -> PreviewControlBar""" | |
3483 | newobj = _windows.new_PreviewControlBar(*args, **kwargs) | |
3484 | self.this = newobj.this | |
3485 | self.thisown = 1 | |
3486 | del newobj.thisown | |
3487 | self._setOORInfo(self) | |
3488 | ||
3489 | def GetZoomControl(*args, **kwargs): | |
3490 | """GetZoomControl() -> int""" | |
3491 | return _windows.PreviewControlBar_GetZoomControl(*args, **kwargs) | |
3492 | ||
3493 | def SetZoomControl(*args, **kwargs): | |
3494 | """SetZoomControl(int zoom)""" | |
3495 | return _windows.PreviewControlBar_SetZoomControl(*args, **kwargs) | |
3496 | ||
3497 | def GetPrintPreview(*args, **kwargs): | |
3498 | """GetPrintPreview() -> PrintPreview""" | |
3499 | return _windows.PreviewControlBar_GetPrintPreview(*args, **kwargs) | |
3500 | ||
3501 | def OnNext(*args, **kwargs): | |
3502 | """OnNext()""" | |
3503 | return _windows.PreviewControlBar_OnNext(*args, **kwargs) | |
3504 | ||
3505 | def OnPrevious(*args, **kwargs): | |
3506 | """OnPrevious()""" | |
3507 | return _windows.PreviewControlBar_OnPrevious(*args, **kwargs) | |
3508 | ||
3509 | def OnFirst(*args, **kwargs): | |
3510 | """OnFirst()""" | |
3511 | return _windows.PreviewControlBar_OnFirst(*args, **kwargs) | |
3512 | ||
3513 | def OnLast(*args, **kwargs): | |
3514 | """OnLast()""" | |
3515 | return _windows.PreviewControlBar_OnLast(*args, **kwargs) | |
3516 | ||
3517 | def OnGoto(*args, **kwargs): | |
3518 | """OnGoto()""" | |
3519 | return _windows.PreviewControlBar_OnGoto(*args, **kwargs) | |
3520 | ||
3521 | ||
3522 | class PreviewControlBarPtr(PreviewControlBar): | |
3523 | def __init__(self, this): | |
3524 | self.this = this | |
3525 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3526 | self.__class__ = PreviewControlBar | |
3527 | _windows.PreviewControlBar_swigregister(PreviewControlBarPtr) | |
3528 | ||
3529 | class PrintPreview(core.Object): | |
3530 | """""" | |
3531 | def __repr__(self): | |
3532 | return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3533 | def __init__(self, *args, **kwargs): | |
3534 | """__init__(Printout printout, Printout printoutForPrinting, PrintData data=None) -> PrintPreview""" | |
3535 | newobj = _windows.new_PrintPreview(*args, **kwargs) | |
3536 | self.this = newobj.this | |
3537 | self.thisown = 1 | |
3538 | del newobj.thisown | |
3539 | def SetCurrentPage(*args, **kwargs): | |
3540 | """SetCurrentPage(int pageNum) -> bool""" | |
3541 | return _windows.PrintPreview_SetCurrentPage(*args, **kwargs) | |
3542 | ||
3543 | def GetCurrentPage(*args, **kwargs): | |
3544 | """GetCurrentPage() -> int""" | |
3545 | return _windows.PrintPreview_GetCurrentPage(*args, **kwargs) | |
3546 | ||
3547 | def SetPrintout(*args, **kwargs): | |
3548 | """SetPrintout(Printout printout)""" | |
3549 | return _windows.PrintPreview_SetPrintout(*args, **kwargs) | |
3550 | ||
3551 | def GetPrintout(*args, **kwargs): | |
3552 | """GetPrintout() -> Printout""" | |
3553 | return _windows.PrintPreview_GetPrintout(*args, **kwargs) | |
3554 | ||
3555 | def GetPrintoutForPrinting(*args, **kwargs): | |
3556 | """GetPrintoutForPrinting() -> Printout""" | |
3557 | return _windows.PrintPreview_GetPrintoutForPrinting(*args, **kwargs) | |
3558 | ||
3559 | def SetFrame(*args, **kwargs): | |
3560 | """SetFrame(Frame frame)""" | |
3561 | return _windows.PrintPreview_SetFrame(*args, **kwargs) | |
3562 | ||
3563 | def SetCanvas(*args, **kwargs): | |
3564 | """SetCanvas(PreviewCanvas canvas)""" | |
3565 | return _windows.PrintPreview_SetCanvas(*args, **kwargs) | |
3566 | ||
3567 | def GetFrame(*args, **kwargs): | |
3568 | """GetFrame() -> Frame""" | |
3569 | return _windows.PrintPreview_GetFrame(*args, **kwargs) | |
3570 | ||
3571 | def GetCanvas(*args, **kwargs): | |
3572 | """GetCanvas() -> PreviewCanvas""" | |
3573 | return _windows.PrintPreview_GetCanvas(*args, **kwargs) | |
3574 | ||
3575 | def PaintPage(*args, **kwargs): | |
3576 | """PaintPage(PreviewCanvas canvas, wxDC dc) -> bool""" | |
3577 | return _windows.PrintPreview_PaintPage(*args, **kwargs) | |
3578 | ||
3579 | def DrawBlankPage(*args, **kwargs): | |
3580 | """DrawBlankPage(PreviewCanvas canvas, wxDC dc) -> bool""" | |
3581 | return _windows.PrintPreview_DrawBlankPage(*args, **kwargs) | |
3582 | ||
3583 | def RenderPage(*args, **kwargs): | |
3584 | """RenderPage(int pageNum) -> bool""" | |
3585 | return _windows.PrintPreview_RenderPage(*args, **kwargs) | |
3586 | ||
3587 | def AdjustScrollbars(*args, **kwargs): | |
3588 | """AdjustScrollbars(PreviewCanvas canvas)""" | |
3589 | return _windows.PrintPreview_AdjustScrollbars(*args, **kwargs) | |
3590 | ||
3591 | def GetPrintDialogData(*args, **kwargs): | |
3592 | """GetPrintDialogData() -> PrintDialogData""" | |
3593 | return _windows.PrintPreview_GetPrintDialogData(*args, **kwargs) | |
3594 | ||
3595 | def SetZoom(*args, **kwargs): | |
3596 | """SetZoom(int percent)""" | |
3597 | return _windows.PrintPreview_SetZoom(*args, **kwargs) | |
3598 | ||
3599 | def GetZoom(*args, **kwargs): | |
3600 | """GetZoom() -> int""" | |
3601 | return _windows.PrintPreview_GetZoom(*args, **kwargs) | |
3602 | ||
3603 | def GetMaxPage(*args, **kwargs): | |
3604 | """GetMaxPage() -> int""" | |
3605 | return _windows.PrintPreview_GetMaxPage(*args, **kwargs) | |
3606 | ||
3607 | def GetMinPage(*args, **kwargs): | |
3608 | """GetMinPage() -> int""" | |
3609 | return _windows.PrintPreview_GetMinPage(*args, **kwargs) | |
3610 | ||
3611 | def Ok(*args, **kwargs): | |
3612 | """Ok() -> bool""" | |
3613 | return _windows.PrintPreview_Ok(*args, **kwargs) | |
3614 | ||
3615 | def SetOk(*args, **kwargs): | |
3616 | """SetOk(bool ok)""" | |
3617 | return _windows.PrintPreview_SetOk(*args, **kwargs) | |
3618 | ||
3619 | def Print(*args, **kwargs): | |
3620 | """Print(bool interactive) -> bool""" | |
3621 | return _windows.PrintPreview_Print(*args, **kwargs) | |
3622 | ||
3623 | def DetermineScaling(*args, **kwargs): | |
3624 | """DetermineScaling()""" | |
3625 | return _windows.PrintPreview_DetermineScaling(*args, **kwargs) | |
3626 | ||
3627 | def __nonzero__(self): return self.Ok() | |
3628 | ||
3629 | class PrintPreviewPtr(PrintPreview): | |
3630 | def __init__(self, this): | |
3631 | self.this = this | |
3632 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3633 | self.__class__ = PrintPreview | |
3634 | _windows.PrintPreview_swigregister(PrintPreviewPtr) | |
3635 | ||
3636 | class PyPrintPreview(PrintPreview): | |
3637 | """""" | |
3638 | def __repr__(self): | |
3639 | return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3640 | def __init__(self, *args, **kwargs): | |
3641 | """__init__(Printout printout, Printout printoutForPrinting, PrintData data=None) -> PyPrintPreview""" | |
3642 | newobj = _windows.new_PyPrintPreview(*args, **kwargs) | |
3643 | self.this = newobj.this | |
3644 | self.thisown = 1 | |
3645 | del newobj.thisown | |
3646 | self._setCallbackInfo(self, PyPrintPreview) | |
3647 | ||
3648 | def _setCallbackInfo(*args, **kwargs): | |
3649 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
3650 | return _windows.PyPrintPreview__setCallbackInfo(*args, **kwargs) | |
3651 | ||
3652 | def base_SetCurrentPage(*args, **kwargs): | |
3653 | """base_SetCurrentPage(int pageNum) -> bool""" | |
3654 | return _windows.PyPrintPreview_base_SetCurrentPage(*args, **kwargs) | |
3655 | ||
3656 | def base_PaintPage(*args, **kwargs): | |
3657 | """base_PaintPage(PreviewCanvas canvas, wxDC dc) -> bool""" | |
3658 | return _windows.PyPrintPreview_base_PaintPage(*args, **kwargs) | |
3659 | ||
3660 | def base_DrawBlankPage(*args, **kwargs): | |
3661 | """base_DrawBlankPage(PreviewCanvas canvas, wxDC dc) -> bool""" | |
3662 | return _windows.PyPrintPreview_base_DrawBlankPage(*args, **kwargs) | |
3663 | ||
3664 | def base_RenderPage(*args, **kwargs): | |
3665 | """base_RenderPage(int pageNum) -> bool""" | |
3666 | return _windows.PyPrintPreview_base_RenderPage(*args, **kwargs) | |
3667 | ||
3668 | def base_SetZoom(*args, **kwargs): | |
3669 | """base_SetZoom(int percent)""" | |
3670 | return _windows.PyPrintPreview_base_SetZoom(*args, **kwargs) | |
3671 | ||
3672 | def base_Print(*args, **kwargs): | |
3673 | """base_Print(bool interactive) -> bool""" | |
3674 | return _windows.PyPrintPreview_base_Print(*args, **kwargs) | |
3675 | ||
3676 | def base_DetermineScaling(*args, **kwargs): | |
3677 | """base_DetermineScaling()""" | |
3678 | return _windows.PyPrintPreview_base_DetermineScaling(*args, **kwargs) | |
3679 | ||
3680 | ||
3681 | class PyPrintPreviewPtr(PyPrintPreview): | |
3682 | def __init__(self, this): | |
3683 | self.this = this | |
3684 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3685 | self.__class__ = PyPrintPreview | |
3686 | _windows.PyPrintPreview_swigregister(PyPrintPreviewPtr) | |
3687 | ||
3688 | class PyPreviewFrame(PreviewFrame): | |
3689 | """""" | |
3690 | def __repr__(self): | |
3691 | return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3692 | def __init__(self, *args, **kwargs): | |
3693 | """__init__(PrintPreview preview, Frame parent, wxString title, | |
3694 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3695 | long style=DEFAULT_FRAME_STYLE, wxString name=wxPyFrameNameStr) -> PyPreviewFrame""" | |
3696 | newobj = _windows.new_PyPreviewFrame(*args, **kwargs) | |
3697 | self.this = newobj.this | |
3698 | self.thisown = 1 | |
3699 | del newobj.thisown | |
3700 | self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self) | |
3701 | ||
3702 | def _setCallbackInfo(*args, **kwargs): | |
3703 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
3704 | return _windows.PyPreviewFrame__setCallbackInfo(*args, **kwargs) | |
3705 | ||
3706 | def SetPreviewCanvas(*args, **kwargs): | |
3707 | """SetPreviewCanvas(PreviewCanvas canvas)""" | |
3708 | return _windows.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs) | |
3709 | ||
3710 | def SetControlBar(*args, **kwargs): | |
3711 | """SetControlBar(PreviewControlBar bar)""" | |
3712 | return _windows.PyPreviewFrame_SetControlBar(*args, **kwargs) | |
3713 | ||
3714 | def base_Initialize(*args, **kwargs): | |
3715 | """base_Initialize()""" | |
3716 | return _windows.PyPreviewFrame_base_Initialize(*args, **kwargs) | |
3717 | ||
3718 | def base_CreateCanvas(*args, **kwargs): | |
3719 | """base_CreateCanvas()""" | |
3720 | return _windows.PyPreviewFrame_base_CreateCanvas(*args, **kwargs) | |
3721 | ||
3722 | def base_CreateControlBar(*args, **kwargs): | |
3723 | """base_CreateControlBar()""" | |
3724 | return _windows.PyPreviewFrame_base_CreateControlBar(*args, **kwargs) | |
3725 | ||
3726 | ||
3727 | class PyPreviewFramePtr(PyPreviewFrame): | |
3728 | def __init__(self, this): | |
3729 | self.this = this | |
3730 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3731 | self.__class__ = PyPreviewFrame | |
3732 | _windows.PyPreviewFrame_swigregister(PyPreviewFramePtr) | |
3733 | ||
3734 | class PyPreviewControlBar(PreviewControlBar): | |
3735 | """""" | |
3736 | def __repr__(self): | |
3737 | return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3738 | def __init__(self, *args, **kwargs): | |
3739 | """__init__(PrintPreview preview, long buttons, Window parent, | |
3740 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3741 | long style=0, wxString name=PanelNameStr) -> PyPreviewControlBar""" | |
3742 | newobj = _windows.new_PyPreviewControlBar(*args, **kwargs) | |
3743 | self.this = newobj.this | |
3744 | self.thisown = 1 | |
3745 | del newobj.thisown | |
3746 | self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self) | |
3747 | ||
3748 | def _setCallbackInfo(*args, **kwargs): | |
3749 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
3750 | return _windows.PyPreviewControlBar__setCallbackInfo(*args, **kwargs) | |
3751 | ||
3752 | def SetPrintPreview(*args, **kwargs): | |
3753 | """SetPrintPreview(PrintPreview preview)""" | |
3754 | return _windows.PyPreviewControlBar_SetPrintPreview(*args, **kwargs) | |
3755 | ||
3756 | def base_CreateButtons(*args, **kwargs): | |
3757 | """base_CreateButtons()""" | |
3758 | return _windows.PyPreviewControlBar_base_CreateButtons(*args, **kwargs) | |
3759 | ||
3760 | def base_SetZoomControl(*args, **kwargs): | |
3761 | """base_SetZoomControl(int zoom)""" | |
3762 | return _windows.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs) | |
3763 | ||
3764 | ||
3765 | class PyPreviewControlBarPtr(PyPreviewControlBar): | |
3766 | def __init__(self, this): | |
3767 | self.this = this | |
3768 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3769 | self.__class__ = PyPreviewControlBar | |
3770 | _windows.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr) | |
3771 | ||
3772 |