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