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