]>
Commit | Line | Data |
---|---|---|
70551f47 | 1 | # This file was created automatically by SWIG. |
d14a1e28 RD |
2 | # Don't modify this file, modify the SWIG interface instead. |
3 | ||
4 | import _misc | |
5 | ||
6 | import core | |
7 | wx = core | |
8 | #--------------------------------------------------------------------------- | |
9 | ||
10 | SYS_OEM_FIXED_FONT = _misc.SYS_OEM_FIXED_FONT | |
11 | SYS_ANSI_FIXED_FONT = _misc.SYS_ANSI_FIXED_FONT | |
12 | SYS_ANSI_VAR_FONT = _misc.SYS_ANSI_VAR_FONT | |
13 | SYS_SYSTEM_FONT = _misc.SYS_SYSTEM_FONT | |
14 | SYS_DEVICE_DEFAULT_FONT = _misc.SYS_DEVICE_DEFAULT_FONT | |
15 | SYS_DEFAULT_PALETTE = _misc.SYS_DEFAULT_PALETTE | |
16 | SYS_SYSTEM_FIXED_FONT = _misc.SYS_SYSTEM_FIXED_FONT | |
17 | SYS_DEFAULT_GUI_FONT = _misc.SYS_DEFAULT_GUI_FONT | |
18 | SYS_ICONTITLE_FONT = _misc.SYS_ICONTITLE_FONT | |
19 | SYS_COLOUR_SCROLLBAR = _misc.SYS_COLOUR_SCROLLBAR | |
20 | SYS_COLOUR_BACKGROUND = _misc.SYS_COLOUR_BACKGROUND | |
21 | SYS_COLOUR_DESKTOP = _misc.SYS_COLOUR_DESKTOP | |
22 | SYS_COLOUR_ACTIVECAPTION = _misc.SYS_COLOUR_ACTIVECAPTION | |
23 | SYS_COLOUR_INACTIVECAPTION = _misc.SYS_COLOUR_INACTIVECAPTION | |
24 | SYS_COLOUR_MENU = _misc.SYS_COLOUR_MENU | |
25 | SYS_COLOUR_WINDOW = _misc.SYS_COLOUR_WINDOW | |
26 | SYS_COLOUR_WINDOWFRAME = _misc.SYS_COLOUR_WINDOWFRAME | |
27 | SYS_COLOUR_MENUTEXT = _misc.SYS_COLOUR_MENUTEXT | |
28 | SYS_COLOUR_WINDOWTEXT = _misc.SYS_COLOUR_WINDOWTEXT | |
29 | SYS_COLOUR_CAPTIONTEXT = _misc.SYS_COLOUR_CAPTIONTEXT | |
30 | SYS_COLOUR_ACTIVEBORDER = _misc.SYS_COLOUR_ACTIVEBORDER | |
31 | SYS_COLOUR_INACTIVEBORDER = _misc.SYS_COLOUR_INACTIVEBORDER | |
32 | SYS_COLOUR_APPWORKSPACE = _misc.SYS_COLOUR_APPWORKSPACE | |
33 | SYS_COLOUR_HIGHLIGHT = _misc.SYS_COLOUR_HIGHLIGHT | |
34 | SYS_COLOUR_HIGHLIGHTTEXT = _misc.SYS_COLOUR_HIGHLIGHTTEXT | |
35 | SYS_COLOUR_BTNFACE = _misc.SYS_COLOUR_BTNFACE | |
36 | SYS_COLOUR_3DFACE = _misc.SYS_COLOUR_3DFACE | |
37 | SYS_COLOUR_BTNSHADOW = _misc.SYS_COLOUR_BTNSHADOW | |
38 | SYS_COLOUR_3DSHADOW = _misc.SYS_COLOUR_3DSHADOW | |
39 | SYS_COLOUR_GRAYTEXT = _misc.SYS_COLOUR_GRAYTEXT | |
40 | SYS_COLOUR_BTNTEXT = _misc.SYS_COLOUR_BTNTEXT | |
41 | SYS_COLOUR_INACTIVECAPTIONTEXT = _misc.SYS_COLOUR_INACTIVECAPTIONTEXT | |
42 | SYS_COLOUR_BTNHIGHLIGHT = _misc.SYS_COLOUR_BTNHIGHLIGHT | |
43 | SYS_COLOUR_BTNHILIGHT = _misc.SYS_COLOUR_BTNHILIGHT | |
44 | SYS_COLOUR_3DHIGHLIGHT = _misc.SYS_COLOUR_3DHIGHLIGHT | |
45 | SYS_COLOUR_3DHILIGHT = _misc.SYS_COLOUR_3DHILIGHT | |
46 | SYS_COLOUR_3DDKSHADOW = _misc.SYS_COLOUR_3DDKSHADOW | |
47 | SYS_COLOUR_3DLIGHT = _misc.SYS_COLOUR_3DLIGHT | |
48 | SYS_COLOUR_INFOTEXT = _misc.SYS_COLOUR_INFOTEXT | |
49 | SYS_COLOUR_INFOBK = _misc.SYS_COLOUR_INFOBK | |
50 | SYS_COLOUR_LISTBOX = _misc.SYS_COLOUR_LISTBOX | |
51 | SYS_COLOUR_HOTLIGHT = _misc.SYS_COLOUR_HOTLIGHT | |
52 | SYS_COLOUR_GRADIENTACTIVECAPTION = _misc.SYS_COLOUR_GRADIENTACTIVECAPTION | |
53 | SYS_COLOUR_GRADIENTINACTIVECAPTION = _misc.SYS_COLOUR_GRADIENTINACTIVECAPTION | |
54 | SYS_COLOUR_MENUHILIGHT = _misc.SYS_COLOUR_MENUHILIGHT | |
55 | SYS_COLOUR_MENUBAR = _misc.SYS_COLOUR_MENUBAR | |
56 | SYS_COLOUR_MAX = _misc.SYS_COLOUR_MAX | |
57 | SYS_MOUSE_BUTTONS = _misc.SYS_MOUSE_BUTTONS | |
58 | SYS_BORDER_X = _misc.SYS_BORDER_X | |
59 | SYS_BORDER_Y = _misc.SYS_BORDER_Y | |
60 | SYS_CURSOR_X = _misc.SYS_CURSOR_X | |
61 | SYS_CURSOR_Y = _misc.SYS_CURSOR_Y | |
62 | SYS_DCLICK_X = _misc.SYS_DCLICK_X | |
63 | SYS_DCLICK_Y = _misc.SYS_DCLICK_Y | |
64 | SYS_DRAG_X = _misc.SYS_DRAG_X | |
65 | SYS_DRAG_Y = _misc.SYS_DRAG_Y | |
66 | SYS_EDGE_X = _misc.SYS_EDGE_X | |
67 | SYS_EDGE_Y = _misc.SYS_EDGE_Y | |
68 | SYS_HSCROLL_ARROW_X = _misc.SYS_HSCROLL_ARROW_X | |
69 | SYS_HSCROLL_ARROW_Y = _misc.SYS_HSCROLL_ARROW_Y | |
70 | SYS_HTHUMB_X = _misc.SYS_HTHUMB_X | |
71 | SYS_ICON_X = _misc.SYS_ICON_X | |
72 | SYS_ICON_Y = _misc.SYS_ICON_Y | |
73 | SYS_ICONSPACING_X = _misc.SYS_ICONSPACING_X | |
74 | SYS_ICONSPACING_Y = _misc.SYS_ICONSPACING_Y | |
75 | SYS_WINDOWMIN_X = _misc.SYS_WINDOWMIN_X | |
76 | SYS_WINDOWMIN_Y = _misc.SYS_WINDOWMIN_Y | |
77 | SYS_SCREEN_X = _misc.SYS_SCREEN_X | |
78 | SYS_SCREEN_Y = _misc.SYS_SCREEN_Y | |
79 | SYS_FRAMESIZE_X = _misc.SYS_FRAMESIZE_X | |
80 | SYS_FRAMESIZE_Y = _misc.SYS_FRAMESIZE_Y | |
81 | SYS_SMALLICON_X = _misc.SYS_SMALLICON_X | |
82 | SYS_SMALLICON_Y = _misc.SYS_SMALLICON_Y | |
83 | SYS_HSCROLL_Y = _misc.SYS_HSCROLL_Y | |
84 | SYS_VSCROLL_X = _misc.SYS_VSCROLL_X | |
85 | SYS_VSCROLL_ARROW_X = _misc.SYS_VSCROLL_ARROW_X | |
86 | SYS_VSCROLL_ARROW_Y = _misc.SYS_VSCROLL_ARROW_Y | |
87 | SYS_VTHUMB_Y = _misc.SYS_VTHUMB_Y | |
88 | SYS_CAPTION_Y = _misc.SYS_CAPTION_Y | |
89 | SYS_MENU_Y = _misc.SYS_MENU_Y | |
90 | SYS_NETWORK_PRESENT = _misc.SYS_NETWORK_PRESENT | |
91 | SYS_PENWINDOWS_PRESENT = _misc.SYS_PENWINDOWS_PRESENT | |
92 | SYS_SHOW_SOUNDS = _misc.SYS_SHOW_SOUNDS | |
93 | SYS_SWAP_BUTTONS = _misc.SYS_SWAP_BUTTONS | |
94 | SYS_CAN_DRAW_FRAME_DECORATIONS = _misc.SYS_CAN_DRAW_FRAME_DECORATIONS | |
95 | SYS_CAN_ICONIZE_FRAME = _misc.SYS_CAN_ICONIZE_FRAME | |
96 | SYS_SCREEN_NONE = _misc.SYS_SCREEN_NONE | |
97 | SYS_SCREEN_TINY = _misc.SYS_SCREEN_TINY | |
98 | SYS_SCREEN_PDA = _misc.SYS_SCREEN_PDA | |
99 | SYS_SCREEN_SMALL = _misc.SYS_SCREEN_SMALL | |
100 | SYS_SCREEN_DESKTOP = _misc.SYS_SCREEN_DESKTOP | |
101 | class SystemSettings(object): | |
d14a1e28 RD |
102 | def __init__(self): raise RuntimeError, "No constructor defined" |
103 | def __repr__(self): | |
104 | return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
e811c8ce RD |
105 | def GetColour(*args, **kwargs): |
106 | """SystemSettings.GetColour(wxSystemColour index) -> wxColour""" | |
107 | return _misc.SystemSettings_GetColour(*args, **kwargs) | |
108 | ||
109 | GetColour = staticmethod(GetColour) | |
110 | def GetFont(*args, **kwargs): | |
111 | """SystemSettings.GetFont(wxSystemFont index) -> wxFont""" | |
112 | return _misc.SystemSettings_GetFont(*args, **kwargs) | |
113 | ||
114 | GetFont = staticmethod(GetFont) | |
115 | def GetMetric(*args, **kwargs): | |
116 | """SystemSettings.GetMetric(wxSystemMetric index) -> int""" | |
117 | return _misc.SystemSettings_GetMetric(*args, **kwargs) | |
118 | ||
119 | GetMetric = staticmethod(GetMetric) | |
120 | def HasFeature(*args, **kwargs): | |
121 | """SystemSettings.HasFeature(wxSystemFeature index) -> bool""" | |
122 | return _misc.SystemSettings_HasFeature(*args, **kwargs) | |
123 | ||
124 | HasFeature = staticmethod(HasFeature) | |
125 | def GetScreenType(*args, **kwargs): | |
126 | """SystemSettings.GetScreenType() -> wxSystemScreenType""" | |
127 | return _misc.SystemSettings_GetScreenType(*args, **kwargs) | |
128 | ||
129 | GetScreenType = staticmethod(GetScreenType) | |
130 | def SetScreenType(*args, **kwargs): | |
131 | """SystemSettings.SetScreenType(wxSystemScreenType screen)""" | |
132 | return _misc.SystemSettings_SetScreenType(*args, **kwargs) | |
133 | ||
134 | SetScreenType = staticmethod(SetScreenType) | |
d14a1e28 RD |
135 | |
136 | class SystemSettingsPtr(SystemSettings): | |
137 | def __init__(self, this): | |
9df61a29 | 138 | self.this = this |
d14a1e28 RD |
139 | if not hasattr(self,"thisown"): self.thisown = 0 |
140 | self.__class__ = SystemSettings | |
141 | _misc.SystemSettings_swigregister(SystemSettingsPtr) | |
142 | ||
e811c8ce RD |
143 | def SystemSettings_GetColour(*args, **kwargs): |
144 | """SystemSettings_GetColour(wxSystemColour index) -> wxColour""" | |
145 | return _misc.SystemSettings_GetColour(*args, **kwargs) | |
d14a1e28 | 146 | |
e811c8ce RD |
147 | def SystemSettings_GetFont(*args, **kwargs): |
148 | """SystemSettings_GetFont(wxSystemFont index) -> wxFont""" | |
149 | return _misc.SystemSettings_GetFont(*args, **kwargs) | |
d14a1e28 | 150 | |
e811c8ce RD |
151 | def SystemSettings_GetMetric(*args, **kwargs): |
152 | """SystemSettings_GetMetric(wxSystemMetric index) -> int""" | |
153 | return _misc.SystemSettings_GetMetric(*args, **kwargs) | |
d14a1e28 | 154 | |
e811c8ce RD |
155 | def SystemSettings_HasFeature(*args, **kwargs): |
156 | """SystemSettings_HasFeature(wxSystemFeature index) -> bool""" | |
157 | return _misc.SystemSettings_HasFeature(*args, **kwargs) | |
d14a1e28 | 158 | |
e811c8ce RD |
159 | def SystemSettings_GetScreenType(*args, **kwargs): |
160 | """SystemSettings_GetScreenType() -> wxSystemScreenType""" | |
161 | return _misc.SystemSettings_GetScreenType(*args, **kwargs) | |
d14a1e28 | 162 | |
e811c8ce RD |
163 | def SystemSettings_SetScreenType(*args, **kwargs): |
164 | """SystemSettings_SetScreenType(wxSystemScreenType screen)""" | |
165 | return _misc.SystemSettings_SetScreenType(*args, **kwargs) | |
d14a1e28 RD |
166 | |
167 | class SystemOptions(core.Object): | |
e811c8ce RD |
168 | def __repr__(self): |
169 | return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 170 | def __init__(self, *args, **kwargs): |
e811c8ce | 171 | """__init__() -> SystemOptions""" |
d14a1e28 RD |
172 | newobj = _misc.new_SystemOptions(*args, **kwargs) |
173 | self.this = newobj.this | |
174 | self.thisown = 1 | |
175 | del newobj.thisown | |
e811c8ce RD |
176 | def SetOption(*args, **kwargs): |
177 | """SystemOptions.SetOption(wxString name, wxString value)""" | |
178 | return _misc.SystemOptions_SetOption(*args, **kwargs) | |
179 | ||
180 | SetOption = staticmethod(SetOption) | |
181 | def SetOptionInt(*args, **kwargs): | |
182 | """SystemOptions.SetOptionInt(wxString name, int value)""" | |
183 | return _misc.SystemOptions_SetOptionInt(*args, **kwargs) | |
184 | ||
185 | SetOptionInt = staticmethod(SetOptionInt) | |
186 | def GetOption(*args, **kwargs): | |
187 | """SystemOptions.GetOption(wxString name) -> wxString""" | |
188 | return _misc.SystemOptions_GetOption(*args, **kwargs) | |
189 | ||
190 | GetOption = staticmethod(GetOption) | |
191 | def GetOptionInt(*args, **kwargs): | |
192 | """SystemOptions.GetOptionInt(wxString name) -> int""" | |
193 | return _misc.SystemOptions_GetOptionInt(*args, **kwargs) | |
194 | ||
195 | GetOptionInt = staticmethod(GetOptionInt) | |
196 | def HasOption(*args, **kwargs): | |
197 | """SystemOptions.HasOption(wxString name) -> bool""" | |
198 | return _misc.SystemOptions_HasOption(*args, **kwargs) | |
199 | ||
200 | HasOption = staticmethod(HasOption) | |
d14a1e28 RD |
201 | |
202 | class SystemOptionsPtr(SystemOptions): | |
203 | def __init__(self, this): | |
9df61a29 | 204 | self.this = this |
d14a1e28 RD |
205 | if not hasattr(self,"thisown"): self.thisown = 0 |
206 | self.__class__ = SystemOptions | |
207 | _misc.SystemOptions_swigregister(SystemOptionsPtr) | |
208 | ||
e811c8ce RD |
209 | def SystemOptions_SetOption(*args, **kwargs): |
210 | """SystemOptions_SetOption(wxString name, wxString value)""" | |
211 | return _misc.SystemOptions_SetOption(*args, **kwargs) | |
d14a1e28 | 212 | |
e811c8ce RD |
213 | def SystemOptions_SetOptionInt(*args, **kwargs): |
214 | """SystemOptions_SetOptionInt(wxString name, int value)""" | |
215 | return _misc.SystemOptions_SetOptionInt(*args, **kwargs) | |
d14a1e28 | 216 | |
e811c8ce RD |
217 | def SystemOptions_GetOption(*args, **kwargs): |
218 | """SystemOptions_GetOption(wxString name) -> wxString""" | |
219 | return _misc.SystemOptions_GetOption(*args, **kwargs) | |
d14a1e28 | 220 | |
e811c8ce RD |
221 | def SystemOptions_GetOptionInt(*args, **kwargs): |
222 | """SystemOptions_GetOptionInt(wxString name) -> int""" | |
223 | return _misc.SystemOptions_GetOptionInt(*args, **kwargs) | |
d14a1e28 | 224 | |
e811c8ce RD |
225 | def SystemOptions_HasOption(*args, **kwargs): |
226 | """SystemOptions_HasOption(wxString name) -> bool""" | |
227 | return _misc.SystemOptions_HasOption(*args, **kwargs) | |
d14a1e28 RD |
228 | |
229 | #--------------------------------------------------------------------------- | |
230 | ||
231 | ||
e811c8ce RD |
232 | def NewId(*args, **kwargs): |
233 | """NewId() -> long""" | |
234 | return _misc.NewId(*args, **kwargs) | |
d14a1e28 | 235 | |
e811c8ce RD |
236 | def RegisterId(*args, **kwargs): |
237 | """RegisterId(long id)""" | |
238 | return _misc.RegisterId(*args, **kwargs) | |
d14a1e28 | 239 | |
e811c8ce RD |
240 | def GetCurrentId(*args, **kwargs): |
241 | """GetCurrentId() -> long""" | |
242 | return _misc.GetCurrentId(*args, **kwargs) | |
d14a1e28 | 243 | |
e811c8ce RD |
244 | def Bell(*args, **kwargs): |
245 | """Bell()""" | |
246 | return _misc.Bell(*args, **kwargs) | |
d14a1e28 | 247 | |
e811c8ce RD |
248 | def EndBusyCursor(*args, **kwargs): |
249 | """EndBusyCursor()""" | |
250 | return _misc.EndBusyCursor(*args, **kwargs) | |
d14a1e28 | 251 | |
e811c8ce RD |
252 | def GetElapsedTime(*args, **kwargs): |
253 | """GetElapsedTime(bool resetTimer=True) -> long""" | |
254 | return _misc.GetElapsedTime(*args, **kwargs) | |
d14a1e28 | 255 | |
e811c8ce | 256 | def GetMousePosition(*args, **kwargs): |
322913ce | 257 | """GetMousePosition() -> (x,y)""" |
e811c8ce | 258 | return _misc.GetMousePosition(*args, **kwargs) |
d14a1e28 | 259 | |
e811c8ce RD |
260 | def IsBusy(*args, **kwargs): |
261 | """IsBusy() -> bool""" | |
262 | return _misc.IsBusy(*args, **kwargs) | |
d14a1e28 | 263 | |
e811c8ce RD |
264 | def Now(*args, **kwargs): |
265 | """Now() -> wxString""" | |
266 | return _misc.Now(*args, **kwargs) | |
d14a1e28 | 267 | |
e811c8ce RD |
268 | def Shell(*args, **kwargs): |
269 | """Shell(wxString command=wxPyEmptyString) -> bool""" | |
270 | return _misc.Shell(*args, **kwargs) | |
d14a1e28 | 271 | |
e811c8ce RD |
272 | def StartTimer(*args, **kwargs): |
273 | """StartTimer()""" | |
274 | return _misc.StartTimer(*args, **kwargs) | |
d14a1e28 | 275 | |
e811c8ce | 276 | def GetOsVersion(*args, **kwargs): |
322913ce | 277 | """GetOsVersion() -> (platform, major, minor)""" |
e811c8ce | 278 | return _misc.GetOsVersion(*args, **kwargs) |
d14a1e28 | 279 | |
e811c8ce RD |
280 | def GetOsDescription(*args, **kwargs): |
281 | """GetOsDescription() -> wxString""" | |
282 | return _misc.GetOsDescription(*args, **kwargs) | |
d14a1e28 | 283 | |
e811c8ce RD |
284 | def GetFreeMemory(*args, **kwargs): |
285 | """GetFreeMemory() -> long""" | |
286 | return _misc.GetFreeMemory(*args, **kwargs) | |
d14a1e28 RD |
287 | SHUTDOWN_POWEROFF = _misc.SHUTDOWN_POWEROFF |
288 | SHUTDOWN_REBOOT = _misc.SHUTDOWN_REBOOT | |
289 | ||
e811c8ce RD |
290 | def Shutdown(*args, **kwargs): |
291 | """Shutdown(wxShutdownFlags wFlags) -> bool""" | |
292 | return _misc.Shutdown(*args, **kwargs) | |
293 | ||
294 | def Sleep(*args, **kwargs): | |
295 | """Sleep(int secs)""" | |
296 | return _misc.Sleep(*args, **kwargs) | |
297 | ||
298 | def Usleep(*args, **kwargs): | |
299 | """Usleep(unsigned long milliseconds)""" | |
300 | return _misc.Usleep(*args, **kwargs) | |
301 | ||
302 | def EnableTopLevelWindows(*args, **kwargs): | |
303 | """EnableTopLevelWindows(bool enable)""" | |
304 | return _misc.EnableTopLevelWindows(*args, **kwargs) | |
305 | ||
306 | def StripMenuCodes(*args, **kwargs): | |
307 | """StripMenuCodes(wxString in) -> wxString""" | |
308 | return _misc.StripMenuCodes(*args, **kwargs) | |
309 | ||
310 | def GetEmailAddress(*args, **kwargs): | |
311 | """GetEmailAddress() -> wxString""" | |
312 | return _misc.GetEmailAddress(*args, **kwargs) | |
313 | ||
314 | def GetHostName(*args, **kwargs): | |
315 | """GetHostName() -> wxString""" | |
316 | return _misc.GetHostName(*args, **kwargs) | |
317 | ||
318 | def GetFullHostName(*args, **kwargs): | |
319 | """GetFullHostName() -> wxString""" | |
320 | return _misc.GetFullHostName(*args, **kwargs) | |
321 | ||
322 | def GetUserId(*args, **kwargs): | |
323 | """GetUserId() -> wxString""" | |
324 | return _misc.GetUserId(*args, **kwargs) | |
325 | ||
326 | def GetUserName(*args, **kwargs): | |
327 | """GetUserName() -> wxString""" | |
328 | return _misc.GetUserName(*args, **kwargs) | |
329 | ||
330 | def GetHomeDir(*args, **kwargs): | |
331 | """GetHomeDir() -> wxString""" | |
332 | return _misc.GetHomeDir(*args, **kwargs) | |
333 | ||
334 | def GetUserHome(*args, **kwargs): | |
335 | """GetUserHome(wxString user=wxPyEmptyString) -> wxString""" | |
336 | return _misc.GetUserHome(*args, **kwargs) | |
337 | ||
338 | def GetProcessId(*args, **kwargs): | |
339 | """GetProcessId() -> unsigned long""" | |
340 | return _misc.GetProcessId(*args, **kwargs) | |
341 | ||
342 | def Trap(*args, **kwargs): | |
343 | """Trap()""" | |
344 | return _misc.Trap(*args, **kwargs) | |
345 | ||
346 | def FileSelector(*args, **kwargs): | |
0df68c9f RD |
347 | """ |
348 | FileSelector(wxString message=wxPyFileSelectorPromptStr, wxString default_path=wxPyEmptyString, | |
349 | wxString default_filename=wxPyEmptyString, | |
350 | wxString default_extension=wxPyEmptyString, | |
351 | wxString wildcard=wxPyFileSelectorDefaultWildcardStr, | |
352 | int flags=0, | |
353 | Window parent=None, int x=-1, int y=-1) -> wxString | |
354 | """ | |
e811c8ce RD |
355 | return _misc.FileSelector(*args, **kwargs) |
356 | ||
357 | def LoadFileSelector(*args, **kwargs): | |
0df68c9f RD |
358 | """ |
359 | LoadFileSelector(wxString what, wxString extension, wxString default_name=wxPyEmptyString, | |
360 | Window parent=None) -> wxString | |
361 | """ | |
e811c8ce RD |
362 | return _misc.LoadFileSelector(*args, **kwargs) |
363 | ||
364 | def SaveFileSelector(*args, **kwargs): | |
0df68c9f RD |
365 | """ |
366 | SaveFileSelector(wxString what, wxString extension, wxString default_name=wxPyEmptyString, | |
367 | Window parent=None) -> wxString | |
368 | """ | |
e811c8ce RD |
369 | return _misc.SaveFileSelector(*args, **kwargs) |
370 | ||
371 | def DirSelector(*args, **kwargs): | |
0df68c9f RD |
372 | """ |
373 | DirSelector(wxString message=wxPyDirSelectorPromptStr, wxString defaultPath=wxPyEmptyString, | |
374 | long style=DD_DEFAULT_STYLE, | |
375 | Point pos=DefaultPosition, Window parent=None) -> wxString | |
376 | """ | |
e811c8ce RD |
377 | return _misc.DirSelector(*args, **kwargs) |
378 | ||
379 | def GetTextFromUser(*args, **kwargs): | |
0df68c9f RD |
380 | """ |
381 | GetTextFromUser(wxString message, wxString caption=wxPyEmptyString, | |
382 | wxString default_value=wxPyEmptyString, Window parent=None, | |
383 | int x=-1, int y=-1, bool centre=True) -> wxString | |
384 | """ | |
e811c8ce RD |
385 | return _misc.GetTextFromUser(*args, **kwargs) |
386 | ||
387 | def GetPasswordFromUser(*args, **kwargs): | |
0df68c9f RD |
388 | """ |
389 | GetPasswordFromUser(wxString message, wxString caption=wxPyEmptyString, | |
390 | wxString default_value=wxPyEmptyString, Window parent=None) -> wxString | |
391 | """ | |
e811c8ce RD |
392 | return _misc.GetPasswordFromUser(*args, **kwargs) |
393 | ||
394 | def GetSingleChoice(*args, **kwargs): | |
0df68c9f RD |
395 | """ |
396 | GetSingleChoice(wxString message, wxString caption, int choices, wxString choices_array, | |
397 | Window parent=None, int x=-1, | |
398 | int y=-1, bool centre=True, int width=150, | |
399 | int height=200) -> wxString | |
400 | """ | |
e811c8ce RD |
401 | return _misc.GetSingleChoice(*args, **kwargs) |
402 | ||
403 | def GetSingleChoiceIndex(*args, **kwargs): | |
0df68c9f RD |
404 | """ |
405 | GetSingleChoiceIndex(wxString message, wxString caption, int choices, wxString choices_array, | |
406 | Window parent=None, int x=-1, | |
407 | int y=-1, bool centre=True, int width=150, | |
408 | int height=200) -> int | |
409 | """ | |
e811c8ce RD |
410 | return _misc.GetSingleChoiceIndex(*args, **kwargs) |
411 | ||
412 | def MessageBox(*args, **kwargs): | |
0df68c9f RD |
413 | """ |
414 | MessageBox(wxString message, wxString caption=wxPyEmptyString, | |
415 | int style=wxOK|wxCENTRE, Window parent=None, | |
416 | int x=-1, int y=-1) -> int | |
417 | """ | |
e811c8ce RD |
418 | return _misc.MessageBox(*args, **kwargs) |
419 | ||
420 | def GetNumberFromUser(*args, **kwargs): | |
0df68c9f RD |
421 | """ |
422 | GetNumberFromUser(wxString message, wxString prompt, wxString caption, | |
423 | long value, long min=0, long max=100, Window parent=None, | |
424 | Point pos=DefaultPosition) -> long | |
425 | """ | |
e811c8ce RD |
426 | return _misc.GetNumberFromUser(*args, **kwargs) |
427 | ||
428 | def ColourDisplay(*args, **kwargs): | |
429 | """ColourDisplay() -> bool""" | |
430 | return _misc.ColourDisplay(*args, **kwargs) | |
431 | ||
432 | def DisplayDepth(*args, **kwargs): | |
433 | """DisplayDepth() -> int""" | |
434 | return _misc.DisplayDepth(*args, **kwargs) | |
435 | ||
436 | def GetDisplayDepth(*args, **kwargs): | |
437 | """GetDisplayDepth() -> int""" | |
438 | return _misc.GetDisplayDepth(*args, **kwargs) | |
439 | ||
440 | def DisplaySize(*args, **kwargs): | |
322913ce | 441 | """DisplaySize() -> (width, height)""" |
e811c8ce RD |
442 | return _misc.DisplaySize(*args, **kwargs) |
443 | ||
444 | def GetDisplaySize(*args, **kwargs): | |
445 | """GetDisplaySize() -> Size""" | |
446 | return _misc.GetDisplaySize(*args, **kwargs) | |
447 | ||
448 | def DisplaySizeMM(*args, **kwargs): | |
322913ce | 449 | """DisplaySizeMM() -> (width, height)""" |
e811c8ce RD |
450 | return _misc.DisplaySizeMM(*args, **kwargs) |
451 | ||
452 | def GetDisplaySizeMM(*args, **kwargs): | |
453 | """GetDisplaySizeMM() -> Size""" | |
454 | return _misc.GetDisplaySizeMM(*args, **kwargs) | |
455 | ||
456 | def ClientDisplayRect(*args, **kwargs): | |
322913ce | 457 | """ClientDisplayRect() -> (x, y, width, height)""" |
e811c8ce RD |
458 | return _misc.ClientDisplayRect(*args, **kwargs) |
459 | ||
460 | def GetClientDisplayRect(*args, **kwargs): | |
461 | """GetClientDisplayRect() -> Rect""" | |
462 | return _misc.GetClientDisplayRect(*args, **kwargs) | |
463 | ||
464 | def SetCursor(*args, **kwargs): | |
465 | """SetCursor(wxCursor cursor)""" | |
466 | return _misc.SetCursor(*args, **kwargs) | |
467 | ||
468 | def BeginBusyCursor(*args, **kwargs): | |
469 | """BeginBusyCursor(wxCursor cursor=wxHOURGLASS_CURSOR)""" | |
470 | return _misc.BeginBusyCursor(*args, **kwargs) | |
471 | ||
472 | def GetActiveWindow(*args, **kwargs): | |
473 | """GetActiveWindow() -> Window""" | |
474 | return _misc.GetActiveWindow(*args, **kwargs) | |
475 | ||
476 | def GenericFindWindowAtPoint(*args, **kwargs): | |
477 | """GenericFindWindowAtPoint(Point pt) -> Window""" | |
478 | return _misc.GenericFindWindowAtPoint(*args, **kwargs) | |
479 | ||
480 | def FindWindowAtPoint(*args, **kwargs): | |
481 | """FindWindowAtPoint(Point pt) -> Window""" | |
482 | return _misc.FindWindowAtPoint(*args, **kwargs) | |
483 | ||
484 | def GetTopLevelParent(*args, **kwargs): | |
485 | """GetTopLevelParent(Window win) -> Window""" | |
486 | return _misc.GetTopLevelParent(*args, **kwargs) | |
487 | ||
488 | def WakeUpMainThread(*args, **kwargs): | |
489 | """WakeUpMainThread()""" | |
490 | return _misc.WakeUpMainThread(*args, **kwargs) | |
491 | ||
492 | def MutexGuiEnter(*args, **kwargs): | |
493 | """MutexGuiEnter()""" | |
494 | return _misc.MutexGuiEnter(*args, **kwargs) | |
495 | ||
496 | def MutexGuiLeave(*args, **kwargs): | |
497 | """MutexGuiLeave()""" | |
498 | return _misc.MutexGuiLeave(*args, **kwargs) | |
d14a1e28 | 499 | class MutexGuiLocker(object): |
e811c8ce RD |
500 | def __repr__(self): |
501 | return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 502 | def __init__(self, *args, **kwargs): |
e811c8ce | 503 | """__init__() -> MutexGuiLocker""" |
d14a1e28 RD |
504 | newobj = _misc.new_MutexGuiLocker(*args, **kwargs) |
505 | self.this = newobj.this | |
506 | self.thisown = 1 | |
507 | del newobj.thisown | |
508 | def __del__(self, destroy=_misc.delete_MutexGuiLocker): | |
e811c8ce | 509 | """__del__()""" |
d14a1e28 RD |
510 | try: |
511 | if self.thisown: destroy(self) | |
512 | except: pass | |
e811c8ce | 513 | |
d14a1e28 RD |
514 | |
515 | class MutexGuiLockerPtr(MutexGuiLocker): | |
516 | def __init__(self, this): | |
70551f47 | 517 | self.this = this |
d14a1e28 RD |
518 | if not hasattr(self,"thisown"): self.thisown = 0 |
519 | self.__class__ = MutexGuiLocker | |
520 | _misc.MutexGuiLocker_swigregister(MutexGuiLockerPtr) | |
521 | ||
522 | ||
e811c8ce RD |
523 | def Thread_IsMain(*args, **kwargs): |
524 | """Thread_IsMain() -> bool""" | |
525 | return _misc.Thread_IsMain(*args, **kwargs) | |
d14a1e28 RD |
526 | #--------------------------------------------------------------------------- |
527 | ||
528 | class ToolTip(core.Object): | |
e811c8ce RD |
529 | def __repr__(self): |
530 | return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 531 | def __init__(self, *args, **kwargs): |
e811c8ce | 532 | """__init__(wxString tip) -> ToolTip""" |
d14a1e28 RD |
533 | newobj = _misc.new_ToolTip(*args, **kwargs) |
534 | self.this = newobj.this | |
535 | self.thisown = 1 | |
536 | del newobj.thisown | |
e811c8ce RD |
537 | def SetTip(*args, **kwargs): |
538 | """SetTip(wxString tip)""" | |
539 | return _misc.ToolTip_SetTip(*args, **kwargs) | |
540 | ||
541 | def GetTip(*args, **kwargs): | |
542 | """GetTip() -> wxString""" | |
543 | return _misc.ToolTip_GetTip(*args, **kwargs) | |
544 | ||
545 | def GetWindow(*args, **kwargs): | |
546 | """GetWindow() -> Window""" | |
547 | return _misc.ToolTip_GetWindow(*args, **kwargs) | |
548 | ||
549 | def Enable(*args, **kwargs): | |
550 | """ToolTip.Enable(bool flag)""" | |
551 | return _misc.ToolTip_Enable(*args, **kwargs) | |
552 | ||
553 | Enable = staticmethod(Enable) | |
554 | def SetDelay(*args, **kwargs): | |
555 | """ToolTip.SetDelay(long milliseconds)""" | |
556 | return _misc.ToolTip_SetDelay(*args, **kwargs) | |
557 | ||
558 | SetDelay = staticmethod(SetDelay) | |
d14a1e28 RD |
559 | |
560 | class ToolTipPtr(ToolTip): | |
561 | def __init__(self, this): | |
562 | self.this = this | |
563 | if not hasattr(self,"thisown"): self.thisown = 0 | |
564 | self.__class__ = ToolTip | |
565 | _misc.ToolTip_swigregister(ToolTipPtr) | |
566 | ||
e811c8ce RD |
567 | def ToolTip_Enable(*args, **kwargs): |
568 | """ToolTip_Enable(bool flag)""" | |
569 | return _misc.ToolTip_Enable(*args, **kwargs) | |
d14a1e28 | 570 | |
e811c8ce RD |
571 | def ToolTip_SetDelay(*args, **kwargs): |
572 | """ToolTip_SetDelay(long milliseconds)""" | |
573 | return _misc.ToolTip_SetDelay(*args, **kwargs) | |
d14a1e28 RD |
574 | |
575 | class Caret(object): | |
e811c8ce RD |
576 | def __repr__(self): |
577 | return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 578 | def __init__(self, *args, **kwargs): |
e811c8ce | 579 | """__init__(Window window, Size size) -> Caret""" |
d14a1e28 RD |
580 | newobj = _misc.new_Caret(*args, **kwargs) |
581 | self.this = newobj.this | |
582 | self.thisown = 1 | |
583 | del newobj.thisown | |
584 | def __del__(self, destroy=_misc.delete_Caret): | |
e811c8ce | 585 | """__del__()""" |
ab2208b5 | 586 | try: |
d14a1e28 RD |
587 | if self.thisown: destroy(self) |
588 | except: pass | |
e811c8ce RD |
589 | |
590 | def IsOk(*args, **kwargs): | |
591 | """IsOk() -> bool""" | |
592 | return _misc.Caret_IsOk(*args, **kwargs) | |
593 | ||
594 | def IsVisible(*args, **kwargs): | |
595 | """IsVisible() -> bool""" | |
596 | return _misc.Caret_IsVisible(*args, **kwargs) | |
597 | ||
e811c8ce RD |
598 | def GetPosition(*args, **kwargs): |
599 | """GetPosition() -> Point""" | |
600 | return _misc.Caret_GetPosition(*args, **kwargs) | |
601 | ||
322913ce RD |
602 | def GetPositionTuple(*args, **kwargs): |
603 | """GetPositionTuple() -> (x,y)""" | |
604 | return _misc.Caret_GetPositionTuple(*args, **kwargs) | |
e811c8ce RD |
605 | |
606 | def GetSize(*args, **kwargs): | |
607 | """GetSize() -> Size""" | |
608 | return _misc.Caret_GetSize(*args, **kwargs) | |
609 | ||
322913ce RD |
610 | def GetSizeTuple(*args, **kwargs): |
611 | """GetSizeTuple() -> (width, height)""" | |
612 | return _misc.Caret_GetSizeTuple(*args, **kwargs) | |
613 | ||
e811c8ce RD |
614 | def GetWindow(*args, **kwargs): |
615 | """GetWindow() -> Window""" | |
616 | return _misc.Caret_GetWindow(*args, **kwargs) | |
617 | ||
618 | def MoveXY(*args, **kwargs): | |
619 | """MoveXY(int x, int y)""" | |
620 | return _misc.Caret_MoveXY(*args, **kwargs) | |
621 | ||
622 | def Move(*args, **kwargs): | |
623 | """Move(Point pt)""" | |
624 | return _misc.Caret_Move(*args, **kwargs) | |
625 | ||
626 | def SetSizeWH(*args, **kwargs): | |
627 | """SetSizeWH(int width, int height)""" | |
628 | return _misc.Caret_SetSizeWH(*args, **kwargs) | |
629 | ||
630 | def SetSize(*args, **kwargs): | |
631 | """SetSize(Size size)""" | |
632 | return _misc.Caret_SetSize(*args, **kwargs) | |
633 | ||
634 | def Show(*args, **kwargs): | |
635 | """Show(int show=True)""" | |
636 | return _misc.Caret_Show(*args, **kwargs) | |
637 | ||
638 | def Hide(*args, **kwargs): | |
639 | """Hide()""" | |
640 | return _misc.Caret_Hide(*args, **kwargs) | |
641 | ||
322913ce | 642 | def __nonzero__(self): return self.IsOk() |
d14a1e28 RD |
643 | |
644 | class CaretPtr(Caret): | |
645 | def __init__(self, this): | |
646 | self.this = this | |
647 | if not hasattr(self,"thisown"): self.thisown = 0 | |
648 | self.__class__ = Caret | |
649 | _misc.Caret_swigregister(CaretPtr) | |
650 | ||
651 | ||
e811c8ce RD |
652 | def Caret_GetBlinkTime(*args, **kwargs): |
653 | """Caret_GetBlinkTime() -> int""" | |
654 | return _misc.Caret_GetBlinkTime(*args, **kwargs) | |
d14a1e28 | 655 | |
e811c8ce RD |
656 | def Caret_SetBlinkTime(*args, **kwargs): |
657 | """Caret_SetBlinkTime(int milliseconds)""" | |
658 | return _misc.Caret_SetBlinkTime(*args, **kwargs) | |
d14a1e28 | 659 | class BusyCursor(object): |
e811c8ce RD |
660 | def __repr__(self): |
661 | return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 662 | def __init__(self, *args, **kwargs): |
e811c8ce | 663 | """__init__(wxCursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor""" |
d14a1e28 RD |
664 | newobj = _misc.new_BusyCursor(*args, **kwargs) |
665 | self.this = newobj.this | |
666 | self.thisown = 1 | |
667 | del newobj.thisown | |
668 | def __del__(self, destroy=_misc.delete_BusyCursor): | |
e811c8ce | 669 | """__del__()""" |
ab2208b5 | 670 | try: |
d14a1e28 RD |
671 | if self.thisown: destroy(self) |
672 | except: pass | |
e811c8ce | 673 | |
d14a1e28 RD |
674 | |
675 | class BusyCursorPtr(BusyCursor): | |
676 | def __init__(self, this): | |
677 | self.this = this | |
678 | if not hasattr(self,"thisown"): self.thisown = 0 | |
679 | self.__class__ = BusyCursor | |
680 | _misc.BusyCursor_swigregister(BusyCursorPtr) | |
681 | ||
682 | class WindowDisabler(object): | |
e811c8ce RD |
683 | def __repr__(self): |
684 | return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 685 | def __init__(self, *args, **kwargs): |
e811c8ce | 686 | """__init__(Window winToSkip=None) -> WindowDisabler""" |
d14a1e28 RD |
687 | newobj = _misc.new_WindowDisabler(*args, **kwargs) |
688 | self.this = newobj.this | |
70551f47 | 689 | self.thisown = 1 |
d14a1e28 RD |
690 | del newobj.thisown |
691 | def __del__(self, destroy=_misc.delete_WindowDisabler): | |
e811c8ce | 692 | """__del__()""" |
d14a1e28 RD |
693 | try: |
694 | if self.thisown: destroy(self) | |
695 | except: pass | |
e811c8ce | 696 | |
70551f47 | 697 | |
d14a1e28 RD |
698 | class WindowDisablerPtr(WindowDisabler): |
699 | def __init__(self, this): | |
700 | self.this = this | |
701 | if not hasattr(self,"thisown"): self.thisown = 0 | |
702 | self.__class__ = WindowDisabler | |
703 | _misc.WindowDisabler_swigregister(WindowDisablerPtr) | |
704 | ||
705 | class BusyInfo(core.Object): | |
e811c8ce RD |
706 | def __repr__(self): |
707 | return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 708 | def __init__(self, *args, **kwargs): |
e811c8ce | 709 | """__init__(wxString message) -> BusyInfo""" |
d14a1e28 RD |
710 | newobj = _misc.new_BusyInfo(*args, **kwargs) |
711 | self.this = newobj.this | |
712 | self.thisown = 1 | |
713 | del newobj.thisown | |
714 | def __del__(self, destroy=_misc.delete_BusyInfo): | |
e811c8ce | 715 | """__del__()""" |
d14a1e28 RD |
716 | try: |
717 | if self.thisown: destroy(self) | |
718 | except: pass | |
e811c8ce | 719 | |
70551f47 | 720 | |
d14a1e28 RD |
721 | class BusyInfoPtr(BusyInfo): |
722 | def __init__(self, this): | |
723 | self.this = this | |
724 | if not hasattr(self,"thisown"): self.thisown = 0 | |
725 | self.__class__ = BusyInfo | |
726 | _misc.BusyInfo_swigregister(BusyInfoPtr) | |
727 | ||
728 | class StopWatch(object): | |
e811c8ce RD |
729 | def __repr__(self): |
730 | return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 731 | def __init__(self, *args, **kwargs): |
e811c8ce | 732 | """__init__() -> StopWatch""" |
d14a1e28 RD |
733 | newobj = _misc.new_StopWatch(*args, **kwargs) |
734 | self.this = newobj.this | |
735 | self.thisown = 1 | |
736 | del newobj.thisown | |
e811c8ce RD |
737 | def Start(*args, **kwargs): |
738 | """Start(long t0=0)""" | |
739 | return _misc.StopWatch_Start(*args, **kwargs) | |
740 | ||
741 | def Pause(*args, **kwargs): | |
742 | """Pause()""" | |
743 | return _misc.StopWatch_Pause(*args, **kwargs) | |
744 | ||
745 | def Resume(*args, **kwargs): | |
746 | """Resume()""" | |
747 | return _misc.StopWatch_Resume(*args, **kwargs) | |
748 | ||
749 | def Time(*args, **kwargs): | |
750 | """Time() -> long""" | |
751 | return _misc.StopWatch_Time(*args, **kwargs) | |
752 | ||
70551f47 | 753 | |
d14a1e28 RD |
754 | class StopWatchPtr(StopWatch): |
755 | def __init__(self, this): | |
756 | self.this = this | |
757 | if not hasattr(self,"thisown"): self.thisown = 0 | |
758 | self.__class__ = StopWatch | |
759 | _misc.StopWatch_swigregister(StopWatchPtr) | |
760 | ||
761 | class FileHistory(core.Object): | |
e811c8ce RD |
762 | def __repr__(self): |
763 | return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 764 | def __init__(self, *args, **kwargs): |
e811c8ce | 765 | """__init__(int maxFiles=9) -> FileHistory""" |
d14a1e28 RD |
766 | newobj = _misc.new_FileHistory(*args, **kwargs) |
767 | self.this = newobj.this | |
768 | self.thisown = 1 | |
769 | del newobj.thisown | |
770 | def __del__(self, destroy=_misc.delete_FileHistory): | |
e811c8ce | 771 | """__del__()""" |
d14a1e28 RD |
772 | try: |
773 | if self.thisown: destroy(self) | |
774 | except: pass | |
e811c8ce RD |
775 | |
776 | def AddFileToHistory(*args, **kwargs): | |
777 | """AddFileToHistory(wxString file)""" | |
778 | return _misc.FileHistory_AddFileToHistory(*args, **kwargs) | |
779 | ||
780 | def RemoveFileFromHistory(*args, **kwargs): | |
781 | """RemoveFileFromHistory(int i)""" | |
782 | return _misc.FileHistory_RemoveFileFromHistory(*args, **kwargs) | |
783 | ||
784 | def GetMaxFiles(*args, **kwargs): | |
785 | """GetMaxFiles() -> int""" | |
786 | return _misc.FileHistory_GetMaxFiles(*args, **kwargs) | |
787 | ||
788 | def UseMenu(*args, **kwargs): | |
789 | """UseMenu(Menu menu)""" | |
790 | return _misc.FileHistory_UseMenu(*args, **kwargs) | |
791 | ||
792 | def RemoveMenu(*args, **kwargs): | |
793 | """RemoveMenu(Menu menu)""" | |
794 | return _misc.FileHistory_RemoveMenu(*args, **kwargs) | |
795 | ||
796 | def Load(*args, **kwargs): | |
797 | """Load(ConfigBase config)""" | |
798 | return _misc.FileHistory_Load(*args, **kwargs) | |
799 | ||
800 | def Save(*args, **kwargs): | |
801 | """Save(ConfigBase config)""" | |
802 | return _misc.FileHistory_Save(*args, **kwargs) | |
803 | ||
804 | def AddFilesToMenu(*args, **kwargs): | |
805 | """AddFilesToMenu()""" | |
806 | return _misc.FileHistory_AddFilesToMenu(*args, **kwargs) | |
807 | ||
808 | def AddFilesToThisMenu(*args, **kwargs): | |
809 | """AddFilesToThisMenu(Menu menu)""" | |
810 | return _misc.FileHistory_AddFilesToThisMenu(*args, **kwargs) | |
811 | ||
812 | def GetHistoryFile(*args, **kwargs): | |
813 | """GetHistoryFile(int i) -> wxString""" | |
814 | return _misc.FileHistory_GetHistoryFile(*args, **kwargs) | |
815 | ||
816 | def GetCount(*args, **kwargs): | |
817 | """GetCount() -> int""" | |
818 | return _misc.FileHistory_GetCount(*args, **kwargs) | |
819 | ||
70551f47 | 820 | |
d14a1e28 RD |
821 | class FileHistoryPtr(FileHistory): |
822 | def __init__(self, this): | |
b67a9327 | 823 | self.this = this |
d14a1e28 RD |
824 | if not hasattr(self,"thisown"): self.thisown = 0 |
825 | self.__class__ = FileHistory | |
826 | _misc.FileHistory_swigregister(FileHistoryPtr) | |
827 | ||
828 | class SingleInstanceChecker(object): | |
e811c8ce RD |
829 | def __repr__(self): |
830 | return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 831 | def __init__(self, *args, **kwargs): |
e811c8ce | 832 | """__init__(wxString name, wxString path=wxPyEmptyString) -> SingleInstanceChecker""" |
d14a1e28 RD |
833 | newobj = _misc.new_SingleInstanceChecker(*args, **kwargs) |
834 | self.this = newobj.this | |
835 | self.thisown = 1 | |
836 | del newobj.thisown | |
837 | def __del__(self, destroy=_misc.delete_SingleInstanceChecker): | |
e811c8ce | 838 | """__del__()""" |
d14a1e28 RD |
839 | try: |
840 | if self.thisown: destroy(self) | |
841 | except: pass | |
e811c8ce RD |
842 | |
843 | def Create(*args, **kwargs): | |
844 | """Create(wxString name, wxString path=wxPyEmptyString) -> bool""" | |
845 | return _misc.SingleInstanceChecker_Create(*args, **kwargs) | |
846 | ||
847 | def IsAnotherRunning(*args, **kwargs): | |
848 | """IsAnotherRunning() -> bool""" | |
849 | return _misc.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs) | |
850 | ||
b67a9327 | 851 | |
d14a1e28 RD |
852 | class SingleInstanceCheckerPtr(SingleInstanceChecker): |
853 | def __init__(self, this): | |
854 | self.this = this | |
855 | if not hasattr(self,"thisown"): self.thisown = 0 | |
856 | self.__class__ = SingleInstanceChecker | |
857 | _misc.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr) | |
858 | ||
859 | def PreSingleInstanceChecker(*args, **kwargs): | |
e811c8ce | 860 | """PreSingleInstanceChecker() -> SingleInstanceChecker""" |
d14a1e28 | 861 | val = _misc.new_PreSingleInstanceChecker(*args, **kwargs) |
b67a9327 RD |
862 | val.thisown = 1 |
863 | return val | |
864 | ||
865 | ||
e811c8ce RD |
866 | def DrawWindowOnDC(*args, **kwargs): |
867 | """DrawWindowOnDC(Window window, wxDC dc, int method)""" | |
868 | return _misc.DrawWindowOnDC(*args, **kwargs) | |
d14a1e28 RD |
869 | #--------------------------------------------------------------------------- |
870 | ||
871 | class TipProvider(object): | |
e811c8ce RD |
872 | def __init__(self): raise RuntimeError, "No constructor defined" |
873 | def __repr__(self): | |
874 | return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 875 | def __del__(self, destroy=_misc.delete_TipProvider): |
e811c8ce | 876 | """__del__()""" |
d14a1e28 RD |
877 | try: |
878 | if self.thisown: destroy(self) | |
879 | except: pass | |
e811c8ce RD |
880 | |
881 | def GetTip(*args, **kwargs): | |
882 | """GetTip() -> wxString""" | |
883 | return _misc.TipProvider_GetTip(*args, **kwargs) | |
884 | ||
885 | def GetCurrentTip(*args, **kwargs): | |
886 | """GetCurrentTip() -> size_t""" | |
887 | return _misc.TipProvider_GetCurrentTip(*args, **kwargs) | |
888 | ||
889 | def PreprocessTip(*args, **kwargs): | |
890 | """PreprocessTip(wxString tip) -> wxString""" | |
891 | return _misc.TipProvider_PreprocessTip(*args, **kwargs) | |
892 | ||
d14a1e28 RD |
893 | |
894 | class TipProviderPtr(TipProvider): | |
895 | def __init__(self, this): | |
70551f47 | 896 | self.this = this |
d14a1e28 RD |
897 | if not hasattr(self,"thisown"): self.thisown = 0 |
898 | self.__class__ = TipProvider | |
899 | _misc.TipProvider_swigregister(TipProviderPtr) | |
900 | ||
901 | class PyTipProvider(TipProvider): | |
e811c8ce RD |
902 | def __repr__(self): |
903 | return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 904 | def __init__(self, *args, **kwargs): |
e811c8ce | 905 | """__init__(size_t currentTip) -> PyTipProvider""" |
d14a1e28 RD |
906 | newobj = _misc.new_PyTipProvider(*args, **kwargs) |
907 | self.this = newobj.this | |
908 | self.thisown = 1 | |
909 | del newobj.thisown | |
e811c8ce RD |
910 | def _setCallbackInfo(*args, **kwargs): |
911 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
912 | return _misc.PyTipProvider__setCallbackInfo(*args, **kwargs) | |
913 | ||
d14a1e28 RD |
914 | |
915 | class PyTipProviderPtr(PyTipProvider): | |
916 | def __init__(self, this): | |
917 | self.this = this | |
918 | if not hasattr(self,"thisown"): self.thisown = 0 | |
919 | self.__class__ = PyTipProvider | |
920 | _misc.PyTipProvider_swigregister(PyTipProviderPtr) | |
921 | ||
922 | ||
e811c8ce RD |
923 | def ShowTip(*args, **kwargs): |
924 | """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool""" | |
925 | return _misc.ShowTip(*args, **kwargs) | |
d14a1e28 | 926 | |
e811c8ce RD |
927 | def CreateFileTipProvider(*args, **kwargs): |
928 | """CreateFileTipProvider(wxString filename, size_t currentTip) -> TipProvider""" | |
929 | return _misc.CreateFileTipProvider(*args, **kwargs) | |
d14a1e28 RD |
930 | #--------------------------------------------------------------------------- |
931 | ||
932 | TIMER_CONTINUOUS = _misc.TIMER_CONTINUOUS | |
933 | TIMER_ONE_SHOT = _misc.TIMER_ONE_SHOT | |
934 | wxEVT_TIMER = _misc.wxEVT_TIMER | |
935 | class Timer(core.EvtHandler): | |
e811c8ce RD |
936 | def __repr__(self): |
937 | return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 938 | def __init__(self, *args, **kwargs): |
e811c8ce | 939 | """__init__(EvtHandler owner=None, int id=-1) -> Timer""" |
d14a1e28 RD |
940 | newobj = _misc.new_Timer(*args, **kwargs) |
941 | self.this = newobj.this | |
942 | self.thisown = 1 | |
943 | del newobj.thisown | |
7722248d RD |
944 | self._setCallbackInfo(self, Timer) |
945 | ||
d14a1e28 | 946 | def __del__(self, destroy=_misc.delete_Timer): |
e811c8ce | 947 | """__del__()""" |
d14a1e28 RD |
948 | try: |
949 | if self.thisown: destroy(self) | |
950 | except: pass | |
e811c8ce | 951 | |
7722248d RD |
952 | def _setCallbackInfo(*args, **kwargs): |
953 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
954 | return _misc.Timer__setCallbackInfo(*args, **kwargs) | |
955 | ||
e811c8ce RD |
956 | def SetOwner(*args, **kwargs): |
957 | """SetOwner(EvtHandler owner, int id=-1)""" | |
958 | return _misc.Timer_SetOwner(*args, **kwargs) | |
959 | ||
960 | def Start(*args, **kwargs): | |
961 | """Start(int milliseconds=-1, bool oneShot=False) -> bool""" | |
962 | return _misc.Timer_Start(*args, **kwargs) | |
963 | ||
964 | def Stop(*args, **kwargs): | |
965 | """Stop()""" | |
966 | return _misc.Timer_Stop(*args, **kwargs) | |
967 | ||
e811c8ce RD |
968 | def IsRunning(*args, **kwargs): |
969 | """IsRunning() -> bool""" | |
970 | return _misc.Timer_IsRunning(*args, **kwargs) | |
971 | ||
972 | def GetInterval(*args, **kwargs): | |
973 | """GetInterval() -> int""" | |
974 | return _misc.Timer_GetInterval(*args, **kwargs) | |
975 | ||
976 | def IsOneShot(*args, **kwargs): | |
977 | """IsOneShot() -> bool""" | |
978 | return _misc.Timer_IsOneShot(*args, **kwargs) | |
979 | ||
d14a1e28 RD |
980 | |
981 | class TimerPtr(Timer): | |
982 | def __init__(self, this): | |
983 | self.this = this | |
984 | if not hasattr(self,"thisown"): self.thisown = 0 | |
985 | self.__class__ = Timer | |
986 | _misc.Timer_swigregister(TimerPtr) | |
987 | ||
988 | # For backwards compatibility with 2.4 | |
989 | class PyTimer(Timer): | |
990 | def __init__(self, notify): | |
991 | Timer.__init__(self) | |
992 | self.notify = notify | |
993 | ||
994 | def Notify(self): | |
995 | if self.notify: | |
996 | self.notify() | |
997 | ||
998 | ||
999 | EVT_TIMER = wx.PyEventBinder( wxEVT_TIMER, 1 ) | |
1000 | ||
1001 | ||
1002 | class TimerEvent(core.Event): | |
e811c8ce RD |
1003 | def __repr__(self): |
1004 | return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1005 | def __init__(self, *args, **kwargs): |
e811c8ce | 1006 | """__init__(int timerid=0, int interval=0) -> TimerEvent""" |
d14a1e28 RD |
1007 | newobj = _misc.new_TimerEvent(*args, **kwargs) |
1008 | self.this = newobj.this | |
1009 | self.thisown = 1 | |
1010 | del newobj.thisown | |
e811c8ce RD |
1011 | def GetInterval(*args, **kwargs): |
1012 | """GetInterval() -> int""" | |
1013 | return _misc.TimerEvent_GetInterval(*args, **kwargs) | |
1014 | ||
d14a1e28 RD |
1015 | |
1016 | class TimerEventPtr(TimerEvent): | |
1017 | def __init__(self, this): | |
1018 | self.this = this | |
1019 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1020 | self.__class__ = TimerEvent | |
1021 | _misc.TimerEvent_swigregister(TimerEventPtr) | |
1022 | ||
1023 | class TimerRunner(object): | |
e811c8ce RD |
1024 | def __repr__(self): |
1025 | return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1026 | def __init__(self, *args): |
0df68c9f RD |
1027 | """ |
1028 | __init__(wxTimer timer) -> TimerRunner | |
1029 | __init__(wxTimer timer, int milli, bool oneShot=False) -> TimerRunner | |
1030 | """ | |
d14a1e28 RD |
1031 | newobj = _misc.new_TimerRunner(*args) |
1032 | self.this = newobj.this | |
1033 | self.thisown = 1 | |
1034 | del newobj.thisown | |
1035 | def __del__(self, destroy=_misc.delete_TimerRunner): | |
e811c8ce | 1036 | """__del__()""" |
d14a1e28 RD |
1037 | try: |
1038 | if self.thisown: destroy(self) | |
1039 | except: pass | |
e811c8ce RD |
1040 | |
1041 | def Start(*args, **kwargs): | |
1042 | """Start(int milli, bool oneShot=False)""" | |
1043 | return _misc.TimerRunner_Start(*args, **kwargs) | |
1044 | ||
d14a1e28 RD |
1045 | |
1046 | class TimerRunnerPtr(TimerRunner): | |
1047 | def __init__(self, this): | |
1048 | self.this = this | |
1049 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1050 | self.__class__ = TimerRunner | |
1051 | _misc.TimerRunner_swigregister(TimerRunnerPtr) | |
1052 | ||
1053 | #--------------------------------------------------------------------------- | |
1054 | ||
1055 | LOG_FatalError = _misc.LOG_FatalError | |
1056 | LOG_Error = _misc.LOG_Error | |
1057 | LOG_Warning = _misc.LOG_Warning | |
1058 | LOG_Message = _misc.LOG_Message | |
1059 | LOG_Status = _misc.LOG_Status | |
1060 | LOG_Info = _misc.LOG_Info | |
1061 | LOG_Debug = _misc.LOG_Debug | |
1062 | LOG_Trace = _misc.LOG_Trace | |
1063 | LOG_Progress = _misc.LOG_Progress | |
1064 | LOG_User = _misc.LOG_User | |
1065 | LOG_Max = _misc.LOG_Max | |
1066 | TRACE_MemAlloc = _misc.TRACE_MemAlloc | |
1067 | TRACE_Messages = _misc.TRACE_Messages | |
1068 | TRACE_ResAlloc = _misc.TRACE_ResAlloc | |
1069 | TRACE_RefCount = _misc.TRACE_RefCount | |
1070 | TRACE_OleCalls = _misc.TRACE_OleCalls | |
1071 | TraceMemAlloc = _misc.TraceMemAlloc | |
1072 | TraceMessages = _misc.TraceMessages | |
1073 | TraceResAlloc = _misc.TraceResAlloc | |
1074 | TraceRefCount = _misc.TraceRefCount | |
1075 | TraceOleCalls = _misc.TraceOleCalls | |
1076 | class Log(object): | |
e811c8ce RD |
1077 | def __repr__(self): |
1078 | return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1079 | def __init__(self, *args, **kwargs): |
e811c8ce | 1080 | """__init__() -> Log""" |
d14a1e28 RD |
1081 | newobj = _misc.new_Log(*args, **kwargs) |
1082 | self.this = newobj.this | |
faf3cb35 | 1083 | self.thisown = 1 |
d14a1e28 | 1084 | del newobj.thisown |
e811c8ce RD |
1085 | def IsEnabled(*args, **kwargs): |
1086 | """Log.IsEnabled() -> bool""" | |
1087 | return _misc.Log_IsEnabled(*args, **kwargs) | |
1088 | ||
1089 | IsEnabled = staticmethod(IsEnabled) | |
1090 | def EnableLogging(*args, **kwargs): | |
1091 | """Log.EnableLogging(bool doIt=True) -> bool""" | |
1092 | return _misc.Log_EnableLogging(*args, **kwargs) | |
1093 | ||
1094 | EnableLogging = staticmethod(EnableLogging) | |
1095 | def OnLog(*args, **kwargs): | |
1096 | """Log.OnLog(wxLogLevel level, wxChar szString, time_t t)""" | |
1097 | return _misc.Log_OnLog(*args, **kwargs) | |
1098 | ||
1099 | OnLog = staticmethod(OnLog) | |
1100 | def Flush(*args, **kwargs): | |
1101 | """Flush()""" | |
1102 | return _misc.Log_Flush(*args, **kwargs) | |
1103 | ||
1104 | def FlushActive(*args, **kwargs): | |
1105 | """Log.FlushActive()""" | |
1106 | return _misc.Log_FlushActive(*args, **kwargs) | |
1107 | ||
1108 | FlushActive = staticmethod(FlushActive) | |
1109 | def GetActiveTarget(*args, **kwargs): | |
1110 | """Log.GetActiveTarget() -> Log""" | |
1111 | return _misc.Log_GetActiveTarget(*args, **kwargs) | |
1112 | ||
1113 | GetActiveTarget = staticmethod(GetActiveTarget) | |
1114 | def SetActiveTarget(*args, **kwargs): | |
1115 | """Log.SetActiveTarget(Log pLogger) -> Log""" | |
1116 | return _misc.Log_SetActiveTarget(*args, **kwargs) | |
1117 | ||
1118 | SetActiveTarget = staticmethod(SetActiveTarget) | |
1119 | def Suspend(*args, **kwargs): | |
1120 | """Log.Suspend()""" | |
1121 | return _misc.Log_Suspend(*args, **kwargs) | |
1122 | ||
1123 | Suspend = staticmethod(Suspend) | |
1124 | def Resume(*args, **kwargs): | |
1125 | """Log.Resume()""" | |
1126 | return _misc.Log_Resume(*args, **kwargs) | |
1127 | ||
1128 | Resume = staticmethod(Resume) | |
1129 | def SetVerbose(*args, **kwargs): | |
1130 | """Log.SetVerbose(bool bVerbose=True)""" | |
1131 | return _misc.Log_SetVerbose(*args, **kwargs) | |
1132 | ||
1133 | SetVerbose = staticmethod(SetVerbose) | |
1134 | def SetLogLevel(*args, **kwargs): | |
1135 | """Log.SetLogLevel(wxLogLevel logLevel)""" | |
1136 | return _misc.Log_SetLogLevel(*args, **kwargs) | |
1137 | ||
1138 | SetLogLevel = staticmethod(SetLogLevel) | |
1139 | def DontCreateOnDemand(*args, **kwargs): | |
1140 | """Log.DontCreateOnDemand()""" | |
1141 | return _misc.Log_DontCreateOnDemand(*args, **kwargs) | |
1142 | ||
1143 | DontCreateOnDemand = staticmethod(DontCreateOnDemand) | |
1144 | def SetTraceMask(*args, **kwargs): | |
1145 | """Log.SetTraceMask(wxTraceMask ulMask)""" | |
1146 | return _misc.Log_SetTraceMask(*args, **kwargs) | |
1147 | ||
1148 | SetTraceMask = staticmethod(SetTraceMask) | |
1149 | def AddTraceMask(*args, **kwargs): | |
1150 | """Log.AddTraceMask(wxString str)""" | |
1151 | return _misc.Log_AddTraceMask(*args, **kwargs) | |
1152 | ||
1153 | AddTraceMask = staticmethod(AddTraceMask) | |
1154 | def RemoveTraceMask(*args, **kwargs): | |
1155 | """Log.RemoveTraceMask(wxString str)""" | |
1156 | return _misc.Log_RemoveTraceMask(*args, **kwargs) | |
1157 | ||
1158 | RemoveTraceMask = staticmethod(RemoveTraceMask) | |
1159 | def ClearTraceMasks(*args, **kwargs): | |
1160 | """Log.ClearTraceMasks()""" | |
1161 | return _misc.Log_ClearTraceMasks(*args, **kwargs) | |
1162 | ||
1163 | ClearTraceMasks = staticmethod(ClearTraceMasks) | |
1164 | def GetTraceMasks(*args, **kwargs): | |
1165 | """Log.GetTraceMasks() -> wxArrayString""" | |
1166 | return _misc.Log_GetTraceMasks(*args, **kwargs) | |
1167 | ||
1168 | GetTraceMasks = staticmethod(GetTraceMasks) | |
1169 | def SetTimestamp(*args, **kwargs): | |
1170 | """Log.SetTimestamp(wxChar ts)""" | |
1171 | return _misc.Log_SetTimestamp(*args, **kwargs) | |
1172 | ||
1173 | SetTimestamp = staticmethod(SetTimestamp) | |
1174 | def GetVerbose(*args, **kwargs): | |
1175 | """Log.GetVerbose() -> bool""" | |
1176 | return _misc.Log_GetVerbose(*args, **kwargs) | |
1177 | ||
1178 | GetVerbose = staticmethod(GetVerbose) | |
1179 | def GetTraceMask(*args, **kwargs): | |
1180 | """Log.GetTraceMask() -> wxTraceMask""" | |
1181 | return _misc.Log_GetTraceMask(*args, **kwargs) | |
1182 | ||
1183 | GetTraceMask = staticmethod(GetTraceMask) | |
1184 | def IsAllowedTraceMask(*args, **kwargs): | |
1185 | """Log.IsAllowedTraceMask(wxChar mask) -> bool""" | |
1186 | return _misc.Log_IsAllowedTraceMask(*args, **kwargs) | |
1187 | ||
1188 | IsAllowedTraceMask = staticmethod(IsAllowedTraceMask) | |
1189 | def GetLogLevel(*args, **kwargs): | |
1190 | """Log.GetLogLevel() -> wxLogLevel""" | |
1191 | return _misc.Log_GetLogLevel(*args, **kwargs) | |
1192 | ||
1193 | GetLogLevel = staticmethod(GetLogLevel) | |
1194 | def GetTimestamp(*args, **kwargs): | |
1195 | """Log.GetTimestamp() -> wxChar""" | |
1196 | return _misc.Log_GetTimestamp(*args, **kwargs) | |
1197 | ||
1198 | GetTimestamp = staticmethod(GetTimestamp) | |
1199 | def TimeStamp(*args, **kwargs): | |
1200 | """Log.TimeStamp() -> wxString""" | |
1201 | return _misc.Log_TimeStamp(*args, **kwargs) | |
1202 | ||
1203 | TimeStamp = staticmethod(TimeStamp) | |
1204 | def Destroy(*args, **kwargs): | |
1205 | """Destroy()""" | |
1206 | return _misc.Log_Destroy(*args, **kwargs) | |
1207 | ||
d14a1e28 RD |
1208 | |
1209 | class LogPtr(Log): | |
1210 | def __init__(self, this): | |
1211 | self.this = this | |
1212 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1213 | self.__class__ = Log | |
1214 | _misc.Log_swigregister(LogPtr) | |
1215 | ||
e811c8ce RD |
1216 | def Log_IsEnabled(*args, **kwargs): |
1217 | """Log_IsEnabled() -> bool""" | |
1218 | return _misc.Log_IsEnabled(*args, **kwargs) | |
d14a1e28 | 1219 | |
e811c8ce RD |
1220 | def Log_EnableLogging(*args, **kwargs): |
1221 | """Log_EnableLogging(bool doIt=True) -> bool""" | |
1222 | return _misc.Log_EnableLogging(*args, **kwargs) | |
d14a1e28 | 1223 | |
e811c8ce RD |
1224 | def Log_OnLog(*args, **kwargs): |
1225 | """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)""" | |
1226 | return _misc.Log_OnLog(*args, **kwargs) | |
d14a1e28 | 1227 | |
e811c8ce RD |
1228 | def Log_FlushActive(*args, **kwargs): |
1229 | """Log_FlushActive()""" | |
1230 | return _misc.Log_FlushActive(*args, **kwargs) | |
d14a1e28 | 1231 | |
e811c8ce RD |
1232 | def Log_GetActiveTarget(*args, **kwargs): |
1233 | """Log_GetActiveTarget() -> Log""" | |
1234 | return _misc.Log_GetActiveTarget(*args, **kwargs) | |
d14a1e28 | 1235 | |
e811c8ce RD |
1236 | def Log_SetActiveTarget(*args, **kwargs): |
1237 | """Log_SetActiveTarget(Log pLogger) -> Log""" | |
1238 | return _misc.Log_SetActiveTarget(*args, **kwargs) | |
d14a1e28 | 1239 | |
e811c8ce RD |
1240 | def Log_Suspend(*args, **kwargs): |
1241 | """Log_Suspend()""" | |
1242 | return _misc.Log_Suspend(*args, **kwargs) | |
d14a1e28 | 1243 | |
e811c8ce RD |
1244 | def Log_Resume(*args, **kwargs): |
1245 | """Log_Resume()""" | |
1246 | return _misc.Log_Resume(*args, **kwargs) | |
d14a1e28 | 1247 | |
e811c8ce RD |
1248 | def Log_SetVerbose(*args, **kwargs): |
1249 | """Log_SetVerbose(bool bVerbose=True)""" | |
1250 | return _misc.Log_SetVerbose(*args, **kwargs) | |
d14a1e28 | 1251 | |
e811c8ce RD |
1252 | def Log_SetLogLevel(*args, **kwargs): |
1253 | """Log_SetLogLevel(wxLogLevel logLevel)""" | |
1254 | return _misc.Log_SetLogLevel(*args, **kwargs) | |
d14a1e28 | 1255 | |
e811c8ce RD |
1256 | def Log_DontCreateOnDemand(*args, **kwargs): |
1257 | """Log_DontCreateOnDemand()""" | |
1258 | return _misc.Log_DontCreateOnDemand(*args, **kwargs) | |
d14a1e28 | 1259 | |
e811c8ce RD |
1260 | def Log_SetTraceMask(*args, **kwargs): |
1261 | """Log_SetTraceMask(wxTraceMask ulMask)""" | |
1262 | return _misc.Log_SetTraceMask(*args, **kwargs) | |
d14a1e28 | 1263 | |
e811c8ce RD |
1264 | def Log_AddTraceMask(*args, **kwargs): |
1265 | """Log_AddTraceMask(wxString str)""" | |
1266 | return _misc.Log_AddTraceMask(*args, **kwargs) | |
d14a1e28 | 1267 | |
e811c8ce RD |
1268 | def Log_RemoveTraceMask(*args, **kwargs): |
1269 | """Log_RemoveTraceMask(wxString str)""" | |
1270 | return _misc.Log_RemoveTraceMask(*args, **kwargs) | |
d14a1e28 | 1271 | |
e811c8ce RD |
1272 | def Log_ClearTraceMasks(*args, **kwargs): |
1273 | """Log_ClearTraceMasks()""" | |
1274 | return _misc.Log_ClearTraceMasks(*args, **kwargs) | |
d14a1e28 | 1275 | |
e811c8ce RD |
1276 | def Log_GetTraceMasks(*args, **kwargs): |
1277 | """Log_GetTraceMasks() -> wxArrayString""" | |
1278 | return _misc.Log_GetTraceMasks(*args, **kwargs) | |
faf3cb35 | 1279 | |
e811c8ce RD |
1280 | def Log_SetTimestamp(*args, **kwargs): |
1281 | """Log_SetTimestamp(wxChar ts)""" | |
1282 | return _misc.Log_SetTimestamp(*args, **kwargs) | |
faf3cb35 | 1283 | |
e811c8ce RD |
1284 | def Log_GetVerbose(*args, **kwargs): |
1285 | """Log_GetVerbose() -> bool""" | |
1286 | return _misc.Log_GetVerbose(*args, **kwargs) | |
faf3cb35 | 1287 | |
e811c8ce RD |
1288 | def Log_GetTraceMask(*args, **kwargs): |
1289 | """Log_GetTraceMask() -> wxTraceMask""" | |
1290 | return _misc.Log_GetTraceMask(*args, **kwargs) | |
faf3cb35 | 1291 | |
e811c8ce RD |
1292 | def Log_IsAllowedTraceMask(*args, **kwargs): |
1293 | """Log_IsAllowedTraceMask(wxChar mask) -> bool""" | |
1294 | return _misc.Log_IsAllowedTraceMask(*args, **kwargs) | |
d14a1e28 | 1295 | |
e811c8ce RD |
1296 | def Log_GetLogLevel(*args, **kwargs): |
1297 | """Log_GetLogLevel() -> wxLogLevel""" | |
1298 | return _misc.Log_GetLogLevel(*args, **kwargs) | |
d14a1e28 | 1299 | |
e811c8ce RD |
1300 | def Log_GetTimestamp(*args, **kwargs): |
1301 | """Log_GetTimestamp() -> wxChar""" | |
1302 | return _misc.Log_GetTimestamp(*args, **kwargs) | |
d14a1e28 | 1303 | |
e811c8ce RD |
1304 | def Log_TimeStamp(*args, **kwargs): |
1305 | """Log_TimeStamp() -> wxString""" | |
1306 | return _misc.Log_TimeStamp(*args, **kwargs) | |
d14a1e28 RD |
1307 | |
1308 | class LogStderr(Log): | |
e811c8ce RD |
1309 | def __repr__(self): |
1310 | return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1311 | def __init__(self, *args, **kwargs): |
e811c8ce | 1312 | """__init__() -> LogStderr""" |
d14a1e28 RD |
1313 | newobj = _misc.new_LogStderr(*args, **kwargs) |
1314 | self.this = newobj.this | |
1315 | self.thisown = 1 | |
1316 | del newobj.thisown | |
d14a1e28 RD |
1317 | |
1318 | class LogStderrPtr(LogStderr): | |
1319 | def __init__(self, this): | |
1320 | self.this = this | |
1321 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1322 | self.__class__ = LogStderr | |
1323 | _misc.LogStderr_swigregister(LogStderrPtr) | |
1324 | ||
1325 | class LogTextCtrl(Log): | |
e811c8ce RD |
1326 | def __repr__(self): |
1327 | return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1328 | def __init__(self, *args, **kwargs): |
e811c8ce | 1329 | """__init__(wxTextCtrl pTextCtrl) -> LogTextCtrl""" |
d14a1e28 RD |
1330 | newobj = _misc.new_LogTextCtrl(*args, **kwargs) |
1331 | self.this = newobj.this | |
1332 | self.thisown = 1 | |
1333 | del newobj.thisown | |
d14a1e28 RD |
1334 | |
1335 | class LogTextCtrlPtr(LogTextCtrl): | |
1336 | def __init__(self, this): | |
1337 | self.this = this | |
1338 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1339 | self.__class__ = LogTextCtrl | |
1340 | _misc.LogTextCtrl_swigregister(LogTextCtrlPtr) | |
1341 | ||
1342 | class LogGui(Log): | |
e811c8ce RD |
1343 | def __repr__(self): |
1344 | return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1345 | def __init__(self, *args, **kwargs): |
e811c8ce | 1346 | """__init__() -> LogGui""" |
d14a1e28 RD |
1347 | newobj = _misc.new_LogGui(*args, **kwargs) |
1348 | self.this = newobj.this | |
1349 | self.thisown = 1 | |
1350 | del newobj.thisown | |
d14a1e28 RD |
1351 | |
1352 | class LogGuiPtr(LogGui): | |
1353 | def __init__(self, this): | |
faf3cb35 | 1354 | self.this = this |
d14a1e28 RD |
1355 | if not hasattr(self,"thisown"): self.thisown = 0 |
1356 | self.__class__ = LogGui | |
1357 | _misc.LogGui_swigregister(LogGuiPtr) | |
1358 | ||
1359 | class LogWindow(Log): | |
e811c8ce RD |
1360 | def __repr__(self): |
1361 | return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1362 | def __init__(self, *args, **kwargs): |
0df68c9f RD |
1363 | """ |
1364 | __init__(wxFrame pParent, wxString szTitle, bool bShow=True, | |
1365 | bool bPassToOld=True) -> LogWindow | |
1366 | """ | |
d14a1e28 RD |
1367 | newobj = _misc.new_LogWindow(*args, **kwargs) |
1368 | self.this = newobj.this | |
1369 | self.thisown = 1 | |
1370 | del newobj.thisown | |
e811c8ce RD |
1371 | def Show(*args, **kwargs): |
1372 | """Show(bool bShow=True)""" | |
1373 | return _misc.LogWindow_Show(*args, **kwargs) | |
1374 | ||
1375 | def GetFrame(*args, **kwargs): | |
1376 | """GetFrame() -> wxFrame""" | |
1377 | return _misc.LogWindow_GetFrame(*args, **kwargs) | |
1378 | ||
1379 | def GetOldLog(*args, **kwargs): | |
1380 | """GetOldLog() -> Log""" | |
1381 | return _misc.LogWindow_GetOldLog(*args, **kwargs) | |
1382 | ||
1383 | def IsPassingMessages(*args, **kwargs): | |
1384 | """IsPassingMessages() -> bool""" | |
1385 | return _misc.LogWindow_IsPassingMessages(*args, **kwargs) | |
1386 | ||
1387 | def PassMessages(*args, **kwargs): | |
1388 | """PassMessages(bool bDoPass)""" | |
1389 | return _misc.LogWindow_PassMessages(*args, **kwargs) | |
1390 | ||
d14a1e28 RD |
1391 | |
1392 | class LogWindowPtr(LogWindow): | |
1393 | def __init__(self, this): | |
1394 | self.this = this | |
1395 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1396 | self.__class__ = LogWindow | |
1397 | _misc.LogWindow_swigregister(LogWindowPtr) | |
1398 | ||
1399 | class LogChain(Log): | |
e811c8ce RD |
1400 | def __repr__(self): |
1401 | return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1402 | def __init__(self, *args, **kwargs): |
e811c8ce | 1403 | """__init__(Log logger) -> LogChain""" |
d14a1e28 RD |
1404 | newobj = _misc.new_LogChain(*args, **kwargs) |
1405 | self.this = newobj.this | |
faf3cb35 | 1406 | self.thisown = 1 |
d14a1e28 | 1407 | del newobj.thisown |
e811c8ce RD |
1408 | def SetLog(*args, **kwargs): |
1409 | """SetLog(Log logger)""" | |
1410 | return _misc.LogChain_SetLog(*args, **kwargs) | |
1411 | ||
1412 | def PassMessages(*args, **kwargs): | |
1413 | """PassMessages(bool bDoPass)""" | |
1414 | return _misc.LogChain_PassMessages(*args, **kwargs) | |
1415 | ||
1416 | def IsPassingMessages(*args, **kwargs): | |
1417 | """IsPassingMessages() -> bool""" | |
1418 | return _misc.LogChain_IsPassingMessages(*args, **kwargs) | |
1419 | ||
1420 | def GetOldLog(*args, **kwargs): | |
1421 | """GetOldLog() -> Log""" | |
1422 | return _misc.LogChain_GetOldLog(*args, **kwargs) | |
1423 | ||
d14a1e28 RD |
1424 | |
1425 | class LogChainPtr(LogChain): | |
1426 | def __init__(self, this): | |
1427 | self.this = this | |
1428 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1429 | self.__class__ = LogChain | |
1430 | _misc.LogChain_swigregister(LogChainPtr) | |
1431 | ||
1432 | ||
e811c8ce RD |
1433 | def SysErrorCode(*args, **kwargs): |
1434 | """SysErrorCode() -> unsigned long""" | |
1435 | return _misc.SysErrorCode(*args, **kwargs) | |
d14a1e28 | 1436 | |
e811c8ce RD |
1437 | def SysErrorMsg(*args, **kwargs): |
1438 | """SysErrorMsg(unsigned long nErrCode=0) -> wxString""" | |
1439 | return _misc.SysErrorMsg(*args, **kwargs) | |
d14a1e28 | 1440 | |
e811c8ce RD |
1441 | def LogFatalError(*args, **kwargs): |
1442 | """LogFatalError(wxString msg)""" | |
1443 | return _misc.LogFatalError(*args, **kwargs) | |
d14a1e28 | 1444 | |
e811c8ce RD |
1445 | def LogError(*args, **kwargs): |
1446 | """LogError(wxString msg)""" | |
1447 | return _misc.LogError(*args, **kwargs) | |
d14a1e28 | 1448 | |
e811c8ce RD |
1449 | def LogWarning(*args, **kwargs): |
1450 | """LogWarning(wxString msg)""" | |
1451 | return _misc.LogWarning(*args, **kwargs) | |
d14a1e28 | 1452 | |
e811c8ce RD |
1453 | def LogMessage(*args, **kwargs): |
1454 | """LogMessage(wxString msg)""" | |
1455 | return _misc.LogMessage(*args, **kwargs) | |
d14a1e28 | 1456 | |
e811c8ce RD |
1457 | def LogInfo(*args, **kwargs): |
1458 | """LogInfo(wxString msg)""" | |
1459 | return _misc.LogInfo(*args, **kwargs) | |
d14a1e28 | 1460 | |
e811c8ce RD |
1461 | def LogDebug(*args, **kwargs): |
1462 | """LogDebug(wxString msg)""" | |
1463 | return _misc.LogDebug(*args, **kwargs) | |
d14a1e28 | 1464 | |
e811c8ce RD |
1465 | def LogVerbose(*args, **kwargs): |
1466 | """LogVerbose(wxString msg)""" | |
1467 | return _misc.LogVerbose(*args, **kwargs) | |
d14a1e28 | 1468 | |
e811c8ce RD |
1469 | def LogStatus(*args, **kwargs): |
1470 | """LogStatus(wxString msg)""" | |
1471 | return _misc.LogStatus(*args, **kwargs) | |
faf3cb35 | 1472 | |
e811c8ce RD |
1473 | def LogStatusFrame(*args, **kwargs): |
1474 | """LogStatusFrame(wxFrame pFrame, wxString msg)""" | |
1475 | return _misc.LogStatusFrame(*args, **kwargs) | |
faf3cb35 | 1476 | |
e811c8ce RD |
1477 | def LogSysError(*args, **kwargs): |
1478 | """LogSysError(wxString msg)""" | |
1479 | return _misc.LogSysError(*args, **kwargs) | |
faf3cb35 | 1480 | |
e811c8ce RD |
1481 | def LogTrace(*args, **kwargs): |
1482 | """LogTrace(wxString msg)""" | |
1483 | return _misc.LogTrace(*args, **kwargs) | |
faf3cb35 | 1484 | |
e811c8ce RD |
1485 | def LogTraceMask(*args, **kwargs): |
1486 | """LogTraceMask(wxString mask, wxString msg)""" | |
1487 | return _misc.LogTraceMask(*args, **kwargs) | |
d14a1e28 | 1488 | |
e811c8ce RD |
1489 | def LogGeneric(*args, **kwargs): |
1490 | """LogGeneric(unsigned long level, wxString msg)""" | |
1491 | return _misc.LogGeneric(*args, **kwargs) | |
d14a1e28 | 1492 | |
e811c8ce RD |
1493 | def SafeShowMessage(*args, **kwargs): |
1494 | """SafeShowMessage(wxString title, wxString text)""" | |
1495 | return _misc.SafeShowMessage(*args, **kwargs) | |
d14a1e28 | 1496 | class LogNull(object): |
e811c8ce RD |
1497 | def __repr__(self): |
1498 | return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1499 | def __init__(self, *args, **kwargs): |
e811c8ce | 1500 | """__init__() -> LogNull""" |
d14a1e28 RD |
1501 | newobj = _misc.new_LogNull(*args, **kwargs) |
1502 | self.this = newobj.this | |
1503 | self.thisown = 1 | |
1504 | del newobj.thisown | |
1505 | def __del__(self, destroy=_misc.delete_LogNull): | |
e811c8ce | 1506 | """__del__()""" |
d14a1e28 RD |
1507 | try: |
1508 | if self.thisown: destroy(self) | |
1509 | except: pass | |
e811c8ce | 1510 | |
d14a1e28 RD |
1511 | |
1512 | class LogNullPtr(LogNull): | |
1513 | def __init__(self, this): | |
4120ef2b | 1514 | self.this = this |
d14a1e28 RD |
1515 | if not hasattr(self,"thisown"): self.thisown = 0 |
1516 | self.__class__ = LogNull | |
1517 | _misc.LogNull_swigregister(LogNullPtr) | |
1518 | ||
1519 | class PyLog(Log): | |
e811c8ce RD |
1520 | def __repr__(self): |
1521 | return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1522 | def __init__(self, *args, **kwargs): |
e811c8ce | 1523 | """__init__() -> PyLog""" |
d14a1e28 RD |
1524 | newobj = _misc.new_PyLog(*args, **kwargs) |
1525 | self.this = newobj.this | |
1526 | self.thisown = 1 | |
1527 | del newobj.thisown | |
1528 | self._setCallbackInfo(self, PyLog) | |
e811c8ce RD |
1529 | |
1530 | def _setCallbackInfo(*args, **kwargs): | |
1531 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
1532 | return _misc.PyLog__setCallbackInfo(*args, **kwargs) | |
1533 | ||
d14a1e28 RD |
1534 | |
1535 | class PyLogPtr(PyLog): | |
1536 | def __init__(self, this): | |
1537 | self.this = this | |
1538 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1539 | self.__class__ = PyLog | |
1540 | _misc.PyLog_swigregister(PyLogPtr) | |
1541 | ||
1542 | #--------------------------------------------------------------------------- | |
1543 | ||
1544 | PROCESS_DEFAULT = _misc.PROCESS_DEFAULT | |
1545 | PROCESS_REDIRECT = _misc.PROCESS_REDIRECT | |
1546 | KILL_OK = _misc.KILL_OK | |
1547 | KILL_BAD_SIGNAL = _misc.KILL_BAD_SIGNAL | |
1548 | KILL_ACCESS_DENIED = _misc.KILL_ACCESS_DENIED | |
1549 | KILL_NO_PROCESS = _misc.KILL_NO_PROCESS | |
1550 | KILL_ERROR = _misc.KILL_ERROR | |
1551 | SIGNONE = _misc.SIGNONE | |
1552 | SIGHUP = _misc.SIGHUP | |
1553 | SIGINT = _misc.SIGINT | |
1554 | SIGQUIT = _misc.SIGQUIT | |
1555 | SIGILL = _misc.SIGILL | |
1556 | SIGTRAP = _misc.SIGTRAP | |
1557 | SIGABRT = _misc.SIGABRT | |
1558 | SIGIOT = _misc.SIGIOT | |
1559 | SIGEMT = _misc.SIGEMT | |
1560 | SIGFPE = _misc.SIGFPE | |
1561 | SIGKILL = _misc.SIGKILL | |
1562 | SIGBUS = _misc.SIGBUS | |
1563 | SIGSEGV = _misc.SIGSEGV | |
1564 | SIGSYS = _misc.SIGSYS | |
1565 | SIGPIPE = _misc.SIGPIPE | |
1566 | SIGALRM = _misc.SIGALRM | |
1567 | SIGTERM = _misc.SIGTERM | |
1568 | class Process(core.EvtHandler): | |
e811c8ce RD |
1569 | def __repr__(self): |
1570 | return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1571 | def Kill(*args, **kwargs): | |
1572 | """Process.Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError""" | |
1573 | return _misc.Process_Kill(*args, **kwargs) | |
1574 | ||
1575 | Kill = staticmethod(Kill) | |
1576 | def Exists(*args, **kwargs): | |
1577 | """Process.Exists(int pid) -> bool""" | |
1578 | return _misc.Process_Exists(*args, **kwargs) | |
1579 | ||
1580 | Exists = staticmethod(Exists) | |
1581 | def Open(*args, **kwargs): | |
1582 | """Process.Open(wxString cmd, int flags=EXEC_ASYNC) -> Process""" | |
1583 | return _misc.Process_Open(*args, **kwargs) | |
1584 | ||
1585 | Open = staticmethod(Open) | |
d14a1e28 | 1586 | def __init__(self, *args, **kwargs): |
e811c8ce | 1587 | """__init__(EvtHandler parent=None, int id=-1) -> Process""" |
d14a1e28 RD |
1588 | newobj = _misc.new_Process(*args, **kwargs) |
1589 | self.this = newobj.this | |
4120ef2b | 1590 | self.thisown = 1 |
d14a1e28 RD |
1591 | del newobj.thisown |
1592 | self._setCallbackInfo(self, Process) | |
e811c8ce RD |
1593 | |
1594 | def _setCallbackInfo(*args, **kwargs): | |
1595 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
1596 | return _misc.Process__setCallbackInfo(*args, **kwargs) | |
1597 | ||
1598 | def base_OnTerminate(*args, **kwargs): | |
1599 | """base_OnTerminate(int pid, int status)""" | |
1600 | return _misc.Process_base_OnTerminate(*args, **kwargs) | |
1601 | ||
1602 | def Redirect(*args, **kwargs): | |
1603 | """Redirect()""" | |
1604 | return _misc.Process_Redirect(*args, **kwargs) | |
1605 | ||
1606 | def IsRedirected(*args, **kwargs): | |
1607 | """IsRedirected() -> bool""" | |
1608 | return _misc.Process_IsRedirected(*args, **kwargs) | |
1609 | ||
1610 | def Detach(*args, **kwargs): | |
1611 | """Detach()""" | |
1612 | return _misc.Process_Detach(*args, **kwargs) | |
1613 | ||
1614 | def GetInputStream(*args, **kwargs): | |
1615 | """GetInputStream() -> wxInputStream""" | |
1616 | return _misc.Process_GetInputStream(*args, **kwargs) | |
1617 | ||
1618 | def GetErrorStream(*args, **kwargs): | |
1619 | """GetErrorStream() -> wxInputStream""" | |
1620 | return _misc.Process_GetErrorStream(*args, **kwargs) | |
1621 | ||
1622 | def GetOutputStream(*args, **kwargs): | |
1623 | """GetOutputStream() -> OutputStream""" | |
1624 | return _misc.Process_GetOutputStream(*args, **kwargs) | |
1625 | ||
1626 | def CloseOutput(*args, **kwargs): | |
1627 | """CloseOutput()""" | |
1628 | return _misc.Process_CloseOutput(*args, **kwargs) | |
1629 | ||
1630 | def IsInputOpened(*args, **kwargs): | |
1631 | """IsInputOpened() -> bool""" | |
1632 | return _misc.Process_IsInputOpened(*args, **kwargs) | |
1633 | ||
1634 | def IsInputAvailable(*args, **kwargs): | |
1635 | """IsInputAvailable() -> bool""" | |
1636 | return _misc.Process_IsInputAvailable(*args, **kwargs) | |
1637 | ||
1638 | def IsErrorAvailable(*args, **kwargs): | |
1639 | """IsErrorAvailable() -> bool""" | |
1640 | return _misc.Process_IsErrorAvailable(*args, **kwargs) | |
1641 | ||
4120ef2b | 1642 | |
d14a1e28 RD |
1643 | class ProcessPtr(Process): |
1644 | def __init__(self, this): | |
1645 | self.this = this | |
1646 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1647 | self.__class__ = Process | |
1648 | _misc.Process_swigregister(ProcessPtr) | |
4120ef2b | 1649 | |
e811c8ce RD |
1650 | def Process_Kill(*args, **kwargs): |
1651 | """Process_Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError""" | |
1652 | return _misc.Process_Kill(*args, **kwargs) | |
4120ef2b | 1653 | |
e811c8ce RD |
1654 | def Process_Exists(*args, **kwargs): |
1655 | """Process_Exists(int pid) -> bool""" | |
1656 | return _misc.Process_Exists(*args, **kwargs) | |
4120ef2b | 1657 | |
e811c8ce RD |
1658 | def Process_Open(*args, **kwargs): |
1659 | """Process_Open(wxString cmd, int flags=EXEC_ASYNC) -> Process""" | |
1660 | return _misc.Process_Open(*args, **kwargs) | |
70551f47 | 1661 | |
d14a1e28 | 1662 | class ProcessEvent(core.Event): |
e811c8ce RD |
1663 | def __repr__(self): |
1664 | return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1665 | def __init__(self, *args, **kwargs): |
e811c8ce | 1666 | """__init__(int id=0, int pid=0, int exitcode=0) -> ProcessEvent""" |
d14a1e28 RD |
1667 | newobj = _misc.new_ProcessEvent(*args, **kwargs) |
1668 | self.this = newobj.this | |
1669 | self.thisown = 1 | |
1670 | del newobj.thisown | |
e811c8ce RD |
1671 | def GetPid(*args, **kwargs): |
1672 | """GetPid() -> int""" | |
1673 | return _misc.ProcessEvent_GetPid(*args, **kwargs) | |
1674 | ||
1675 | def GetExitCode(*args, **kwargs): | |
1676 | """GetExitCode() -> int""" | |
1677 | return _misc.ProcessEvent_GetExitCode(*args, **kwargs) | |
1678 | ||
d14a1e28 RD |
1679 | m_pid = property(_misc.ProcessEvent_m_pid_get, _misc.ProcessEvent_m_pid_set) |
1680 | m_exitcode = property(_misc.ProcessEvent_m_exitcode_get, _misc.ProcessEvent_m_exitcode_set) | |
70551f47 | 1681 | |
d14a1e28 RD |
1682 | class ProcessEventPtr(ProcessEvent): |
1683 | def __init__(self, this): | |
1684 | self.this = this | |
1685 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1686 | self.__class__ = ProcessEvent | |
1687 | _misc.ProcessEvent_swigregister(ProcessEventPtr) | |
1688 | ||
1689 | wxEVT_END_PROCESS = _misc.wxEVT_END_PROCESS | |
1690 | EVT_END_PROCESS = wx.PyEventBinder( wxEVT_END_PROCESS, 1 ) | |
1691 | ||
1692 | EXEC_ASYNC = _misc.EXEC_ASYNC | |
1693 | EXEC_SYNC = _misc.EXEC_SYNC | |
1694 | EXEC_NOHIDE = _misc.EXEC_NOHIDE | |
1695 | EXEC_MAKE_GROUP_LEADER = _misc.EXEC_MAKE_GROUP_LEADER | |
1696 | ||
e811c8ce RD |
1697 | def Execute(*args, **kwargs): |
1698 | """Execute(wxString command, int flags=EXEC_ASYNC, Process process=None) -> long""" | |
1699 | return _misc.Execute(*args, **kwargs) | |
d14a1e28 RD |
1700 | #--------------------------------------------------------------------------- |
1701 | ||
1702 | JOYSTICK1 = _misc.JOYSTICK1 | |
1703 | JOYSTICK2 = _misc.JOYSTICK2 | |
1704 | JOY_BUTTON_ANY = _misc.JOY_BUTTON_ANY | |
1705 | JOY_BUTTON1 = _misc.JOY_BUTTON1 | |
1706 | JOY_BUTTON2 = _misc.JOY_BUTTON2 | |
1707 | JOY_BUTTON3 = _misc.JOY_BUTTON3 | |
1708 | JOY_BUTTON4 = _misc.JOY_BUTTON4 | |
1709 | class Joystick(object): | |
e811c8ce RD |
1710 | def __repr__(self): |
1711 | return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1712 | def __init__(self, *args, **kwargs): |
e811c8ce | 1713 | """__init__(int joystick=JOYSTICK1) -> Joystick""" |
d14a1e28 RD |
1714 | newobj = _misc.new_Joystick(*args, **kwargs) |
1715 | self.this = newobj.this | |
1716 | self.thisown = 1 | |
1717 | del newobj.thisown | |
1718 | def __del__(self, destroy=_misc.delete_Joystick): | |
e811c8ce | 1719 | """__del__()""" |
d14a1e28 RD |
1720 | try: |
1721 | if self.thisown: destroy(self) | |
1722 | except: pass | |
e811c8ce RD |
1723 | |
1724 | def GetPosition(*args, **kwargs): | |
1725 | """GetPosition() -> Point""" | |
1726 | return _misc.Joystick_GetPosition(*args, **kwargs) | |
1727 | ||
1728 | def GetZPosition(*args, **kwargs): | |
1729 | """GetZPosition() -> int""" | |
1730 | return _misc.Joystick_GetZPosition(*args, **kwargs) | |
1731 | ||
1732 | def GetButtonState(*args, **kwargs): | |
1733 | """GetButtonState() -> int""" | |
1734 | return _misc.Joystick_GetButtonState(*args, **kwargs) | |
1735 | ||
1736 | def GetPOVPosition(*args, **kwargs): | |
1737 | """GetPOVPosition() -> int""" | |
1738 | return _misc.Joystick_GetPOVPosition(*args, **kwargs) | |
1739 | ||
1740 | def GetPOVCTSPosition(*args, **kwargs): | |
1741 | """GetPOVCTSPosition() -> int""" | |
1742 | return _misc.Joystick_GetPOVCTSPosition(*args, **kwargs) | |
1743 | ||
1744 | def GetRudderPosition(*args, **kwargs): | |
1745 | """GetRudderPosition() -> int""" | |
1746 | return _misc.Joystick_GetRudderPosition(*args, **kwargs) | |
1747 | ||
1748 | def GetUPosition(*args, **kwargs): | |
1749 | """GetUPosition() -> int""" | |
1750 | return _misc.Joystick_GetUPosition(*args, **kwargs) | |
1751 | ||
1752 | def GetVPosition(*args, **kwargs): | |
1753 | """GetVPosition() -> int""" | |
1754 | return _misc.Joystick_GetVPosition(*args, **kwargs) | |
1755 | ||
1756 | def GetMovementThreshold(*args, **kwargs): | |
1757 | """GetMovementThreshold() -> int""" | |
1758 | return _misc.Joystick_GetMovementThreshold(*args, **kwargs) | |
1759 | ||
1760 | def SetMovementThreshold(*args, **kwargs): | |
1761 | """SetMovementThreshold(int threshold)""" | |
1762 | return _misc.Joystick_SetMovementThreshold(*args, **kwargs) | |
1763 | ||
1764 | def IsOk(*args, **kwargs): | |
1765 | """IsOk(void ??) -> bool""" | |
1766 | return _misc.Joystick_IsOk(*args, **kwargs) | |
1767 | ||
1768 | def GetNumberJoysticks(*args, **kwargs): | |
1769 | """GetNumberJoysticks() -> int""" | |
1770 | return _misc.Joystick_GetNumberJoysticks(*args, **kwargs) | |
1771 | ||
1772 | def GetManufacturerId(*args, **kwargs): | |
1773 | """GetManufacturerId() -> int""" | |
1774 | return _misc.Joystick_GetManufacturerId(*args, **kwargs) | |
1775 | ||
1776 | def GetProductId(*args, **kwargs): | |
1777 | """GetProductId() -> int""" | |
1778 | return _misc.Joystick_GetProductId(*args, **kwargs) | |
1779 | ||
1780 | def GetProductName(*args, **kwargs): | |
1781 | """GetProductName() -> wxString""" | |
1782 | return _misc.Joystick_GetProductName(*args, **kwargs) | |
1783 | ||
1784 | def GetXMin(*args, **kwargs): | |
1785 | """GetXMin() -> int""" | |
1786 | return _misc.Joystick_GetXMin(*args, **kwargs) | |
1787 | ||
1788 | def GetYMin(*args, **kwargs): | |
1789 | """GetYMin() -> int""" | |
1790 | return _misc.Joystick_GetYMin(*args, **kwargs) | |
1791 | ||
1792 | def GetZMin(*args, **kwargs): | |
1793 | """GetZMin() -> int""" | |
1794 | return _misc.Joystick_GetZMin(*args, **kwargs) | |
1795 | ||
1796 | def GetXMax(*args, **kwargs): | |
1797 | """GetXMax() -> int""" | |
1798 | return _misc.Joystick_GetXMax(*args, **kwargs) | |
1799 | ||
1800 | def GetYMax(*args, **kwargs): | |
1801 | """GetYMax() -> int""" | |
1802 | return _misc.Joystick_GetYMax(*args, **kwargs) | |
1803 | ||
1804 | def GetZMax(*args, **kwargs): | |
1805 | """GetZMax() -> int""" | |
1806 | return _misc.Joystick_GetZMax(*args, **kwargs) | |
1807 | ||
1808 | def GetNumberButtons(*args, **kwargs): | |
1809 | """GetNumberButtons() -> int""" | |
1810 | return _misc.Joystick_GetNumberButtons(*args, **kwargs) | |
1811 | ||
1812 | def GetNumberAxes(*args, **kwargs): | |
1813 | """GetNumberAxes() -> int""" | |
1814 | return _misc.Joystick_GetNumberAxes(*args, **kwargs) | |
1815 | ||
1816 | def GetMaxButtons(*args, **kwargs): | |
1817 | """GetMaxButtons() -> int""" | |
1818 | return _misc.Joystick_GetMaxButtons(*args, **kwargs) | |
1819 | ||
1820 | def GetMaxAxes(*args, **kwargs): | |
1821 | """GetMaxAxes() -> int""" | |
1822 | return _misc.Joystick_GetMaxAxes(*args, **kwargs) | |
1823 | ||
1824 | def GetPollingMin(*args, **kwargs): | |
1825 | """GetPollingMin() -> int""" | |
1826 | return _misc.Joystick_GetPollingMin(*args, **kwargs) | |
1827 | ||
1828 | def GetPollingMax(*args, **kwargs): | |
1829 | """GetPollingMax() -> int""" | |
1830 | return _misc.Joystick_GetPollingMax(*args, **kwargs) | |
1831 | ||
1832 | def GetRudderMin(*args, **kwargs): | |
1833 | """GetRudderMin() -> int""" | |
1834 | return _misc.Joystick_GetRudderMin(*args, **kwargs) | |
1835 | ||
1836 | def GetRudderMax(*args, **kwargs): | |
1837 | """GetRudderMax() -> int""" | |
1838 | return _misc.Joystick_GetRudderMax(*args, **kwargs) | |
1839 | ||
1840 | def GetUMin(*args, **kwargs): | |
1841 | """GetUMin() -> int""" | |
1842 | return _misc.Joystick_GetUMin(*args, **kwargs) | |
1843 | ||
1844 | def GetUMax(*args, **kwargs): | |
1845 | """GetUMax() -> int""" | |
1846 | return _misc.Joystick_GetUMax(*args, **kwargs) | |
1847 | ||
1848 | def GetVMin(*args, **kwargs): | |
1849 | """GetVMin() -> int""" | |
1850 | return _misc.Joystick_GetVMin(*args, **kwargs) | |
1851 | ||
1852 | def GetVMax(*args, **kwargs): | |
1853 | """GetVMax() -> int""" | |
1854 | return _misc.Joystick_GetVMax(*args, **kwargs) | |
1855 | ||
1856 | def HasRudder(*args, **kwargs): | |
1857 | """HasRudder() -> bool""" | |
1858 | return _misc.Joystick_HasRudder(*args, **kwargs) | |
1859 | ||
1860 | def HasZ(*args, **kwargs): | |
1861 | """HasZ() -> bool""" | |
1862 | return _misc.Joystick_HasZ(*args, **kwargs) | |
1863 | ||
1864 | def HasU(*args, **kwargs): | |
1865 | """HasU() -> bool""" | |
1866 | return _misc.Joystick_HasU(*args, **kwargs) | |
1867 | ||
1868 | def HasV(*args, **kwargs): | |
1869 | """HasV() -> bool""" | |
1870 | return _misc.Joystick_HasV(*args, **kwargs) | |
1871 | ||
1872 | def HasPOV(*args, **kwargs): | |
1873 | """HasPOV() -> bool""" | |
1874 | return _misc.Joystick_HasPOV(*args, **kwargs) | |
1875 | ||
1876 | def HasPOV4Dir(*args, **kwargs): | |
1877 | """HasPOV4Dir() -> bool""" | |
1878 | return _misc.Joystick_HasPOV4Dir(*args, **kwargs) | |
1879 | ||
1880 | def HasPOVCTS(*args, **kwargs): | |
1881 | """HasPOVCTS() -> bool""" | |
1882 | return _misc.Joystick_HasPOVCTS(*args, **kwargs) | |
1883 | ||
1884 | def SetCapture(*args, **kwargs): | |
1885 | """SetCapture(Window win, int pollingFreq=0) -> bool""" | |
1886 | return _misc.Joystick_SetCapture(*args, **kwargs) | |
1887 | ||
1888 | def ReleaseCapture(*args, **kwargs): | |
1889 | """ReleaseCapture() -> bool""" | |
1890 | return _misc.Joystick_ReleaseCapture(*args, **kwargs) | |
1891 | ||
d14a1e28 | 1892 | def __nonzero__(self): return self.IsOk() |
70551f47 | 1893 | |
d14a1e28 RD |
1894 | class JoystickPtr(Joystick): |
1895 | def __init__(self, this): | |
1896 | self.this = this | |
1897 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1898 | self.__class__ = Joystick | |
1899 | _misc.Joystick_swigregister(JoystickPtr) | |
1900 | ||
1901 | wxEVT_JOY_BUTTON_DOWN = _misc.wxEVT_JOY_BUTTON_DOWN | |
1902 | wxEVT_JOY_BUTTON_UP = _misc.wxEVT_JOY_BUTTON_UP | |
1903 | wxEVT_JOY_MOVE = _misc.wxEVT_JOY_MOVE | |
1904 | wxEVT_JOY_ZMOVE = _misc.wxEVT_JOY_ZMOVE | |
1905 | class JoystickEvent(core.Event): | |
e811c8ce RD |
1906 | def __repr__(self): |
1907 | return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 RD |
1908 | m_pos = property(_misc.JoystickEvent_m_pos_get, _misc.JoystickEvent_m_pos_set) |
1909 | m_zPosition = property(_misc.JoystickEvent_m_zPosition_get, _misc.JoystickEvent_m_zPosition_set) | |
1910 | m_buttonChange = property(_misc.JoystickEvent_m_buttonChange_get, _misc.JoystickEvent_m_buttonChange_set) | |
1911 | m_buttonState = property(_misc.JoystickEvent_m_buttonState_get, _misc.JoystickEvent_m_buttonState_set) | |
1912 | m_joyStick = property(_misc.JoystickEvent_m_joyStick_get, _misc.JoystickEvent_m_joyStick_set) | |
1913 | def __init__(self, *args, **kwargs): | |
0df68c9f RD |
1914 | """ |
1915 | __init__(wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1, | |
1916 | int change=0) -> JoystickEvent | |
1917 | """ | |
d14a1e28 RD |
1918 | newobj = _misc.new_JoystickEvent(*args, **kwargs) |
1919 | self.this = newobj.this | |
1920 | self.thisown = 1 | |
1921 | del newobj.thisown | |
e811c8ce RD |
1922 | def GetPosition(*args, **kwargs): |
1923 | """GetPosition() -> Point""" | |
1924 | return _misc.JoystickEvent_GetPosition(*args, **kwargs) | |
1925 | ||
1926 | def GetZPosition(*args, **kwargs): | |
1927 | """GetZPosition() -> int""" | |
1928 | return _misc.JoystickEvent_GetZPosition(*args, **kwargs) | |
1929 | ||
1930 | def GetButtonState(*args, **kwargs): | |
1931 | """GetButtonState() -> int""" | |
1932 | return _misc.JoystickEvent_GetButtonState(*args, **kwargs) | |
1933 | ||
1934 | def GetButtonChange(*args, **kwargs): | |
1935 | """GetButtonChange() -> int""" | |
1936 | return _misc.JoystickEvent_GetButtonChange(*args, **kwargs) | |
1937 | ||
1938 | def GetJoystick(*args, **kwargs): | |
1939 | """GetJoystick() -> int""" | |
1940 | return _misc.JoystickEvent_GetJoystick(*args, **kwargs) | |
1941 | ||
1942 | def SetJoystick(*args, **kwargs): | |
1943 | """SetJoystick(int stick)""" | |
1944 | return _misc.JoystickEvent_SetJoystick(*args, **kwargs) | |
1945 | ||
1946 | def SetButtonState(*args, **kwargs): | |
1947 | """SetButtonState(int state)""" | |
1948 | return _misc.JoystickEvent_SetButtonState(*args, **kwargs) | |
1949 | ||
1950 | def SetButtonChange(*args, **kwargs): | |
1951 | """SetButtonChange(int change)""" | |
1952 | return _misc.JoystickEvent_SetButtonChange(*args, **kwargs) | |
1953 | ||
1954 | def SetPosition(*args, **kwargs): | |
1955 | """SetPosition(Point pos)""" | |
1956 | return _misc.JoystickEvent_SetPosition(*args, **kwargs) | |
1957 | ||
1958 | def SetZPosition(*args, **kwargs): | |
1959 | """SetZPosition(int zPos)""" | |
1960 | return _misc.JoystickEvent_SetZPosition(*args, **kwargs) | |
1961 | ||
1962 | def IsButton(*args, **kwargs): | |
1963 | """IsButton() -> bool""" | |
1964 | return _misc.JoystickEvent_IsButton(*args, **kwargs) | |
1965 | ||
1966 | def IsMove(*args, **kwargs): | |
1967 | """IsMove() -> bool""" | |
1968 | return _misc.JoystickEvent_IsMove(*args, **kwargs) | |
1969 | ||
1970 | def IsZMove(*args, **kwargs): | |
1971 | """IsZMove() -> bool""" | |
1972 | return _misc.JoystickEvent_IsZMove(*args, **kwargs) | |
1973 | ||
1974 | def ButtonDown(*args, **kwargs): | |
1975 | """ButtonDown(int but=JOY_BUTTON_ANY) -> bool""" | |
1976 | return _misc.JoystickEvent_ButtonDown(*args, **kwargs) | |
1977 | ||
1978 | def ButtonUp(*args, **kwargs): | |
1979 | """ButtonUp(int but=JOY_BUTTON_ANY) -> bool""" | |
1980 | return _misc.JoystickEvent_ButtonUp(*args, **kwargs) | |
1981 | ||
1982 | def ButtonIsDown(*args, **kwargs): | |
1983 | """ButtonIsDown(int but=JOY_BUTTON_ANY) -> bool""" | |
1984 | return _misc.JoystickEvent_ButtonIsDown(*args, **kwargs) | |
1985 | ||
56f5d962 | 1986 | |
d14a1e28 RD |
1987 | class JoystickEventPtr(JoystickEvent): |
1988 | def __init__(self, this): | |
1989 | self.this = this | |
1990 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1991 | self.__class__ = JoystickEvent | |
1992 | _misc.JoystickEvent_swigregister(JoystickEventPtr) | |
ab9bc19b | 1993 | |
d14a1e28 RD |
1994 | EVT_JOY_BUTTON_DOWN = wx.PyEventBinder( wxEVT_JOY_BUTTON_DOWN ) |
1995 | EVT_JOY_BUTTON_UP = wx.PyEventBinder( wxEVT_JOY_BUTTON_UP ) | |
1996 | EVT_JOY_MOVE = wx.PyEventBinder( wxEVT_JOY_MOVE ) | |
1997 | EVT_JOY_ZMOVE = wx.PyEventBinder( wxEVT_JOY_ZMOVE ) | |
ab9bc19b | 1998 | |
d14a1e28 RD |
1999 | EVT_JOYSTICK_EVENTS = wx.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN, |
2000 | wxEVT_JOY_BUTTON_UP, | |
2001 | wxEVT_JOY_MOVE, | |
2002 | wxEVT_JOY_ZMOVE, | |
2003 | ]) | |
5e40f9dd | 2004 | |
70551f47 | 2005 | |
d14a1e28 | 2006 | #--------------------------------------------------------------------------- |
70551f47 | 2007 | |
d14a1e28 | 2008 | class Wave(object): |
e811c8ce RD |
2009 | def __repr__(self): |
2010 | return "<%s.%s; proxy of C++ wxWave instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2011 | def __init__(self, *args, **kwargs): |
e811c8ce | 2012 | """__init__(wxString fileName, bool isResource=False) -> Wave""" |
d14a1e28 RD |
2013 | newobj = _misc.new_Wave(*args, **kwargs) |
2014 | self.this = newobj.this | |
2015 | self.thisown = 1 | |
2016 | del newobj.thisown | |
2017 | def __del__(self, destroy=_misc.delete_Wave): | |
e811c8ce | 2018 | """__del__()""" |
d14a1e28 RD |
2019 | try: |
2020 | if self.thisown: destroy(self) | |
2021 | except: pass | |
e811c8ce RD |
2022 | |
2023 | def IsOk(*args, **kwargs): | |
2024 | """IsOk() -> bool""" | |
2025 | return _misc.Wave_IsOk(*args, **kwargs) | |
2026 | ||
2027 | def Play(*args, **kwargs): | |
2028 | """Play(bool async=True, bool looped=False) -> bool""" | |
2029 | return _misc.Wave_Play(*args, **kwargs) | |
2030 | ||
d14a1e28 | 2031 | def __nonzero__(self): return self.IsOk() |
bc29c5e0 | 2032 | |
d14a1e28 RD |
2033 | class WavePtr(Wave): |
2034 | def __init__(self, this): | |
2035 | self.this = this | |
2036 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2037 | self.__class__ = Wave | |
2038 | _misc.Wave_swigregister(WavePtr) | |
70551f47 | 2039 | |
d14a1e28 | 2040 | def WaveData(*args, **kwargs): |
e811c8ce | 2041 | """WaveData(wxString data) -> Wave""" |
d14a1e28 RD |
2042 | val = _misc.new_WaveData(*args, **kwargs) |
2043 | val.thisown = 1 | |
2044 | return val | |
70551f47 | 2045 | |
d14a1e28 RD |
2046 | #--------------------------------------------------------------------------- |
2047 | ||
2048 | MAILCAP_STANDARD = _misc.MAILCAP_STANDARD | |
2049 | MAILCAP_NETSCAPE = _misc.MAILCAP_NETSCAPE | |
2050 | MAILCAP_KDE = _misc.MAILCAP_KDE | |
2051 | MAILCAP_GNOME = _misc.MAILCAP_GNOME | |
2052 | MAILCAP_ALL = _misc.MAILCAP_ALL | |
2053 | class FileTypeInfo(object): | |
e811c8ce RD |
2054 | def __repr__(self): |
2055 | return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2056 | def __init__(self, *args, **kwargs): |
0df68c9f RD |
2057 | """ |
2058 | __init__(wxString mimeType, wxString openCmd, wxString printCmd, | |
2059 | wxString desc) -> FileTypeInfo | |
2060 | """ | |
d14a1e28 RD |
2061 | newobj = _misc.new_FileTypeInfo(*args, **kwargs) |
2062 | self.this = newobj.this | |
2063 | self.thisown = 1 | |
2064 | del newobj.thisown | |
e811c8ce RD |
2065 | def IsValid(*args, **kwargs): |
2066 | """IsValid() -> bool""" | |
2067 | return _misc.FileTypeInfo_IsValid(*args, **kwargs) | |
2068 | ||
2069 | def SetIcon(*args, **kwargs): | |
2070 | """SetIcon(wxString iconFile, int iconIndex=0)""" | |
2071 | return _misc.FileTypeInfo_SetIcon(*args, **kwargs) | |
2072 | ||
2073 | def SetShortDesc(*args, **kwargs): | |
2074 | """SetShortDesc(wxString shortDesc)""" | |
2075 | return _misc.FileTypeInfo_SetShortDesc(*args, **kwargs) | |
2076 | ||
2077 | def GetMimeType(*args, **kwargs): | |
2078 | """GetMimeType() -> wxString""" | |
2079 | return _misc.FileTypeInfo_GetMimeType(*args, **kwargs) | |
2080 | ||
2081 | def GetOpenCommand(*args, **kwargs): | |
2082 | """GetOpenCommand() -> wxString""" | |
2083 | return _misc.FileTypeInfo_GetOpenCommand(*args, **kwargs) | |
2084 | ||
2085 | def GetPrintCommand(*args, **kwargs): | |
2086 | """GetPrintCommand() -> wxString""" | |
2087 | return _misc.FileTypeInfo_GetPrintCommand(*args, **kwargs) | |
2088 | ||
2089 | def GetShortDesc(*args, **kwargs): | |
2090 | """GetShortDesc() -> wxString""" | |
2091 | return _misc.FileTypeInfo_GetShortDesc(*args, **kwargs) | |
2092 | ||
2093 | def GetDescription(*args, **kwargs): | |
2094 | """GetDescription() -> wxString""" | |
2095 | return _misc.FileTypeInfo_GetDescription(*args, **kwargs) | |
2096 | ||
2097 | def GetExtensions(*args, **kwargs): | |
2098 | """GetExtensions() -> wxArrayString""" | |
2099 | return _misc.FileTypeInfo_GetExtensions(*args, **kwargs) | |
2100 | ||
2101 | def GetExtensionsCount(*args, **kwargs): | |
2102 | """GetExtensionsCount() -> int""" | |
2103 | return _misc.FileTypeInfo_GetExtensionsCount(*args, **kwargs) | |
2104 | ||
2105 | def GetIconFile(*args, **kwargs): | |
2106 | """GetIconFile() -> wxString""" | |
2107 | return _misc.FileTypeInfo_GetIconFile(*args, **kwargs) | |
2108 | ||
2109 | def GetIconIndex(*args, **kwargs): | |
2110 | """GetIconIndex() -> int""" | |
2111 | return _misc.FileTypeInfo_GetIconIndex(*args, **kwargs) | |
2112 | ||
70551f47 | 2113 | |
d14a1e28 RD |
2114 | class FileTypeInfoPtr(FileTypeInfo): |
2115 | def __init__(self, this): | |
2116 | self.this = this | |
2117 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2118 | self.__class__ = FileTypeInfo | |
2119 | _misc.FileTypeInfo_swigregister(FileTypeInfoPtr) | |
bc29c5e0 | 2120 | |
d14a1e28 | 2121 | def FileTypeInfoSequence(*args, **kwargs): |
e811c8ce | 2122 | """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo""" |
d14a1e28 RD |
2123 | val = _misc.new_FileTypeInfoSequence(*args, **kwargs) |
2124 | val.thisown = 1 | |
2125 | return val | |
bc29c5e0 | 2126 | |
d14a1e28 | 2127 | def NullFileTypeInfo(*args, **kwargs): |
e811c8ce | 2128 | """NullFileTypeInfo() -> FileTypeInfo""" |
d14a1e28 RD |
2129 | val = _misc.new_NullFileTypeInfo(*args, **kwargs) |
2130 | val.thisown = 1 | |
2131 | return val | |
bc29c5e0 | 2132 | |
d14a1e28 | 2133 | class FileType(object): |
e811c8ce RD |
2134 | def __repr__(self): |
2135 | return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2136 | def __init__(self, *args, **kwargs): |
e811c8ce | 2137 | """__init__(FileTypeInfo ftInfo) -> FileType""" |
d14a1e28 RD |
2138 | newobj = _misc.new_FileType(*args, **kwargs) |
2139 | self.this = newobj.this | |
2140 | self.thisown = 1 | |
2141 | del newobj.thisown | |
2142 | def __del__(self, destroy=_misc.delete_FileType): | |
e811c8ce | 2143 | """__del__()""" |
d14a1e28 RD |
2144 | try: |
2145 | if self.thisown: destroy(self) | |
2146 | except: pass | |
e811c8ce RD |
2147 | |
2148 | def GetMimeType(*args, **kwargs): | |
2149 | """GetMimeType() -> PyObject""" | |
2150 | return _misc.FileType_GetMimeType(*args, **kwargs) | |
2151 | ||
2152 | def GetMimeTypes(*args, **kwargs): | |
2153 | """GetMimeTypes() -> PyObject""" | |
2154 | return _misc.FileType_GetMimeTypes(*args, **kwargs) | |
2155 | ||
2156 | def GetExtensions(*args, **kwargs): | |
2157 | """GetExtensions() -> PyObject""" | |
2158 | return _misc.FileType_GetExtensions(*args, **kwargs) | |
2159 | ||
2160 | def GetIcon(*args, **kwargs): | |
2161 | """GetIcon() -> wxIcon""" | |
2162 | return _misc.FileType_GetIcon(*args, **kwargs) | |
2163 | ||
2164 | def GetIconInfo(*args, **kwargs): | |
2165 | """GetIconInfo() -> PyObject""" | |
2166 | return _misc.FileType_GetIconInfo(*args, **kwargs) | |
2167 | ||
2168 | def GetDescription(*args, **kwargs): | |
2169 | """GetDescription() -> PyObject""" | |
2170 | return _misc.FileType_GetDescription(*args, **kwargs) | |
2171 | ||
2172 | def GetOpenCommand(*args, **kwargs): | |
2173 | """GetOpenCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject""" | |
2174 | return _misc.FileType_GetOpenCommand(*args, **kwargs) | |
2175 | ||
2176 | def GetPrintCommand(*args, **kwargs): | |
2177 | """GetPrintCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject""" | |
2178 | return _misc.FileType_GetPrintCommand(*args, **kwargs) | |
2179 | ||
2180 | def GetAllCommands(*args, **kwargs): | |
2181 | """GetAllCommands(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject""" | |
2182 | return _misc.FileType_GetAllCommands(*args, **kwargs) | |
2183 | ||
2184 | def SetCommand(*args, **kwargs): | |
2185 | """SetCommand(wxString cmd, wxString verb, bool overwriteprompt=True) -> bool""" | |
2186 | return _misc.FileType_SetCommand(*args, **kwargs) | |
2187 | ||
2188 | def SetDefaultIcon(*args, **kwargs): | |
2189 | """SetDefaultIcon(wxString cmd=wxPyEmptyString, int index=0) -> bool""" | |
2190 | return _misc.FileType_SetDefaultIcon(*args, **kwargs) | |
2191 | ||
2192 | def Unassociate(*args, **kwargs): | |
2193 | """Unassociate() -> bool""" | |
2194 | return _misc.FileType_Unassociate(*args, **kwargs) | |
2195 | ||
2196 | def ExpandCommand(*args, **kwargs): | |
2197 | """FileType.ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString""" | |
2198 | return _misc.FileType_ExpandCommand(*args, **kwargs) | |
2199 | ||
2200 | ExpandCommand = staticmethod(ExpandCommand) | |
c368d904 | 2201 | |
d14a1e28 RD |
2202 | class FileTypePtr(FileType): |
2203 | def __init__(self, this): | |
2204 | self.this = this | |
2205 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2206 | self.__class__ = FileType | |
2207 | _misc.FileType_swigregister(FileTypePtr) | |
12d1116b | 2208 | |
e811c8ce RD |
2209 | def FileType_ExpandCommand(*args, **kwargs): |
2210 | """FileType_ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString""" | |
2211 | return _misc.FileType_ExpandCommand(*args, **kwargs) | |
d24a34bb | 2212 | |
d14a1e28 | 2213 | class MimeTypesManager(object): |
e811c8ce RD |
2214 | def __repr__(self): |
2215 | return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2216 | def IsOfType(*args, **kwargs): | |
2217 | """MimeTypesManager.IsOfType(wxString mimeType, wxString wildcard) -> bool""" | |
2218 | return _misc.MimeTypesManager_IsOfType(*args, **kwargs) | |
2219 | ||
2220 | IsOfType = staticmethod(IsOfType) | |
d14a1e28 | 2221 | def __init__(self, *args, **kwargs): |
e811c8ce | 2222 | """__init__() -> MimeTypesManager""" |
d14a1e28 RD |
2223 | newobj = _misc.new_MimeTypesManager(*args, **kwargs) |
2224 | self.this = newobj.this | |
2225 | self.thisown = 1 | |
2226 | del newobj.thisown | |
e811c8ce RD |
2227 | def Initialize(*args, **kwargs): |
2228 | """Initialize(int mailcapStyle=MAILCAP_ALL, wxString extraDir=wxPyEmptyString)""" | |
2229 | return _misc.MimeTypesManager_Initialize(*args, **kwargs) | |
2230 | ||
2231 | def ClearData(*args, **kwargs): | |
2232 | """ClearData()""" | |
2233 | return _misc.MimeTypesManager_ClearData(*args, **kwargs) | |
2234 | ||
2235 | def GetFileTypeFromExtension(*args, **kwargs): | |
2236 | """GetFileTypeFromExtension(wxString ext) -> FileType""" | |
2237 | return _misc.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs) | |
2238 | ||
2239 | def GetFileTypeFromMimeType(*args, **kwargs): | |
2240 | """GetFileTypeFromMimeType(wxString mimeType) -> FileType""" | |
2241 | return _misc.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs) | |
2242 | ||
2243 | def ReadMailcap(*args, **kwargs): | |
2244 | """ReadMailcap(wxString filename, bool fallback=False) -> bool""" | |
2245 | return _misc.MimeTypesManager_ReadMailcap(*args, **kwargs) | |
2246 | ||
2247 | def ReadMimeTypes(*args, **kwargs): | |
2248 | """ReadMimeTypes(wxString filename) -> bool""" | |
2249 | return _misc.MimeTypesManager_ReadMimeTypes(*args, **kwargs) | |
2250 | ||
2251 | def EnumAllFileTypes(*args, **kwargs): | |
2252 | """EnumAllFileTypes() -> PyObject""" | |
2253 | return _misc.MimeTypesManager_EnumAllFileTypes(*args, **kwargs) | |
2254 | ||
2255 | def AddFallback(*args, **kwargs): | |
2256 | """AddFallback(FileTypeInfo ft)""" | |
2257 | return _misc.MimeTypesManager_AddFallback(*args, **kwargs) | |
2258 | ||
2259 | def Associate(*args, **kwargs): | |
2260 | """Associate(FileTypeInfo ftInfo) -> FileType""" | |
2261 | return _misc.MimeTypesManager_Associate(*args, **kwargs) | |
2262 | ||
2263 | def Unassociate(*args, **kwargs): | |
2264 | """Unassociate(FileType ft) -> bool""" | |
2265 | return _misc.MimeTypesManager_Unassociate(*args, **kwargs) | |
2266 | ||
d14a1e28 | 2267 | def __del__(self, destroy=_misc.delete_MimeTypesManager): |
e811c8ce | 2268 | """__del__()""" |
d14a1e28 RD |
2269 | try: |
2270 | if self.thisown: destroy(self) | |
2271 | except: pass | |
e811c8ce | 2272 | |
70551f47 | 2273 | |
d14a1e28 RD |
2274 | class MimeTypesManagerPtr(MimeTypesManager): |
2275 | def __init__(self, this): | |
2276 | self.this = this | |
2277 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2278 | self.__class__ = MimeTypesManager | |
2279 | _misc.MimeTypesManager_swigregister(MimeTypesManagerPtr) | |
2280 | cvar = _misc.cvar | |
2281 | TheMimeTypesManager = cvar.TheMimeTypesManager | |
ab9bc19b | 2282 | |
e811c8ce RD |
2283 | def MimeTypesManager_IsOfType(*args, **kwargs): |
2284 | """MimeTypesManager_IsOfType(wxString mimeType, wxString wildcard) -> bool""" | |
2285 | return _misc.MimeTypesManager_IsOfType(*args, **kwargs) | |
5e40f9dd | 2286 | |
d14a1e28 | 2287 | #--------------------------------------------------------------------------- |
d24a34bb | 2288 | |
d14a1e28 | 2289 | class ArtProvider(object): |
e811c8ce RD |
2290 | def __repr__(self): |
2291 | return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2292 | def __init__(self, *args, **kwargs): |
e811c8ce | 2293 | """__init__() -> ArtProvider""" |
d14a1e28 RD |
2294 | newobj = _misc.new_ArtProvider(*args, **kwargs) |
2295 | self.this = newobj.this | |
2296 | self.thisown = 1 | |
2297 | del newobj.thisown | |
2298 | self._setCallbackInfo(self, ArtProvider) | |
e811c8ce | 2299 | |
e811c8ce RD |
2300 | def _setCallbackInfo(*args, **kwargs): |
2301 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
2302 | return _misc.ArtProvider__setCallbackInfo(*args, **kwargs) | |
2303 | ||
2304 | def PushProvider(*args, **kwargs): | |
0df68c9f RD |
2305 | """ |
2306 | ArtProvider.PushProvider(ArtProvider provider) | |
1e0c8722 | 2307 | |
0df68c9f RD |
2308 | Add new provider to the top of providers stack. |
2309 | """ | |
e811c8ce RD |
2310 | return _misc.ArtProvider_PushProvider(*args, **kwargs) |
2311 | ||
2312 | PushProvider = staticmethod(PushProvider) | |
2313 | def PopProvider(*args, **kwargs): | |
0df68c9f RD |
2314 | """ |
2315 | ArtProvider.PopProvider() -> bool | |
1e0c8722 | 2316 | |
0df68c9f RD |
2317 | Remove latest added provider and delete it. |
2318 | """ | |
e811c8ce RD |
2319 | return _misc.ArtProvider_PopProvider(*args, **kwargs) |
2320 | ||
2321 | PopProvider = staticmethod(PopProvider) | |
2322 | def RemoveProvider(*args, **kwargs): | |
0df68c9f RD |
2323 | """ |
2324 | ArtProvider.RemoveProvider(ArtProvider provider) -> bool | |
1e0c8722 | 2325 | |
0df68c9f RD |
2326 | Remove provider. The provider must have been added previously! |
2327 | The provider is _not_ deleted. | |
2328 | """ | |
e811c8ce RD |
2329 | return _misc.ArtProvider_RemoveProvider(*args, **kwargs) |
2330 | ||
2331 | RemoveProvider = staticmethod(RemoveProvider) | |
2332 | def GetBitmap(*args, **kwargs): | |
0df68c9f RD |
2333 | """ |
2334 | ArtProvider.GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap | |
1e0c8722 | 2335 | |
0df68c9f RD |
2336 | Query the providers for bitmap with given ID and return it. Return |
2337 | wx.NullBitmap if no provider provides it. | |
2338 | """ | |
e811c8ce RD |
2339 | return _misc.ArtProvider_GetBitmap(*args, **kwargs) |
2340 | ||
2341 | GetBitmap = staticmethod(GetBitmap) | |
2342 | def GetIcon(*args, **kwargs): | |
0df68c9f RD |
2343 | """ |
2344 | ArtProvider.GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon | |
1e0c8722 | 2345 | |
0df68c9f RD |
2346 | Query the providers for icon with given ID and return it. Return |
2347 | wx.NullIcon if no provider provides it. | |
2348 | """ | |
e811c8ce RD |
2349 | return _misc.ArtProvider_GetIcon(*args, **kwargs) |
2350 | ||
2351 | GetIcon = staticmethod(GetIcon) | |
1e0c8722 RD |
2352 | def Destroy(*args, **kwargs): |
2353 | """Destroy()""" | |
2354 | return _misc.ArtProvider_Destroy(*args, **kwargs) | |
2355 | ||
d29aba2f | 2356 | |
d14a1e28 RD |
2357 | class ArtProviderPtr(ArtProvider): |
2358 | def __init__(self, this): | |
2359 | self.this = this | |
2360 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2361 | self.__class__ = ArtProvider | |
2362 | _misc.ArtProvider_swigregister(ArtProviderPtr) | |
2363 | ART_TOOLBAR = cvar.ART_TOOLBAR | |
2364 | ART_MENU = cvar.ART_MENU | |
2365 | ART_FRAME_ICON = cvar.ART_FRAME_ICON | |
2366 | ART_CMN_DIALOG = cvar.ART_CMN_DIALOG | |
2367 | ART_HELP_BROWSER = cvar.ART_HELP_BROWSER | |
2368 | ART_MESSAGE_BOX = cvar.ART_MESSAGE_BOX | |
2369 | ART_OTHER = cvar.ART_OTHER | |
2370 | ART_ADD_BOOKMARK = cvar.ART_ADD_BOOKMARK | |
2371 | ART_DEL_BOOKMARK = cvar.ART_DEL_BOOKMARK | |
2372 | ART_HELP_SIDE_PANEL = cvar.ART_HELP_SIDE_PANEL | |
2373 | ART_HELP_SETTINGS = cvar.ART_HELP_SETTINGS | |
2374 | ART_HELP_BOOK = cvar.ART_HELP_BOOK | |
2375 | ART_HELP_FOLDER = cvar.ART_HELP_FOLDER | |
2376 | ART_HELP_PAGE = cvar.ART_HELP_PAGE | |
2377 | ART_GO_BACK = cvar.ART_GO_BACK | |
2378 | ART_GO_FORWARD = cvar.ART_GO_FORWARD | |
2379 | ART_GO_UP = cvar.ART_GO_UP | |
2380 | ART_GO_DOWN = cvar.ART_GO_DOWN | |
2381 | ART_GO_TO_PARENT = cvar.ART_GO_TO_PARENT | |
2382 | ART_GO_HOME = cvar.ART_GO_HOME | |
2383 | ART_FILE_OPEN = cvar.ART_FILE_OPEN | |
2384 | ART_PRINT = cvar.ART_PRINT | |
2385 | ART_HELP = cvar.ART_HELP | |
2386 | ART_TIP = cvar.ART_TIP | |
2387 | ART_REPORT_VIEW = cvar.ART_REPORT_VIEW | |
2388 | ART_LIST_VIEW = cvar.ART_LIST_VIEW | |
2389 | ART_NEW_DIR = cvar.ART_NEW_DIR | |
2390 | ART_FOLDER = cvar.ART_FOLDER | |
2391 | ART_GO_DIR_UP = cvar.ART_GO_DIR_UP | |
2392 | ART_EXECUTABLE_FILE = cvar.ART_EXECUTABLE_FILE | |
2393 | ART_NORMAL_FILE = cvar.ART_NORMAL_FILE | |
2394 | ART_TICK_MARK = cvar.ART_TICK_MARK | |
2395 | ART_CROSS_MARK = cvar.ART_CROSS_MARK | |
2396 | ART_ERROR = cvar.ART_ERROR | |
2397 | ART_QUESTION = cvar.ART_QUESTION | |
2398 | ART_WARNING = cvar.ART_WARNING | |
2399 | ART_INFORMATION = cvar.ART_INFORMATION | |
2400 | ART_MISSING_IMAGE = cvar.ART_MISSING_IMAGE | |
2401 | ||
e811c8ce | 2402 | def ArtProvider_PushProvider(*args, **kwargs): |
0df68c9f RD |
2403 | """ |
2404 | ArtProvider_PushProvider(ArtProvider provider) | |
1e0c8722 | 2405 | |
0df68c9f RD |
2406 | Add new provider to the top of providers stack. |
2407 | """ | |
e811c8ce | 2408 | return _misc.ArtProvider_PushProvider(*args, **kwargs) |
d14a1e28 | 2409 | |
e811c8ce | 2410 | def ArtProvider_PopProvider(*args, **kwargs): |
0df68c9f RD |
2411 | """ |
2412 | ArtProvider_PopProvider() -> bool | |
1e0c8722 | 2413 | |
0df68c9f RD |
2414 | Remove latest added provider and delete it. |
2415 | """ | |
e811c8ce | 2416 | return _misc.ArtProvider_PopProvider(*args, **kwargs) |
d14a1e28 | 2417 | |
e811c8ce | 2418 | def ArtProvider_RemoveProvider(*args, **kwargs): |
0df68c9f RD |
2419 | """ |
2420 | ArtProvider_RemoveProvider(ArtProvider provider) -> bool | |
1e0c8722 | 2421 | |
0df68c9f RD |
2422 | Remove provider. The provider must have been added previously! |
2423 | The provider is _not_ deleted. | |
2424 | """ | |
e811c8ce | 2425 | return _misc.ArtProvider_RemoveProvider(*args, **kwargs) |
d14a1e28 | 2426 | |
e811c8ce | 2427 | def ArtProvider_GetBitmap(*args, **kwargs): |
0df68c9f RD |
2428 | """ |
2429 | ArtProvider_GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap | |
1e0c8722 | 2430 | |
0df68c9f RD |
2431 | Query the providers for bitmap with given ID and return it. Return |
2432 | wx.NullBitmap if no provider provides it. | |
2433 | """ | |
e811c8ce | 2434 | return _misc.ArtProvider_GetBitmap(*args, **kwargs) |
d14a1e28 | 2435 | |
e811c8ce | 2436 | def ArtProvider_GetIcon(*args, **kwargs): |
0df68c9f RD |
2437 | """ |
2438 | ArtProvider_GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon | |
1e0c8722 | 2439 | |
0df68c9f RD |
2440 | Query the providers for icon with given ID and return it. Return |
2441 | wx.NullIcon if no provider provides it. | |
2442 | """ | |
e811c8ce | 2443 | return _misc.ArtProvider_GetIcon(*args, **kwargs) |
d14a1e28 RD |
2444 | |
2445 | #--------------------------------------------------------------------------- | |
2446 | ||
2447 | CONFIG_USE_LOCAL_FILE = _misc.CONFIG_USE_LOCAL_FILE | |
2448 | CONFIG_USE_GLOBAL_FILE = _misc.CONFIG_USE_GLOBAL_FILE | |
2449 | CONFIG_USE_RELATIVE_PATH = _misc.CONFIG_USE_RELATIVE_PATH | |
2450 | CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc.CONFIG_USE_NO_ESCAPE_CHARACTERS | |
2451 | class ConfigBase(object): | |
e811c8ce RD |
2452 | def __init__(self): raise RuntimeError, "No constructor defined" |
2453 | def __repr__(self): | |
2454 | return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2455 | def __del__(self, destroy=_misc.delete_ConfigBase): |
e811c8ce | 2456 | """__del__()""" |
d14a1e28 RD |
2457 | try: |
2458 | if self.thisown: destroy(self) | |
2459 | except: pass | |
e811c8ce | 2460 | |
d14a1e28 RD |
2461 | Type_Unknown = _misc.ConfigBase_Type_Unknown |
2462 | Type_String = _misc.ConfigBase_Type_String | |
2463 | Type_Boolean = _misc.ConfigBase_Type_Boolean | |
2464 | Type_Integer = _misc.ConfigBase_Type_Integer | |
2465 | Type_Float = _misc.ConfigBase_Type_Float | |
e811c8ce RD |
2466 | def Set(*args, **kwargs): |
2467 | """ConfigBase.Set(ConfigBase pConfig) -> ConfigBase""" | |
2468 | return _misc.ConfigBase_Set(*args, **kwargs) | |
2469 | ||
2470 | Set = staticmethod(Set) | |
2471 | def Get(*args, **kwargs): | |
2472 | """ConfigBase.Get(bool createOnDemand=True) -> ConfigBase""" | |
2473 | return _misc.ConfigBase_Get(*args, **kwargs) | |
2474 | ||
2475 | Get = staticmethod(Get) | |
2476 | def Create(*args, **kwargs): | |
2477 | """ConfigBase.Create() -> ConfigBase""" | |
2478 | return _misc.ConfigBase_Create(*args, **kwargs) | |
2479 | ||
2480 | Create = staticmethod(Create) | |
2481 | def DontCreateOnDemand(*args, **kwargs): | |
2482 | """ConfigBase.DontCreateOnDemand()""" | |
2483 | return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs) | |
2484 | ||
2485 | DontCreateOnDemand = staticmethod(DontCreateOnDemand) | |
2486 | def SetPath(*args, **kwargs): | |
2487 | """SetPath(wxString strPath)""" | |
2488 | return _misc.ConfigBase_SetPath(*args, **kwargs) | |
2489 | ||
2490 | def GetPath(*args, **kwargs): | |
2491 | """GetPath() -> wxString""" | |
2492 | return _misc.ConfigBase_GetPath(*args, **kwargs) | |
2493 | ||
2494 | def GetFirstGroup(*args, **kwargs): | |
2495 | """GetFirstGroup() -> PyObject""" | |
2496 | return _misc.ConfigBase_GetFirstGroup(*args, **kwargs) | |
2497 | ||
2498 | def GetNextGroup(*args, **kwargs): | |
2499 | """GetNextGroup(long index) -> PyObject""" | |
2500 | return _misc.ConfigBase_GetNextGroup(*args, **kwargs) | |
2501 | ||
2502 | def GetFirstEntry(*args, **kwargs): | |
2503 | """GetFirstEntry() -> PyObject""" | |
2504 | return _misc.ConfigBase_GetFirstEntry(*args, **kwargs) | |
2505 | ||
2506 | def GetNextEntry(*args, **kwargs): | |
2507 | """GetNextEntry(long index) -> PyObject""" | |
2508 | return _misc.ConfigBase_GetNextEntry(*args, **kwargs) | |
2509 | ||
2510 | def GetNumberOfEntries(*args, **kwargs): | |
2511 | """GetNumberOfEntries(bool bRecursive=False) -> size_t""" | |
2512 | return _misc.ConfigBase_GetNumberOfEntries(*args, **kwargs) | |
2513 | ||
2514 | def GetNumberOfGroups(*args, **kwargs): | |
2515 | """GetNumberOfGroups(bool bRecursive=False) -> size_t""" | |
2516 | return _misc.ConfigBase_GetNumberOfGroups(*args, **kwargs) | |
2517 | ||
2518 | def HasGroup(*args, **kwargs): | |
2519 | """HasGroup(wxString strName) -> bool""" | |
2520 | return _misc.ConfigBase_HasGroup(*args, **kwargs) | |
2521 | ||
2522 | def HasEntry(*args, **kwargs): | |
2523 | """HasEntry(wxString strName) -> bool""" | |
2524 | return _misc.ConfigBase_HasEntry(*args, **kwargs) | |
2525 | ||
2526 | def Exists(*args, **kwargs): | |
2527 | """Exists(wxString strName) -> bool""" | |
2528 | return _misc.ConfigBase_Exists(*args, **kwargs) | |
2529 | ||
2530 | def GetEntryType(*args, **kwargs): | |
2531 | """GetEntryType(wxString name) -> wxConfigBase::EntryType""" | |
2532 | return _misc.ConfigBase_GetEntryType(*args, **kwargs) | |
2533 | ||
2534 | def Read(*args, **kwargs): | |
2535 | """Read(wxString key, wxString defaultVal=wxPyEmptyString) -> wxString""" | |
2536 | return _misc.ConfigBase_Read(*args, **kwargs) | |
2537 | ||
2538 | def ReadInt(*args, **kwargs): | |
2539 | """ReadInt(wxString key, long defaultVal=0) -> long""" | |
2540 | return _misc.ConfigBase_ReadInt(*args, **kwargs) | |
2541 | ||
2542 | def ReadFloat(*args, **kwargs): | |
2543 | """ReadFloat(wxString key, double defaultVal=0.0) -> double""" | |
2544 | return _misc.ConfigBase_ReadFloat(*args, **kwargs) | |
2545 | ||
2546 | def ReadBool(*args, **kwargs): | |
2547 | """ReadBool(wxString key, bool defaultVal=False) -> bool""" | |
2548 | return _misc.ConfigBase_ReadBool(*args, **kwargs) | |
2549 | ||
2550 | def Write(*args, **kwargs): | |
2551 | """Write(wxString key, wxString value) -> bool""" | |
2552 | return _misc.ConfigBase_Write(*args, **kwargs) | |
2553 | ||
2554 | def WriteInt(*args, **kwargs): | |
2555 | """WriteInt(wxString key, long value) -> bool""" | |
2556 | return _misc.ConfigBase_WriteInt(*args, **kwargs) | |
2557 | ||
2558 | def WriteFloat(*args, **kwargs): | |
2559 | """WriteFloat(wxString key, double value) -> bool""" | |
2560 | return _misc.ConfigBase_WriteFloat(*args, **kwargs) | |
2561 | ||
2562 | def WriteBool(*args, **kwargs): | |
2563 | """WriteBool(wxString key, bool value) -> bool""" | |
2564 | return _misc.ConfigBase_WriteBool(*args, **kwargs) | |
2565 | ||
2566 | def Flush(*args, **kwargs): | |
2567 | """Flush(bool bCurrentOnly=False) -> bool""" | |
2568 | return _misc.ConfigBase_Flush(*args, **kwargs) | |
2569 | ||
2570 | def RenameEntry(*args, **kwargs): | |
2571 | """RenameEntry(wxString oldName, wxString newName) -> bool""" | |
2572 | return _misc.ConfigBase_RenameEntry(*args, **kwargs) | |
2573 | ||
2574 | def RenameGroup(*args, **kwargs): | |
2575 | """RenameGroup(wxString oldName, wxString newName) -> bool""" | |
2576 | return _misc.ConfigBase_RenameGroup(*args, **kwargs) | |
2577 | ||
2578 | def DeleteEntry(*args, **kwargs): | |
2579 | """DeleteEntry(wxString key, bool bDeleteGroupIfEmpty=True) -> bool""" | |
2580 | return _misc.ConfigBase_DeleteEntry(*args, **kwargs) | |
2581 | ||
2582 | def DeleteGroup(*args, **kwargs): | |
2583 | """DeleteGroup(wxString key) -> bool""" | |
2584 | return _misc.ConfigBase_DeleteGroup(*args, **kwargs) | |
2585 | ||
2586 | def DeleteAll(*args, **kwargs): | |
2587 | """DeleteAll() -> bool""" | |
2588 | return _misc.ConfigBase_DeleteAll(*args, **kwargs) | |
2589 | ||
2590 | def IsExpandingEnvVars(*args, **kwargs): | |
2591 | """IsExpandingEnvVars() -> bool""" | |
2592 | return _misc.ConfigBase_IsExpandingEnvVars(*args, **kwargs) | |
2593 | ||
2594 | def SetExpandEnvVars(*args, **kwargs): | |
2595 | """SetExpandEnvVars(bool bDoIt=True)""" | |
2596 | return _misc.ConfigBase_SetExpandEnvVars(*args, **kwargs) | |
2597 | ||
2598 | def SetRecordDefaults(*args, **kwargs): | |
2599 | """SetRecordDefaults(bool bDoIt=True)""" | |
2600 | return _misc.ConfigBase_SetRecordDefaults(*args, **kwargs) | |
2601 | ||
2602 | def IsRecordingDefaults(*args, **kwargs): | |
2603 | """IsRecordingDefaults() -> bool""" | |
2604 | return _misc.ConfigBase_IsRecordingDefaults(*args, **kwargs) | |
2605 | ||
2606 | def ExpandEnvVars(*args, **kwargs): | |
2607 | """ExpandEnvVars(wxString str) -> wxString""" | |
2608 | return _misc.ConfigBase_ExpandEnvVars(*args, **kwargs) | |
2609 | ||
2610 | def GetAppName(*args, **kwargs): | |
2611 | """GetAppName() -> wxString""" | |
2612 | return _misc.ConfigBase_GetAppName(*args, **kwargs) | |
2613 | ||
2614 | def GetVendorName(*args, **kwargs): | |
2615 | """GetVendorName() -> wxString""" | |
2616 | return _misc.ConfigBase_GetVendorName(*args, **kwargs) | |
2617 | ||
2618 | def SetAppName(*args, **kwargs): | |
2619 | """SetAppName(wxString appName)""" | |
2620 | return _misc.ConfigBase_SetAppName(*args, **kwargs) | |
2621 | ||
2622 | def SetVendorName(*args, **kwargs): | |
2623 | """SetVendorName(wxString vendorName)""" | |
2624 | return _misc.ConfigBase_SetVendorName(*args, **kwargs) | |
2625 | ||
2626 | def SetStyle(*args, **kwargs): | |
2627 | """SetStyle(long style)""" | |
2628 | return _misc.ConfigBase_SetStyle(*args, **kwargs) | |
2629 | ||
2630 | def GetStyle(*args, **kwargs): | |
2631 | """GetStyle() -> long""" | |
2632 | return _misc.ConfigBase_GetStyle(*args, **kwargs) | |
2633 | ||
c368d904 | 2634 | |
d14a1e28 RD |
2635 | class ConfigBasePtr(ConfigBase): |
2636 | def __init__(self, this): | |
2637 | self.this = this | |
2638 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2639 | self.__class__ = ConfigBase | |
2640 | _misc.ConfigBase_swigregister(ConfigBasePtr) | |
c368d904 | 2641 | |
e811c8ce RD |
2642 | def ConfigBase_Set(*args, **kwargs): |
2643 | """ConfigBase_Set(ConfigBase pConfig) -> ConfigBase""" | |
2644 | return _misc.ConfigBase_Set(*args, **kwargs) | |
c368d904 | 2645 | |
e811c8ce RD |
2646 | def ConfigBase_Get(*args, **kwargs): |
2647 | """ConfigBase_Get(bool createOnDemand=True) -> ConfigBase""" | |
2648 | return _misc.ConfigBase_Get(*args, **kwargs) | |
c368d904 | 2649 | |
e811c8ce RD |
2650 | def ConfigBase_Create(*args, **kwargs): |
2651 | """ConfigBase_Create() -> ConfigBase""" | |
2652 | return _misc.ConfigBase_Create(*args, **kwargs) | |
c368d904 | 2653 | |
e811c8ce RD |
2654 | def ConfigBase_DontCreateOnDemand(*args, **kwargs): |
2655 | """ConfigBase_DontCreateOnDemand()""" | |
2656 | return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs) | |
c368d904 | 2657 | |
d14a1e28 | 2658 | class ConfigPathChanger(object): |
e811c8ce RD |
2659 | def __repr__(self): |
2660 | return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2661 | def __init__(self, *args, **kwargs): |
e811c8ce | 2662 | """__init__(ConfigBase pContainer, wxString strEntry) -> ConfigPathChanger""" |
d14a1e28 RD |
2663 | newobj = _misc.new_ConfigPathChanger(*args, **kwargs) |
2664 | self.this = newobj.this | |
2665 | self.thisown = 1 | |
2666 | del newobj.thisown | |
2667 | def __del__(self, destroy=_misc.delete_ConfigPathChanger): | |
e811c8ce | 2668 | """__del__()""" |
d14a1e28 RD |
2669 | try: |
2670 | if self.thisown: destroy(self) | |
2671 | except: pass | |
e811c8ce RD |
2672 | |
2673 | def Name(*args, **kwargs): | |
2674 | """Name() -> wxString""" | |
2675 | return _misc.ConfigPathChanger_Name(*args, **kwargs) | |
2676 | ||
5d413391 | 2677 | |
d14a1e28 RD |
2678 | class ConfigPathChangerPtr(ConfigPathChanger): |
2679 | def __init__(self, this): | |
2680 | self.this = this | |
2681 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2682 | self.__class__ = ConfigPathChanger | |
2683 | _misc.ConfigPathChanger_swigregister(ConfigPathChangerPtr) | |
2684 | ||
2685 | class Config(ConfigBase): | |
e811c8ce RD |
2686 | def __repr__(self): |
2687 | return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2688 | def __init__(self, *args, **kwargs): |
0df68c9f RD |
2689 | """ |
2690 | __init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString, | |
2691 | wxString localFilename=wxPyEmptyString, | |
2692 | wxString globalFilename=wxPyEmptyString, | |
2693 | long style=0) -> Config | |
2694 | """ | |
d14a1e28 RD |
2695 | newobj = _misc.new_Config(*args, **kwargs) |
2696 | self.this = newobj.this | |
2697 | self.thisown = 1 | |
2698 | del newobj.thisown | |
2699 | def __del__(self, destroy=_misc.delete_Config): | |
e811c8ce | 2700 | """__del__()""" |
d14a1e28 RD |
2701 | try: |
2702 | if self.thisown: destroy(self) | |
2703 | except: pass | |
e811c8ce | 2704 | |
8f8b0a8d | 2705 | |
d14a1e28 RD |
2706 | class ConfigPtr(Config): |
2707 | def __init__(self, this): | |
2708 | self.this = this | |
2709 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2710 | self.__class__ = Config | |
2711 | _misc.Config_swigregister(ConfigPtr) | |
2712 | ||
2713 | class FileConfig(ConfigBase): | |
e811c8ce RD |
2714 | def __repr__(self): |
2715 | return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2716 | def __init__(self, *args, **kwargs): |
0df68c9f RD |
2717 | """ |
2718 | __init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString, | |
2719 | wxString localFilename=wxPyEmptyString, | |
2720 | wxString globalFilename=wxPyEmptyString, | |
2721 | long style=0) -> FileConfig | |
2722 | """ | |
d14a1e28 RD |
2723 | newobj = _misc.new_FileConfig(*args, **kwargs) |
2724 | self.this = newobj.this | |
2725 | self.thisown = 1 | |
2726 | del newobj.thisown | |
2727 | def __del__(self, destroy=_misc.delete_FileConfig): | |
e811c8ce | 2728 | """__del__()""" |
d14a1e28 RD |
2729 | try: |
2730 | if self.thisown: destroy(self) | |
2731 | except: pass | |
e811c8ce | 2732 | |
3628e088 | 2733 | |
d14a1e28 RD |
2734 | class FileConfigPtr(FileConfig): |
2735 | def __init__(self, this): | |
2736 | self.this = this | |
2737 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2738 | self.__class__ = FileConfig | |
2739 | _misc.FileConfig_swigregister(FileConfigPtr) | |
2740 | ||
2741 | ||
e811c8ce RD |
2742 | def ExpandEnvVars(*args, **kwargs): |
2743 | """ExpandEnvVars(wxString sz) -> wxString""" | |
2744 | return _misc.ExpandEnvVars(*args, **kwargs) | |
d14a1e28 RD |
2745 | #--------------------------------------------------------------------------- |
2746 | ||
2747 | class DateTime(object): | |
e811c8ce RD |
2748 | def __repr__(self): |
2749 | return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 RD |
2750 | Local = _misc.DateTime_Local |
2751 | GMT_12 = _misc.DateTime_GMT_12 | |
2752 | GMT_11 = _misc.DateTime_GMT_11 | |
2753 | GMT_10 = _misc.DateTime_GMT_10 | |
2754 | GMT_9 = _misc.DateTime_GMT_9 | |
2755 | GMT_8 = _misc.DateTime_GMT_8 | |
2756 | GMT_7 = _misc.DateTime_GMT_7 | |
2757 | GMT_6 = _misc.DateTime_GMT_6 | |
2758 | GMT_5 = _misc.DateTime_GMT_5 | |
2759 | GMT_4 = _misc.DateTime_GMT_4 | |
2760 | GMT_3 = _misc.DateTime_GMT_3 | |
2761 | GMT_2 = _misc.DateTime_GMT_2 | |
2762 | GMT_1 = _misc.DateTime_GMT_1 | |
2763 | GMT0 = _misc.DateTime_GMT0 | |
2764 | GMT1 = _misc.DateTime_GMT1 | |
2765 | GMT2 = _misc.DateTime_GMT2 | |
2766 | GMT3 = _misc.DateTime_GMT3 | |
2767 | GMT4 = _misc.DateTime_GMT4 | |
2768 | GMT5 = _misc.DateTime_GMT5 | |
2769 | GMT6 = _misc.DateTime_GMT6 | |
2770 | GMT7 = _misc.DateTime_GMT7 | |
2771 | GMT8 = _misc.DateTime_GMT8 | |
2772 | GMT9 = _misc.DateTime_GMT9 | |
2773 | GMT10 = _misc.DateTime_GMT10 | |
2774 | GMT11 = _misc.DateTime_GMT11 | |
2775 | GMT12 = _misc.DateTime_GMT12 | |
2776 | WET = _misc.DateTime_WET | |
2777 | WEST = _misc.DateTime_WEST | |
2778 | CET = _misc.DateTime_CET | |
2779 | CEST = _misc.DateTime_CEST | |
2780 | EET = _misc.DateTime_EET | |
2781 | EEST = _misc.DateTime_EEST | |
2782 | MSK = _misc.DateTime_MSK | |
2783 | MSD = _misc.DateTime_MSD | |
2784 | AST = _misc.DateTime_AST | |
2785 | ADT = _misc.DateTime_ADT | |
2786 | EST = _misc.DateTime_EST | |
2787 | EDT = _misc.DateTime_EDT | |
2788 | CST = _misc.DateTime_CST | |
2789 | CDT = _misc.DateTime_CDT | |
2790 | MST = _misc.DateTime_MST | |
2791 | MDT = _misc.DateTime_MDT | |
2792 | PST = _misc.DateTime_PST | |
2793 | PDT = _misc.DateTime_PDT | |
2794 | HST = _misc.DateTime_HST | |
2795 | AKST = _misc.DateTime_AKST | |
2796 | AKDT = _misc.DateTime_AKDT | |
2797 | A_WST = _misc.DateTime_A_WST | |
2798 | A_CST = _misc.DateTime_A_CST | |
2799 | A_EST = _misc.DateTime_A_EST | |
2800 | A_ESST = _misc.DateTime_A_ESST | |
2801 | UTC = _misc.DateTime_UTC | |
2802 | Gregorian = _misc.DateTime_Gregorian | |
2803 | Julian = _misc.DateTime_Julian | |
2804 | Gr_Unknown = _misc.DateTime_Gr_Unknown | |
2805 | Gr_Standard = _misc.DateTime_Gr_Standard | |
2806 | Gr_Alaska = _misc.DateTime_Gr_Alaska | |
2807 | Gr_Albania = _misc.DateTime_Gr_Albania | |
2808 | Gr_Austria = _misc.DateTime_Gr_Austria | |
2809 | Gr_Austria_Brixen = _misc.DateTime_Gr_Austria_Brixen | |
2810 | Gr_Austria_Salzburg = _misc.DateTime_Gr_Austria_Salzburg | |
2811 | Gr_Austria_Tyrol = _misc.DateTime_Gr_Austria_Tyrol | |
2812 | Gr_Austria_Carinthia = _misc.DateTime_Gr_Austria_Carinthia | |
2813 | Gr_Austria_Styria = _misc.DateTime_Gr_Austria_Styria | |
2814 | Gr_Belgium = _misc.DateTime_Gr_Belgium | |
2815 | Gr_Bulgaria = _misc.DateTime_Gr_Bulgaria | |
2816 | Gr_Bulgaria_1 = _misc.DateTime_Gr_Bulgaria_1 | |
2817 | Gr_Bulgaria_2 = _misc.DateTime_Gr_Bulgaria_2 | |
2818 | Gr_Bulgaria_3 = _misc.DateTime_Gr_Bulgaria_3 | |
2819 | Gr_Canada = _misc.DateTime_Gr_Canada | |
2820 | Gr_China = _misc.DateTime_Gr_China | |
2821 | Gr_China_1 = _misc.DateTime_Gr_China_1 | |
2822 | Gr_China_2 = _misc.DateTime_Gr_China_2 | |
2823 | Gr_Czechoslovakia = _misc.DateTime_Gr_Czechoslovakia | |
2824 | Gr_Denmark = _misc.DateTime_Gr_Denmark | |
2825 | Gr_Egypt = _misc.DateTime_Gr_Egypt | |
2826 | Gr_Estonia = _misc.DateTime_Gr_Estonia | |
2827 | Gr_Finland = _misc.DateTime_Gr_Finland | |
2828 | Gr_France = _misc.DateTime_Gr_France | |
2829 | Gr_France_Alsace = _misc.DateTime_Gr_France_Alsace | |
2830 | Gr_France_Lorraine = _misc.DateTime_Gr_France_Lorraine | |
2831 | Gr_France_Strasbourg = _misc.DateTime_Gr_France_Strasbourg | |
2832 | Gr_Germany = _misc.DateTime_Gr_Germany | |
2833 | Gr_Germany_Catholic = _misc.DateTime_Gr_Germany_Catholic | |
2834 | Gr_Germany_Prussia = _misc.DateTime_Gr_Germany_Prussia | |
2835 | Gr_Germany_Protestant = _misc.DateTime_Gr_Germany_Protestant | |
2836 | Gr_GreatBritain = _misc.DateTime_Gr_GreatBritain | |
2837 | Gr_Greece = _misc.DateTime_Gr_Greece | |
2838 | Gr_Hungary = _misc.DateTime_Gr_Hungary | |
2839 | Gr_Ireland = _misc.DateTime_Gr_Ireland | |
2840 | Gr_Italy = _misc.DateTime_Gr_Italy | |
2841 | Gr_Japan = _misc.DateTime_Gr_Japan | |
2842 | Gr_Japan_1 = _misc.DateTime_Gr_Japan_1 | |
2843 | Gr_Japan_2 = _misc.DateTime_Gr_Japan_2 | |
2844 | Gr_Japan_3 = _misc.DateTime_Gr_Japan_3 | |
2845 | Gr_Latvia = _misc.DateTime_Gr_Latvia | |
2846 | Gr_Lithuania = _misc.DateTime_Gr_Lithuania | |
2847 | Gr_Luxemburg = _misc.DateTime_Gr_Luxemburg | |
2848 | Gr_Netherlands = _misc.DateTime_Gr_Netherlands | |
2849 | Gr_Netherlands_Groningen = _misc.DateTime_Gr_Netherlands_Groningen | |
2850 | Gr_Netherlands_Gelderland = _misc.DateTime_Gr_Netherlands_Gelderland | |
2851 | Gr_Netherlands_Utrecht = _misc.DateTime_Gr_Netherlands_Utrecht | |
2852 | Gr_Netherlands_Friesland = _misc.DateTime_Gr_Netherlands_Friesland | |
2853 | Gr_Norway = _misc.DateTime_Gr_Norway | |
2854 | Gr_Poland = _misc.DateTime_Gr_Poland | |
2855 | Gr_Portugal = _misc.DateTime_Gr_Portugal | |
2856 | Gr_Romania = _misc.DateTime_Gr_Romania | |
2857 | Gr_Russia = _misc.DateTime_Gr_Russia | |
2858 | Gr_Scotland = _misc.DateTime_Gr_Scotland | |
2859 | Gr_Spain = _misc.DateTime_Gr_Spain | |
2860 | Gr_Sweden = _misc.DateTime_Gr_Sweden | |
2861 | Gr_Switzerland = _misc.DateTime_Gr_Switzerland | |
2862 | Gr_Switzerland_Catholic = _misc.DateTime_Gr_Switzerland_Catholic | |
2863 | Gr_Switzerland_Protestant = _misc.DateTime_Gr_Switzerland_Protestant | |
2864 | Gr_Turkey = _misc.DateTime_Gr_Turkey | |
2865 | Gr_USA = _misc.DateTime_Gr_USA | |
2866 | Gr_Wales = _misc.DateTime_Gr_Wales | |
2867 | Gr_Yugoslavia = _misc.DateTime_Gr_Yugoslavia | |
2868 | Country_Unknown = _misc.DateTime_Country_Unknown | |
2869 | Country_Default = _misc.DateTime_Country_Default | |
2870 | Country_WesternEurope_Start = _misc.DateTime_Country_WesternEurope_Start | |
2871 | Country_EEC = _misc.DateTime_Country_EEC | |
2872 | France = _misc.DateTime_France | |
2873 | Germany = _misc.DateTime_Germany | |
2874 | UK = _misc.DateTime_UK | |
2875 | Country_WesternEurope_End = _misc.DateTime_Country_WesternEurope_End | |
2876 | Russia = _misc.DateTime_Russia | |
2877 | USA = _misc.DateTime_USA | |
2878 | Jan = _misc.DateTime_Jan | |
2879 | Feb = _misc.DateTime_Feb | |
2880 | Mar = _misc.DateTime_Mar | |
2881 | Apr = _misc.DateTime_Apr | |
2882 | May = _misc.DateTime_May | |
2883 | Jun = _misc.DateTime_Jun | |
2884 | Jul = _misc.DateTime_Jul | |
2885 | Aug = _misc.DateTime_Aug | |
2886 | Sep = _misc.DateTime_Sep | |
2887 | Oct = _misc.DateTime_Oct | |
2888 | Nov = _misc.DateTime_Nov | |
2889 | Dec = _misc.DateTime_Dec | |
2890 | Inv_Month = _misc.DateTime_Inv_Month | |
2891 | Sun = _misc.DateTime_Sun | |
2892 | Mon = _misc.DateTime_Mon | |
2893 | Tue = _misc.DateTime_Tue | |
2894 | Wed = _misc.DateTime_Wed | |
2895 | Thu = _misc.DateTime_Thu | |
2896 | Fri = _misc.DateTime_Fri | |
2897 | Sat = _misc.DateTime_Sat | |
2898 | Inv_WeekDay = _misc.DateTime_Inv_WeekDay | |
2899 | Inv_Year = _misc.DateTime_Inv_Year | |
2900 | Name_Full = _misc.DateTime_Name_Full | |
2901 | Name_Abbr = _misc.DateTime_Name_Abbr | |
2902 | Default_First = _misc.DateTime_Default_First | |
2903 | Monday_First = _misc.DateTime_Monday_First | |
2904 | Sunday_First = _misc.DateTime_Sunday_First | |
e811c8ce RD |
2905 | def SetCountry(*args, **kwargs): |
2906 | """DateTime.SetCountry(wxDateTime::Country country)""" | |
2907 | return _misc.DateTime_SetCountry(*args, **kwargs) | |
2908 | ||
2909 | SetCountry = staticmethod(SetCountry) | |
2910 | def GetCountry(*args, **kwargs): | |
2911 | """DateTime.GetCountry() -> wxDateTime::Country""" | |
2912 | return _misc.DateTime_GetCountry(*args, **kwargs) | |
2913 | ||
2914 | GetCountry = staticmethod(GetCountry) | |
2915 | def IsWestEuropeanCountry(*args, **kwargs): | |
2916 | """DateTime.IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool""" | |
2917 | return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs) | |
2918 | ||
2919 | IsWestEuropeanCountry = staticmethod(IsWestEuropeanCountry) | |
2920 | def GetCurrentYear(*args, **kwargs): | |
2921 | """DateTime.GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int""" | |
2922 | return _misc.DateTime_GetCurrentYear(*args, **kwargs) | |
2923 | ||
2924 | GetCurrentYear = staticmethod(GetCurrentYear) | |
2925 | def ConvertYearToBC(*args, **kwargs): | |
2926 | """DateTime.ConvertYearToBC(int year) -> int""" | |
2927 | return _misc.DateTime_ConvertYearToBC(*args, **kwargs) | |
2928 | ||
2929 | ConvertYearToBC = staticmethod(ConvertYearToBC) | |
2930 | def GetCurrentMonth(*args, **kwargs): | |
2931 | """DateTime.GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month""" | |
2932 | return _misc.DateTime_GetCurrentMonth(*args, **kwargs) | |
2933 | ||
2934 | GetCurrentMonth = staticmethod(GetCurrentMonth) | |
2935 | def IsLeapYear(*args, **kwargs): | |
2936 | """DateTime.IsLeapYear(int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> bool""" | |
2937 | return _misc.DateTime_IsLeapYear(*args, **kwargs) | |
2938 | ||
2939 | IsLeapYear = staticmethod(IsLeapYear) | |
2940 | def GetCentury(*args, **kwargs): | |
2941 | """DateTime.GetCentury(int year=Inv_Year) -> int""" | |
2942 | return _misc.DateTime_GetCentury(*args, **kwargs) | |
2943 | ||
2944 | GetCentury = staticmethod(GetCentury) | |
2945 | def GetNumberOfDaysinYear(*args, **kwargs): | |
322913ce | 2946 | """DateTime.GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> int""" |
e811c8ce RD |
2947 | return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs) |
2948 | ||
2949 | GetNumberOfDaysinYear = staticmethod(GetNumberOfDaysinYear) | |
2950 | def GetNumberOfDaysInMonth(*args, **kwargs): | |
322913ce | 2951 | """DateTime.GetNumberOfDaysInMonth(wxDateTime::Month month, int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> int""" |
e811c8ce RD |
2952 | return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) |
2953 | ||
2954 | GetNumberOfDaysInMonth = staticmethod(GetNumberOfDaysInMonth) | |
2955 | def GetMonthName(*args, **kwargs): | |
2956 | """DateTime.GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags=Name_Full) -> wxString""" | |
2957 | return _misc.DateTime_GetMonthName(*args, **kwargs) | |
2958 | ||
2959 | GetMonthName = staticmethod(GetMonthName) | |
2960 | def GetWeekDayName(*args, **kwargs): | |
2961 | """DateTime.GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags=Name_Full) -> wxString""" | |
2962 | return _misc.DateTime_GetWeekDayName(*args, **kwargs) | |
2963 | ||
2964 | GetWeekDayName = staticmethod(GetWeekDayName) | |
2965 | def GetAmPmStrings(*args, **kwargs): | |
0df68c9f RD |
2966 | """ |
2967 | GetAmPmStrings() -> (am, pm) | |
322913ce | 2968 | |
0df68c9f RD |
2969 | Get the AM and PM strings in the current locale (may be empty) |
2970 | """ | |
e811c8ce RD |
2971 | return _misc.DateTime_GetAmPmStrings(*args, **kwargs) |
2972 | ||
2973 | GetAmPmStrings = staticmethod(GetAmPmStrings) | |
2974 | def IsDSTApplicable(*args, **kwargs): | |
2975 | """DateTime.IsDSTApplicable(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> bool""" | |
2976 | return _misc.DateTime_IsDSTApplicable(*args, **kwargs) | |
2977 | ||
2978 | IsDSTApplicable = staticmethod(IsDSTApplicable) | |
2979 | def GetBeginDST(*args, **kwargs): | |
2980 | """DateTime.GetBeginDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime""" | |
2981 | return _misc.DateTime_GetBeginDST(*args, **kwargs) | |
2982 | ||
2983 | GetBeginDST = staticmethod(GetBeginDST) | |
2984 | def GetEndDST(*args, **kwargs): | |
2985 | """DateTime.GetEndDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime""" | |
2986 | return _misc.DateTime_GetEndDST(*args, **kwargs) | |
2987 | ||
2988 | GetEndDST = staticmethod(GetEndDST) | |
2989 | def Now(*args, **kwargs): | |
2990 | """DateTime.Now() -> DateTime""" | |
2991 | return _misc.DateTime_Now(*args, **kwargs) | |
2992 | ||
2993 | Now = staticmethod(Now) | |
2994 | def UNow(*args, **kwargs): | |
2995 | """DateTime.UNow() -> DateTime""" | |
2996 | return _misc.DateTime_UNow(*args, **kwargs) | |
2997 | ||
2998 | UNow = staticmethod(UNow) | |
2999 | def Today(*args, **kwargs): | |
3000 | """DateTime.Today() -> DateTime""" | |
3001 | return _misc.DateTime_Today(*args, **kwargs) | |
3002 | ||
3003 | Today = staticmethod(Today) | |
d14a1e28 | 3004 | def __init__(self, *args, **kwargs): |
e811c8ce | 3005 | """__init__() -> DateTime""" |
d14a1e28 RD |
3006 | newobj = _misc.new_DateTime(*args, **kwargs) |
3007 | self.this = newobj.this | |
3008 | self.thisown = 1 | |
3009 | del newobj.thisown | |
3010 | def __del__(self, destroy=_misc.delete_DateTime): | |
e811c8ce | 3011 | """__del__()""" |
d14a1e28 RD |
3012 | try: |
3013 | if self.thisown: destroy(self) | |
3014 | except: pass | |
e811c8ce RD |
3015 | |
3016 | def SetToCurrent(*args, **kwargs): | |
3017 | """SetToCurrent() -> DateTime""" | |
3018 | return _misc.DateTime_SetToCurrent(*args, **kwargs) | |
3019 | ||
3020 | def SetTimeT(*args, **kwargs): | |
3021 | """SetTimeT(time_t timet) -> DateTime""" | |
3022 | return _misc.DateTime_SetTimeT(*args, **kwargs) | |
3023 | ||
3024 | def SetJDN(*args, **kwargs): | |
3025 | """SetJDN(double jdn) -> DateTime""" | |
3026 | return _misc.DateTime_SetJDN(*args, **kwargs) | |
3027 | ||
3028 | def SetHMS(*args, **kwargs): | |
322913ce | 3029 | """SetHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime""" |
e811c8ce RD |
3030 | return _misc.DateTime_SetHMS(*args, **kwargs) |
3031 | ||
3032 | def Set(*args, **kwargs): | |
0df68c9f RD |
3033 | """ |
3034 | Set(int day, wxDateTime::Month month=Inv_Month, int year=Inv_Year, | |
3035 | int hour=0, int minute=0, int second=0, | |
3036 | int millisec=0) -> DateTime | |
3037 | """ | |
e811c8ce RD |
3038 | return _misc.DateTime_Set(*args, **kwargs) |
3039 | ||
3040 | def ResetTime(*args, **kwargs): | |
3041 | """ResetTime() -> DateTime""" | |
3042 | return _misc.DateTime_ResetTime(*args, **kwargs) | |
3043 | ||
3044 | def SetYear(*args, **kwargs): | |
3045 | """SetYear(int year) -> DateTime""" | |
3046 | return _misc.DateTime_SetYear(*args, **kwargs) | |
3047 | ||
3048 | def SetMonth(*args, **kwargs): | |
3049 | """SetMonth(wxDateTime::Month month) -> DateTime""" | |
3050 | return _misc.DateTime_SetMonth(*args, **kwargs) | |
3051 | ||
3052 | def SetDay(*args, **kwargs): | |
322913ce | 3053 | """SetDay(int day) -> DateTime""" |
e811c8ce RD |
3054 | return _misc.DateTime_SetDay(*args, **kwargs) |
3055 | ||
3056 | def SetHour(*args, **kwargs): | |
322913ce | 3057 | """SetHour(int hour) -> DateTime""" |
e811c8ce RD |
3058 | return _misc.DateTime_SetHour(*args, **kwargs) |
3059 | ||
3060 | def SetMinute(*args, **kwargs): | |
322913ce | 3061 | """SetMinute(int minute) -> DateTime""" |
e811c8ce RD |
3062 | return _misc.DateTime_SetMinute(*args, **kwargs) |
3063 | ||
3064 | def SetSecond(*args, **kwargs): | |
322913ce | 3065 | """SetSecond(int second) -> DateTime""" |
e811c8ce RD |
3066 | return _misc.DateTime_SetSecond(*args, **kwargs) |
3067 | ||
3068 | def SetMillisecond(*args, **kwargs): | |
322913ce | 3069 | """SetMillisecond(int millisecond) -> DateTime""" |
e811c8ce RD |
3070 | return _misc.DateTime_SetMillisecond(*args, **kwargs) |
3071 | ||
3072 | def SetToWeekDayInSameWeek(*args, **kwargs): | |
3073 | """SetToWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime""" | |
3074 | return _misc.DateTime_SetToWeekDayInSameWeek(*args, **kwargs) | |
3075 | ||
3076 | def GetWeekDayInSameWeek(*args, **kwargs): | |
3077 | """GetWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime""" | |
3078 | return _misc.DateTime_GetWeekDayInSameWeek(*args, **kwargs) | |
3079 | ||
3080 | def SetToNextWeekDay(*args, **kwargs): | |
3081 | """SetToNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime""" | |
3082 | return _misc.DateTime_SetToNextWeekDay(*args, **kwargs) | |
3083 | ||
3084 | def GetNextWeekDay(*args, **kwargs): | |
3085 | """GetNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime""" | |
3086 | return _misc.DateTime_GetNextWeekDay(*args, **kwargs) | |
3087 | ||
3088 | def SetToPrevWeekDay(*args, **kwargs): | |
3089 | """SetToPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime""" | |
3090 | return _misc.DateTime_SetToPrevWeekDay(*args, **kwargs) | |
3091 | ||
3092 | def GetPrevWeekDay(*args, **kwargs): | |
3093 | """GetPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime""" | |
3094 | return _misc.DateTime_GetPrevWeekDay(*args, **kwargs) | |
3095 | ||
3096 | def SetToWeekDay(*args, **kwargs): | |
0df68c9f RD |
3097 | """ |
3098 | SetToWeekDay(wxDateTime::WeekDay weekday, int n=1, wxDateTime::Month month=Inv_Month, | |
3099 | int year=Inv_Year) -> bool | |
3100 | """ | |
e811c8ce RD |
3101 | return _misc.DateTime_SetToWeekDay(*args, **kwargs) |
3102 | ||
3103 | def SetToLastWeekDay(*args, **kwargs): | |
0df68c9f RD |
3104 | """ |
3105 | SetToLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month, | |
3106 | int year=Inv_Year) -> bool | |
3107 | """ | |
e811c8ce RD |
3108 | return _misc.DateTime_SetToLastWeekDay(*args, **kwargs) |
3109 | ||
3110 | def GetLastWeekDay(*args, **kwargs): | |
0df68c9f RD |
3111 | """ |
3112 | GetLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month, | |
3113 | int year=Inv_Year) -> DateTime | |
3114 | """ | |
e811c8ce RD |
3115 | return _misc.DateTime_GetLastWeekDay(*args, **kwargs) |
3116 | ||
3117 | def SetToTheWeek(*args, **kwargs): | |
322913ce | 3118 | """SetToTheWeek(int numWeek, wxDateTime::WeekDay weekday=Mon, wxDateTime::WeekFlags flags=Monday_First) -> bool""" |
e811c8ce RD |
3119 | return _misc.DateTime_SetToTheWeek(*args, **kwargs) |
3120 | ||
3121 | def GetWeek(*args, **kwargs): | |
322913ce | 3122 | """GetWeek(int numWeek, wxDateTime::WeekDay weekday=Mon, wxDateTime::WeekFlags flags=Monday_First) -> DateTime""" |
e811c8ce RD |
3123 | return _misc.DateTime_GetWeek(*args, **kwargs) |
3124 | ||
3125 | def SetToLastMonthDay(*args, **kwargs): | |
3126 | """SetToLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime""" | |
3127 | return _misc.DateTime_SetToLastMonthDay(*args, **kwargs) | |
3128 | ||
3129 | def GetLastMonthDay(*args, **kwargs): | |
3130 | """GetLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime""" | |
3131 | return _misc.DateTime_GetLastMonthDay(*args, **kwargs) | |
3132 | ||
3133 | def SetToYearDay(*args, **kwargs): | |
322913ce | 3134 | """SetToYearDay(int yday) -> DateTime""" |
e811c8ce RD |
3135 | return _misc.DateTime_SetToYearDay(*args, **kwargs) |
3136 | ||
3137 | def GetYearDay(*args, **kwargs): | |
322913ce | 3138 | """GetYearDay(int yday) -> DateTime""" |
e811c8ce RD |
3139 | return _misc.DateTime_GetYearDay(*args, **kwargs) |
3140 | ||
3141 | def GetJulianDayNumber(*args, **kwargs): | |
3142 | """GetJulianDayNumber() -> double""" | |
3143 | return _misc.DateTime_GetJulianDayNumber(*args, **kwargs) | |
3144 | ||
3145 | def GetJDN(*args, **kwargs): | |
3146 | """GetJDN() -> double""" | |
3147 | return _misc.DateTime_GetJDN(*args, **kwargs) | |
3148 | ||
3149 | def GetModifiedJulianDayNumber(*args, **kwargs): | |
3150 | """GetModifiedJulianDayNumber() -> double""" | |
3151 | return _misc.DateTime_GetModifiedJulianDayNumber(*args, **kwargs) | |
3152 | ||
3153 | def GetMJD(*args, **kwargs): | |
3154 | """GetMJD() -> double""" | |
3155 | return _misc.DateTime_GetMJD(*args, **kwargs) | |
3156 | ||
3157 | def GetRataDie(*args, **kwargs): | |
3158 | """GetRataDie() -> double""" | |
3159 | return _misc.DateTime_GetRataDie(*args, **kwargs) | |
3160 | ||
3161 | def ToTimezone(*args, **kwargs): | |
3162 | """ToTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" | |
3163 | return _misc.DateTime_ToTimezone(*args, **kwargs) | |
3164 | ||
3165 | def MakeTimezone(*args, **kwargs): | |
3166 | """MakeTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" | |
3167 | return _misc.DateTime_MakeTimezone(*args, **kwargs) | |
3168 | ||
3169 | def ToGMT(*args, **kwargs): | |
3170 | """ToGMT(bool noDST=False) -> DateTime""" | |
3171 | return _misc.DateTime_ToGMT(*args, **kwargs) | |
3172 | ||
3173 | def MakeGMT(*args, **kwargs): | |
3174 | """MakeGMT(bool noDST=False) -> DateTime""" | |
3175 | return _misc.DateTime_MakeGMT(*args, **kwargs) | |
3176 | ||
3177 | def IsDST(*args, **kwargs): | |
3178 | """IsDST(wxDateTime::Country country=Country_Default) -> int""" | |
3179 | return _misc.DateTime_IsDST(*args, **kwargs) | |
3180 | ||
3181 | def IsValid(*args, **kwargs): | |
3182 | """IsValid() -> bool""" | |
3183 | return _misc.DateTime_IsValid(*args, **kwargs) | |
3184 | ||
3185 | def GetTicks(*args, **kwargs): | |
3186 | """GetTicks() -> time_t""" | |
3187 | return _misc.DateTime_GetTicks(*args, **kwargs) | |
3188 | ||
3189 | def GetYear(*args, **kwargs): | |
3190 | """GetYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3191 | return _misc.DateTime_GetYear(*args, **kwargs) | |
3192 | ||
3193 | def GetMonth(*args, **kwargs): | |
3194 | """GetMonth(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::Month""" | |
3195 | return _misc.DateTime_GetMonth(*args, **kwargs) | |
3196 | ||
3197 | def GetDay(*args, **kwargs): | |
322913ce | 3198 | """GetDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" |
e811c8ce RD |
3199 | return _misc.DateTime_GetDay(*args, **kwargs) |
3200 | ||
3201 | def GetWeekDay(*args, **kwargs): | |
3202 | """GetWeekDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::WeekDay""" | |
3203 | return _misc.DateTime_GetWeekDay(*args, **kwargs) | |
3204 | ||
3205 | def GetHour(*args, **kwargs): | |
322913ce | 3206 | """GetHour(wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" |
e811c8ce RD |
3207 | return _misc.DateTime_GetHour(*args, **kwargs) |
3208 | ||
3209 | def GetMinute(*args, **kwargs): | |
322913ce | 3210 | """GetMinute(wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" |
e811c8ce RD |
3211 | return _misc.DateTime_GetMinute(*args, **kwargs) |
3212 | ||
3213 | def GetSecond(*args, **kwargs): | |
322913ce | 3214 | """GetSecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" |
e811c8ce RD |
3215 | return _misc.DateTime_GetSecond(*args, **kwargs) |
3216 | ||
3217 | def GetMillisecond(*args, **kwargs): | |
322913ce | 3218 | """GetMillisecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" |
e811c8ce RD |
3219 | return _misc.DateTime_GetMillisecond(*args, **kwargs) |
3220 | ||
3221 | def GetDayOfYear(*args, **kwargs): | |
322913ce | 3222 | """GetDayOfYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" |
e811c8ce RD |
3223 | return _misc.DateTime_GetDayOfYear(*args, **kwargs) |
3224 | ||
3225 | def GetWeekOfYear(*args, **kwargs): | |
322913ce | 3226 | """GetWeekOfYear(wxDateTime::WeekFlags flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" |
e811c8ce RD |
3227 | return _misc.DateTime_GetWeekOfYear(*args, **kwargs) |
3228 | ||
3229 | def GetWeekOfMonth(*args, **kwargs): | |
322913ce | 3230 | """GetWeekOfMonth(wxDateTime::WeekFlags flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" |
e811c8ce RD |
3231 | return _misc.DateTime_GetWeekOfMonth(*args, **kwargs) |
3232 | ||
3233 | def IsWorkDay(*args, **kwargs): | |
3234 | """IsWorkDay(wxDateTime::Country country=Country_Default) -> bool""" | |
3235 | return _misc.DateTime_IsWorkDay(*args, **kwargs) | |
3236 | ||
3237 | def IsEqualTo(*args, **kwargs): | |
3238 | """IsEqualTo(DateTime datetime) -> bool""" | |
3239 | return _misc.DateTime_IsEqualTo(*args, **kwargs) | |
3240 | ||
3241 | def IsEarlierThan(*args, **kwargs): | |
3242 | """IsEarlierThan(DateTime datetime) -> bool""" | |
3243 | return _misc.DateTime_IsEarlierThan(*args, **kwargs) | |
3244 | ||
3245 | def IsLaterThan(*args, **kwargs): | |
3246 | """IsLaterThan(DateTime datetime) -> bool""" | |
3247 | return _misc.DateTime_IsLaterThan(*args, **kwargs) | |
3248 | ||
3249 | def IsStrictlyBetween(*args, **kwargs): | |
3250 | """IsStrictlyBetween(DateTime t1, DateTime t2) -> bool""" | |
3251 | return _misc.DateTime_IsStrictlyBetween(*args, **kwargs) | |
3252 | ||
3253 | def IsBetween(*args, **kwargs): | |
3254 | """IsBetween(DateTime t1, DateTime t2) -> bool""" | |
3255 | return _misc.DateTime_IsBetween(*args, **kwargs) | |
3256 | ||
3257 | def IsSameDate(*args, **kwargs): | |
3258 | """IsSameDate(DateTime dt) -> bool""" | |
3259 | return _misc.DateTime_IsSameDate(*args, **kwargs) | |
3260 | ||
3261 | def IsSameTime(*args, **kwargs): | |
3262 | """IsSameTime(DateTime dt) -> bool""" | |
3263 | return _misc.DateTime_IsSameTime(*args, **kwargs) | |
3264 | ||
3265 | def IsEqualUpTo(*args, **kwargs): | |
3266 | """IsEqualUpTo(DateTime dt, TimeSpan ts) -> bool""" | |
3267 | return _misc.DateTime_IsEqualUpTo(*args, **kwargs) | |
3268 | ||
3269 | def AddTS(*args, **kwargs): | |
3270 | """AddTS(TimeSpan diff) -> DateTime""" | |
3271 | return _misc.DateTime_AddTS(*args, **kwargs) | |
3272 | ||
3273 | def AddDS(*args, **kwargs): | |
3274 | """AddDS(DateSpan diff) -> DateTime""" | |
3275 | return _misc.DateTime_AddDS(*args, **kwargs) | |
3276 | ||
3277 | def SubtractTS(*args, **kwargs): | |
3278 | """SubtractTS(TimeSpan diff) -> DateTime""" | |
3279 | return _misc.DateTime_SubtractTS(*args, **kwargs) | |
3280 | ||
3281 | def SubtractDS(*args, **kwargs): | |
3282 | """SubtractDS(DateSpan diff) -> DateTime""" | |
3283 | return _misc.DateTime_SubtractDS(*args, **kwargs) | |
3284 | ||
3285 | def Subtract(*args, **kwargs): | |
3286 | """Subtract(DateTime dt) -> TimeSpan""" | |
3287 | return _misc.DateTime_Subtract(*args, **kwargs) | |
3288 | ||
3289 | def __iadd__(*args): | |
0df68c9f RD |
3290 | """ |
3291 | __iadd__(TimeSpan diff) -> DateTime | |
3292 | __iadd__(DateSpan diff) -> DateTime | |
3293 | """ | |
e811c8ce RD |
3294 | return _misc.DateTime___iadd__(*args) |
3295 | ||
3296 | def __isub__(*args): | |
0df68c9f RD |
3297 | """ |
3298 | __isub__(TimeSpan diff) -> DateTime | |
3299 | __isub__(DateSpan diff) -> DateTime | |
3300 | """ | |
e811c8ce RD |
3301 | return _misc.DateTime___isub__(*args) |
3302 | ||
3303 | def __add__(*args): | |
0df68c9f RD |
3304 | """ |
3305 | __add__(TimeSpan other) -> DateTime | |
3306 | __add__(DateSpan other) -> DateTime | |
3307 | """ | |
e811c8ce RD |
3308 | return _misc.DateTime___add__(*args) |
3309 | ||
3310 | def __sub__(*args): | |
0df68c9f RD |
3311 | """ |
3312 | __sub__(DateTime other) -> TimeSpan | |
3313 | __sub__(TimeSpan other) -> DateTime | |
3314 | __sub__(DateSpan other) -> DateTime | |
3315 | """ | |
e811c8ce RD |
3316 | return _misc.DateTime___sub__(*args) |
3317 | ||
3318 | def __lt__(*args): | |
3319 | """__lt__(DateTime other) -> bool""" | |
3320 | return _misc.DateTime___lt__(*args) | |
3321 | ||
3322 | def __le__(*args): | |
3323 | """__le__(DateTime other) -> bool""" | |
3324 | return _misc.DateTime___le__(*args) | |
3325 | ||
3326 | def __gt__(*args): | |
3327 | """__gt__(DateTime other) -> bool""" | |
3328 | return _misc.DateTime___gt__(*args) | |
3329 | ||
3330 | def __ge__(*args): | |
3331 | """__ge__(DateTime other) -> bool""" | |
3332 | return _misc.DateTime___ge__(*args) | |
3333 | ||
3334 | def __eq__(*args): | |
3335 | """__eq__(DateTime other) -> bool""" | |
3336 | return _misc.DateTime___eq__(*args) | |
3337 | ||
3338 | def __ne__(*args): | |
3339 | """__ne__(DateTime other) -> bool""" | |
3340 | return _misc.DateTime___ne__(*args) | |
3341 | ||
3342 | def ParseRfc822Date(*args, **kwargs): | |
3343 | """ParseRfc822Date(wxString date) -> int""" | |
3344 | return _misc.DateTime_ParseRfc822Date(*args, **kwargs) | |
3345 | ||
3346 | def ParseFormat(*args, **kwargs): | |
3347 | """ParseFormat(wxString date, wxString format=wxPyDateFormatStr, DateTime dateDef=wxDefaultDateTime) -> int""" | |
3348 | return _misc.DateTime_ParseFormat(*args, **kwargs) | |
3349 | ||
3350 | def ParseDateTime(*args, **kwargs): | |
3351 | """ParseDateTime(wxString datetime) -> int""" | |
3352 | return _misc.DateTime_ParseDateTime(*args, **kwargs) | |
3353 | ||
3354 | def ParseDate(*args, **kwargs): | |
3355 | """ParseDate(wxString date) -> int""" | |
3356 | return _misc.DateTime_ParseDate(*args, **kwargs) | |
3357 | ||
3358 | def ParseTime(*args, **kwargs): | |
3359 | """ParseTime(wxString time) -> int""" | |
3360 | return _misc.DateTime_ParseTime(*args, **kwargs) | |
3361 | ||
3362 | def Format(*args, **kwargs): | |
3363 | """Format(wxString format=wxPyDateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> wxString""" | |
3364 | return _misc.DateTime_Format(*args, **kwargs) | |
3365 | ||
3366 | def FormatDate(*args, **kwargs): | |
3367 | """FormatDate() -> wxString""" | |
3368 | return _misc.DateTime_FormatDate(*args, **kwargs) | |
3369 | ||
3370 | def FormatTime(*args, **kwargs): | |
3371 | """FormatTime() -> wxString""" | |
3372 | return _misc.DateTime_FormatTime(*args, **kwargs) | |
3373 | ||
3374 | def FormatISODate(*args, **kwargs): | |
3375 | """FormatISODate() -> wxString""" | |
3376 | return _misc.DateTime_FormatISODate(*args, **kwargs) | |
3377 | ||
3378 | def FormatISOTime(*args, **kwargs): | |
3379 | """FormatISOTime() -> wxString""" | |
3380 | return _misc.DateTime_FormatISOTime(*args, **kwargs) | |
3381 | ||
d14a1e28 RD |
3382 | def __repr__(self): |
3383 | return '<wxDateTime: \"%s\" at %s>' % ( self.Format(), self.this) | |
3384 | def __str__(self): | |
3385 | return self.Format() | |
3386 | ||
3387 | ||
3388 | class DateTimePtr(DateTime): | |
3389 | def __init__(self, this): | |
3390 | self.this = this | |
3391 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3392 | self.__class__ = DateTime | |
3393 | _misc.DateTime_swigregister(DateTimePtr) | |
3394 | ||
e811c8ce RD |
3395 | def DateTime_SetCountry(*args, **kwargs): |
3396 | """DateTime_SetCountry(wxDateTime::Country country)""" | |
3397 | return _misc.DateTime_SetCountry(*args, **kwargs) | |
d14a1e28 | 3398 | |
e811c8ce RD |
3399 | def DateTime_GetCountry(*args, **kwargs): |
3400 | """DateTime_GetCountry() -> wxDateTime::Country""" | |
3401 | return _misc.DateTime_GetCountry(*args, **kwargs) | |
d14a1e28 | 3402 | |
e811c8ce RD |
3403 | def DateTime_IsWestEuropeanCountry(*args, **kwargs): |
3404 | """DateTime_IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool""" | |
3405 | return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs) | |
d14a1e28 | 3406 | |
e811c8ce RD |
3407 | def DateTime_GetCurrentYear(*args, **kwargs): |
3408 | """DateTime_GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int""" | |
3409 | return _misc.DateTime_GetCurrentYear(*args, **kwargs) | |
d14a1e28 | 3410 | |
e811c8ce RD |
3411 | def DateTime_ConvertYearToBC(*args, **kwargs): |
3412 | """DateTime_ConvertYearToBC(int year) -> int""" | |
3413 | return _misc.DateTime_ConvertYearToBC(*args, **kwargs) | |
d14a1e28 | 3414 | |
e811c8ce RD |
3415 | def DateTime_GetCurrentMonth(*args, **kwargs): |
3416 | """DateTime_GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month""" | |
3417 | return _misc.DateTime_GetCurrentMonth(*args, **kwargs) | |
d14a1e28 | 3418 | |
e811c8ce RD |
3419 | def DateTime_IsLeapYear(*args, **kwargs): |
3420 | """DateTime_IsLeapYear(int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> bool""" | |
3421 | return _misc.DateTime_IsLeapYear(*args, **kwargs) | |
d14a1e28 | 3422 | |
e811c8ce RD |
3423 | def DateTime_GetCentury(*args, **kwargs): |
3424 | """DateTime_GetCentury(int year=Inv_Year) -> int""" | |
3425 | return _misc.DateTime_GetCentury(*args, **kwargs) | |
d14a1e28 | 3426 | |
e811c8ce | 3427 | def DateTime_GetNumberOfDaysinYear(*args, **kwargs): |
322913ce | 3428 | """DateTime_GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> int""" |
e811c8ce | 3429 | return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs) |
d14a1e28 | 3430 | |
e811c8ce | 3431 | def DateTime_GetNumberOfDaysInMonth(*args, **kwargs): |
322913ce | 3432 | """DateTime_GetNumberOfDaysInMonth(wxDateTime::Month month, int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> int""" |
e811c8ce | 3433 | return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) |
d14a1e28 | 3434 | |
e811c8ce RD |
3435 | def DateTime_GetMonthName(*args, **kwargs): |
3436 | """DateTime_GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags=Name_Full) -> wxString""" | |
3437 | return _misc.DateTime_GetMonthName(*args, **kwargs) | |
d14a1e28 | 3438 | |
e811c8ce RD |
3439 | def DateTime_GetWeekDayName(*args, **kwargs): |
3440 | """DateTime_GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags=Name_Full) -> wxString""" | |
3441 | return _misc.DateTime_GetWeekDayName(*args, **kwargs) | |
d14a1e28 | 3442 | |
e811c8ce | 3443 | def DateTime_GetAmPmStrings(*args, **kwargs): |
0df68c9f RD |
3444 | """ |
3445 | GetAmPmStrings() -> (am, pm) | |
322913ce | 3446 | |
0df68c9f RD |
3447 | Get the AM and PM strings in the current locale (may be empty) |
3448 | """ | |
e811c8ce | 3449 | return _misc.DateTime_GetAmPmStrings(*args, **kwargs) |
d14a1e28 | 3450 | |
e811c8ce RD |
3451 | def DateTime_IsDSTApplicable(*args, **kwargs): |
3452 | """DateTime_IsDSTApplicable(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> bool""" | |
3453 | return _misc.DateTime_IsDSTApplicable(*args, **kwargs) | |
d14a1e28 | 3454 | |
e811c8ce RD |
3455 | def DateTime_GetBeginDST(*args, **kwargs): |
3456 | """DateTime_GetBeginDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime""" | |
3457 | return _misc.DateTime_GetBeginDST(*args, **kwargs) | |
d14a1e28 | 3458 | |
e811c8ce RD |
3459 | def DateTime_GetEndDST(*args, **kwargs): |
3460 | """DateTime_GetEndDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime""" | |
3461 | return _misc.DateTime_GetEndDST(*args, **kwargs) | |
d14a1e28 | 3462 | |
e811c8ce RD |
3463 | def DateTime_Now(*args, **kwargs): |
3464 | """DateTime_Now() -> DateTime""" | |
3465 | return _misc.DateTime_Now(*args, **kwargs) | |
d14a1e28 | 3466 | |
e811c8ce RD |
3467 | def DateTime_UNow(*args, **kwargs): |
3468 | """DateTime_UNow() -> DateTime""" | |
3469 | return _misc.DateTime_UNow(*args, **kwargs) | |
d14a1e28 | 3470 | |
e811c8ce RD |
3471 | def DateTime_Today(*args, **kwargs): |
3472 | """DateTime_Today() -> DateTime""" | |
3473 | return _misc.DateTime_Today(*args, **kwargs) | |
d14a1e28 RD |
3474 | |
3475 | def DateTimeFromTimeT(*args, **kwargs): | |
e811c8ce | 3476 | """DateTimeFromTimeT(time_t timet) -> DateTime""" |
d14a1e28 RD |
3477 | val = _misc.new_DateTimeFromTimeT(*args, **kwargs) |
3478 | val.thisown = 1 | |
c368d904 RD |
3479 | return val |
3480 | ||
d14a1e28 | 3481 | def DateTimeFromJDN(*args, **kwargs): |
e811c8ce | 3482 | """DateTimeFromJDN(double jdn) -> DateTime""" |
d14a1e28 RD |
3483 | val = _misc.new_DateTimeFromJDN(*args, **kwargs) |
3484 | val.thisown = 1 | |
3485 | return val | |
3486 | ||
3487 | def DateTimeFromHMS(*args, **kwargs): | |
322913ce | 3488 | """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime""" |
d14a1e28 RD |
3489 | val = _misc.new_DateTimeFromHMS(*args, **kwargs) |
3490 | val.thisown = 1 | |
3491 | return val | |
3492 | ||
3493 | def DateTimeFromDMY(*args, **kwargs): | |
0df68c9f RD |
3494 | """ |
3495 | DateTimeFromDMY(int day, wxDateTime::Month month=Inv_Month, int year=Inv_Year, | |
3496 | int hour=0, int minute=0, int second=0, | |
3497 | int millisec=0) -> DateTime | |
3498 | """ | |
d14a1e28 RD |
3499 | val = _misc.new_DateTimeFromDMY(*args, **kwargs) |
3500 | val.thisown = 1 | |
3501 | return val | |
3502 | ||
3503 | class TimeSpan(object): | |
e811c8ce RD |
3504 | def __repr__(self): |
3505 | return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3506 | def Seconds(*args, **kwargs): | |
3507 | """TimeSpan.Seconds(long sec) -> TimeSpan""" | |
3508 | return _misc.TimeSpan_Seconds(*args, **kwargs) | |
3509 | ||
3510 | Seconds = staticmethod(Seconds) | |
3511 | def Second(*args, **kwargs): | |
3512 | """TimeSpan.Second() -> TimeSpan""" | |
3513 | return _misc.TimeSpan_Second(*args, **kwargs) | |
3514 | ||
3515 | Second = staticmethod(Second) | |
3516 | def Minutes(*args, **kwargs): | |
3517 | """TimeSpan.Minutes(long min) -> TimeSpan""" | |
3518 | return _misc.TimeSpan_Minutes(*args, **kwargs) | |
3519 | ||
3520 | Minutes = staticmethod(Minutes) | |
3521 | def Minute(*args, **kwargs): | |
3522 | """TimeSpan.Minute() -> TimeSpan""" | |
3523 | return _misc.TimeSpan_Minute(*args, **kwargs) | |
3524 | ||
3525 | Minute = staticmethod(Minute) | |
3526 | def Hours(*args, **kwargs): | |
3527 | """TimeSpan.Hours(long hours) -> TimeSpan""" | |
3528 | return _misc.TimeSpan_Hours(*args, **kwargs) | |
3529 | ||
3530 | Hours = staticmethod(Hours) | |
3531 | def Hour(*args, **kwargs): | |
3532 | """TimeSpan.Hour() -> TimeSpan""" | |
3533 | return _misc.TimeSpan_Hour(*args, **kwargs) | |
3534 | ||
3535 | Hour = staticmethod(Hour) | |
3536 | def Days(*args, **kwargs): | |
3537 | """TimeSpan.Days(long days) -> TimeSpan""" | |
3538 | return _misc.TimeSpan_Days(*args, **kwargs) | |
3539 | ||
3540 | Days = staticmethod(Days) | |
3541 | def Day(*args, **kwargs): | |
3542 | """TimeSpan.Day() -> TimeSpan""" | |
3543 | return _misc.TimeSpan_Day(*args, **kwargs) | |
3544 | ||
3545 | Day = staticmethod(Day) | |
3546 | def Weeks(*args, **kwargs): | |
3547 | """TimeSpan.Weeks(long days) -> TimeSpan""" | |
3548 | return _misc.TimeSpan_Weeks(*args, **kwargs) | |
3549 | ||
3550 | Weeks = staticmethod(Weeks) | |
3551 | def Week(*args, **kwargs): | |
3552 | """TimeSpan.Week() -> TimeSpan""" | |
3553 | return _misc.TimeSpan_Week(*args, **kwargs) | |
3554 | ||
3555 | Week = staticmethod(Week) | |
d14a1e28 | 3556 | def __init__(self, *args, **kwargs): |
e811c8ce | 3557 | """__init__(long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan""" |
d14a1e28 RD |
3558 | newobj = _misc.new_TimeSpan(*args, **kwargs) |
3559 | self.this = newobj.this | |
3560 | self.thisown = 1 | |
3561 | del newobj.thisown | |
3562 | def __del__(self, destroy=_misc.delete_TimeSpan): | |
e811c8ce | 3563 | """__del__()""" |
d14a1e28 RD |
3564 | try: |
3565 | if self.thisown: destroy(self) | |
3566 | except: pass | |
e811c8ce RD |
3567 | |
3568 | def Add(*args, **kwargs): | |
3569 | """Add(TimeSpan diff) -> TimeSpan""" | |
3570 | return _misc.TimeSpan_Add(*args, **kwargs) | |
3571 | ||
3572 | def Subtract(*args, **kwargs): | |
3573 | """Subtract(TimeSpan diff) -> TimeSpan""" | |
3574 | return _misc.TimeSpan_Subtract(*args, **kwargs) | |
3575 | ||
3576 | def Multiply(*args, **kwargs): | |
3577 | """Multiply(int n) -> TimeSpan""" | |
3578 | return _misc.TimeSpan_Multiply(*args, **kwargs) | |
3579 | ||
3580 | def Neg(*args, **kwargs): | |
3581 | """Neg() -> TimeSpan""" | |
3582 | return _misc.TimeSpan_Neg(*args, **kwargs) | |
3583 | ||
3584 | def Abs(*args, **kwargs): | |
3585 | """Abs() -> TimeSpan""" | |
3586 | return _misc.TimeSpan_Abs(*args, **kwargs) | |
3587 | ||
3588 | def __iadd__(*args, **kwargs): | |
3589 | """__iadd__(TimeSpan diff) -> TimeSpan""" | |
3590 | return _misc.TimeSpan___iadd__(*args, **kwargs) | |
3591 | ||
3592 | def __isub__(*args, **kwargs): | |
3593 | """__isub__(TimeSpan diff) -> TimeSpan""" | |
3594 | return _misc.TimeSpan___isub__(*args, **kwargs) | |
3595 | ||
3596 | def __imul__(*args, **kwargs): | |
3597 | """__imul__(int n) -> TimeSpan""" | |
3598 | return _misc.TimeSpan___imul__(*args, **kwargs) | |
3599 | ||
3600 | def __neg__(*args, **kwargs): | |
3601 | """__neg__() -> TimeSpan""" | |
3602 | return _misc.TimeSpan___neg__(*args, **kwargs) | |
3603 | ||
3604 | def __add__(*args, **kwargs): | |
3605 | """__add__(TimeSpan other) -> TimeSpan""" | |
3606 | return _misc.TimeSpan___add__(*args, **kwargs) | |
3607 | ||
3608 | def __sub__(*args, **kwargs): | |
3609 | """__sub__(TimeSpan other) -> TimeSpan""" | |
3610 | return _misc.TimeSpan___sub__(*args, **kwargs) | |
3611 | ||
3612 | def __mul__(*args, **kwargs): | |
3613 | """__mul__(int n) -> TimeSpan""" | |
3614 | return _misc.TimeSpan___mul__(*args, **kwargs) | |
3615 | ||
3616 | def __rmul__(*args, **kwargs): | |
3617 | """__rmul__(int n) -> TimeSpan""" | |
3618 | return _misc.TimeSpan___rmul__(*args, **kwargs) | |
3619 | ||
3620 | def __lt__(*args, **kwargs): | |
3621 | """__lt__(TimeSpan other) -> bool""" | |
3622 | return _misc.TimeSpan___lt__(*args, **kwargs) | |
3623 | ||
3624 | def __le__(*args, **kwargs): | |
3625 | """__le__(TimeSpan other) -> bool""" | |
3626 | return _misc.TimeSpan___le__(*args, **kwargs) | |
3627 | ||
3628 | def __gt__(*args, **kwargs): | |
3629 | """__gt__(TimeSpan other) -> bool""" | |
3630 | return _misc.TimeSpan___gt__(*args, **kwargs) | |
3631 | ||
3632 | def __ge__(*args, **kwargs): | |
3633 | """__ge__(TimeSpan other) -> bool""" | |
3634 | return _misc.TimeSpan___ge__(*args, **kwargs) | |
3635 | ||
3636 | def __eq__(*args, **kwargs): | |
3637 | """__eq__(TimeSpan other) -> bool""" | |
3638 | return _misc.TimeSpan___eq__(*args, **kwargs) | |
3639 | ||
3640 | def __ne__(*args, **kwargs): | |
3641 | """__ne__(TimeSpan other) -> bool""" | |
3642 | return _misc.TimeSpan___ne__(*args, **kwargs) | |
3643 | ||
3644 | def IsNull(*args, **kwargs): | |
3645 | """IsNull() -> bool""" | |
3646 | return _misc.TimeSpan_IsNull(*args, **kwargs) | |
3647 | ||
3648 | def IsPositive(*args, **kwargs): | |
3649 | """IsPositive() -> bool""" | |
3650 | return _misc.TimeSpan_IsPositive(*args, **kwargs) | |
3651 | ||
3652 | def IsNegative(*args, **kwargs): | |
3653 | """IsNegative() -> bool""" | |
3654 | return _misc.TimeSpan_IsNegative(*args, **kwargs) | |
3655 | ||
3656 | def IsEqualTo(*args, **kwargs): | |
3657 | """IsEqualTo(TimeSpan ts) -> bool""" | |
3658 | return _misc.TimeSpan_IsEqualTo(*args, **kwargs) | |
3659 | ||
3660 | def IsLongerThan(*args, **kwargs): | |
3661 | """IsLongerThan(TimeSpan ts) -> bool""" | |
3662 | return _misc.TimeSpan_IsLongerThan(*args, **kwargs) | |
3663 | ||
3664 | def IsShorterThan(*args, **kwargs): | |
3665 | """IsShorterThan(TimeSpan t) -> bool""" | |
3666 | return _misc.TimeSpan_IsShorterThan(*args, **kwargs) | |
3667 | ||
3668 | def GetWeeks(*args, **kwargs): | |
3669 | """GetWeeks() -> int""" | |
3670 | return _misc.TimeSpan_GetWeeks(*args, **kwargs) | |
3671 | ||
3672 | def GetDays(*args, **kwargs): | |
3673 | """GetDays() -> int""" | |
3674 | return _misc.TimeSpan_GetDays(*args, **kwargs) | |
3675 | ||
3676 | def GetHours(*args, **kwargs): | |
3677 | """GetHours() -> int""" | |
3678 | return _misc.TimeSpan_GetHours(*args, **kwargs) | |
3679 | ||
3680 | def GetMinutes(*args, **kwargs): | |
3681 | """GetMinutes() -> int""" | |
3682 | return _misc.TimeSpan_GetMinutes(*args, **kwargs) | |
3683 | ||
3684 | def GetSeconds(*args, **kwargs): | |
3685 | """GetSeconds() -> wxLongLong""" | |
3686 | return _misc.TimeSpan_GetSeconds(*args, **kwargs) | |
3687 | ||
3688 | def GetMilliseconds(*args, **kwargs): | |
3689 | """GetMilliseconds() -> wxLongLong""" | |
3690 | return _misc.TimeSpan_GetMilliseconds(*args, **kwargs) | |
3691 | ||
3692 | def Format(*args, **kwargs): | |
3693 | """Format(wxString format=wxPyTimeSpanFormatStr) -> wxString""" | |
3694 | return _misc.TimeSpan_Format(*args, **kwargs) | |
3695 | ||
d14a1e28 RD |
3696 | def __repr__(self): |
3697 | return '<wxTimeSpan: \"%s\" at %s>' % ( self.Format(), self.this) | |
3698 | def __str__(self): | |
3699 | return self.Format() | |
3700 | ||
3701 | ||
3702 | class TimeSpanPtr(TimeSpan): | |
3703 | def __init__(self, this): | |
3704 | self.this = this | |
3705 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3706 | self.__class__ = TimeSpan | |
3707 | _misc.TimeSpan_swigregister(TimeSpanPtr) | |
3708 | ||
e811c8ce RD |
3709 | def TimeSpan_Seconds(*args, **kwargs): |
3710 | """TimeSpan_Seconds(long sec) -> TimeSpan""" | |
3711 | return _misc.TimeSpan_Seconds(*args, **kwargs) | |
d14a1e28 | 3712 | |
e811c8ce RD |
3713 | def TimeSpan_Second(*args, **kwargs): |
3714 | """TimeSpan_Second() -> TimeSpan""" | |
3715 | return _misc.TimeSpan_Second(*args, **kwargs) | |
d14a1e28 | 3716 | |
e811c8ce RD |
3717 | def TimeSpan_Minutes(*args, **kwargs): |
3718 | """TimeSpan_Minutes(long min) -> TimeSpan""" | |
3719 | return _misc.TimeSpan_Minutes(*args, **kwargs) | |
d14a1e28 | 3720 | |
e811c8ce RD |
3721 | def TimeSpan_Minute(*args, **kwargs): |
3722 | """TimeSpan_Minute() -> TimeSpan""" | |
3723 | return _misc.TimeSpan_Minute(*args, **kwargs) | |
d14a1e28 | 3724 | |
e811c8ce RD |
3725 | def TimeSpan_Hours(*args, **kwargs): |
3726 | """TimeSpan_Hours(long hours) -> TimeSpan""" | |
3727 | return _misc.TimeSpan_Hours(*args, **kwargs) | |
d14a1e28 | 3728 | |
e811c8ce RD |
3729 | def TimeSpan_Hour(*args, **kwargs): |
3730 | """TimeSpan_Hour() -> TimeSpan""" | |
3731 | return _misc.TimeSpan_Hour(*args, **kwargs) | |
d14a1e28 | 3732 | |
e811c8ce RD |
3733 | def TimeSpan_Days(*args, **kwargs): |
3734 | """TimeSpan_Days(long days) -> TimeSpan""" | |
3735 | return _misc.TimeSpan_Days(*args, **kwargs) | |
d14a1e28 | 3736 | |
e811c8ce RD |
3737 | def TimeSpan_Day(*args, **kwargs): |
3738 | """TimeSpan_Day() -> TimeSpan""" | |
3739 | return _misc.TimeSpan_Day(*args, **kwargs) | |
d14a1e28 | 3740 | |
e811c8ce RD |
3741 | def TimeSpan_Weeks(*args, **kwargs): |
3742 | """TimeSpan_Weeks(long days) -> TimeSpan""" | |
3743 | return _misc.TimeSpan_Weeks(*args, **kwargs) | |
d14a1e28 | 3744 | |
e811c8ce RD |
3745 | def TimeSpan_Week(*args, **kwargs): |
3746 | """TimeSpan_Week() -> TimeSpan""" | |
3747 | return _misc.TimeSpan_Week(*args, **kwargs) | |
d14a1e28 RD |
3748 | |
3749 | class DateSpan(object): | |
e811c8ce RD |
3750 | def __repr__(self): |
3751 | return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3752 | def __init__(self, *args, **kwargs): |
e811c8ce | 3753 | """__init__(int years=0, int months=0, int weeks=0, int days=0) -> DateSpan""" |
d14a1e28 RD |
3754 | newobj = _misc.new_DateSpan(*args, **kwargs) |
3755 | self.this = newobj.this | |
3756 | self.thisown = 1 | |
3757 | del newobj.thisown | |
3758 | def __del__(self, destroy=_misc.delete_DateSpan): | |
e811c8ce | 3759 | """__del__()""" |
d14a1e28 RD |
3760 | try: |
3761 | if self.thisown: destroy(self) | |
3762 | except: pass | |
e811c8ce RD |
3763 | |
3764 | def Days(*args, **kwargs): | |
3765 | """DateSpan.Days(int days) -> DateSpan""" | |
3766 | return _misc.DateSpan_Days(*args, **kwargs) | |
3767 | ||
3768 | Days = staticmethod(Days) | |
3769 | def Day(*args, **kwargs): | |
3770 | """DateSpan.Day() -> DateSpan""" | |
3771 | return _misc.DateSpan_Day(*args, **kwargs) | |
3772 | ||
3773 | Day = staticmethod(Day) | |
3774 | def Weeks(*args, **kwargs): | |
3775 | """DateSpan.Weeks(int weeks) -> DateSpan""" | |
3776 | return _misc.DateSpan_Weeks(*args, **kwargs) | |
3777 | ||
3778 | Weeks = staticmethod(Weeks) | |
3779 | def Week(*args, **kwargs): | |
3780 | """DateSpan.Week() -> DateSpan""" | |
3781 | return _misc.DateSpan_Week(*args, **kwargs) | |
3782 | ||
3783 | Week = staticmethod(Week) | |
3784 | def Months(*args, **kwargs): | |
3785 | """DateSpan.Months(int mon) -> DateSpan""" | |
3786 | return _misc.DateSpan_Months(*args, **kwargs) | |
3787 | ||
3788 | Months = staticmethod(Months) | |
3789 | def Month(*args, **kwargs): | |
3790 | """DateSpan.Month() -> DateSpan""" | |
3791 | return _misc.DateSpan_Month(*args, **kwargs) | |
3792 | ||
3793 | Month = staticmethod(Month) | |
3794 | def Years(*args, **kwargs): | |
3795 | """DateSpan.Years(int years) -> DateSpan""" | |
3796 | return _misc.DateSpan_Years(*args, **kwargs) | |
3797 | ||
3798 | Years = staticmethod(Years) | |
3799 | def Year(*args, **kwargs): | |
3800 | """DateSpan.Year() -> DateSpan""" | |
3801 | return _misc.DateSpan_Year(*args, **kwargs) | |
3802 | ||
3803 | Year = staticmethod(Year) | |
3804 | def SetYears(*args, **kwargs): | |
3805 | """SetYears(int n) -> DateSpan""" | |
3806 | return _misc.DateSpan_SetYears(*args, **kwargs) | |
3807 | ||
3808 | def SetMonths(*args, **kwargs): | |
3809 | """SetMonths(int n) -> DateSpan""" | |
3810 | return _misc.DateSpan_SetMonths(*args, **kwargs) | |
3811 | ||
3812 | def SetWeeks(*args, **kwargs): | |
3813 | """SetWeeks(int n) -> DateSpan""" | |
3814 | return _misc.DateSpan_SetWeeks(*args, **kwargs) | |
3815 | ||
3816 | def SetDays(*args, **kwargs): | |
3817 | """SetDays(int n) -> DateSpan""" | |
3818 | return _misc.DateSpan_SetDays(*args, **kwargs) | |
3819 | ||
3820 | def GetYears(*args, **kwargs): | |
3821 | """GetYears() -> int""" | |
3822 | return _misc.DateSpan_GetYears(*args, **kwargs) | |
3823 | ||
3824 | def GetMonths(*args, **kwargs): | |
3825 | """GetMonths() -> int""" | |
3826 | return _misc.DateSpan_GetMonths(*args, **kwargs) | |
3827 | ||
3828 | def GetWeeks(*args, **kwargs): | |
3829 | """GetWeeks() -> int""" | |
3830 | return _misc.DateSpan_GetWeeks(*args, **kwargs) | |
3831 | ||
3832 | def GetDays(*args, **kwargs): | |
3833 | """GetDays() -> int""" | |
3834 | return _misc.DateSpan_GetDays(*args, **kwargs) | |
3835 | ||
3836 | def GetTotalDays(*args, **kwargs): | |
3837 | """GetTotalDays() -> int""" | |
3838 | return _misc.DateSpan_GetTotalDays(*args, **kwargs) | |
3839 | ||
3840 | def Add(*args, **kwargs): | |
3841 | """Add(DateSpan other) -> DateSpan""" | |
3842 | return _misc.DateSpan_Add(*args, **kwargs) | |
3843 | ||
3844 | def Subtract(*args, **kwargs): | |
3845 | """Subtract(DateSpan other) -> DateSpan""" | |
3846 | return _misc.DateSpan_Subtract(*args, **kwargs) | |
3847 | ||
3848 | def Neg(*args, **kwargs): | |
3849 | """Neg() -> DateSpan""" | |
3850 | return _misc.DateSpan_Neg(*args, **kwargs) | |
3851 | ||
3852 | def Multiply(*args, **kwargs): | |
3853 | """Multiply(int factor) -> DateSpan""" | |
3854 | return _misc.DateSpan_Multiply(*args, **kwargs) | |
3855 | ||
3856 | def __iadd__(*args, **kwargs): | |
3857 | """__iadd__(DateSpan other) -> DateSpan""" | |
3858 | return _misc.DateSpan___iadd__(*args, **kwargs) | |
3859 | ||
3860 | def __isub__(*args, **kwargs): | |
3861 | """__isub__(DateSpan other) -> DateSpan""" | |
3862 | return _misc.DateSpan___isub__(*args, **kwargs) | |
3863 | ||
3864 | def __neg__(*args, **kwargs): | |
3865 | """__neg__() -> DateSpan""" | |
3866 | return _misc.DateSpan___neg__(*args, **kwargs) | |
3867 | ||
3868 | def __imul__(*args, **kwargs): | |
3869 | """__imul__(int factor) -> DateSpan""" | |
3870 | return _misc.DateSpan___imul__(*args, **kwargs) | |
3871 | ||
3872 | def __add__(*args, **kwargs): | |
3873 | """__add__(DateSpan other) -> DateSpan""" | |
3874 | return _misc.DateSpan___add__(*args, **kwargs) | |
3875 | ||
3876 | def __sub__(*args, **kwargs): | |
3877 | """__sub__(DateSpan other) -> DateSpan""" | |
3878 | return _misc.DateSpan___sub__(*args, **kwargs) | |
3879 | ||
3880 | def __mul__(*args, **kwargs): | |
3881 | """__mul__(int n) -> DateSpan""" | |
3882 | return _misc.DateSpan___mul__(*args, **kwargs) | |
3883 | ||
3884 | def __rmul__(*args, **kwargs): | |
3885 | """__rmul__(int n) -> DateSpan""" | |
3886 | return _misc.DateSpan___rmul__(*args, **kwargs) | |
3887 | ||
3888 | def __eq__(*args, **kwargs): | |
3889 | """__eq__(DateSpan other) -> bool""" | |
3890 | return _misc.DateSpan___eq__(*args, **kwargs) | |
3891 | ||
3892 | def __ne__(*args, **kwargs): | |
3893 | """__ne__(DateSpan other) -> bool""" | |
3894 | return _misc.DateSpan___ne__(*args, **kwargs) | |
3895 | ||
d14a1e28 RD |
3896 | |
3897 | class DateSpanPtr(DateSpan): | |
3898 | def __init__(self, this): | |
3899 | self.this = this | |
3900 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3901 | self.__class__ = DateSpan | |
3902 | _misc.DateSpan_swigregister(DateSpanPtr) | |
3903 | ||
e811c8ce RD |
3904 | def DateSpan_Days(*args, **kwargs): |
3905 | """DateSpan_Days(int days) -> DateSpan""" | |
3906 | return _misc.DateSpan_Days(*args, **kwargs) | |
d14a1e28 | 3907 | |
e811c8ce RD |
3908 | def DateSpan_Day(*args, **kwargs): |
3909 | """DateSpan_Day() -> DateSpan""" | |
3910 | return _misc.DateSpan_Day(*args, **kwargs) | |
d14a1e28 | 3911 | |
e811c8ce RD |
3912 | def DateSpan_Weeks(*args, **kwargs): |
3913 | """DateSpan_Weeks(int weeks) -> DateSpan""" | |
3914 | return _misc.DateSpan_Weeks(*args, **kwargs) | |
d14a1e28 | 3915 | |
e811c8ce RD |
3916 | def DateSpan_Week(*args, **kwargs): |
3917 | """DateSpan_Week() -> DateSpan""" | |
3918 | return _misc.DateSpan_Week(*args, **kwargs) | |
d14a1e28 | 3919 | |
e811c8ce RD |
3920 | def DateSpan_Months(*args, **kwargs): |
3921 | """DateSpan_Months(int mon) -> DateSpan""" | |
3922 | return _misc.DateSpan_Months(*args, **kwargs) | |
d14a1e28 | 3923 | |
e811c8ce RD |
3924 | def DateSpan_Month(*args, **kwargs): |
3925 | """DateSpan_Month() -> DateSpan""" | |
3926 | return _misc.DateSpan_Month(*args, **kwargs) | |
d14a1e28 | 3927 | |
e811c8ce RD |
3928 | def DateSpan_Years(*args, **kwargs): |
3929 | """DateSpan_Years(int years) -> DateSpan""" | |
3930 | return _misc.DateSpan_Years(*args, **kwargs) | |
d14a1e28 | 3931 | |
e811c8ce RD |
3932 | def DateSpan_Year(*args, **kwargs): |
3933 | """DateSpan_Year() -> DateSpan""" | |
3934 | return _misc.DateSpan_Year(*args, **kwargs) | |
d14a1e28 RD |
3935 | |
3936 | ||
e811c8ce RD |
3937 | def GetLocalTime(*args, **kwargs): |
3938 | """GetLocalTime() -> long""" | |
3939 | return _misc.GetLocalTime(*args, **kwargs) | |
d14a1e28 | 3940 | |
e811c8ce RD |
3941 | def GetUTCTime(*args, **kwargs): |
3942 | """GetUTCTime() -> long""" | |
3943 | return _misc.GetUTCTime(*args, **kwargs) | |
d14a1e28 | 3944 | |
e811c8ce RD |
3945 | def GetCurrentTime(*args, **kwargs): |
3946 | """GetCurrentTime() -> long""" | |
3947 | return _misc.GetCurrentTime(*args, **kwargs) | |
d14a1e28 | 3948 | |
e811c8ce RD |
3949 | def GetLocalTimeMillis(*args, **kwargs): |
3950 | """GetLocalTimeMillis() -> wxLongLong""" | |
3951 | return _misc.GetLocalTimeMillis(*args, **kwargs) | |
d14a1e28 RD |
3952 | #--------------------------------------------------------------------------- |
3953 | ||
3954 | DF_INVALID = _misc.DF_INVALID | |
3955 | DF_TEXT = _misc.DF_TEXT | |
3956 | DF_BITMAP = _misc.DF_BITMAP | |
3957 | DF_METAFILE = _misc.DF_METAFILE | |
3958 | DF_SYLK = _misc.DF_SYLK | |
3959 | DF_DIF = _misc.DF_DIF | |
3960 | DF_TIFF = _misc.DF_TIFF | |
3961 | DF_OEMTEXT = _misc.DF_OEMTEXT | |
3962 | DF_DIB = _misc.DF_DIB | |
3963 | DF_PALETTE = _misc.DF_PALETTE | |
3964 | DF_PENDATA = _misc.DF_PENDATA | |
3965 | DF_RIFF = _misc.DF_RIFF | |
3966 | DF_WAVE = _misc.DF_WAVE | |
3967 | DF_UNICODETEXT = _misc.DF_UNICODETEXT | |
3968 | DF_ENHMETAFILE = _misc.DF_ENHMETAFILE | |
3969 | DF_FILENAME = _misc.DF_FILENAME | |
3970 | DF_LOCALE = _misc.DF_LOCALE | |
3971 | DF_PRIVATE = _misc.DF_PRIVATE | |
3972 | DF_HTML = _misc.DF_HTML | |
3973 | DF_MAX = _misc.DF_MAX | |
3974 | class DataFormat(object): | |
e811c8ce RD |
3975 | def __repr__(self): |
3976 | return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3977 | def __init__(self, *args, **kwargs): |
e811c8ce | 3978 | """__init__(wxDataFormatId type) -> DataFormat""" |
d14a1e28 RD |
3979 | newobj = _misc.new_DataFormat(*args, **kwargs) |
3980 | self.this = newobj.this | |
3981 | self.thisown = 1 | |
3982 | del newobj.thisown | |
3983 | def __del__(self, destroy=_misc.delete_DataFormat): | |
e811c8ce | 3984 | """__del__()""" |
d14a1e28 RD |
3985 | try: |
3986 | if self.thisown: destroy(self) | |
3987 | except: pass | |
e811c8ce RD |
3988 | |
3989 | def __eq__(*args): | |
0df68c9f RD |
3990 | """ |
3991 | __eq__(wxDataFormatId format) -> bool | |
3992 | __eq__(DataFormat format) -> bool | |
3993 | """ | |
e811c8ce RD |
3994 | return _misc.DataFormat___eq__(*args) |
3995 | ||
3996 | def __ne__(*args): | |
0df68c9f RD |
3997 | """ |
3998 | __ne__(wxDataFormatId format) -> bool | |
3999 | __ne__(DataFormat format) -> bool | |
4000 | """ | |
e811c8ce RD |
4001 | return _misc.DataFormat___ne__(*args) |
4002 | ||
4003 | def SetType(*args, **kwargs): | |
4004 | """SetType(wxDataFormatId format)""" | |
4005 | return _misc.DataFormat_SetType(*args, **kwargs) | |
4006 | ||
4007 | def GetType(*args, **kwargs): | |
4008 | """GetType() -> wxDataFormatId""" | |
4009 | return _misc.DataFormat_GetType(*args, **kwargs) | |
4010 | ||
4011 | def GetId(*args, **kwargs): | |
4012 | """GetId() -> wxString""" | |
4013 | return _misc.DataFormat_GetId(*args, **kwargs) | |
4014 | ||
4015 | def SetId(*args, **kwargs): | |
4016 | """SetId(wxString format)""" | |
4017 | return _misc.DataFormat_SetId(*args, **kwargs) | |
4018 | ||
d14a1e28 RD |
4019 | |
4020 | class DataFormatPtr(DataFormat): | |
4021 | def __init__(self, this): | |
4022 | self.this = this | |
4023 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4024 | self.__class__ = DataFormat | |
4025 | _misc.DataFormat_swigregister(DataFormatPtr) | |
4026 | ||
4027 | def CustomDataFormat(*args, **kwargs): | |
e811c8ce | 4028 | """CustomDataFormat(wxString format) -> DataFormat""" |
d14a1e28 RD |
4029 | val = _misc.new_CustomDataFormat(*args, **kwargs) |
4030 | val.thisown = 1 | |
4031 | return val | |
4032 | ||
4033 | class DataObject(object): | |
e811c8ce RD |
4034 | def __init__(self): raise RuntimeError, "No constructor defined" |
4035 | def __repr__(self): | |
4036 | return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 RD |
4037 | Get = _misc.DataObject_Get |
4038 | Set = _misc.DataObject_Set | |
4039 | Both = _misc.DataObject_Both | |
4040 | def __del__(self, destroy=_misc.delete_DataObject): | |
e811c8ce | 4041 | """__del__()""" |
d14a1e28 RD |
4042 | try: |
4043 | if self.thisown: destroy(self) | |
4044 | except: pass | |
e811c8ce RD |
4045 | |
4046 | def GetPreferredFormat(*args, **kwargs): | |
4047 | """GetPreferredFormat(wxDataObject::Direction dir=Get) -> DataFormat""" | |
4048 | return _misc.DataObject_GetPreferredFormat(*args, **kwargs) | |
4049 | ||
4050 | def GetFormatCount(*args, **kwargs): | |
4051 | """GetFormatCount(wxDataObject::Direction dir=Get) -> size_t""" | |
4052 | return _misc.DataObject_GetFormatCount(*args, **kwargs) | |
4053 | ||
4054 | def IsSupported(*args, **kwargs): | |
4055 | """IsSupported(DataFormat format, wxDataObject::Direction dir=Get) -> bool""" | |
4056 | return _misc.DataObject_IsSupported(*args, **kwargs) | |
4057 | ||
4058 | def GetDataSize(*args, **kwargs): | |
4059 | """GetDataSize(DataFormat format) -> size_t""" | |
4060 | return _misc.DataObject_GetDataSize(*args, **kwargs) | |
4061 | ||
4062 | def GetAllFormats(*args, **kwargs): | |
4063 | """GetAllFormats(DataFormat formats, wxDataObject::Direction dir=Get)""" | |
4064 | return _misc.DataObject_GetAllFormats(*args, **kwargs) | |
4065 | ||
4066 | def GetDataHere(*args, **kwargs): | |
4067 | """GetDataHere(DataFormat format, void buf) -> bool""" | |
4068 | return _misc.DataObject_GetDataHere(*args, **kwargs) | |
4069 | ||
4070 | def SetData(*args, **kwargs): | |
4071 | """SetData(DataFormat format, size_t len, void buf) -> bool""" | |
4072 | return _misc.DataObject_SetData(*args, **kwargs) | |
4073 | ||
d14a1e28 RD |
4074 | |
4075 | class DataObjectPtr(DataObject): | |
4076 | def __init__(self, this): | |
4077 | self.this = this | |
4078 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4079 | self.__class__ = DataObject | |
4080 | _misc.DataObject_swigregister(DataObjectPtr) | |
4081 | FormatInvalid = cvar.FormatInvalid | |
4082 | ||
4083 | class DataObjectSimple(DataObject): | |
e811c8ce RD |
4084 | def __repr__(self): |
4085 | return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4086 | def __init__(self, *args, **kwargs): |
e811c8ce | 4087 | """__init__(DataFormat format=FormatInvalid) -> DataObjectSimple""" |
d14a1e28 RD |
4088 | newobj = _misc.new_DataObjectSimple(*args, **kwargs) |
4089 | self.this = newobj.this | |
4090 | self.thisown = 1 | |
4091 | del newobj.thisown | |
e811c8ce RD |
4092 | def GetFormat(*args, **kwargs): |
4093 | """GetFormat() -> DataFormat""" | |
4094 | return _misc.DataObjectSimple_GetFormat(*args, **kwargs) | |
4095 | ||
4096 | def SetFormat(*args, **kwargs): | |
4097 | """SetFormat(DataFormat format)""" | |
4098 | return _misc.DataObjectSimple_SetFormat(*args, **kwargs) | |
4099 | ||
d14a1e28 RD |
4100 | |
4101 | class DataObjectSimplePtr(DataObjectSimple): | |
4102 | def __init__(self, this): | |
4103 | self.this = this | |
4104 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4105 | self.__class__ = DataObjectSimple | |
4106 | _misc.DataObjectSimple_swigregister(DataObjectSimplePtr) | |
4107 | ||
4108 | class PyDataObjectSimple(DataObjectSimple): | |
e811c8ce RD |
4109 | def __repr__(self): |
4110 | return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4111 | def __init__(self, *args, **kwargs): |
e811c8ce | 4112 | """__init__(DataFormat format=FormatInvalid) -> PyDataObjectSimple""" |
d14a1e28 RD |
4113 | newobj = _misc.new_PyDataObjectSimple(*args, **kwargs) |
4114 | self.this = newobj.this | |
4115 | self.thisown = 1 | |
4116 | del newobj.thisown | |
4117 | self._setCallbackInfo(self, PyDataObjectSimple) | |
e811c8ce RD |
4118 | |
4119 | def _setCallbackInfo(*args, **kwargs): | |
4120 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
4121 | return _misc.PyDataObjectSimple__setCallbackInfo(*args, **kwargs) | |
4122 | ||
d14a1e28 RD |
4123 | |
4124 | class PyDataObjectSimplePtr(PyDataObjectSimple): | |
4125 | def __init__(self, this): | |
4126 | self.this = this | |
4127 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4128 | self.__class__ = PyDataObjectSimple | |
4129 | _misc.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr) | |
4130 | ||
4131 | class DataObjectComposite(DataObject): | |
e811c8ce RD |
4132 | def __repr__(self): |
4133 | return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4134 | def __init__(self, *args, **kwargs): |
e811c8ce | 4135 | """__init__() -> DataObjectComposite""" |
d14a1e28 RD |
4136 | newobj = _misc.new_DataObjectComposite(*args, **kwargs) |
4137 | self.this = newobj.this | |
4138 | self.thisown = 1 | |
4139 | del newobj.thisown | |
e811c8ce RD |
4140 | def Add(*args, **kwargs): |
4141 | """Add(DataObjectSimple dataObject, int preferred=False)""" | |
d14a1e28 RD |
4142 | val = _misc.DataObjectComposite_Add(*args, **kwargs) |
4143 | args[1].thisown = 0 | |
4144 | return val | |
e811c8ce | 4145 | |
d14a1e28 RD |
4146 | |
4147 | class DataObjectCompositePtr(DataObjectComposite): | |
4148 | def __init__(self, this): | |
4149 | self.this = this | |
4150 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4151 | self.__class__ = DataObjectComposite | |
4152 | _misc.DataObjectComposite_swigregister(DataObjectCompositePtr) | |
4153 | ||
4154 | class TextDataObject(DataObjectSimple): | |
e811c8ce RD |
4155 | def __repr__(self): |
4156 | return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4157 | def __init__(self, *args, **kwargs): |
e811c8ce | 4158 | """__init__(wxString text=wxPyEmptyString) -> TextDataObject""" |
d14a1e28 RD |
4159 | newobj = _misc.new_TextDataObject(*args, **kwargs) |
4160 | self.this = newobj.this | |
4161 | self.thisown = 1 | |
4162 | del newobj.thisown | |
e811c8ce RD |
4163 | def GetTextLength(*args, **kwargs): |
4164 | """GetTextLength() -> size_t""" | |
4165 | return _misc.TextDataObject_GetTextLength(*args, **kwargs) | |
4166 | ||
4167 | def GetText(*args, **kwargs): | |
4168 | """GetText() -> wxString""" | |
4169 | return _misc.TextDataObject_GetText(*args, **kwargs) | |
4170 | ||
4171 | def SetText(*args, **kwargs): | |
4172 | """SetText(wxString text)""" | |
4173 | return _misc.TextDataObject_SetText(*args, **kwargs) | |
4174 | ||
d14a1e28 RD |
4175 | |
4176 | class TextDataObjectPtr(TextDataObject): | |
4177 | def __init__(self, this): | |
4178 | self.this = this | |
4179 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4180 | self.__class__ = TextDataObject | |
4181 | _misc.TextDataObject_swigregister(TextDataObjectPtr) | |
4182 | ||
4183 | class PyTextDataObject(TextDataObject): | |
e811c8ce RD |
4184 | def __repr__(self): |
4185 | return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4186 | def __init__(self, *args, **kwargs): |
e811c8ce | 4187 | """__init__(wxString text=wxPyEmptyString) -> PyTextDataObject""" |
d14a1e28 RD |
4188 | newobj = _misc.new_PyTextDataObject(*args, **kwargs) |
4189 | self.this = newobj.this | |
4190 | self.thisown = 1 | |
4191 | del newobj.thisown | |
4192 | self._setCallbackInfo(self, PyTextDataObject) | |
e811c8ce RD |
4193 | |
4194 | def _setCallbackInfo(*args, **kwargs): | |
4195 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
4196 | return _misc.PyTextDataObject__setCallbackInfo(*args, **kwargs) | |
4197 | ||
d14a1e28 RD |
4198 | |
4199 | class PyTextDataObjectPtr(PyTextDataObject): | |
4200 | def __init__(self, this): | |
4201 | self.this = this | |
4202 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4203 | self.__class__ = PyTextDataObject | |
4204 | _misc.PyTextDataObject_swigregister(PyTextDataObjectPtr) | |
4205 | ||
4206 | class BitmapDataObject(DataObjectSimple): | |
e811c8ce RD |
4207 | def __repr__(self): |
4208 | return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4209 | def __init__(self, *args, **kwargs): |
e811c8ce | 4210 | """__init__(wxBitmap bitmap=wxNullBitmap) -> BitmapDataObject""" |
d14a1e28 RD |
4211 | newobj = _misc.new_BitmapDataObject(*args, **kwargs) |
4212 | self.this = newobj.this | |
4213 | self.thisown = 1 | |
4214 | del newobj.thisown | |
e811c8ce RD |
4215 | def GetBitmap(*args, **kwargs): |
4216 | """GetBitmap() -> wxBitmap""" | |
4217 | return _misc.BitmapDataObject_GetBitmap(*args, **kwargs) | |
4218 | ||
4219 | def SetBitmap(*args, **kwargs): | |
4220 | """SetBitmap(wxBitmap bitmap)""" | |
4221 | return _misc.BitmapDataObject_SetBitmap(*args, **kwargs) | |
4222 | ||
d14a1e28 RD |
4223 | |
4224 | class BitmapDataObjectPtr(BitmapDataObject): | |
4225 | def __init__(self, this): | |
4226 | self.this = this | |
4227 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4228 | self.__class__ = BitmapDataObject | |
4229 | _misc.BitmapDataObject_swigregister(BitmapDataObjectPtr) | |
4230 | ||
4231 | class PyBitmapDataObject(BitmapDataObject): | |
e811c8ce RD |
4232 | def __repr__(self): |
4233 | return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4234 | def __init__(self, *args, **kwargs): |
e811c8ce | 4235 | """__init__(wxBitmap bitmap=wxNullBitmap) -> PyBitmapDataObject""" |
d14a1e28 RD |
4236 | newobj = _misc.new_PyBitmapDataObject(*args, **kwargs) |
4237 | self.this = newobj.this | |
4238 | self.thisown = 1 | |
4239 | del newobj.thisown | |
4240 | self._setCallbackInfo(self, PyBitmapDataObject) | |
e811c8ce RD |
4241 | |
4242 | def _setCallbackInfo(*args, **kwargs): | |
4243 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
4244 | return _misc.PyBitmapDataObject__setCallbackInfo(*args, **kwargs) | |
4245 | ||
d14a1e28 RD |
4246 | |
4247 | class PyBitmapDataObjectPtr(PyBitmapDataObject): | |
4248 | def __init__(self, this): | |
4249 | self.this = this | |
4250 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4251 | self.__class__ = PyBitmapDataObject | |
4252 | _misc.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr) | |
4253 | ||
4254 | class FileDataObject(DataObjectSimple): | |
e811c8ce RD |
4255 | def __repr__(self): |
4256 | return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4257 | def __init__(self, *args, **kwargs): |
e811c8ce | 4258 | """__init__() -> FileDataObject""" |
d14a1e28 RD |
4259 | newobj = _misc.new_FileDataObject(*args, **kwargs) |
4260 | self.this = newobj.this | |
4261 | self.thisown = 1 | |
4262 | del newobj.thisown | |
e811c8ce RD |
4263 | def GetFilenames(*args, **kwargs): |
4264 | """GetFilenames() -> wxArrayString""" | |
4265 | return _misc.FileDataObject_GetFilenames(*args, **kwargs) | |
4266 | ||
d14a1e28 RD |
4267 | |
4268 | class FileDataObjectPtr(FileDataObject): | |
4269 | def __init__(self, this): | |
4270 | self.this = this | |
4271 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4272 | self.__class__ = FileDataObject | |
4273 | _misc.FileDataObject_swigregister(FileDataObjectPtr) | |
4274 | ||
4275 | class CustomDataObject(DataObjectSimple): | |
e811c8ce RD |
4276 | def __repr__(self): |
4277 | return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4278 | def __init__(self, *args, **kwargs): |
e811c8ce | 4279 | """__init__(DataFormat format=FormatInvalid) -> CustomDataObject""" |
d14a1e28 RD |
4280 | newobj = _misc.new_CustomDataObject(*args, **kwargs) |
4281 | self.this = newobj.this | |
4282 | self.thisown = 1 | |
4283 | del newobj.thisown | |
e811c8ce RD |
4284 | def TakeData(*args, **kwargs): |
4285 | """TakeData(PyObject data)""" | |
4286 | return _misc.CustomDataObject_TakeData(*args, **kwargs) | |
4287 | ||
4288 | def SetData(*args, **kwargs): | |
4289 | """SetData(PyObject data) -> bool""" | |
4290 | return _misc.CustomDataObject_SetData(*args, **kwargs) | |
4291 | ||
4292 | def GetSize(*args, **kwargs): | |
4293 | """GetSize() -> size_t""" | |
4294 | return _misc.CustomDataObject_GetSize(*args, **kwargs) | |
4295 | ||
4296 | def GetData(*args, **kwargs): | |
4297 | """GetData() -> PyObject""" | |
4298 | return _misc.CustomDataObject_GetData(*args, **kwargs) | |
4299 | ||
d14a1e28 RD |
4300 | |
4301 | class CustomDataObjectPtr(CustomDataObject): | |
4302 | def __init__(self, this): | |
4303 | self.this = this | |
4304 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4305 | self.__class__ = CustomDataObject | |
4306 | _misc.CustomDataObject_swigregister(CustomDataObjectPtr) | |
4307 | ||
4308 | class URLDataObject(DataObjectComposite): | |
e811c8ce RD |
4309 | def __repr__(self): |
4310 | return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4311 | def __init__(self, *args, **kwargs): |
e811c8ce | 4312 | """__init__() -> URLDataObject""" |
d14a1e28 RD |
4313 | newobj = _misc.new_URLDataObject(*args, **kwargs) |
4314 | self.this = newobj.this | |
4315 | self.thisown = 1 | |
4316 | del newobj.thisown | |
e811c8ce RD |
4317 | def GetURL(*args, **kwargs): |
4318 | """GetURL() -> wxString""" | |
4319 | return _misc.URLDataObject_GetURL(*args, **kwargs) | |
4320 | ||
4321 | def SetURL(*args, **kwargs): | |
4322 | """SetURL(wxString url)""" | |
4323 | return _misc.URLDataObject_SetURL(*args, **kwargs) | |
4324 | ||
d14a1e28 RD |
4325 | |
4326 | class URLDataObjectPtr(URLDataObject): | |
4327 | def __init__(self, this): | |
4328 | self.this = this | |
4329 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4330 | self.__class__ = URLDataObject | |
4331 | _misc.URLDataObject_swigregister(URLDataObjectPtr) | |
4332 | ||
4333 | class MetafileDataObject(DataObjectSimple): | |
e811c8ce RD |
4334 | def __repr__(self): |
4335 | return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4336 | def __init__(self, *args, **kwargs): |
e811c8ce | 4337 | """__init__() -> MetafileDataObject""" |
d14a1e28 RD |
4338 | newobj = _misc.new_MetafileDataObject(*args, **kwargs) |
4339 | self.this = newobj.this | |
4340 | self.thisown = 1 | |
4341 | del newobj.thisown | |
d14a1e28 RD |
4342 | |
4343 | class MetafileDataObjectPtr(MetafileDataObject): | |
4344 | def __init__(self, this): | |
4345 | self.this = this | |
4346 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4347 | self.__class__ = MetafileDataObject | |
4348 | _misc.MetafileDataObject_swigregister(MetafileDataObjectPtr) | |
4349 | ||
4350 | #--------------------------------------------------------------------------- | |
4351 | ||
4352 | Drag_CopyOnly = _misc.Drag_CopyOnly | |
4353 | Drag_AllowMove = _misc.Drag_AllowMove | |
4354 | Drag_DefaultMove = _misc.Drag_DefaultMove | |
4355 | DragError = _misc.DragError | |
4356 | DragNone = _misc.DragNone | |
4357 | DragCopy = _misc.DragCopy | |
4358 | DragMove = _misc.DragMove | |
4359 | DragLink = _misc.DragLink | |
4360 | DragCancel = _misc.DragCancel | |
4361 | ||
e811c8ce RD |
4362 | def IsDragResultOk(*args, **kwargs): |
4363 | """IsDragResultOk(wxDragResult res) -> bool""" | |
4364 | return _misc.IsDragResultOk(*args, **kwargs) | |
d14a1e28 | 4365 | class DropSource(object): |
e811c8ce RD |
4366 | def __repr__(self): |
4367 | return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4368 | def __init__(self, *args, **kwargs): |
0df68c9f RD |
4369 | """ |
4370 | __init__(Window win=None, wxIcon copy=wxNullIcon, wxIcon move=wxNullIcon, | |
4371 | wxIcon none=wxNullIcon) -> DropSource | |
4372 | """ | |
d14a1e28 RD |
4373 | newobj = _misc.new_DropSource(*args, **kwargs) |
4374 | self.this = newobj.this | |
4375 | self.thisown = 1 | |
4376 | del newobj.thisown | |
e811c8ce RD |
4377 | def _setCallbackInfo(*args, **kwargs): |
4378 | """_setCallbackInfo(PyObject self, PyObject _class, int incref)""" | |
4379 | return _misc.DropSource__setCallbackInfo(*args, **kwargs) | |
4380 | ||
d14a1e28 | 4381 | def __del__(self, destroy=_misc.delete_DropSource): |
e811c8ce | 4382 | """__del__()""" |
d14a1e28 RD |
4383 | try: |
4384 | if self.thisown: destroy(self) | |
4385 | except: pass | |
e811c8ce RD |
4386 | |
4387 | def SetData(*args, **kwargs): | |
4388 | """SetData(DataObject data)""" | |
4389 | return _misc.DropSource_SetData(*args, **kwargs) | |
4390 | ||
4391 | def GetDataObject(*args, **kwargs): | |
4392 | """GetDataObject() -> DataObject""" | |
4393 | return _misc.DropSource_GetDataObject(*args, **kwargs) | |
4394 | ||
4395 | def SetCursor(*args, **kwargs): | |
4396 | """SetCursor(wxDragResult res, wxCursor cursor)""" | |
4397 | return _misc.DropSource_SetCursor(*args, **kwargs) | |
4398 | ||
4399 | def DoDragDrop(*args, **kwargs): | |
4400 | """DoDragDrop(int flags=Drag_CopyOnly) -> wxDragResult""" | |
4401 | return _misc.DropSource_DoDragDrop(*args, **kwargs) | |
4402 | ||
4403 | def base_GiveFeedback(*args, **kwargs): | |
4404 | """base_GiveFeedback(wxDragResult effect) -> bool""" | |
4405 | return _misc.DropSource_base_GiveFeedback(*args, **kwargs) | |
4406 | ||
d14a1e28 RD |
4407 | |
4408 | class DropSourcePtr(DropSource): | |
4409 | def __init__(self, this): | |
4410 | self.this = this | |
4411 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4412 | self.__class__ = DropSource | |
4413 | _misc.DropSource_swigregister(DropSourcePtr) | |
4414 | ||
4415 | class DropTarget(object): | |
e811c8ce RD |
4416 | def __repr__(self): |
4417 | return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4418 | def __init__(self, *args, **kwargs): |
e811c8ce | 4419 | """__init__(DataObject dataObject=None) -> DropTarget""" |
d14a1e28 RD |
4420 | newobj = _misc.new_DropTarget(*args, **kwargs) |
4421 | self.this = newobj.this | |
4422 | self.thisown = 1 | |
4423 | del newobj.thisown | |
fd3f2efe RD |
4424 | if args: args[0].thisown = 0; |
4425 | self._setCallbackInfo(self, DropTarget) | |
e811c8ce RD |
4426 | |
4427 | def _setCallbackInfo(*args, **kwargs): | |
4428 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
4429 | return _misc.DropTarget__setCallbackInfo(*args, **kwargs) | |
4430 | ||
d14a1e28 | 4431 | def __del__(self, destroy=_misc.delete_DropTarget): |
e811c8ce | 4432 | """__del__()""" |
d14a1e28 RD |
4433 | try: |
4434 | if self.thisown: destroy(self) | |
4435 | except: pass | |
e811c8ce RD |
4436 | |
4437 | def GetDataObject(*args, **kwargs): | |
4438 | """GetDataObject() -> DataObject""" | |
4439 | return _misc.DropTarget_GetDataObject(*args, **kwargs) | |
4440 | ||
4441 | def SetDataObject(*args, **kwargs): | |
4442 | """SetDataObject(DataObject dataObject)""" | |
d14a1e28 RD |
4443 | val = _misc.DropTarget_SetDataObject(*args, **kwargs) |
4444 | args[1].thisown = 0 | |
4445 | return val | |
e811c8ce RD |
4446 | |
4447 | def base_OnEnter(*args, **kwargs): | |
4448 | """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult""" | |
4449 | return _misc.DropTarget_base_OnEnter(*args, **kwargs) | |
4450 | ||
4451 | def base_OnDragOver(*args, **kwargs): | |
4452 | """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult""" | |
4453 | return _misc.DropTarget_base_OnDragOver(*args, **kwargs) | |
4454 | ||
4455 | def base_OnLeave(*args, **kwargs): | |
4456 | """base_OnLeave()""" | |
4457 | return _misc.DropTarget_base_OnLeave(*args, **kwargs) | |
4458 | ||
4459 | def base_OnDrop(*args, **kwargs): | |
4460 | """base_OnDrop(int x, int y) -> bool""" | |
4461 | return _misc.DropTarget_base_OnDrop(*args, **kwargs) | |
4462 | ||
4463 | def GetData(*args, **kwargs): | |
4464 | """GetData() -> bool""" | |
4465 | return _misc.DropTarget_GetData(*args, **kwargs) | |
4466 | ||
d14a1e28 RD |
4467 | |
4468 | class DropTargetPtr(DropTarget): | |
4469 | def __init__(self, this): | |
4470 | self.this = this | |
4471 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4472 | self.__class__ = DropTarget | |
4473 | _misc.DropTarget_swigregister(DropTargetPtr) | |
4474 | ||
4475 | PyDropTarget = DropTarget | |
4476 | class TextDropTarget(DropTarget): | |
e811c8ce RD |
4477 | def __repr__(self): |
4478 | return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4479 | def __init__(self, *args, **kwargs): |
e811c8ce | 4480 | """__init__() -> TextDropTarget""" |
d14a1e28 RD |
4481 | newobj = _misc.new_TextDropTarget(*args, **kwargs) |
4482 | self.this = newobj.this | |
4483 | self.thisown = 1 | |
4484 | del newobj.thisown | |
4485 | self._setCallbackInfo(self, TextDropTarget) | |
e811c8ce RD |
4486 | |
4487 | def _setCallbackInfo(*args, **kwargs): | |
4488 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
4489 | return _misc.TextDropTarget__setCallbackInfo(*args, **kwargs) | |
4490 | ||
4491 | def base_OnEnter(*args, **kwargs): | |
4492 | """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult""" | |
4493 | return _misc.TextDropTarget_base_OnEnter(*args, **kwargs) | |
4494 | ||
4495 | def base_OnDragOver(*args, **kwargs): | |
4496 | """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult""" | |
4497 | return _misc.TextDropTarget_base_OnDragOver(*args, **kwargs) | |
4498 | ||
4499 | def base_OnLeave(*args, **kwargs): | |
4500 | """base_OnLeave()""" | |
4501 | return _misc.TextDropTarget_base_OnLeave(*args, **kwargs) | |
4502 | ||
4503 | def base_OnDrop(*args, **kwargs): | |
4504 | """base_OnDrop(int x, int y) -> bool""" | |
4505 | return _misc.TextDropTarget_base_OnDrop(*args, **kwargs) | |
4506 | ||
4507 | def base_OnData(*args, **kwargs): | |
4508 | """base_OnData(int x, int y, wxDragResult def) -> wxDragResult""" | |
4509 | return _misc.TextDropTarget_base_OnData(*args, **kwargs) | |
4510 | ||
d14a1e28 RD |
4511 | |
4512 | class TextDropTargetPtr(TextDropTarget): | |
4513 | def __init__(self, this): | |
4514 | self.this = this | |
4515 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4516 | self.__class__ = TextDropTarget | |
4517 | _misc.TextDropTarget_swigregister(TextDropTargetPtr) | |
4518 | ||
4519 | class FileDropTarget(DropTarget): | |
e811c8ce RD |
4520 | def __repr__(self): |
4521 | return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4522 | def __init__(self, *args, **kwargs): |
e811c8ce | 4523 | """__init__() -> FileDropTarget""" |
d14a1e28 RD |
4524 | newobj = _misc.new_FileDropTarget(*args, **kwargs) |
4525 | self.this = newobj.this | |
4526 | self.thisown = 1 | |
4527 | del newobj.thisown | |
4528 | self._setCallbackInfo(self, FileDropTarget) | |
e811c8ce RD |
4529 | |
4530 | def _setCallbackInfo(*args, **kwargs): | |
4531 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
4532 | return _misc.FileDropTarget__setCallbackInfo(*args, **kwargs) | |
4533 | ||
4534 | def base_OnEnter(*args, **kwargs): | |
4535 | """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult""" | |
4536 | return _misc.FileDropTarget_base_OnEnter(*args, **kwargs) | |
4537 | ||
4538 | def base_OnDragOver(*args, **kwargs): | |
4539 | """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult""" | |
4540 | return _misc.FileDropTarget_base_OnDragOver(*args, **kwargs) | |
4541 | ||
4542 | def base_OnLeave(*args, **kwargs): | |
4543 | """base_OnLeave()""" | |
4544 | return _misc.FileDropTarget_base_OnLeave(*args, **kwargs) | |
4545 | ||
4546 | def base_OnDrop(*args, **kwargs): | |
4547 | """base_OnDrop(int x, int y) -> bool""" | |
4548 | return _misc.FileDropTarget_base_OnDrop(*args, **kwargs) | |
4549 | ||
4550 | def base_OnData(*args, **kwargs): | |
4551 | """base_OnData(int x, int y, wxDragResult def) -> wxDragResult""" | |
4552 | return _misc.FileDropTarget_base_OnData(*args, **kwargs) | |
4553 | ||
d14a1e28 RD |
4554 | |
4555 | class FileDropTargetPtr(FileDropTarget): | |
4556 | def __init__(self, this): | |
4557 | self.this = this | |
4558 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4559 | self.__class__ = FileDropTarget | |
4560 | _misc.FileDropTarget_swigregister(FileDropTargetPtr) | |
4561 | ||
4562 | #--------------------------------------------------------------------------- | |
4563 | ||
4564 | class Clipboard(core.Object): | |
e811c8ce RD |
4565 | def __repr__(self): |
4566 | return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4567 | def __init__(self, *args, **kwargs): |
e811c8ce | 4568 | """__init__() -> Clipboard""" |
d14a1e28 RD |
4569 | newobj = _misc.new_Clipboard(*args, **kwargs) |
4570 | self.this = newobj.this | |
4571 | self.thisown = 1 | |
4572 | del newobj.thisown | |
4573 | def __del__(self, destroy=_misc.delete_Clipboard): | |
e811c8ce | 4574 | """__del__()""" |
d14a1e28 RD |
4575 | try: |
4576 | if self.thisown: destroy(self) | |
4577 | except: pass | |
e811c8ce RD |
4578 | |
4579 | def Open(*args, **kwargs): | |
4580 | """Open() -> bool""" | |
4581 | return _misc.Clipboard_Open(*args, **kwargs) | |
4582 | ||
4583 | def Close(*args, **kwargs): | |
4584 | """Close()""" | |
4585 | return _misc.Clipboard_Close(*args, **kwargs) | |
4586 | ||
4587 | def IsOpened(*args, **kwargs): | |
4588 | """IsOpened() -> bool""" | |
4589 | return _misc.Clipboard_IsOpened(*args, **kwargs) | |
4590 | ||
4591 | def AddData(*args, **kwargs): | |
4592 | """AddData(DataObject data) -> bool""" | |
4593 | return _misc.Clipboard_AddData(*args, **kwargs) | |
4594 | ||
4595 | def SetData(*args, **kwargs): | |
4596 | """SetData(DataObject data) -> bool""" | |
4597 | return _misc.Clipboard_SetData(*args, **kwargs) | |
4598 | ||
4599 | def IsSupported(*args, **kwargs): | |
4600 | """IsSupported(DataFormat format) -> bool""" | |
4601 | return _misc.Clipboard_IsSupported(*args, **kwargs) | |
4602 | ||
4603 | def GetData(*args, **kwargs): | |
4604 | """GetData(DataObject data) -> bool""" | |
4605 | return _misc.Clipboard_GetData(*args, **kwargs) | |
4606 | ||
4607 | def Clear(*args, **kwargs): | |
4608 | """Clear()""" | |
4609 | return _misc.Clipboard_Clear(*args, **kwargs) | |
4610 | ||
4611 | def Flush(*args, **kwargs): | |
4612 | """Flush() -> bool""" | |
4613 | return _misc.Clipboard_Flush(*args, **kwargs) | |
4614 | ||
4615 | def UsePrimarySelection(*args, **kwargs): | |
4616 | """UsePrimarySelection(bool primary=False)""" | |
4617 | return _misc.Clipboard_UsePrimarySelection(*args, **kwargs) | |
4618 | ||
d14a1e28 RD |
4619 | |
4620 | class ClipboardPtr(Clipboard): | |
4621 | def __init__(self, this): | |
4622 | self.this = this | |
4623 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4624 | self.__class__ = Clipboard | |
4625 | _misc.Clipboard_swigregister(ClipboardPtr) | |
4626 | ||
4627 | class ClipboardLocker(object): | |
e811c8ce RD |
4628 | def __repr__(self): |
4629 | return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4630 | def __init__(self, *args, **kwargs): |
e811c8ce | 4631 | """__init__(Clipboard clipboard=None) -> ClipboardLocker""" |
d14a1e28 RD |
4632 | newobj = _misc.new_ClipboardLocker(*args, **kwargs) |
4633 | self.this = newobj.this | |
4634 | self.thisown = 1 | |
4635 | del newobj.thisown | |
4636 | def __del__(self, destroy=_misc.delete_ClipboardLocker): | |
e811c8ce | 4637 | """__del__()""" |
d14a1e28 RD |
4638 | try: |
4639 | if self.thisown: destroy(self) | |
4640 | except: pass | |
e811c8ce RD |
4641 | |
4642 | def __nonzero__(*args, **kwargs): | |
4643 | """__nonzero__() -> bool""" | |
4644 | return _misc.ClipboardLocker___nonzero__(*args, **kwargs) | |
4645 | ||
d14a1e28 RD |
4646 | |
4647 | class ClipboardLockerPtr(ClipboardLocker): | |
4648 | def __init__(self, this): | |
4649 | self.this = this | |
4650 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4651 | self.__class__ = ClipboardLocker | |
4652 | _misc.ClipboardLocker_swigregister(ClipboardLockerPtr) | |
4653 | TheClipboard = cvar.TheClipboard | |
70551f47 RD |
4654 | |
4655 |