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