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