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