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