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