]>
Commit | Line | Data |
---|---|---|
1 | # This file was created automatically by SWIG. | |
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): | |
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,) | |
105 | def GetColour(*args, **kwargs): | |
106 | """GetColour(int index) -> Colour""" | |
107 | return _misc_.SystemSettings_GetColour(*args, **kwargs) | |
108 | ||
109 | GetColour = staticmethod(GetColour) | |
110 | def GetFont(*args, **kwargs): | |
111 | """GetFont(int index) -> Font""" | |
112 | return _misc_.SystemSettings_GetFont(*args, **kwargs) | |
113 | ||
114 | GetFont = staticmethod(GetFont) | |
115 | def GetMetric(*args, **kwargs): | |
116 | """GetMetric(int index) -> int""" | |
117 | return _misc_.SystemSettings_GetMetric(*args, **kwargs) | |
118 | ||
119 | GetMetric = staticmethod(GetMetric) | |
120 | def HasFeature(*args, **kwargs): | |
121 | """HasFeature(int index) -> bool""" | |
122 | return _misc_.SystemSettings_HasFeature(*args, **kwargs) | |
123 | ||
124 | HasFeature = staticmethod(HasFeature) | |
125 | def GetScreenType(*args, **kwargs): | |
126 | """GetScreenType() -> int""" | |
127 | return _misc_.SystemSettings_GetScreenType(*args, **kwargs) | |
128 | ||
129 | GetScreenType = staticmethod(GetScreenType) | |
130 | def SetScreenType(*args, **kwargs): | |
131 | """SetScreenType(int screen)""" | |
132 | return _misc_.SystemSettings_SetScreenType(*args, **kwargs) | |
133 | ||
134 | SetScreenType = staticmethod(SetScreenType) | |
135 | ||
136 | class SystemSettingsPtr(SystemSettings): | |
137 | def __init__(self, this): | |
138 | self.this = this | |
139 | if not hasattr(self,"thisown"): self.thisown = 0 | |
140 | self.__class__ = SystemSettings | |
141 | _misc_.SystemSettings_swigregister(SystemSettingsPtr) | |
142 | ||
143 | def SystemSettings_GetColour(*args, **kwargs): | |
144 | """SystemSettings_GetColour(int index) -> Colour""" | |
145 | return _misc_.SystemSettings_GetColour(*args, **kwargs) | |
146 | ||
147 | def SystemSettings_GetFont(*args, **kwargs): | |
148 | """SystemSettings_GetFont(int index) -> Font""" | |
149 | return _misc_.SystemSettings_GetFont(*args, **kwargs) | |
150 | ||
151 | def SystemSettings_GetMetric(*args, **kwargs): | |
152 | """SystemSettings_GetMetric(int index) -> int""" | |
153 | return _misc_.SystemSettings_GetMetric(*args, **kwargs) | |
154 | ||
155 | def SystemSettings_HasFeature(*args, **kwargs): | |
156 | """SystemSettings_HasFeature(int index) -> bool""" | |
157 | return _misc_.SystemSettings_HasFeature(*args, **kwargs) | |
158 | ||
159 | def SystemSettings_GetScreenType(*args, **kwargs): | |
160 | """SystemSettings_GetScreenType() -> int""" | |
161 | return _misc_.SystemSettings_GetScreenType(*args, **kwargs) | |
162 | ||
163 | def SystemSettings_SetScreenType(*args, **kwargs): | |
164 | """SystemSettings_SetScreenType(int screen)""" | |
165 | return _misc_.SystemSettings_SetScreenType(*args, **kwargs) | |
166 | ||
167 | class SystemOptions(_core.Object): | |
168 | def __repr__(self): | |
169 | return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
170 | def __init__(self, *args, **kwargs): | |
171 | """__init__(self) -> SystemOptions""" | |
172 | newobj = _misc_.new_SystemOptions(*args, **kwargs) | |
173 | self.this = newobj.this | |
174 | self.thisown = 1 | |
175 | del newobj.thisown | |
176 | def SetOption(*args, **kwargs): | |
177 | """SetOption(String name, String value)""" | |
178 | return _misc_.SystemOptions_SetOption(*args, **kwargs) | |
179 | ||
180 | SetOption = staticmethod(SetOption) | |
181 | def SetOptionInt(*args, **kwargs): | |
182 | """SetOptionInt(String name, int value)""" | |
183 | return _misc_.SystemOptions_SetOptionInt(*args, **kwargs) | |
184 | ||
185 | SetOptionInt = staticmethod(SetOptionInt) | |
186 | def GetOption(*args, **kwargs): | |
187 | """GetOption(String name) -> String""" | |
188 | return _misc_.SystemOptions_GetOption(*args, **kwargs) | |
189 | ||
190 | GetOption = staticmethod(GetOption) | |
191 | def GetOptionInt(*args, **kwargs): | |
192 | """GetOptionInt(String name) -> int""" | |
193 | return _misc_.SystemOptions_GetOptionInt(*args, **kwargs) | |
194 | ||
195 | GetOptionInt = staticmethod(GetOptionInt) | |
196 | def HasOption(*args, **kwargs): | |
197 | """HasOption(String name) -> bool""" | |
198 | return _misc_.SystemOptions_HasOption(*args, **kwargs) | |
199 | ||
200 | HasOption = staticmethod(HasOption) | |
201 | ||
202 | class SystemOptionsPtr(SystemOptions): | |
203 | def __init__(self, this): | |
204 | self.this = this | |
205 | if not hasattr(self,"thisown"): self.thisown = 0 | |
206 | self.__class__ = SystemOptions | |
207 | _misc_.SystemOptions_swigregister(SystemOptionsPtr) | |
208 | ||
209 | def SystemOptions_SetOption(*args, **kwargs): | |
210 | """SystemOptions_SetOption(String name, String value)""" | |
211 | return _misc_.SystemOptions_SetOption(*args, **kwargs) | |
212 | ||
213 | def SystemOptions_SetOptionInt(*args, **kwargs): | |
214 | """SystemOptions_SetOptionInt(String name, int value)""" | |
215 | return _misc_.SystemOptions_SetOptionInt(*args, **kwargs) | |
216 | ||
217 | def SystemOptions_GetOption(*args, **kwargs): | |
218 | """SystemOptions_GetOption(String name) -> String""" | |
219 | return _misc_.SystemOptions_GetOption(*args, **kwargs) | |
220 | ||
221 | def SystemOptions_GetOptionInt(*args, **kwargs): | |
222 | """SystemOptions_GetOptionInt(String name) -> int""" | |
223 | return _misc_.SystemOptions_GetOptionInt(*args, **kwargs) | |
224 | ||
225 | def SystemOptions_HasOption(*args, **kwargs): | |
226 | """SystemOptions_HasOption(String name) -> bool""" | |
227 | return _misc_.SystemOptions_HasOption(*args, **kwargs) | |
228 | ||
229 | #--------------------------------------------------------------------------- | |
230 | ||
231 | ||
232 | def NewId(*args, **kwargs): | |
233 | """NewId() -> long""" | |
234 | return _misc_.NewId(*args, **kwargs) | |
235 | ||
236 | def RegisterId(*args, **kwargs): | |
237 | """RegisterId(long id)""" | |
238 | return _misc_.RegisterId(*args, **kwargs) | |
239 | ||
240 | def GetCurrentId(*args, **kwargs): | |
241 | """GetCurrentId() -> long""" | |
242 | return _misc_.GetCurrentId(*args, **kwargs) | |
243 | ||
244 | def Bell(*args, **kwargs): | |
245 | """Bell()""" | |
246 | return _misc_.Bell(*args, **kwargs) | |
247 | ||
248 | def EndBusyCursor(*args, **kwargs): | |
249 | """EndBusyCursor()""" | |
250 | return _misc_.EndBusyCursor(*args, **kwargs) | |
251 | ||
252 | def GetElapsedTime(*args, **kwargs): | |
253 | """GetElapsedTime(bool resetTimer=True) -> long""" | |
254 | return _misc_.GetElapsedTime(*args, **kwargs) | |
255 | ||
256 | def GetMousePosition(*args, **kwargs): | |
257 | """GetMousePosition() -> (x,y)""" | |
258 | return _misc_.GetMousePosition(*args, **kwargs) | |
259 | ||
260 | def IsBusy(*args, **kwargs): | |
261 | """IsBusy() -> bool""" | |
262 | return _misc_.IsBusy(*args, **kwargs) | |
263 | ||
264 | def Now(*args, **kwargs): | |
265 | """Now() -> String""" | |
266 | return _misc_.Now(*args, **kwargs) | |
267 | ||
268 | def Shell(*args, **kwargs): | |
269 | """Shell(String command=EmptyString) -> bool""" | |
270 | return _misc_.Shell(*args, **kwargs) | |
271 | ||
272 | def StartTimer(*args, **kwargs): | |
273 | """StartTimer()""" | |
274 | return _misc_.StartTimer(*args, **kwargs) | |
275 | ||
276 | def GetOsVersion(*args, **kwargs): | |
277 | """GetOsVersion() -> (platform, major, minor)""" | |
278 | return _misc_.GetOsVersion(*args, **kwargs) | |
279 | ||
280 | def GetOsDescription(*args, **kwargs): | |
281 | """GetOsDescription() -> String""" | |
282 | return _misc_.GetOsDescription(*args, **kwargs) | |
283 | ||
284 | def GetFreeMemory(*args, **kwargs): | |
285 | """GetFreeMemory() -> long""" | |
286 | return _misc_.GetFreeMemory(*args, **kwargs) | |
287 | SHUTDOWN_POWEROFF = _misc_.SHUTDOWN_POWEROFF | |
288 | SHUTDOWN_REBOOT = _misc_.SHUTDOWN_REBOOT | |
289 | ||
290 | def Shutdown(*args, **kwargs): | |
291 | """Shutdown(int wFlags) -> bool""" | |
292 | return _misc_.Shutdown(*args, **kwargs) | |
293 | ||
294 | def Sleep(*args, **kwargs): | |
295 | """Sleep(int secs)""" | |
296 | return _misc_.Sleep(*args, **kwargs) | |
297 | ||
298 | def Usleep(*args, **kwargs): | |
299 | """Usleep(unsigned long milliseconds)""" | |
300 | return _misc_.Usleep(*args, **kwargs) | |
301 | ||
302 | def EnableTopLevelWindows(*args, **kwargs): | |
303 | """EnableTopLevelWindows(bool enable)""" | |
304 | return _misc_.EnableTopLevelWindows(*args, **kwargs) | |
305 | ||
306 | def StripMenuCodes(*args, **kwargs): | |
307 | """StripMenuCodes(String in) -> String""" | |
308 | return _misc_.StripMenuCodes(*args, **kwargs) | |
309 | ||
310 | def GetEmailAddress(*args, **kwargs): | |
311 | """GetEmailAddress() -> String""" | |
312 | return _misc_.GetEmailAddress(*args, **kwargs) | |
313 | ||
314 | def GetHostName(*args, **kwargs): | |
315 | """GetHostName() -> String""" | |
316 | return _misc_.GetHostName(*args, **kwargs) | |
317 | ||
318 | def GetFullHostName(*args, **kwargs): | |
319 | """GetFullHostName() -> String""" | |
320 | return _misc_.GetFullHostName(*args, **kwargs) | |
321 | ||
322 | def GetUserId(*args, **kwargs): | |
323 | """GetUserId() -> String""" | |
324 | return _misc_.GetUserId(*args, **kwargs) | |
325 | ||
326 | def GetUserName(*args, **kwargs): | |
327 | """GetUserName() -> String""" | |
328 | return _misc_.GetUserName(*args, **kwargs) | |
329 | ||
330 | def GetHomeDir(*args, **kwargs): | |
331 | """GetHomeDir() -> String""" | |
332 | return _misc_.GetHomeDir(*args, **kwargs) | |
333 | ||
334 | def GetUserHome(*args, **kwargs): | |
335 | """GetUserHome(String user=EmptyString) -> String""" | |
336 | return _misc_.GetUserHome(*args, **kwargs) | |
337 | ||
338 | def GetProcessId(*args, **kwargs): | |
339 | """GetProcessId() -> unsigned long""" | |
340 | return _misc_.GetProcessId(*args, **kwargs) | |
341 | ||
342 | def Trap(*args, **kwargs): | |
343 | """Trap()""" | |
344 | return _misc_.Trap(*args, **kwargs) | |
345 | ||
346 | def FileSelector(*args, **kwargs): | |
347 | """ | |
348 | FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString, | |
349 | String default_filename=EmptyString, | |
350 | String default_extension=EmptyString, | |
351 | String wildcard=FileSelectorDefaultWildcardStr, | |
352 | int flags=0, Window parent=None, int x=-1, | |
353 | int y=-1) -> String | |
354 | """ | |
355 | return _misc_.FileSelector(*args, **kwargs) | |
356 | ||
357 | def LoadFileSelector(*args, **kwargs): | |
358 | """ | |
359 | LoadFileSelector(String what, String extension, String default_name=EmptyString, | |
360 | Window parent=None) -> String | |
361 | """ | |
362 | return _misc_.LoadFileSelector(*args, **kwargs) | |
363 | ||
364 | def SaveFileSelector(*args, **kwargs): | |
365 | """ | |
366 | SaveFileSelector(String what, String extension, String default_name=EmptyString, | |
367 | Window parent=None) -> String | |
368 | """ | |
369 | return _misc_.SaveFileSelector(*args, **kwargs) | |
370 | ||
371 | def DirSelector(*args, **kwargs): | |
372 | """ | |
373 | DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString, | |
374 | long style=DD_DEFAULT_STYLE, | |
375 | Point pos=DefaultPosition, Window parent=None) -> String | |
376 | """ | |
377 | return _misc_.DirSelector(*args, **kwargs) | |
378 | ||
379 | def GetTextFromUser(*args, **kwargs): | |
380 | """ | |
381 | GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString, | |
382 | Window parent=None, | |
383 | int x=-1, int y=-1, bool centre=True) -> String | |
384 | """ | |
385 | return _misc_.GetTextFromUser(*args, **kwargs) | |
386 | ||
387 | def GetPasswordFromUser(*args, **kwargs): | |
388 | """ | |
389 | GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString, | |
390 | Window parent=None) -> String | |
391 | """ | |
392 | return _misc_.GetPasswordFromUser(*args, **kwargs) | |
393 | ||
394 | def GetSingleChoice(*args, **kwargs): | |
395 | """ | |
396 | GetSingleChoice(String message, String caption, int choices, String choices_array, | |
397 | Window parent=None, int x=-1, | |
398 | int y=-1, bool centre=True, int width=150, int height=200) -> String | |
399 | """ | |
400 | return _misc_.GetSingleChoice(*args, **kwargs) | |
401 | ||
402 | def GetSingleChoiceIndex(*args, **kwargs): | |
403 | """ | |
404 | GetSingleChoiceIndex(String message, String caption, int choices, String choices_array, | |
405 | Window parent=None, int x=-1, | |
406 | int y=-1, bool centre=True, int width=150, int height=200) -> int | |
407 | """ | |
408 | return _misc_.GetSingleChoiceIndex(*args, **kwargs) | |
409 | ||
410 | def MessageBox(*args, **kwargs): | |
411 | """ | |
412 | MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE, | |
413 | Window parent=None, int x=-1, | |
414 | int y=-1) -> int | |
415 | """ | |
416 | return _misc_.MessageBox(*args, **kwargs) | |
417 | ||
418 | def GetNumberFromUser(*args, **kwargs): | |
419 | """ | |
420 | GetNumberFromUser(String message, String prompt, String caption, long value, | |
421 | long min=0, long max=100, Window parent=None, | |
422 | Point pos=DefaultPosition) -> long | |
423 | """ | |
424 | return _misc_.GetNumberFromUser(*args, **kwargs) | |
425 | ||
426 | def ColourDisplay(*args, **kwargs): | |
427 | """ColourDisplay() -> bool""" | |
428 | return _misc_.ColourDisplay(*args, **kwargs) | |
429 | ||
430 | def DisplayDepth(*args, **kwargs): | |
431 | """DisplayDepth() -> int""" | |
432 | return _misc_.DisplayDepth(*args, **kwargs) | |
433 | ||
434 | def GetDisplayDepth(*args, **kwargs): | |
435 | """GetDisplayDepth() -> int""" | |
436 | return _misc_.GetDisplayDepth(*args, **kwargs) | |
437 | ||
438 | def DisplaySize(*args, **kwargs): | |
439 | """DisplaySize() -> (width, height)""" | |
440 | return _misc_.DisplaySize(*args, **kwargs) | |
441 | ||
442 | def GetDisplaySize(*args, **kwargs): | |
443 | """GetDisplaySize() -> Size""" | |
444 | return _misc_.GetDisplaySize(*args, **kwargs) | |
445 | ||
446 | def DisplaySizeMM(*args, **kwargs): | |
447 | """DisplaySizeMM() -> (width, height)""" | |
448 | return _misc_.DisplaySizeMM(*args, **kwargs) | |
449 | ||
450 | def GetDisplaySizeMM(*args, **kwargs): | |
451 | """GetDisplaySizeMM() -> Size""" | |
452 | return _misc_.GetDisplaySizeMM(*args, **kwargs) | |
453 | ||
454 | def ClientDisplayRect(*args, **kwargs): | |
455 | """ClientDisplayRect() -> (x, y, width, height)""" | |
456 | return _misc_.ClientDisplayRect(*args, **kwargs) | |
457 | ||
458 | def GetClientDisplayRect(*args, **kwargs): | |
459 | """GetClientDisplayRect() -> Rect""" | |
460 | return _misc_.GetClientDisplayRect(*args, **kwargs) | |
461 | ||
462 | def SetCursor(*args, **kwargs): | |
463 | """SetCursor(Cursor cursor)""" | |
464 | return _misc_.SetCursor(*args, **kwargs) | |
465 | ||
466 | def BeginBusyCursor(*args, **kwargs): | |
467 | """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)""" | |
468 | return _misc_.BeginBusyCursor(*args, **kwargs) | |
469 | ||
470 | def GetActiveWindow(*args, **kwargs): | |
471 | """GetActiveWindow() -> Window""" | |
472 | return _misc_.GetActiveWindow(*args, **kwargs) | |
473 | ||
474 | def GenericFindWindowAtPoint(*args, **kwargs): | |
475 | """GenericFindWindowAtPoint(Point pt) -> Window""" | |
476 | return _misc_.GenericFindWindowAtPoint(*args, **kwargs) | |
477 | ||
478 | def FindWindowAtPoint(*args, **kwargs): | |
479 | """FindWindowAtPoint(Point pt) -> Window""" | |
480 | return _misc_.FindWindowAtPoint(*args, **kwargs) | |
481 | ||
482 | def GetTopLevelParent(*args, **kwargs): | |
483 | """GetTopLevelParent(Window win) -> Window""" | |
484 | return _misc_.GetTopLevelParent(*args, **kwargs) | |
485 | ||
486 | def GetKeyState(*args, **kwargs): | |
487 | """ | |
488 | GetKeyState(int key) -> bool | |
489 | ||
490 | Get the state of a key (true if pressed or toggled on, false if not.) | |
491 | This is generally most useful getting the state of the modifier or | |
492 | toggle keys. On some platforms those may be the only keys that work. | |
493 | ||
494 | """ | |
495 | return _misc_.GetKeyState(*args, **kwargs) | |
496 | ||
497 | def WakeUpMainThread(*args, **kwargs): | |
498 | """WakeUpMainThread()""" | |
499 | return _misc_.WakeUpMainThread(*args, **kwargs) | |
500 | ||
501 | def MutexGuiEnter(*args, **kwargs): | |
502 | """MutexGuiEnter()""" | |
503 | return _misc_.MutexGuiEnter(*args, **kwargs) | |
504 | ||
505 | def MutexGuiLeave(*args, **kwargs): | |
506 | """MutexGuiLeave()""" | |
507 | return _misc_.MutexGuiLeave(*args, **kwargs) | |
508 | class MutexGuiLocker(object): | |
509 | def __repr__(self): | |
510 | return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
511 | def __init__(self, *args, **kwargs): | |
512 | """__init__(self) -> MutexGuiLocker""" | |
513 | newobj = _misc_.new_MutexGuiLocker(*args, **kwargs) | |
514 | self.this = newobj.this | |
515 | self.thisown = 1 | |
516 | del newobj.thisown | |
517 | def __del__(self, destroy=_misc_.delete_MutexGuiLocker): | |
518 | """__del__(self)""" | |
519 | try: | |
520 | if self.thisown: destroy(self) | |
521 | except: pass | |
522 | ||
523 | ||
524 | class MutexGuiLockerPtr(MutexGuiLocker): | |
525 | def __init__(self, this): | |
526 | self.this = this | |
527 | if not hasattr(self,"thisown"): self.thisown = 0 | |
528 | self.__class__ = MutexGuiLocker | |
529 | _misc_.MutexGuiLocker_swigregister(MutexGuiLockerPtr) | |
530 | cvar = _misc_.cvar | |
531 | FileSelectorPromptStr = cvar.FileSelectorPromptStr | |
532 | FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr | |
533 | DirSelectorPromptStr = cvar.DirSelectorPromptStr | |
534 | ||
535 | ||
536 | def Thread_IsMain(*args, **kwargs): | |
537 | """Thread_IsMain() -> bool""" | |
538 | return _misc_.Thread_IsMain(*args, **kwargs) | |
539 | #--------------------------------------------------------------------------- | |
540 | ||
541 | class ToolTip(_core.Object): | |
542 | def __repr__(self): | |
543 | return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
544 | def __init__(self, *args, **kwargs): | |
545 | """__init__(self, String tip) -> ToolTip""" | |
546 | newobj = _misc_.new_ToolTip(*args, **kwargs) | |
547 | self.this = newobj.this | |
548 | self.thisown = 1 | |
549 | del newobj.thisown | |
550 | def SetTip(*args, **kwargs): | |
551 | """SetTip(self, String tip)""" | |
552 | return _misc_.ToolTip_SetTip(*args, **kwargs) | |
553 | ||
554 | def GetTip(*args, **kwargs): | |
555 | """GetTip(self) -> String""" | |
556 | return _misc_.ToolTip_GetTip(*args, **kwargs) | |
557 | ||
558 | def GetWindow(*args, **kwargs): | |
559 | """GetWindow(self) -> Window""" | |
560 | return _misc_.ToolTip_GetWindow(*args, **kwargs) | |
561 | ||
562 | def Enable(*args, **kwargs): | |
563 | """Enable(bool flag)""" | |
564 | return _misc_.ToolTip_Enable(*args, **kwargs) | |
565 | ||
566 | Enable = staticmethod(Enable) | |
567 | def SetDelay(*args, **kwargs): | |
568 | """SetDelay(long milliseconds)""" | |
569 | return _misc_.ToolTip_SetDelay(*args, **kwargs) | |
570 | ||
571 | SetDelay = staticmethod(SetDelay) | |
572 | ||
573 | class ToolTipPtr(ToolTip): | |
574 | def __init__(self, this): | |
575 | self.this = this | |
576 | if not hasattr(self,"thisown"): self.thisown = 0 | |
577 | self.__class__ = ToolTip | |
578 | _misc_.ToolTip_swigregister(ToolTipPtr) | |
579 | ||
580 | def ToolTip_Enable(*args, **kwargs): | |
581 | """ToolTip_Enable(bool flag)""" | |
582 | return _misc_.ToolTip_Enable(*args, **kwargs) | |
583 | ||
584 | def ToolTip_SetDelay(*args, **kwargs): | |
585 | """ToolTip_SetDelay(long milliseconds)""" | |
586 | return _misc_.ToolTip_SetDelay(*args, **kwargs) | |
587 | ||
588 | class Caret(object): | |
589 | def __repr__(self): | |
590 | return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
591 | def __init__(self, *args, **kwargs): | |
592 | """__init__(self, Window window, Size size) -> Caret""" | |
593 | newobj = _misc_.new_Caret(*args, **kwargs) | |
594 | self.this = newobj.this | |
595 | self.thisown = 1 | |
596 | del newobj.thisown | |
597 | def __del__(self, destroy=_misc_.delete_Caret): | |
598 | """__del__(self)""" | |
599 | try: | |
600 | if self.thisown: destroy(self) | |
601 | except: pass | |
602 | ||
603 | def IsOk(*args, **kwargs): | |
604 | """IsOk(self) -> bool""" | |
605 | return _misc_.Caret_IsOk(*args, **kwargs) | |
606 | ||
607 | def IsVisible(*args, **kwargs): | |
608 | """IsVisible(self) -> bool""" | |
609 | return _misc_.Caret_IsVisible(*args, **kwargs) | |
610 | ||
611 | def GetPosition(*args, **kwargs): | |
612 | """GetPosition(self) -> Point""" | |
613 | return _misc_.Caret_GetPosition(*args, **kwargs) | |
614 | ||
615 | def GetPositionTuple(*args, **kwargs): | |
616 | """GetPositionTuple() -> (x,y)""" | |
617 | return _misc_.Caret_GetPositionTuple(*args, **kwargs) | |
618 | ||
619 | def GetSize(*args, **kwargs): | |
620 | """GetSize(self) -> Size""" | |
621 | return _misc_.Caret_GetSize(*args, **kwargs) | |
622 | ||
623 | def GetSizeTuple(*args, **kwargs): | |
624 | """GetSizeTuple() -> (width, height)""" | |
625 | return _misc_.Caret_GetSizeTuple(*args, **kwargs) | |
626 | ||
627 | def GetWindow(*args, **kwargs): | |
628 | """GetWindow(self) -> Window""" | |
629 | return _misc_.Caret_GetWindow(*args, **kwargs) | |
630 | ||
631 | def MoveXY(*args, **kwargs): | |
632 | """MoveXY(self, int x, int y)""" | |
633 | return _misc_.Caret_MoveXY(*args, **kwargs) | |
634 | ||
635 | def Move(*args, **kwargs): | |
636 | """Move(self, Point pt)""" | |
637 | return _misc_.Caret_Move(*args, **kwargs) | |
638 | ||
639 | def SetSizeWH(*args, **kwargs): | |
640 | """SetSizeWH(self, int width, int height)""" | |
641 | return _misc_.Caret_SetSizeWH(*args, **kwargs) | |
642 | ||
643 | def SetSize(*args, **kwargs): | |
644 | """SetSize(self, Size size)""" | |
645 | return _misc_.Caret_SetSize(*args, **kwargs) | |
646 | ||
647 | def Show(*args, **kwargs): | |
648 | """Show(self, int show=True)""" | |
649 | return _misc_.Caret_Show(*args, **kwargs) | |
650 | ||
651 | def Hide(*args, **kwargs): | |
652 | """Hide(self)""" | |
653 | return _misc_.Caret_Hide(*args, **kwargs) | |
654 | ||
655 | def __nonzero__(self): return self.IsOk() | |
656 | ||
657 | class CaretPtr(Caret): | |
658 | def __init__(self, this): | |
659 | self.this = this | |
660 | if not hasattr(self,"thisown"): self.thisown = 0 | |
661 | self.__class__ = Caret | |
662 | _misc_.Caret_swigregister(CaretPtr) | |
663 | ||
664 | ||
665 | def Caret_GetBlinkTime(*args, **kwargs): | |
666 | """Caret_GetBlinkTime() -> int""" | |
667 | return _misc_.Caret_GetBlinkTime(*args, **kwargs) | |
668 | ||
669 | def Caret_SetBlinkTime(*args, **kwargs): | |
670 | """Caret_SetBlinkTime(int milliseconds)""" | |
671 | return _misc_.Caret_SetBlinkTime(*args, **kwargs) | |
672 | class BusyCursor(object): | |
673 | def __repr__(self): | |
674 | return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
675 | def __init__(self, *args, **kwargs): | |
676 | """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor""" | |
677 | newobj = _misc_.new_BusyCursor(*args, **kwargs) | |
678 | self.this = newobj.this | |
679 | self.thisown = 1 | |
680 | del newobj.thisown | |
681 | def __del__(self, destroy=_misc_.delete_BusyCursor): | |
682 | """__del__(self)""" | |
683 | try: | |
684 | if self.thisown: destroy(self) | |
685 | except: pass | |
686 | ||
687 | ||
688 | class BusyCursorPtr(BusyCursor): | |
689 | def __init__(self, this): | |
690 | self.this = this | |
691 | if not hasattr(self,"thisown"): self.thisown = 0 | |
692 | self.__class__ = BusyCursor | |
693 | _misc_.BusyCursor_swigregister(BusyCursorPtr) | |
694 | ||
695 | class WindowDisabler(object): | |
696 | def __repr__(self): | |
697 | return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
698 | def __init__(self, *args, **kwargs): | |
699 | """__init__(self, Window winToSkip=None) -> WindowDisabler""" | |
700 | newobj = _misc_.new_WindowDisabler(*args, **kwargs) | |
701 | self.this = newobj.this | |
702 | self.thisown = 1 | |
703 | del newobj.thisown | |
704 | def __del__(self, destroy=_misc_.delete_WindowDisabler): | |
705 | """__del__(self)""" | |
706 | try: | |
707 | if self.thisown: destroy(self) | |
708 | except: pass | |
709 | ||
710 | ||
711 | class WindowDisablerPtr(WindowDisabler): | |
712 | def __init__(self, this): | |
713 | self.this = this | |
714 | if not hasattr(self,"thisown"): self.thisown = 0 | |
715 | self.__class__ = WindowDisabler | |
716 | _misc_.WindowDisabler_swigregister(WindowDisablerPtr) | |
717 | ||
718 | class BusyInfo(_core.Object): | |
719 | def __repr__(self): | |
720 | return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
721 | def __init__(self, *args, **kwargs): | |
722 | """__init__(self, String message) -> BusyInfo""" | |
723 | newobj = _misc_.new_BusyInfo(*args, **kwargs) | |
724 | self.this = newobj.this | |
725 | self.thisown = 1 | |
726 | del newobj.thisown | |
727 | def __del__(self, destroy=_misc_.delete_BusyInfo): | |
728 | """__del__(self)""" | |
729 | try: | |
730 | if self.thisown: destroy(self) | |
731 | except: pass | |
732 | ||
733 | ||
734 | class BusyInfoPtr(BusyInfo): | |
735 | def __init__(self, this): | |
736 | self.this = this | |
737 | if not hasattr(self,"thisown"): self.thisown = 0 | |
738 | self.__class__ = BusyInfo | |
739 | _misc_.BusyInfo_swigregister(BusyInfoPtr) | |
740 | ||
741 | class StopWatch(object): | |
742 | def __repr__(self): | |
743 | return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
744 | def __init__(self, *args, **kwargs): | |
745 | """__init__(self) -> StopWatch""" | |
746 | newobj = _misc_.new_StopWatch(*args, **kwargs) | |
747 | self.this = newobj.this | |
748 | self.thisown = 1 | |
749 | del newobj.thisown | |
750 | def Start(*args, **kwargs): | |
751 | """Start(self, long t0=0)""" | |
752 | return _misc_.StopWatch_Start(*args, **kwargs) | |
753 | ||
754 | def Pause(*args, **kwargs): | |
755 | """Pause(self)""" | |
756 | return _misc_.StopWatch_Pause(*args, **kwargs) | |
757 | ||
758 | def Resume(*args, **kwargs): | |
759 | """Resume(self)""" | |
760 | return _misc_.StopWatch_Resume(*args, **kwargs) | |
761 | ||
762 | def Time(*args, **kwargs): | |
763 | """Time(self) -> long""" | |
764 | return _misc_.StopWatch_Time(*args, **kwargs) | |
765 | ||
766 | ||
767 | class StopWatchPtr(StopWatch): | |
768 | def __init__(self, this): | |
769 | self.this = this | |
770 | if not hasattr(self,"thisown"): self.thisown = 0 | |
771 | self.__class__ = StopWatch | |
772 | _misc_.StopWatch_swigregister(StopWatchPtr) | |
773 | ||
774 | class FileHistory(_core.Object): | |
775 | def __repr__(self): | |
776 | return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
777 | def __init__(self, *args, **kwargs): | |
778 | """__init__(self, int maxFiles=9) -> FileHistory""" | |
779 | newobj = _misc_.new_FileHistory(*args, **kwargs) | |
780 | self.this = newobj.this | |
781 | self.thisown = 1 | |
782 | del newobj.thisown | |
783 | def __del__(self, destroy=_misc_.delete_FileHistory): | |
784 | """__del__(self)""" | |
785 | try: | |
786 | if self.thisown: destroy(self) | |
787 | except: pass | |
788 | ||
789 | def AddFileToHistory(*args, **kwargs): | |
790 | """AddFileToHistory(self, String file)""" | |
791 | return _misc_.FileHistory_AddFileToHistory(*args, **kwargs) | |
792 | ||
793 | def RemoveFileFromHistory(*args, **kwargs): | |
794 | """RemoveFileFromHistory(self, int i)""" | |
795 | return _misc_.FileHistory_RemoveFileFromHistory(*args, **kwargs) | |
796 | ||
797 | def GetMaxFiles(*args, **kwargs): | |
798 | """GetMaxFiles(self) -> int""" | |
799 | return _misc_.FileHistory_GetMaxFiles(*args, **kwargs) | |
800 | ||
801 | def UseMenu(*args, **kwargs): | |
802 | """UseMenu(self, Menu menu)""" | |
803 | return _misc_.FileHistory_UseMenu(*args, **kwargs) | |
804 | ||
805 | def RemoveMenu(*args, **kwargs): | |
806 | """RemoveMenu(self, Menu menu)""" | |
807 | return _misc_.FileHistory_RemoveMenu(*args, **kwargs) | |
808 | ||
809 | def Load(*args, **kwargs): | |
810 | """Load(self, ConfigBase config)""" | |
811 | return _misc_.FileHistory_Load(*args, **kwargs) | |
812 | ||
813 | def Save(*args, **kwargs): | |
814 | """Save(self, ConfigBase config)""" | |
815 | return _misc_.FileHistory_Save(*args, **kwargs) | |
816 | ||
817 | def AddFilesToMenu(*args, **kwargs): | |
818 | """AddFilesToMenu(self)""" | |
819 | return _misc_.FileHistory_AddFilesToMenu(*args, **kwargs) | |
820 | ||
821 | def AddFilesToThisMenu(*args, **kwargs): | |
822 | """AddFilesToThisMenu(self, Menu menu)""" | |
823 | return _misc_.FileHistory_AddFilesToThisMenu(*args, **kwargs) | |
824 | ||
825 | def GetHistoryFile(*args, **kwargs): | |
826 | """GetHistoryFile(self, int i) -> String""" | |
827 | return _misc_.FileHistory_GetHistoryFile(*args, **kwargs) | |
828 | ||
829 | def GetCount(*args, **kwargs): | |
830 | """GetCount(self) -> int""" | |
831 | return _misc_.FileHistory_GetCount(*args, **kwargs) | |
832 | ||
833 | GetNoHistoryFiles = GetCount | |
834 | ||
835 | class FileHistoryPtr(FileHistory): | |
836 | def __init__(self, this): | |
837 | self.this = this | |
838 | if not hasattr(self,"thisown"): self.thisown = 0 | |
839 | self.__class__ = FileHistory | |
840 | _misc_.FileHistory_swigregister(FileHistoryPtr) | |
841 | ||
842 | class SingleInstanceChecker(object): | |
843 | def __repr__(self): | |
844 | return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
845 | def __init__(self, *args, **kwargs): | |
846 | """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker""" | |
847 | newobj = _misc_.new_SingleInstanceChecker(*args, **kwargs) | |
848 | self.this = newobj.this | |
849 | self.thisown = 1 | |
850 | del newobj.thisown | |
851 | def __del__(self, destroy=_misc_.delete_SingleInstanceChecker): | |
852 | """__del__(self)""" | |
853 | try: | |
854 | if self.thisown: destroy(self) | |
855 | except: pass | |
856 | ||
857 | def Create(*args, **kwargs): | |
858 | """Create(self, String name, String path=EmptyString) -> bool""" | |
859 | return _misc_.SingleInstanceChecker_Create(*args, **kwargs) | |
860 | ||
861 | def IsAnotherRunning(*args, **kwargs): | |
862 | """IsAnotherRunning(self) -> bool""" | |
863 | return _misc_.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs) | |
864 | ||
865 | ||
866 | class SingleInstanceCheckerPtr(SingleInstanceChecker): | |
867 | def __init__(self, this): | |
868 | self.this = this | |
869 | if not hasattr(self,"thisown"): self.thisown = 0 | |
870 | self.__class__ = SingleInstanceChecker | |
871 | _misc_.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr) | |
872 | ||
873 | def PreSingleInstanceChecker(*args, **kwargs): | |
874 | """PreSingleInstanceChecker() -> SingleInstanceChecker""" | |
875 | val = _misc_.new_PreSingleInstanceChecker(*args, **kwargs) | |
876 | val.thisown = 1 | |
877 | return val | |
878 | ||
879 | ||
880 | def DrawWindowOnDC(*args, **kwargs): | |
881 | """DrawWindowOnDC(Window window, DC dc, int method)""" | |
882 | return _misc_.DrawWindowOnDC(*args, **kwargs) | |
883 | #--------------------------------------------------------------------------- | |
884 | ||
885 | class TipProvider(object): | |
886 | def __init__(self): raise RuntimeError, "No constructor defined" | |
887 | def __repr__(self): | |
888 | return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
889 | def __del__(self, destroy=_misc_.delete_TipProvider): | |
890 | """__del__(self)""" | |
891 | try: | |
892 | if self.thisown: destroy(self) | |
893 | except: pass | |
894 | ||
895 | def GetTip(*args, **kwargs): | |
896 | """GetTip(self) -> String""" | |
897 | return _misc_.TipProvider_GetTip(*args, **kwargs) | |
898 | ||
899 | def GetCurrentTip(*args, **kwargs): | |
900 | """GetCurrentTip(self) -> size_t""" | |
901 | return _misc_.TipProvider_GetCurrentTip(*args, **kwargs) | |
902 | ||
903 | def PreprocessTip(*args, **kwargs): | |
904 | """PreprocessTip(self, String tip) -> String""" | |
905 | return _misc_.TipProvider_PreprocessTip(*args, **kwargs) | |
906 | ||
907 | ||
908 | class TipProviderPtr(TipProvider): | |
909 | def __init__(self, this): | |
910 | self.this = this | |
911 | if not hasattr(self,"thisown"): self.thisown = 0 | |
912 | self.__class__ = TipProvider | |
913 | _misc_.TipProvider_swigregister(TipProviderPtr) | |
914 | ||
915 | class PyTipProvider(TipProvider): | |
916 | def __repr__(self): | |
917 | return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
918 | def __init__(self, *args, **kwargs): | |
919 | """__init__(self, size_t currentTip) -> PyTipProvider""" | |
920 | newobj = _misc_.new_PyTipProvider(*args, **kwargs) | |
921 | self.this = newobj.this | |
922 | self.thisown = 1 | |
923 | del newobj.thisown | |
924 | self._setCallbackInfo(self, PyTipProvider) | |
925 | ||
926 | def _setCallbackInfo(*args, **kwargs): | |
927 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
928 | return _misc_.PyTipProvider__setCallbackInfo(*args, **kwargs) | |
929 | ||
930 | ||
931 | class PyTipProviderPtr(PyTipProvider): | |
932 | def __init__(self, this): | |
933 | self.this = this | |
934 | if not hasattr(self,"thisown"): self.thisown = 0 | |
935 | self.__class__ = PyTipProvider | |
936 | _misc_.PyTipProvider_swigregister(PyTipProviderPtr) | |
937 | ||
938 | ||
939 | def ShowTip(*args, **kwargs): | |
940 | """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool""" | |
941 | return _misc_.ShowTip(*args, **kwargs) | |
942 | ||
943 | def CreateFileTipProvider(*args, **kwargs): | |
944 | """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider""" | |
945 | return _misc_.CreateFileTipProvider(*args, **kwargs) | |
946 | #--------------------------------------------------------------------------- | |
947 | ||
948 | TIMER_CONTINUOUS = _misc_.TIMER_CONTINUOUS | |
949 | TIMER_ONE_SHOT = _misc_.TIMER_ONE_SHOT | |
950 | wxEVT_TIMER = _misc_.wxEVT_TIMER | |
951 | class Timer(_core.EvtHandler): | |
952 | def __repr__(self): | |
953 | return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
954 | def __init__(self, *args, **kwargs): | |
955 | """__init__(self, EvtHandler owner=None, int id=-1) -> Timer""" | |
956 | newobj = _misc_.new_Timer(*args, **kwargs) | |
957 | self.this = newobj.this | |
958 | self.thisown = 1 | |
959 | del newobj.thisown | |
960 | self._setCallbackInfo(self, Timer, 0); self._setOORInfo(self) | |
961 | ||
962 | def __del__(self, destroy=_misc_.delete_Timer): | |
963 | """__del__(self)""" | |
964 | try: | |
965 | if self.thisown: destroy(self) | |
966 | except: pass | |
967 | ||
968 | def _setCallbackInfo(*args, **kwargs): | |
969 | """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)""" | |
970 | return _misc_.Timer__setCallbackInfo(*args, **kwargs) | |
971 | ||
972 | def SetOwner(*args, **kwargs): | |
973 | """SetOwner(self, EvtHandler owner, int id=-1)""" | |
974 | return _misc_.Timer_SetOwner(*args, **kwargs) | |
975 | ||
976 | def GetOwner(*args, **kwargs): | |
977 | """GetOwner(self) -> EvtHandler""" | |
978 | return _misc_.Timer_GetOwner(*args, **kwargs) | |
979 | ||
980 | def Start(*args, **kwargs): | |
981 | """Start(self, int milliseconds=-1, bool oneShot=False) -> bool""" | |
982 | return _misc_.Timer_Start(*args, **kwargs) | |
983 | ||
984 | def Stop(*args, **kwargs): | |
985 | """Stop(self)""" | |
986 | return _misc_.Timer_Stop(*args, **kwargs) | |
987 | ||
988 | def IsRunning(*args, **kwargs): | |
989 | """IsRunning(self) -> bool""" | |
990 | return _misc_.Timer_IsRunning(*args, **kwargs) | |
991 | ||
992 | def GetInterval(*args, **kwargs): | |
993 | """GetInterval(self) -> int""" | |
994 | return _misc_.Timer_GetInterval(*args, **kwargs) | |
995 | ||
996 | def IsOneShot(*args, **kwargs): | |
997 | """IsOneShot(self) -> bool""" | |
998 | return _misc_.Timer_IsOneShot(*args, **kwargs) | |
999 | ||
1000 | def GetId(*args, **kwargs): | |
1001 | """GetId(self) -> int""" | |
1002 | return _misc_.Timer_GetId(*args, **kwargs) | |
1003 | ||
1004 | ||
1005 | class TimerPtr(Timer): | |
1006 | def __init__(self, this): | |
1007 | self.this = this | |
1008 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1009 | self.__class__ = Timer | |
1010 | _misc_.Timer_swigregister(TimerPtr) | |
1011 | ||
1012 | # For backwards compatibility with 2.4 | |
1013 | class PyTimer(Timer): | |
1014 | def __init__(self, notify): | |
1015 | Timer.__init__(self) | |
1016 | self.notify = notify | |
1017 | ||
1018 | def Notify(self): | |
1019 | if self.notify: | |
1020 | self.notify() | |
1021 | ||
1022 | ||
1023 | EVT_TIMER = wx.PyEventBinder( wxEVT_TIMER, 1 ) | |
1024 | ||
1025 | ||
1026 | class TimerEvent(_core.Event): | |
1027 | def __repr__(self): | |
1028 | return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1029 | def __init__(self, *args, **kwargs): | |
1030 | """__init__(self, int timerid=0, int interval=0) -> TimerEvent""" | |
1031 | newobj = _misc_.new_TimerEvent(*args, **kwargs) | |
1032 | self.this = newobj.this | |
1033 | self.thisown = 1 | |
1034 | del newobj.thisown | |
1035 | def GetInterval(*args, **kwargs): | |
1036 | """GetInterval(self) -> int""" | |
1037 | return _misc_.TimerEvent_GetInterval(*args, **kwargs) | |
1038 | ||
1039 | ||
1040 | class TimerEventPtr(TimerEvent): | |
1041 | def __init__(self, this): | |
1042 | self.this = this | |
1043 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1044 | self.__class__ = TimerEvent | |
1045 | _misc_.TimerEvent_swigregister(TimerEventPtr) | |
1046 | ||
1047 | class TimerRunner(object): | |
1048 | def __repr__(self): | |
1049 | return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1050 | def __init__(self, *args): | |
1051 | """ | |
1052 | __init__(self, wxTimer timer) -> TimerRunner | |
1053 | __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner | |
1054 | """ | |
1055 | newobj = _misc_.new_TimerRunner(*args) | |
1056 | self.this = newobj.this | |
1057 | self.thisown = 1 | |
1058 | del newobj.thisown | |
1059 | def __del__(self, destroy=_misc_.delete_TimerRunner): | |
1060 | """__del__(self)""" | |
1061 | try: | |
1062 | if self.thisown: destroy(self) | |
1063 | except: pass | |
1064 | ||
1065 | def Start(*args, **kwargs): | |
1066 | """Start(self, int milli, bool oneShot=False)""" | |
1067 | return _misc_.TimerRunner_Start(*args, **kwargs) | |
1068 | ||
1069 | ||
1070 | class TimerRunnerPtr(TimerRunner): | |
1071 | def __init__(self, this): | |
1072 | self.this = this | |
1073 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1074 | self.__class__ = TimerRunner | |
1075 | _misc_.TimerRunner_swigregister(TimerRunnerPtr) | |
1076 | ||
1077 | #--------------------------------------------------------------------------- | |
1078 | ||
1079 | LOG_FatalError = _misc_.LOG_FatalError | |
1080 | LOG_Error = _misc_.LOG_Error | |
1081 | LOG_Warning = _misc_.LOG_Warning | |
1082 | LOG_Message = _misc_.LOG_Message | |
1083 | LOG_Status = _misc_.LOG_Status | |
1084 | LOG_Info = _misc_.LOG_Info | |
1085 | LOG_Debug = _misc_.LOG_Debug | |
1086 | LOG_Trace = _misc_.LOG_Trace | |
1087 | LOG_Progress = _misc_.LOG_Progress | |
1088 | LOG_User = _misc_.LOG_User | |
1089 | LOG_Max = _misc_.LOG_Max | |
1090 | TRACE_MemAlloc = _misc_.TRACE_MemAlloc | |
1091 | TRACE_Messages = _misc_.TRACE_Messages | |
1092 | TRACE_ResAlloc = _misc_.TRACE_ResAlloc | |
1093 | TRACE_RefCount = _misc_.TRACE_RefCount | |
1094 | TRACE_OleCalls = _misc_.TRACE_OleCalls | |
1095 | TraceMemAlloc = _misc_.TraceMemAlloc | |
1096 | TraceMessages = _misc_.TraceMessages | |
1097 | TraceResAlloc = _misc_.TraceResAlloc | |
1098 | TraceRefCount = _misc_.TraceRefCount | |
1099 | TraceOleCalls = _misc_.TraceOleCalls | |
1100 | class Log(object): | |
1101 | def __repr__(self): | |
1102 | return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1103 | def __init__(self, *args, **kwargs): | |
1104 | """__init__(self) -> Log""" | |
1105 | newobj = _misc_.new_Log(*args, **kwargs) | |
1106 | self.this = newobj.this | |
1107 | self.thisown = 1 | |
1108 | del newobj.thisown | |
1109 | def IsEnabled(*args, **kwargs): | |
1110 | """IsEnabled() -> bool""" | |
1111 | return _misc_.Log_IsEnabled(*args, **kwargs) | |
1112 | ||
1113 | IsEnabled = staticmethod(IsEnabled) | |
1114 | def EnableLogging(*args, **kwargs): | |
1115 | """EnableLogging(bool doIt=True) -> bool""" | |
1116 | return _misc_.Log_EnableLogging(*args, **kwargs) | |
1117 | ||
1118 | EnableLogging = staticmethod(EnableLogging) | |
1119 | def OnLog(*args, **kwargs): | |
1120 | """OnLog(wxLogLevel level, wxChar szString, time_t t)""" | |
1121 | return _misc_.Log_OnLog(*args, **kwargs) | |
1122 | ||
1123 | OnLog = staticmethod(OnLog) | |
1124 | def Flush(*args, **kwargs): | |
1125 | """Flush(self)""" | |
1126 | return _misc_.Log_Flush(*args, **kwargs) | |
1127 | ||
1128 | def FlushActive(*args, **kwargs): | |
1129 | """FlushActive()""" | |
1130 | return _misc_.Log_FlushActive(*args, **kwargs) | |
1131 | ||
1132 | FlushActive = staticmethod(FlushActive) | |
1133 | def GetActiveTarget(*args, **kwargs): | |
1134 | """GetActiveTarget() -> Log""" | |
1135 | return _misc_.Log_GetActiveTarget(*args, **kwargs) | |
1136 | ||
1137 | GetActiveTarget = staticmethod(GetActiveTarget) | |
1138 | def SetActiveTarget(*args, **kwargs): | |
1139 | """SetActiveTarget(Log pLogger) -> Log""" | |
1140 | return _misc_.Log_SetActiveTarget(*args, **kwargs) | |
1141 | ||
1142 | SetActiveTarget = staticmethod(SetActiveTarget) | |
1143 | def Suspend(*args, **kwargs): | |
1144 | """Suspend()""" | |
1145 | return _misc_.Log_Suspend(*args, **kwargs) | |
1146 | ||
1147 | Suspend = staticmethod(Suspend) | |
1148 | def Resume(*args, **kwargs): | |
1149 | """Resume()""" | |
1150 | return _misc_.Log_Resume(*args, **kwargs) | |
1151 | ||
1152 | Resume = staticmethod(Resume) | |
1153 | def SetVerbose(*args, **kwargs): | |
1154 | """SetVerbose(bool bVerbose=True)""" | |
1155 | return _misc_.Log_SetVerbose(*args, **kwargs) | |
1156 | ||
1157 | SetVerbose = staticmethod(SetVerbose) | |
1158 | def SetLogLevel(*args, **kwargs): | |
1159 | """SetLogLevel(wxLogLevel logLevel)""" | |
1160 | return _misc_.Log_SetLogLevel(*args, **kwargs) | |
1161 | ||
1162 | SetLogLevel = staticmethod(SetLogLevel) | |
1163 | def DontCreateOnDemand(*args, **kwargs): | |
1164 | """DontCreateOnDemand()""" | |
1165 | return _misc_.Log_DontCreateOnDemand(*args, **kwargs) | |
1166 | ||
1167 | DontCreateOnDemand = staticmethod(DontCreateOnDemand) | |
1168 | def SetTraceMask(*args, **kwargs): | |
1169 | """SetTraceMask(wxTraceMask ulMask)""" | |
1170 | return _misc_.Log_SetTraceMask(*args, **kwargs) | |
1171 | ||
1172 | SetTraceMask = staticmethod(SetTraceMask) | |
1173 | def AddTraceMask(*args, **kwargs): | |
1174 | """AddTraceMask(String str)""" | |
1175 | return _misc_.Log_AddTraceMask(*args, **kwargs) | |
1176 | ||
1177 | AddTraceMask = staticmethod(AddTraceMask) | |
1178 | def RemoveTraceMask(*args, **kwargs): | |
1179 | """RemoveTraceMask(String str)""" | |
1180 | return _misc_.Log_RemoveTraceMask(*args, **kwargs) | |
1181 | ||
1182 | RemoveTraceMask = staticmethod(RemoveTraceMask) | |
1183 | def ClearTraceMasks(*args, **kwargs): | |
1184 | """ClearTraceMasks()""" | |
1185 | return _misc_.Log_ClearTraceMasks(*args, **kwargs) | |
1186 | ||
1187 | ClearTraceMasks = staticmethod(ClearTraceMasks) | |
1188 | def GetTraceMasks(*args, **kwargs): | |
1189 | """GetTraceMasks() -> wxArrayString""" | |
1190 | return _misc_.Log_GetTraceMasks(*args, **kwargs) | |
1191 | ||
1192 | GetTraceMasks = staticmethod(GetTraceMasks) | |
1193 | def SetTimestamp(*args, **kwargs): | |
1194 | """SetTimestamp(wxChar ts)""" | |
1195 | return _misc_.Log_SetTimestamp(*args, **kwargs) | |
1196 | ||
1197 | SetTimestamp = staticmethod(SetTimestamp) | |
1198 | def GetVerbose(*args, **kwargs): | |
1199 | """GetVerbose() -> bool""" | |
1200 | return _misc_.Log_GetVerbose(*args, **kwargs) | |
1201 | ||
1202 | GetVerbose = staticmethod(GetVerbose) | |
1203 | def GetTraceMask(*args, **kwargs): | |
1204 | """GetTraceMask() -> wxTraceMask""" | |
1205 | return _misc_.Log_GetTraceMask(*args, **kwargs) | |
1206 | ||
1207 | GetTraceMask = staticmethod(GetTraceMask) | |
1208 | def IsAllowedTraceMask(*args, **kwargs): | |
1209 | """IsAllowedTraceMask(wxChar mask) -> bool""" | |
1210 | return _misc_.Log_IsAllowedTraceMask(*args, **kwargs) | |
1211 | ||
1212 | IsAllowedTraceMask = staticmethod(IsAllowedTraceMask) | |
1213 | def GetLogLevel(*args, **kwargs): | |
1214 | """GetLogLevel() -> wxLogLevel""" | |
1215 | return _misc_.Log_GetLogLevel(*args, **kwargs) | |
1216 | ||
1217 | GetLogLevel = staticmethod(GetLogLevel) | |
1218 | def GetTimestamp(*args, **kwargs): | |
1219 | """GetTimestamp() -> wxChar""" | |
1220 | return _misc_.Log_GetTimestamp(*args, **kwargs) | |
1221 | ||
1222 | GetTimestamp = staticmethod(GetTimestamp) | |
1223 | def TimeStamp(*args, **kwargs): | |
1224 | """TimeStamp() -> String""" | |
1225 | return _misc_.Log_TimeStamp(*args, **kwargs) | |
1226 | ||
1227 | TimeStamp = staticmethod(TimeStamp) | |
1228 | def Destroy(*args, **kwargs): | |
1229 | """Destroy(self)""" | |
1230 | return _misc_.Log_Destroy(*args, **kwargs) | |
1231 | ||
1232 | ||
1233 | class LogPtr(Log): | |
1234 | def __init__(self, this): | |
1235 | self.this = this | |
1236 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1237 | self.__class__ = Log | |
1238 | _misc_.Log_swigregister(LogPtr) | |
1239 | ||
1240 | def Log_IsEnabled(*args, **kwargs): | |
1241 | """Log_IsEnabled() -> bool""" | |
1242 | return _misc_.Log_IsEnabled(*args, **kwargs) | |
1243 | ||
1244 | def Log_EnableLogging(*args, **kwargs): | |
1245 | """Log_EnableLogging(bool doIt=True) -> bool""" | |
1246 | return _misc_.Log_EnableLogging(*args, **kwargs) | |
1247 | ||
1248 | def Log_OnLog(*args, **kwargs): | |
1249 | """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)""" | |
1250 | return _misc_.Log_OnLog(*args, **kwargs) | |
1251 | ||
1252 | def Log_FlushActive(*args, **kwargs): | |
1253 | """Log_FlushActive()""" | |
1254 | return _misc_.Log_FlushActive(*args, **kwargs) | |
1255 | ||
1256 | def Log_GetActiveTarget(*args, **kwargs): | |
1257 | """Log_GetActiveTarget() -> Log""" | |
1258 | return _misc_.Log_GetActiveTarget(*args, **kwargs) | |
1259 | ||
1260 | def Log_SetActiveTarget(*args, **kwargs): | |
1261 | """Log_SetActiveTarget(Log pLogger) -> Log""" | |
1262 | return _misc_.Log_SetActiveTarget(*args, **kwargs) | |
1263 | ||
1264 | def Log_Suspend(*args, **kwargs): | |
1265 | """Log_Suspend()""" | |
1266 | return _misc_.Log_Suspend(*args, **kwargs) | |
1267 | ||
1268 | def Log_Resume(*args, **kwargs): | |
1269 | """Log_Resume()""" | |
1270 | return _misc_.Log_Resume(*args, **kwargs) | |
1271 | ||
1272 | def Log_SetVerbose(*args, **kwargs): | |
1273 | """Log_SetVerbose(bool bVerbose=True)""" | |
1274 | return _misc_.Log_SetVerbose(*args, **kwargs) | |
1275 | ||
1276 | def Log_SetLogLevel(*args, **kwargs): | |
1277 | """Log_SetLogLevel(wxLogLevel logLevel)""" | |
1278 | return _misc_.Log_SetLogLevel(*args, **kwargs) | |
1279 | ||
1280 | def Log_DontCreateOnDemand(*args, **kwargs): | |
1281 | """Log_DontCreateOnDemand()""" | |
1282 | return _misc_.Log_DontCreateOnDemand(*args, **kwargs) | |
1283 | ||
1284 | def Log_SetTraceMask(*args, **kwargs): | |
1285 | """Log_SetTraceMask(wxTraceMask ulMask)""" | |
1286 | return _misc_.Log_SetTraceMask(*args, **kwargs) | |
1287 | ||
1288 | def Log_AddTraceMask(*args, **kwargs): | |
1289 | """Log_AddTraceMask(String str)""" | |
1290 | return _misc_.Log_AddTraceMask(*args, **kwargs) | |
1291 | ||
1292 | def Log_RemoveTraceMask(*args, **kwargs): | |
1293 | """Log_RemoveTraceMask(String str)""" | |
1294 | return _misc_.Log_RemoveTraceMask(*args, **kwargs) | |
1295 | ||
1296 | def Log_ClearTraceMasks(*args, **kwargs): | |
1297 | """Log_ClearTraceMasks()""" | |
1298 | return _misc_.Log_ClearTraceMasks(*args, **kwargs) | |
1299 | ||
1300 | def Log_GetTraceMasks(*args, **kwargs): | |
1301 | """Log_GetTraceMasks() -> wxArrayString""" | |
1302 | return _misc_.Log_GetTraceMasks(*args, **kwargs) | |
1303 | ||
1304 | def Log_SetTimestamp(*args, **kwargs): | |
1305 | """Log_SetTimestamp(wxChar ts)""" | |
1306 | return _misc_.Log_SetTimestamp(*args, **kwargs) | |
1307 | ||
1308 | def Log_GetVerbose(*args, **kwargs): | |
1309 | """Log_GetVerbose() -> bool""" | |
1310 | return _misc_.Log_GetVerbose(*args, **kwargs) | |
1311 | ||
1312 | def Log_GetTraceMask(*args, **kwargs): | |
1313 | """Log_GetTraceMask() -> wxTraceMask""" | |
1314 | return _misc_.Log_GetTraceMask(*args, **kwargs) | |
1315 | ||
1316 | def Log_IsAllowedTraceMask(*args, **kwargs): | |
1317 | """Log_IsAllowedTraceMask(wxChar mask) -> bool""" | |
1318 | return _misc_.Log_IsAllowedTraceMask(*args, **kwargs) | |
1319 | ||
1320 | def Log_GetLogLevel(*args, **kwargs): | |
1321 | """Log_GetLogLevel() -> wxLogLevel""" | |
1322 | return _misc_.Log_GetLogLevel(*args, **kwargs) | |
1323 | ||
1324 | def Log_GetTimestamp(*args, **kwargs): | |
1325 | """Log_GetTimestamp() -> wxChar""" | |
1326 | return _misc_.Log_GetTimestamp(*args, **kwargs) | |
1327 | ||
1328 | def Log_TimeStamp(*args, **kwargs): | |
1329 | """Log_TimeStamp() -> String""" | |
1330 | return _misc_.Log_TimeStamp(*args, **kwargs) | |
1331 | ||
1332 | class LogStderr(Log): | |
1333 | def __repr__(self): | |
1334 | return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1335 | def __init__(self, *args, **kwargs): | |
1336 | """__init__(self) -> LogStderr""" | |
1337 | newobj = _misc_.new_LogStderr(*args, **kwargs) | |
1338 | self.this = newobj.this | |
1339 | self.thisown = 1 | |
1340 | del newobj.thisown | |
1341 | ||
1342 | class LogStderrPtr(LogStderr): | |
1343 | def __init__(self, this): | |
1344 | self.this = this | |
1345 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1346 | self.__class__ = LogStderr | |
1347 | _misc_.LogStderr_swigregister(LogStderrPtr) | |
1348 | ||
1349 | class LogTextCtrl(Log): | |
1350 | def __repr__(self): | |
1351 | return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1352 | def __init__(self, *args, **kwargs): | |
1353 | """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl""" | |
1354 | newobj = _misc_.new_LogTextCtrl(*args, **kwargs) | |
1355 | self.this = newobj.this | |
1356 | self.thisown = 1 | |
1357 | del newobj.thisown | |
1358 | ||
1359 | class LogTextCtrlPtr(LogTextCtrl): | |
1360 | def __init__(self, this): | |
1361 | self.this = this | |
1362 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1363 | self.__class__ = LogTextCtrl | |
1364 | _misc_.LogTextCtrl_swigregister(LogTextCtrlPtr) | |
1365 | ||
1366 | class LogGui(Log): | |
1367 | def __repr__(self): | |
1368 | return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1369 | def __init__(self, *args, **kwargs): | |
1370 | """__init__(self) -> LogGui""" | |
1371 | newobj = _misc_.new_LogGui(*args, **kwargs) | |
1372 | self.this = newobj.this | |
1373 | self.thisown = 1 | |
1374 | del newobj.thisown | |
1375 | ||
1376 | class LogGuiPtr(LogGui): | |
1377 | def __init__(self, this): | |
1378 | self.this = this | |
1379 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1380 | self.__class__ = LogGui | |
1381 | _misc_.LogGui_swigregister(LogGuiPtr) | |
1382 | ||
1383 | class LogWindow(Log): | |
1384 | def __repr__(self): | |
1385 | return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1386 | def __init__(self, *args, **kwargs): | |
1387 | """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow""" | |
1388 | newobj = _misc_.new_LogWindow(*args, **kwargs) | |
1389 | self.this = newobj.this | |
1390 | self.thisown = 1 | |
1391 | del newobj.thisown | |
1392 | def Show(*args, **kwargs): | |
1393 | """Show(self, bool bShow=True)""" | |
1394 | return _misc_.LogWindow_Show(*args, **kwargs) | |
1395 | ||
1396 | def GetFrame(*args, **kwargs): | |
1397 | """GetFrame(self) -> wxFrame""" | |
1398 | return _misc_.LogWindow_GetFrame(*args, **kwargs) | |
1399 | ||
1400 | def GetOldLog(*args, **kwargs): | |
1401 | """GetOldLog(self) -> Log""" | |
1402 | return _misc_.LogWindow_GetOldLog(*args, **kwargs) | |
1403 | ||
1404 | def IsPassingMessages(*args, **kwargs): | |
1405 | """IsPassingMessages(self) -> bool""" | |
1406 | return _misc_.LogWindow_IsPassingMessages(*args, **kwargs) | |
1407 | ||
1408 | def PassMessages(*args, **kwargs): | |
1409 | """PassMessages(self, bool bDoPass)""" | |
1410 | return _misc_.LogWindow_PassMessages(*args, **kwargs) | |
1411 | ||
1412 | ||
1413 | class LogWindowPtr(LogWindow): | |
1414 | def __init__(self, this): | |
1415 | self.this = this | |
1416 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1417 | self.__class__ = LogWindow | |
1418 | _misc_.LogWindow_swigregister(LogWindowPtr) | |
1419 | ||
1420 | class LogChain(Log): | |
1421 | def __repr__(self): | |
1422 | return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1423 | def __init__(self, *args, **kwargs): | |
1424 | """__init__(self, Log logger) -> LogChain""" | |
1425 | newobj = _misc_.new_LogChain(*args, **kwargs) | |
1426 | self.this = newobj.this | |
1427 | self.thisown = 1 | |
1428 | del newobj.thisown | |
1429 | def SetLog(*args, **kwargs): | |
1430 | """SetLog(self, Log logger)""" | |
1431 | return _misc_.LogChain_SetLog(*args, **kwargs) | |
1432 | ||
1433 | def PassMessages(*args, **kwargs): | |
1434 | """PassMessages(self, bool bDoPass)""" | |
1435 | return _misc_.LogChain_PassMessages(*args, **kwargs) | |
1436 | ||
1437 | def IsPassingMessages(*args, **kwargs): | |
1438 | """IsPassingMessages(self) -> bool""" | |
1439 | return _misc_.LogChain_IsPassingMessages(*args, **kwargs) | |
1440 | ||
1441 | def GetOldLog(*args, **kwargs): | |
1442 | """GetOldLog(self) -> Log""" | |
1443 | return _misc_.LogChain_GetOldLog(*args, **kwargs) | |
1444 | ||
1445 | ||
1446 | class LogChainPtr(LogChain): | |
1447 | def __init__(self, this): | |
1448 | self.this = this | |
1449 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1450 | self.__class__ = LogChain | |
1451 | _misc_.LogChain_swigregister(LogChainPtr) | |
1452 | ||
1453 | ||
1454 | def SysErrorCode(*args, **kwargs): | |
1455 | """SysErrorCode() -> unsigned long""" | |
1456 | return _misc_.SysErrorCode(*args, **kwargs) | |
1457 | ||
1458 | def SysErrorMsg(*args, **kwargs): | |
1459 | """SysErrorMsg(unsigned long nErrCode=0) -> String""" | |
1460 | return _misc_.SysErrorMsg(*args, **kwargs) | |
1461 | ||
1462 | def LogFatalError(*args, **kwargs): | |
1463 | """LogFatalError(String msg)""" | |
1464 | return _misc_.LogFatalError(*args, **kwargs) | |
1465 | ||
1466 | def LogError(*args, **kwargs): | |
1467 | """LogError(String msg)""" | |
1468 | return _misc_.LogError(*args, **kwargs) | |
1469 | ||
1470 | def LogWarning(*args, **kwargs): | |
1471 | """LogWarning(String msg)""" | |
1472 | return _misc_.LogWarning(*args, **kwargs) | |
1473 | ||
1474 | def LogMessage(*args, **kwargs): | |
1475 | """LogMessage(String msg)""" | |
1476 | return _misc_.LogMessage(*args, **kwargs) | |
1477 | ||
1478 | def LogInfo(*args, **kwargs): | |
1479 | """LogInfo(String msg)""" | |
1480 | return _misc_.LogInfo(*args, **kwargs) | |
1481 | ||
1482 | def LogDebug(*args, **kwargs): | |
1483 | """LogDebug(String msg)""" | |
1484 | return _misc_.LogDebug(*args, **kwargs) | |
1485 | ||
1486 | def LogVerbose(*args, **kwargs): | |
1487 | """LogVerbose(String msg)""" | |
1488 | return _misc_.LogVerbose(*args, **kwargs) | |
1489 | ||
1490 | def LogStatus(*args, **kwargs): | |
1491 | """LogStatus(String msg)""" | |
1492 | return _misc_.LogStatus(*args, **kwargs) | |
1493 | ||
1494 | def LogStatusFrame(*args, **kwargs): | |
1495 | """LogStatusFrame(wxFrame pFrame, String msg)""" | |
1496 | return _misc_.LogStatusFrame(*args, **kwargs) | |
1497 | ||
1498 | def LogSysError(*args, **kwargs): | |
1499 | """LogSysError(String msg)""" | |
1500 | return _misc_.LogSysError(*args, **kwargs) | |
1501 | ||
1502 | def LogGeneric(*args, **kwargs): | |
1503 | """LogGeneric(unsigned long level, String msg)""" | |
1504 | return _misc_.LogGeneric(*args, **kwargs) | |
1505 | ||
1506 | def SafeShowMessage(*args, **kwargs): | |
1507 | """SafeShowMessage(String title, String text)""" | |
1508 | return _misc_.SafeShowMessage(*args, **kwargs) | |
1509 | class LogNull(object): | |
1510 | def __repr__(self): | |
1511 | return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1512 | def __init__(self, *args, **kwargs): | |
1513 | """__init__(self) -> LogNull""" | |
1514 | newobj = _misc_.new_LogNull(*args, **kwargs) | |
1515 | self.this = newobj.this | |
1516 | self.thisown = 1 | |
1517 | del newobj.thisown | |
1518 | def __del__(self, destroy=_misc_.delete_LogNull): | |
1519 | """__del__(self)""" | |
1520 | try: | |
1521 | if self.thisown: destroy(self) | |
1522 | except: pass | |
1523 | ||
1524 | ||
1525 | class LogNullPtr(LogNull): | |
1526 | def __init__(self, this): | |
1527 | self.this = this | |
1528 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1529 | self.__class__ = LogNull | |
1530 | _misc_.LogNull_swigregister(LogNullPtr) | |
1531 | ||
1532 | def LogTrace(*args): | |
1533 | """ | |
1534 | LogTrace(unsigned long mask, String msg) | |
1535 | LogTrace(String mask, String msg) | |
1536 | """ | |
1537 | return _misc_.LogTrace(*args) | |
1538 | ||
1539 | class PyLog(Log): | |
1540 | def __repr__(self): | |
1541 | return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1542 | def __init__(self, *args, **kwargs): | |
1543 | """__init__(self) -> PyLog""" | |
1544 | newobj = _misc_.new_PyLog(*args, **kwargs) | |
1545 | self.this = newobj.this | |
1546 | self.thisown = 1 | |
1547 | del newobj.thisown | |
1548 | self._setCallbackInfo(self, PyLog) | |
1549 | ||
1550 | def _setCallbackInfo(*args, **kwargs): | |
1551 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
1552 | return _misc_.PyLog__setCallbackInfo(*args, **kwargs) | |
1553 | ||
1554 | ||
1555 | class PyLogPtr(PyLog): | |
1556 | def __init__(self, this): | |
1557 | self.this = this | |
1558 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1559 | self.__class__ = PyLog | |
1560 | _misc_.PyLog_swigregister(PyLogPtr) | |
1561 | ||
1562 | #--------------------------------------------------------------------------- | |
1563 | ||
1564 | PROCESS_DEFAULT = _misc_.PROCESS_DEFAULT | |
1565 | PROCESS_REDIRECT = _misc_.PROCESS_REDIRECT | |
1566 | KILL_OK = _misc_.KILL_OK | |
1567 | KILL_BAD_SIGNAL = _misc_.KILL_BAD_SIGNAL | |
1568 | KILL_ACCESS_DENIED = _misc_.KILL_ACCESS_DENIED | |
1569 | KILL_NO_PROCESS = _misc_.KILL_NO_PROCESS | |
1570 | KILL_ERROR = _misc_.KILL_ERROR | |
1571 | SIGNONE = _misc_.SIGNONE | |
1572 | SIGHUP = _misc_.SIGHUP | |
1573 | SIGINT = _misc_.SIGINT | |
1574 | SIGQUIT = _misc_.SIGQUIT | |
1575 | SIGILL = _misc_.SIGILL | |
1576 | SIGTRAP = _misc_.SIGTRAP | |
1577 | SIGABRT = _misc_.SIGABRT | |
1578 | SIGIOT = _misc_.SIGIOT | |
1579 | SIGEMT = _misc_.SIGEMT | |
1580 | SIGFPE = _misc_.SIGFPE | |
1581 | SIGKILL = _misc_.SIGKILL | |
1582 | SIGBUS = _misc_.SIGBUS | |
1583 | SIGSEGV = _misc_.SIGSEGV | |
1584 | SIGSYS = _misc_.SIGSYS | |
1585 | SIGPIPE = _misc_.SIGPIPE | |
1586 | SIGALRM = _misc_.SIGALRM | |
1587 | SIGTERM = _misc_.SIGTERM | |
1588 | class Process(_core.EvtHandler): | |
1589 | def __repr__(self): | |
1590 | return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1591 | def Kill(*args, **kwargs): | |
1592 | """Kill(int pid, int sig=SIGTERM) -> int""" | |
1593 | return _misc_.Process_Kill(*args, **kwargs) | |
1594 | ||
1595 | Kill = staticmethod(Kill) | |
1596 | def Exists(*args, **kwargs): | |
1597 | """Exists(int pid) -> bool""" | |
1598 | return _misc_.Process_Exists(*args, **kwargs) | |
1599 | ||
1600 | Exists = staticmethod(Exists) | |
1601 | def Open(*args, **kwargs): | |
1602 | """Open(String cmd, int flags=EXEC_ASYNC) -> Process""" | |
1603 | return _misc_.Process_Open(*args, **kwargs) | |
1604 | ||
1605 | Open = staticmethod(Open) | |
1606 | def __init__(self, *args, **kwargs): | |
1607 | """__init__(self, EvtHandler parent=None, int id=-1) -> Process""" | |
1608 | newobj = _misc_.new_Process(*args, **kwargs) | |
1609 | self.this = newobj.this | |
1610 | self.thisown = 1 | |
1611 | del newobj.thisown | |
1612 | self._setCallbackInfo(self, Process) | |
1613 | ||
1614 | def _setCallbackInfo(*args, **kwargs): | |
1615 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
1616 | return _misc_.Process__setCallbackInfo(*args, **kwargs) | |
1617 | ||
1618 | def base_OnTerminate(*args, **kwargs): | |
1619 | """base_OnTerminate(self, int pid, int status)""" | |
1620 | return _misc_.Process_base_OnTerminate(*args, **kwargs) | |
1621 | ||
1622 | def Redirect(*args, **kwargs): | |
1623 | """Redirect(self)""" | |
1624 | return _misc_.Process_Redirect(*args, **kwargs) | |
1625 | ||
1626 | def IsRedirected(*args, **kwargs): | |
1627 | """IsRedirected(self) -> bool""" | |
1628 | return _misc_.Process_IsRedirected(*args, **kwargs) | |
1629 | ||
1630 | def Detach(*args, **kwargs): | |
1631 | """Detach(self)""" | |
1632 | return _misc_.Process_Detach(*args, **kwargs) | |
1633 | ||
1634 | def GetInputStream(*args, **kwargs): | |
1635 | """GetInputStream(self) -> InputStream""" | |
1636 | return _misc_.Process_GetInputStream(*args, **kwargs) | |
1637 | ||
1638 | def GetErrorStream(*args, **kwargs): | |
1639 | """GetErrorStream(self) -> InputStream""" | |
1640 | return _misc_.Process_GetErrorStream(*args, **kwargs) | |
1641 | ||
1642 | def GetOutputStream(*args, **kwargs): | |
1643 | """GetOutputStream(self) -> OutputStream""" | |
1644 | return _misc_.Process_GetOutputStream(*args, **kwargs) | |
1645 | ||
1646 | def CloseOutput(*args, **kwargs): | |
1647 | """CloseOutput(self)""" | |
1648 | return _misc_.Process_CloseOutput(*args, **kwargs) | |
1649 | ||
1650 | def IsInputOpened(*args, **kwargs): | |
1651 | """IsInputOpened(self) -> bool""" | |
1652 | return _misc_.Process_IsInputOpened(*args, **kwargs) | |
1653 | ||
1654 | def IsInputAvailable(*args, **kwargs): | |
1655 | """IsInputAvailable(self) -> bool""" | |
1656 | return _misc_.Process_IsInputAvailable(*args, **kwargs) | |
1657 | ||
1658 | def IsErrorAvailable(*args, **kwargs): | |
1659 | """IsErrorAvailable(self) -> bool""" | |
1660 | return _misc_.Process_IsErrorAvailable(*args, **kwargs) | |
1661 | ||
1662 | ||
1663 | class ProcessPtr(Process): | |
1664 | def __init__(self, this): | |
1665 | self.this = this | |
1666 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1667 | self.__class__ = Process | |
1668 | _misc_.Process_swigregister(ProcessPtr) | |
1669 | ||
1670 | def Process_Kill(*args, **kwargs): | |
1671 | """Process_Kill(int pid, int sig=SIGTERM) -> int""" | |
1672 | return _misc_.Process_Kill(*args, **kwargs) | |
1673 | ||
1674 | def Process_Exists(*args, **kwargs): | |
1675 | """Process_Exists(int pid) -> bool""" | |
1676 | return _misc_.Process_Exists(*args, **kwargs) | |
1677 | ||
1678 | def Process_Open(*args, **kwargs): | |
1679 | """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process""" | |
1680 | return _misc_.Process_Open(*args, **kwargs) | |
1681 | ||
1682 | class ProcessEvent(_core.Event): | |
1683 | def __repr__(self): | |
1684 | return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1685 | def __init__(self, *args, **kwargs): | |
1686 | """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent""" | |
1687 | newobj = _misc_.new_ProcessEvent(*args, **kwargs) | |
1688 | self.this = newobj.this | |
1689 | self.thisown = 1 | |
1690 | del newobj.thisown | |
1691 | def GetPid(*args, **kwargs): | |
1692 | """GetPid(self) -> int""" | |
1693 | return _misc_.ProcessEvent_GetPid(*args, **kwargs) | |
1694 | ||
1695 | def GetExitCode(*args, **kwargs): | |
1696 | """GetExitCode(self) -> int""" | |
1697 | return _misc_.ProcessEvent_GetExitCode(*args, **kwargs) | |
1698 | ||
1699 | m_pid = property(_misc_.ProcessEvent_m_pid_get, _misc_.ProcessEvent_m_pid_set) | |
1700 | m_exitcode = property(_misc_.ProcessEvent_m_exitcode_get, _misc_.ProcessEvent_m_exitcode_set) | |
1701 | ||
1702 | class ProcessEventPtr(ProcessEvent): | |
1703 | def __init__(self, this): | |
1704 | self.this = this | |
1705 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1706 | self.__class__ = ProcessEvent | |
1707 | _misc_.ProcessEvent_swigregister(ProcessEventPtr) | |
1708 | ||
1709 | wxEVT_END_PROCESS = _misc_.wxEVT_END_PROCESS | |
1710 | EVT_END_PROCESS = wx.PyEventBinder( wxEVT_END_PROCESS, 1 ) | |
1711 | ||
1712 | EXEC_ASYNC = _misc_.EXEC_ASYNC | |
1713 | EXEC_SYNC = _misc_.EXEC_SYNC | |
1714 | EXEC_NOHIDE = _misc_.EXEC_NOHIDE | |
1715 | EXEC_MAKE_GROUP_LEADER = _misc_.EXEC_MAKE_GROUP_LEADER | |
1716 | ||
1717 | def Execute(*args, **kwargs): | |
1718 | """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long""" | |
1719 | return _misc_.Execute(*args, **kwargs) | |
1720 | #--------------------------------------------------------------------------- | |
1721 | ||
1722 | JOYSTICK1 = _misc_.JOYSTICK1 | |
1723 | JOYSTICK2 = _misc_.JOYSTICK2 | |
1724 | JOY_BUTTON_ANY = _misc_.JOY_BUTTON_ANY | |
1725 | JOY_BUTTON1 = _misc_.JOY_BUTTON1 | |
1726 | JOY_BUTTON2 = _misc_.JOY_BUTTON2 | |
1727 | JOY_BUTTON3 = _misc_.JOY_BUTTON3 | |
1728 | JOY_BUTTON4 = _misc_.JOY_BUTTON4 | |
1729 | class Joystick(object): | |
1730 | def __repr__(self): | |
1731 | return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1732 | def __init__(self, *args, **kwargs): | |
1733 | """__init__(self, int joystick=JOYSTICK1) -> Joystick""" | |
1734 | newobj = _misc_.new_Joystick(*args, **kwargs) | |
1735 | self.this = newobj.this | |
1736 | self.thisown = 1 | |
1737 | del newobj.thisown | |
1738 | def __del__(self, destroy=_misc_.delete_Joystick): | |
1739 | """__del__(self)""" | |
1740 | try: | |
1741 | if self.thisown: destroy(self) | |
1742 | except: pass | |
1743 | ||
1744 | def GetPosition(*args, **kwargs): | |
1745 | """GetPosition(self) -> Point""" | |
1746 | return _misc_.Joystick_GetPosition(*args, **kwargs) | |
1747 | ||
1748 | def GetZPosition(*args, **kwargs): | |
1749 | """GetZPosition(self) -> int""" | |
1750 | return _misc_.Joystick_GetZPosition(*args, **kwargs) | |
1751 | ||
1752 | def GetButtonState(*args, **kwargs): | |
1753 | """GetButtonState(self) -> int""" | |
1754 | return _misc_.Joystick_GetButtonState(*args, **kwargs) | |
1755 | ||
1756 | def GetPOVPosition(*args, **kwargs): | |
1757 | """GetPOVPosition(self) -> int""" | |
1758 | return _misc_.Joystick_GetPOVPosition(*args, **kwargs) | |
1759 | ||
1760 | def GetPOVCTSPosition(*args, **kwargs): | |
1761 | """GetPOVCTSPosition(self) -> int""" | |
1762 | return _misc_.Joystick_GetPOVCTSPosition(*args, **kwargs) | |
1763 | ||
1764 | def GetRudderPosition(*args, **kwargs): | |
1765 | """GetRudderPosition(self) -> int""" | |
1766 | return _misc_.Joystick_GetRudderPosition(*args, **kwargs) | |
1767 | ||
1768 | def GetUPosition(*args, **kwargs): | |
1769 | """GetUPosition(self) -> int""" | |
1770 | return _misc_.Joystick_GetUPosition(*args, **kwargs) | |
1771 | ||
1772 | def GetVPosition(*args, **kwargs): | |
1773 | """GetVPosition(self) -> int""" | |
1774 | return _misc_.Joystick_GetVPosition(*args, **kwargs) | |
1775 | ||
1776 | def GetMovementThreshold(*args, **kwargs): | |
1777 | """GetMovementThreshold(self) -> int""" | |
1778 | return _misc_.Joystick_GetMovementThreshold(*args, **kwargs) | |
1779 | ||
1780 | def SetMovementThreshold(*args, **kwargs): | |
1781 | """SetMovementThreshold(self, int threshold)""" | |
1782 | return _misc_.Joystick_SetMovementThreshold(*args, **kwargs) | |
1783 | ||
1784 | def IsOk(*args, **kwargs): | |
1785 | """IsOk(self) -> bool""" | |
1786 | return _misc_.Joystick_IsOk(*args, **kwargs) | |
1787 | ||
1788 | def GetNumberJoysticks(*args, **kwargs): | |
1789 | """GetNumberJoysticks(self) -> int""" | |
1790 | return _misc_.Joystick_GetNumberJoysticks(*args, **kwargs) | |
1791 | ||
1792 | def GetManufacturerId(*args, **kwargs): | |
1793 | """GetManufacturerId(self) -> int""" | |
1794 | return _misc_.Joystick_GetManufacturerId(*args, **kwargs) | |
1795 | ||
1796 | def GetProductId(*args, **kwargs): | |
1797 | """GetProductId(self) -> int""" | |
1798 | return _misc_.Joystick_GetProductId(*args, **kwargs) | |
1799 | ||
1800 | def GetProductName(*args, **kwargs): | |
1801 | """GetProductName(self) -> String""" | |
1802 | return _misc_.Joystick_GetProductName(*args, **kwargs) | |
1803 | ||
1804 | def GetXMin(*args, **kwargs): | |
1805 | """GetXMin(self) -> int""" | |
1806 | return _misc_.Joystick_GetXMin(*args, **kwargs) | |
1807 | ||
1808 | def GetYMin(*args, **kwargs): | |
1809 | """GetYMin(self) -> int""" | |
1810 | return _misc_.Joystick_GetYMin(*args, **kwargs) | |
1811 | ||
1812 | def GetZMin(*args, **kwargs): | |
1813 | """GetZMin(self) -> int""" | |
1814 | return _misc_.Joystick_GetZMin(*args, **kwargs) | |
1815 | ||
1816 | def GetXMax(*args, **kwargs): | |
1817 | """GetXMax(self) -> int""" | |
1818 | return _misc_.Joystick_GetXMax(*args, **kwargs) | |
1819 | ||
1820 | def GetYMax(*args, **kwargs): | |
1821 | """GetYMax(self) -> int""" | |
1822 | return _misc_.Joystick_GetYMax(*args, **kwargs) | |
1823 | ||
1824 | def GetZMax(*args, **kwargs): | |
1825 | """GetZMax(self) -> int""" | |
1826 | return _misc_.Joystick_GetZMax(*args, **kwargs) | |
1827 | ||
1828 | def GetNumberButtons(*args, **kwargs): | |
1829 | """GetNumberButtons(self) -> int""" | |
1830 | return _misc_.Joystick_GetNumberButtons(*args, **kwargs) | |
1831 | ||
1832 | def GetNumberAxes(*args, **kwargs): | |
1833 | """GetNumberAxes(self) -> int""" | |
1834 | return _misc_.Joystick_GetNumberAxes(*args, **kwargs) | |
1835 | ||
1836 | def GetMaxButtons(*args, **kwargs): | |
1837 | """GetMaxButtons(self) -> int""" | |
1838 | return _misc_.Joystick_GetMaxButtons(*args, **kwargs) | |
1839 | ||
1840 | def GetMaxAxes(*args, **kwargs): | |
1841 | """GetMaxAxes(self) -> int""" | |
1842 | return _misc_.Joystick_GetMaxAxes(*args, **kwargs) | |
1843 | ||
1844 | def GetPollingMin(*args, **kwargs): | |
1845 | """GetPollingMin(self) -> int""" | |
1846 | return _misc_.Joystick_GetPollingMin(*args, **kwargs) | |
1847 | ||
1848 | def GetPollingMax(*args, **kwargs): | |
1849 | """GetPollingMax(self) -> int""" | |
1850 | return _misc_.Joystick_GetPollingMax(*args, **kwargs) | |
1851 | ||
1852 | def GetRudderMin(*args, **kwargs): | |
1853 | """GetRudderMin(self) -> int""" | |
1854 | return _misc_.Joystick_GetRudderMin(*args, **kwargs) | |
1855 | ||
1856 | def GetRudderMax(*args, **kwargs): | |
1857 | """GetRudderMax(self) -> int""" | |
1858 | return _misc_.Joystick_GetRudderMax(*args, **kwargs) | |
1859 | ||
1860 | def GetUMin(*args, **kwargs): | |
1861 | """GetUMin(self) -> int""" | |
1862 | return _misc_.Joystick_GetUMin(*args, **kwargs) | |
1863 | ||
1864 | def GetUMax(*args, **kwargs): | |
1865 | """GetUMax(self) -> int""" | |
1866 | return _misc_.Joystick_GetUMax(*args, **kwargs) | |
1867 | ||
1868 | def GetVMin(*args, **kwargs): | |
1869 | """GetVMin(self) -> int""" | |
1870 | return _misc_.Joystick_GetVMin(*args, **kwargs) | |
1871 | ||
1872 | def GetVMax(*args, **kwargs): | |
1873 | """GetVMax(self) -> int""" | |
1874 | return _misc_.Joystick_GetVMax(*args, **kwargs) | |
1875 | ||
1876 | def HasRudder(*args, **kwargs): | |
1877 | """HasRudder(self) -> bool""" | |
1878 | return _misc_.Joystick_HasRudder(*args, **kwargs) | |
1879 | ||
1880 | def HasZ(*args, **kwargs): | |
1881 | """HasZ(self) -> bool""" | |
1882 | return _misc_.Joystick_HasZ(*args, **kwargs) | |
1883 | ||
1884 | def HasU(*args, **kwargs): | |
1885 | """HasU(self) -> bool""" | |
1886 | return _misc_.Joystick_HasU(*args, **kwargs) | |
1887 | ||
1888 | def HasV(*args, **kwargs): | |
1889 | """HasV(self) -> bool""" | |
1890 | return _misc_.Joystick_HasV(*args, **kwargs) | |
1891 | ||
1892 | def HasPOV(*args, **kwargs): | |
1893 | """HasPOV(self) -> bool""" | |
1894 | return _misc_.Joystick_HasPOV(*args, **kwargs) | |
1895 | ||
1896 | def HasPOV4Dir(*args, **kwargs): | |
1897 | """HasPOV4Dir(self) -> bool""" | |
1898 | return _misc_.Joystick_HasPOV4Dir(*args, **kwargs) | |
1899 | ||
1900 | def HasPOVCTS(*args, **kwargs): | |
1901 | """HasPOVCTS(self) -> bool""" | |
1902 | return _misc_.Joystick_HasPOVCTS(*args, **kwargs) | |
1903 | ||
1904 | def SetCapture(*args, **kwargs): | |
1905 | """SetCapture(self, Window win, int pollingFreq=0) -> bool""" | |
1906 | return _misc_.Joystick_SetCapture(*args, **kwargs) | |
1907 | ||
1908 | def ReleaseCapture(*args, **kwargs): | |
1909 | """ReleaseCapture(self) -> bool""" | |
1910 | return _misc_.Joystick_ReleaseCapture(*args, **kwargs) | |
1911 | ||
1912 | def __nonzero__(self): return self.IsOk() | |
1913 | ||
1914 | class JoystickPtr(Joystick): | |
1915 | def __init__(self, this): | |
1916 | self.this = this | |
1917 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1918 | self.__class__ = Joystick | |
1919 | _misc_.Joystick_swigregister(JoystickPtr) | |
1920 | ||
1921 | wxEVT_JOY_BUTTON_DOWN = _misc_.wxEVT_JOY_BUTTON_DOWN | |
1922 | wxEVT_JOY_BUTTON_UP = _misc_.wxEVT_JOY_BUTTON_UP | |
1923 | wxEVT_JOY_MOVE = _misc_.wxEVT_JOY_MOVE | |
1924 | wxEVT_JOY_ZMOVE = _misc_.wxEVT_JOY_ZMOVE | |
1925 | class JoystickEvent(_core.Event): | |
1926 | def __repr__(self): | |
1927 | return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1928 | m_pos = property(_misc_.JoystickEvent_m_pos_get, _misc_.JoystickEvent_m_pos_set) | |
1929 | m_zPosition = property(_misc_.JoystickEvent_m_zPosition_get, _misc_.JoystickEvent_m_zPosition_set) | |
1930 | m_buttonChange = property(_misc_.JoystickEvent_m_buttonChange_get, _misc_.JoystickEvent_m_buttonChange_set) | |
1931 | m_buttonState = property(_misc_.JoystickEvent_m_buttonState_get, _misc_.JoystickEvent_m_buttonState_set) | |
1932 | m_joyStick = property(_misc_.JoystickEvent_m_joyStick_get, _misc_.JoystickEvent_m_joyStick_set) | |
1933 | def __init__(self, *args, **kwargs): | |
1934 | """ | |
1935 | __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1, | |
1936 | int change=0) -> JoystickEvent | |
1937 | """ | |
1938 | newobj = _misc_.new_JoystickEvent(*args, **kwargs) | |
1939 | self.this = newobj.this | |
1940 | self.thisown = 1 | |
1941 | del newobj.thisown | |
1942 | def GetPosition(*args, **kwargs): | |
1943 | """GetPosition(self) -> Point""" | |
1944 | return _misc_.JoystickEvent_GetPosition(*args, **kwargs) | |
1945 | ||
1946 | def GetZPosition(*args, **kwargs): | |
1947 | """GetZPosition(self) -> int""" | |
1948 | return _misc_.JoystickEvent_GetZPosition(*args, **kwargs) | |
1949 | ||
1950 | def GetButtonState(*args, **kwargs): | |
1951 | """GetButtonState(self) -> int""" | |
1952 | return _misc_.JoystickEvent_GetButtonState(*args, **kwargs) | |
1953 | ||
1954 | def GetButtonChange(*args, **kwargs): | |
1955 | """GetButtonChange(self) -> int""" | |
1956 | return _misc_.JoystickEvent_GetButtonChange(*args, **kwargs) | |
1957 | ||
1958 | def GetJoystick(*args, **kwargs): | |
1959 | """GetJoystick(self) -> int""" | |
1960 | return _misc_.JoystickEvent_GetJoystick(*args, **kwargs) | |
1961 | ||
1962 | def SetJoystick(*args, **kwargs): | |
1963 | """SetJoystick(self, int stick)""" | |
1964 | return _misc_.JoystickEvent_SetJoystick(*args, **kwargs) | |
1965 | ||
1966 | def SetButtonState(*args, **kwargs): | |
1967 | """SetButtonState(self, int state)""" | |
1968 | return _misc_.JoystickEvent_SetButtonState(*args, **kwargs) | |
1969 | ||
1970 | def SetButtonChange(*args, **kwargs): | |
1971 | """SetButtonChange(self, int change)""" | |
1972 | return _misc_.JoystickEvent_SetButtonChange(*args, **kwargs) | |
1973 | ||
1974 | def SetPosition(*args, **kwargs): | |
1975 | """SetPosition(self, Point pos)""" | |
1976 | return _misc_.JoystickEvent_SetPosition(*args, **kwargs) | |
1977 | ||
1978 | def SetZPosition(*args, **kwargs): | |
1979 | """SetZPosition(self, int zPos)""" | |
1980 | return _misc_.JoystickEvent_SetZPosition(*args, **kwargs) | |
1981 | ||
1982 | def IsButton(*args, **kwargs): | |
1983 | """IsButton(self) -> bool""" | |
1984 | return _misc_.JoystickEvent_IsButton(*args, **kwargs) | |
1985 | ||
1986 | def IsMove(*args, **kwargs): | |
1987 | """IsMove(self) -> bool""" | |
1988 | return _misc_.JoystickEvent_IsMove(*args, **kwargs) | |
1989 | ||
1990 | def IsZMove(*args, **kwargs): | |
1991 | """IsZMove(self) -> bool""" | |
1992 | return _misc_.JoystickEvent_IsZMove(*args, **kwargs) | |
1993 | ||
1994 | def ButtonDown(*args, **kwargs): | |
1995 | """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool""" | |
1996 | return _misc_.JoystickEvent_ButtonDown(*args, **kwargs) | |
1997 | ||
1998 | def ButtonUp(*args, **kwargs): | |
1999 | """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool""" | |
2000 | return _misc_.JoystickEvent_ButtonUp(*args, **kwargs) | |
2001 | ||
2002 | def ButtonIsDown(*args, **kwargs): | |
2003 | """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool""" | |
2004 | return _misc_.JoystickEvent_ButtonIsDown(*args, **kwargs) | |
2005 | ||
2006 | ||
2007 | class JoystickEventPtr(JoystickEvent): | |
2008 | def __init__(self, this): | |
2009 | self.this = this | |
2010 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2011 | self.__class__ = JoystickEvent | |
2012 | _misc_.JoystickEvent_swigregister(JoystickEventPtr) | |
2013 | ||
2014 | EVT_JOY_BUTTON_DOWN = wx.PyEventBinder( wxEVT_JOY_BUTTON_DOWN ) | |
2015 | EVT_JOY_BUTTON_UP = wx.PyEventBinder( wxEVT_JOY_BUTTON_UP ) | |
2016 | EVT_JOY_MOVE = wx.PyEventBinder( wxEVT_JOY_MOVE ) | |
2017 | EVT_JOY_ZMOVE = wx.PyEventBinder( wxEVT_JOY_ZMOVE ) | |
2018 | ||
2019 | EVT_JOYSTICK_EVENTS = wx.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN, | |
2020 | wxEVT_JOY_BUTTON_UP, | |
2021 | wxEVT_JOY_MOVE, | |
2022 | wxEVT_JOY_ZMOVE, | |
2023 | ]) | |
2024 | ||
2025 | ||
2026 | #--------------------------------------------------------------------------- | |
2027 | ||
2028 | SOUND_SYNC = _misc_.SOUND_SYNC | |
2029 | SOUND_ASYNC = _misc_.SOUND_ASYNC | |
2030 | SOUND_LOOP = _misc_.SOUND_LOOP | |
2031 | class Sound(object): | |
2032 | def __repr__(self): | |
2033 | return "<%s.%s; proxy of C++ wxSound instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2034 | def __init__(self, *args, **kwargs): | |
2035 | """__init__(self, String fileName=EmptyString) -> Sound""" | |
2036 | newobj = _misc_.new_Sound(*args, **kwargs) | |
2037 | self.this = newobj.this | |
2038 | self.thisown = 1 | |
2039 | del newobj.thisown | |
2040 | def __del__(self, destroy=_misc_.delete_Sound): | |
2041 | """__del__(self)""" | |
2042 | try: | |
2043 | if self.thisown: destroy(self) | |
2044 | except: pass | |
2045 | ||
2046 | def Create(*args, **kwargs): | |
2047 | """Create(self, String fileName) -> bool""" | |
2048 | return _misc_.Sound_Create(*args, **kwargs) | |
2049 | ||
2050 | def CreateFromData(*args, **kwargs): | |
2051 | """CreateFromData(self, PyObject data) -> bool""" | |
2052 | return _misc_.Sound_CreateFromData(*args, **kwargs) | |
2053 | ||
2054 | def IsOk(*args, **kwargs): | |
2055 | """IsOk(self) -> bool""" | |
2056 | return _misc_.Sound_IsOk(*args, **kwargs) | |
2057 | ||
2058 | def Play(*args, **kwargs): | |
2059 | """Play(self, unsigned int flags=SOUND_ASYNC) -> bool""" | |
2060 | return _misc_.Sound_Play(*args, **kwargs) | |
2061 | ||
2062 | def PlaySound(*args, **kwargs): | |
2063 | """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool""" | |
2064 | return _misc_.Sound_PlaySound(*args, **kwargs) | |
2065 | ||
2066 | PlaySound = staticmethod(PlaySound) | |
2067 | def Stop(*args, **kwargs): | |
2068 | """Stop()""" | |
2069 | return _misc_.Sound_Stop(*args, **kwargs) | |
2070 | ||
2071 | Stop = staticmethod(Stop) | |
2072 | def __nonzero__(self): return self.IsOk() | |
2073 | ||
2074 | class SoundPtr(Sound): | |
2075 | def __init__(self, this): | |
2076 | self.this = this | |
2077 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2078 | self.__class__ = Sound | |
2079 | _misc_.Sound_swigregister(SoundPtr) | |
2080 | ||
2081 | def SoundFromData(*args, **kwargs): | |
2082 | """SoundFromData(PyObject data) -> Sound""" | |
2083 | val = _misc_.new_SoundFromData(*args, **kwargs) | |
2084 | val.thisown = 1 | |
2085 | return val | |
2086 | ||
2087 | def Sound_PlaySound(*args, **kwargs): | |
2088 | """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool""" | |
2089 | return _misc_.Sound_PlaySound(*args, **kwargs) | |
2090 | ||
2091 | def Sound_Stop(*args, **kwargs): | |
2092 | """Sound_Stop()""" | |
2093 | return _misc_.Sound_Stop(*args, **kwargs) | |
2094 | ||
2095 | #--------------------------------------------------------------------------- | |
2096 | ||
2097 | MAILCAP_STANDARD = _misc_.MAILCAP_STANDARD | |
2098 | MAILCAP_NETSCAPE = _misc_.MAILCAP_NETSCAPE | |
2099 | MAILCAP_KDE = _misc_.MAILCAP_KDE | |
2100 | MAILCAP_GNOME = _misc_.MAILCAP_GNOME | |
2101 | MAILCAP_ALL = _misc_.MAILCAP_ALL | |
2102 | class FileTypeInfo(object): | |
2103 | def __repr__(self): | |
2104 | return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2105 | def __init__(self, *args, **kwargs): | |
2106 | """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo""" | |
2107 | newobj = _misc_.new_FileTypeInfo(*args, **kwargs) | |
2108 | self.this = newobj.this | |
2109 | self.thisown = 1 | |
2110 | del newobj.thisown | |
2111 | def IsValid(*args, **kwargs): | |
2112 | """IsValid(self) -> bool""" | |
2113 | return _misc_.FileTypeInfo_IsValid(*args, **kwargs) | |
2114 | ||
2115 | def SetIcon(*args, **kwargs): | |
2116 | """SetIcon(self, String iconFile, int iconIndex=0)""" | |
2117 | return _misc_.FileTypeInfo_SetIcon(*args, **kwargs) | |
2118 | ||
2119 | def SetShortDesc(*args, **kwargs): | |
2120 | """SetShortDesc(self, String shortDesc)""" | |
2121 | return _misc_.FileTypeInfo_SetShortDesc(*args, **kwargs) | |
2122 | ||
2123 | def GetMimeType(*args, **kwargs): | |
2124 | """GetMimeType(self) -> String""" | |
2125 | return _misc_.FileTypeInfo_GetMimeType(*args, **kwargs) | |
2126 | ||
2127 | def GetOpenCommand(*args, **kwargs): | |
2128 | """GetOpenCommand(self) -> String""" | |
2129 | return _misc_.FileTypeInfo_GetOpenCommand(*args, **kwargs) | |
2130 | ||
2131 | def GetPrintCommand(*args, **kwargs): | |
2132 | """GetPrintCommand(self) -> String""" | |
2133 | return _misc_.FileTypeInfo_GetPrintCommand(*args, **kwargs) | |
2134 | ||
2135 | def GetShortDesc(*args, **kwargs): | |
2136 | """GetShortDesc(self) -> String""" | |
2137 | return _misc_.FileTypeInfo_GetShortDesc(*args, **kwargs) | |
2138 | ||
2139 | def GetDescription(*args, **kwargs): | |
2140 | """GetDescription(self) -> String""" | |
2141 | return _misc_.FileTypeInfo_GetDescription(*args, **kwargs) | |
2142 | ||
2143 | def GetExtensions(*args, **kwargs): | |
2144 | """GetExtensions(self) -> wxArrayString""" | |
2145 | return _misc_.FileTypeInfo_GetExtensions(*args, **kwargs) | |
2146 | ||
2147 | def GetExtensionsCount(*args, **kwargs): | |
2148 | """GetExtensionsCount(self) -> int""" | |
2149 | return _misc_.FileTypeInfo_GetExtensionsCount(*args, **kwargs) | |
2150 | ||
2151 | def GetIconFile(*args, **kwargs): | |
2152 | """GetIconFile(self) -> String""" | |
2153 | return _misc_.FileTypeInfo_GetIconFile(*args, **kwargs) | |
2154 | ||
2155 | def GetIconIndex(*args, **kwargs): | |
2156 | """GetIconIndex(self) -> int""" | |
2157 | return _misc_.FileTypeInfo_GetIconIndex(*args, **kwargs) | |
2158 | ||
2159 | ||
2160 | class FileTypeInfoPtr(FileTypeInfo): | |
2161 | def __init__(self, this): | |
2162 | self.this = this | |
2163 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2164 | self.__class__ = FileTypeInfo | |
2165 | _misc_.FileTypeInfo_swigregister(FileTypeInfoPtr) | |
2166 | ||
2167 | def FileTypeInfoSequence(*args, **kwargs): | |
2168 | """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo""" | |
2169 | val = _misc_.new_FileTypeInfoSequence(*args, **kwargs) | |
2170 | val.thisown = 1 | |
2171 | return val | |
2172 | ||
2173 | def NullFileTypeInfo(*args, **kwargs): | |
2174 | """NullFileTypeInfo() -> FileTypeInfo""" | |
2175 | val = _misc_.new_NullFileTypeInfo(*args, **kwargs) | |
2176 | val.thisown = 1 | |
2177 | return val | |
2178 | ||
2179 | class FileType(object): | |
2180 | def __repr__(self): | |
2181 | return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2182 | def __init__(self, *args, **kwargs): | |
2183 | """__init__(self, FileTypeInfo ftInfo) -> FileType""" | |
2184 | newobj = _misc_.new_FileType(*args, **kwargs) | |
2185 | self.this = newobj.this | |
2186 | self.thisown = 1 | |
2187 | del newobj.thisown | |
2188 | def __del__(self, destroy=_misc_.delete_FileType): | |
2189 | """__del__(self)""" | |
2190 | try: | |
2191 | if self.thisown: destroy(self) | |
2192 | except: pass | |
2193 | ||
2194 | def GetMimeType(*args, **kwargs): | |
2195 | """GetMimeType(self) -> PyObject""" | |
2196 | return _misc_.FileType_GetMimeType(*args, **kwargs) | |
2197 | ||
2198 | def GetMimeTypes(*args, **kwargs): | |
2199 | """GetMimeTypes(self) -> PyObject""" | |
2200 | return _misc_.FileType_GetMimeTypes(*args, **kwargs) | |
2201 | ||
2202 | def GetExtensions(*args, **kwargs): | |
2203 | """GetExtensions(self) -> PyObject""" | |
2204 | return _misc_.FileType_GetExtensions(*args, **kwargs) | |
2205 | ||
2206 | def GetIcon(*args, **kwargs): | |
2207 | """GetIcon(self) -> Icon""" | |
2208 | return _misc_.FileType_GetIcon(*args, **kwargs) | |
2209 | ||
2210 | def GetIconInfo(*args, **kwargs): | |
2211 | """GetIconInfo(self) -> PyObject""" | |
2212 | return _misc_.FileType_GetIconInfo(*args, **kwargs) | |
2213 | ||
2214 | def GetDescription(*args, **kwargs): | |
2215 | """GetDescription(self) -> PyObject""" | |
2216 | return _misc_.FileType_GetDescription(*args, **kwargs) | |
2217 | ||
2218 | def GetOpenCommand(*args, **kwargs): | |
2219 | """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject""" | |
2220 | return _misc_.FileType_GetOpenCommand(*args, **kwargs) | |
2221 | ||
2222 | def GetPrintCommand(*args, **kwargs): | |
2223 | """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject""" | |
2224 | return _misc_.FileType_GetPrintCommand(*args, **kwargs) | |
2225 | ||
2226 | def GetAllCommands(*args, **kwargs): | |
2227 | """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject""" | |
2228 | return _misc_.FileType_GetAllCommands(*args, **kwargs) | |
2229 | ||
2230 | def SetCommand(*args, **kwargs): | |
2231 | """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool""" | |
2232 | return _misc_.FileType_SetCommand(*args, **kwargs) | |
2233 | ||
2234 | def SetDefaultIcon(*args, **kwargs): | |
2235 | """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool""" | |
2236 | return _misc_.FileType_SetDefaultIcon(*args, **kwargs) | |
2237 | ||
2238 | def Unassociate(*args, **kwargs): | |
2239 | """Unassociate(self) -> bool""" | |
2240 | return _misc_.FileType_Unassociate(*args, **kwargs) | |
2241 | ||
2242 | def ExpandCommand(*args, **kwargs): | |
2243 | """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String""" | |
2244 | return _misc_.FileType_ExpandCommand(*args, **kwargs) | |
2245 | ||
2246 | ExpandCommand = staticmethod(ExpandCommand) | |
2247 | ||
2248 | class FileTypePtr(FileType): | |
2249 | def __init__(self, this): | |
2250 | self.this = this | |
2251 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2252 | self.__class__ = FileType | |
2253 | _misc_.FileType_swigregister(FileTypePtr) | |
2254 | ||
2255 | def FileType_ExpandCommand(*args, **kwargs): | |
2256 | """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String""" | |
2257 | return _misc_.FileType_ExpandCommand(*args, **kwargs) | |
2258 | ||
2259 | class MimeTypesManager(object): | |
2260 | def __repr__(self): | |
2261 | return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2262 | def IsOfType(*args, **kwargs): | |
2263 | """IsOfType(String mimeType, String wildcard) -> bool""" | |
2264 | return _misc_.MimeTypesManager_IsOfType(*args, **kwargs) | |
2265 | ||
2266 | IsOfType = staticmethod(IsOfType) | |
2267 | def __init__(self, *args, **kwargs): | |
2268 | """__init__(self) -> MimeTypesManager""" | |
2269 | newobj = _misc_.new_MimeTypesManager(*args, **kwargs) | |
2270 | self.this = newobj.this | |
2271 | self.thisown = 1 | |
2272 | del newobj.thisown | |
2273 | def Initialize(*args, **kwargs): | |
2274 | """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)""" | |
2275 | return _misc_.MimeTypesManager_Initialize(*args, **kwargs) | |
2276 | ||
2277 | def ClearData(*args, **kwargs): | |
2278 | """ClearData(self)""" | |
2279 | return _misc_.MimeTypesManager_ClearData(*args, **kwargs) | |
2280 | ||
2281 | def GetFileTypeFromExtension(*args, **kwargs): | |
2282 | """GetFileTypeFromExtension(self, String ext) -> FileType""" | |
2283 | return _misc_.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs) | |
2284 | ||
2285 | def GetFileTypeFromMimeType(*args, **kwargs): | |
2286 | """GetFileTypeFromMimeType(self, String mimeType) -> FileType""" | |
2287 | return _misc_.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs) | |
2288 | ||
2289 | def ReadMailcap(*args, **kwargs): | |
2290 | """ReadMailcap(self, String filename, bool fallback=False) -> bool""" | |
2291 | return _misc_.MimeTypesManager_ReadMailcap(*args, **kwargs) | |
2292 | ||
2293 | def ReadMimeTypes(*args, **kwargs): | |
2294 | """ReadMimeTypes(self, String filename) -> bool""" | |
2295 | return _misc_.MimeTypesManager_ReadMimeTypes(*args, **kwargs) | |
2296 | ||
2297 | def EnumAllFileTypes(*args, **kwargs): | |
2298 | """EnumAllFileTypes(self) -> PyObject""" | |
2299 | return _misc_.MimeTypesManager_EnumAllFileTypes(*args, **kwargs) | |
2300 | ||
2301 | def AddFallback(*args, **kwargs): | |
2302 | """AddFallback(self, FileTypeInfo ft)""" | |
2303 | return _misc_.MimeTypesManager_AddFallback(*args, **kwargs) | |
2304 | ||
2305 | def Associate(*args, **kwargs): | |
2306 | """Associate(self, FileTypeInfo ftInfo) -> FileType""" | |
2307 | return _misc_.MimeTypesManager_Associate(*args, **kwargs) | |
2308 | ||
2309 | def Unassociate(*args, **kwargs): | |
2310 | """Unassociate(self, FileType ft) -> bool""" | |
2311 | return _misc_.MimeTypesManager_Unassociate(*args, **kwargs) | |
2312 | ||
2313 | def __del__(self, destroy=_misc_.delete_MimeTypesManager): | |
2314 | """__del__(self)""" | |
2315 | try: | |
2316 | if self.thisown: destroy(self) | |
2317 | except: pass | |
2318 | ||
2319 | ||
2320 | class MimeTypesManagerPtr(MimeTypesManager): | |
2321 | def __init__(self, this): | |
2322 | self.this = this | |
2323 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2324 | self.__class__ = MimeTypesManager | |
2325 | _misc_.MimeTypesManager_swigregister(MimeTypesManagerPtr) | |
2326 | TheMimeTypesManager = cvar.TheMimeTypesManager | |
2327 | ||
2328 | def MimeTypesManager_IsOfType(*args, **kwargs): | |
2329 | """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool""" | |
2330 | return _misc_.MimeTypesManager_IsOfType(*args, **kwargs) | |
2331 | ||
2332 | #--------------------------------------------------------------------------- | |
2333 | ||
2334 | class ArtProvider(object): | |
2335 | """ | |
2336 | The wx.ArtProvider class is used to customize the look of wxWidgets | |
2337 | application. When wxWidgets needs to display an icon or a bitmap (e.g. | |
2338 | in the standard file dialog), it does not use hard-coded resource but | |
2339 | asks wx.ArtProvider for it instead. This way the users can plug in | |
2340 | their own wx.ArtProvider class and easily replace standard art with | |
2341 | his/her own version. It is easy thing to do: all that is needed is | |
2342 | to derive a class from wx.ArtProvider, override it's CreateBitmap | |
2343 | method and register the provider with wx.ArtProvider.PushProvider:: | |
2344 | ||
2345 | class MyArtProvider(wx.ArtProvider): | |
2346 | def __init__(self): | |
2347 | wx.ArtProvider.__init__(self) | |
2348 | ||
2349 | def CreateBitmap(self, artid, client, size): | |
2350 | ... | |
2351 | return bmp | |
2352 | ||
2353 | """ | |
2354 | def __repr__(self): | |
2355 | return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2356 | def __init__(self, *args, **kwargs): | |
2357 | """ | |
2358 | __init__(self) -> ArtProvider | |
2359 | ||
2360 | The wx.ArtProvider class is used to customize the look of wxWidgets | |
2361 | application. When wxWidgets needs to display an icon or a bitmap (e.g. | |
2362 | in the standard file dialog), it does not use hard-coded resource but | |
2363 | asks wx.ArtProvider for it instead. This way the users can plug in | |
2364 | their own wx.ArtProvider class and easily replace standard art with | |
2365 | his/her own version. It is easy thing to do: all that is needed is | |
2366 | to derive a class from wx.ArtProvider, override it's CreateBitmap | |
2367 | method and register the provider with wx.ArtProvider.PushProvider:: | |
2368 | ||
2369 | class MyArtProvider(wx.ArtProvider): | |
2370 | def __init__(self): | |
2371 | wx.ArtProvider.__init__(self) | |
2372 | ||
2373 | def CreateBitmap(self, artid, client, size): | |
2374 | ... | |
2375 | return bmp | |
2376 | ||
2377 | """ | |
2378 | newobj = _misc_.new_ArtProvider(*args, **kwargs) | |
2379 | self.this = newobj.this | |
2380 | self.thisown = 1 | |
2381 | del newobj.thisown | |
2382 | self._setCallbackInfo(self, ArtProvider) | |
2383 | ||
2384 | def _setCallbackInfo(*args, **kwargs): | |
2385 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
2386 | return _misc_.ArtProvider__setCallbackInfo(*args, **kwargs) | |
2387 | ||
2388 | def PushProvider(*args, **kwargs): | |
2389 | """ | |
2390 | PushProvider(ArtProvider provider) | |
2391 | ||
2392 | Add new provider to the top of providers stack. | |
2393 | """ | |
2394 | return _misc_.ArtProvider_PushProvider(*args, **kwargs) | |
2395 | ||
2396 | PushProvider = staticmethod(PushProvider) | |
2397 | def PopProvider(*args, **kwargs): | |
2398 | """ | |
2399 | PopProvider() -> bool | |
2400 | ||
2401 | Remove latest added provider and delete it. | |
2402 | """ | |
2403 | return _misc_.ArtProvider_PopProvider(*args, **kwargs) | |
2404 | ||
2405 | PopProvider = staticmethod(PopProvider) | |
2406 | def RemoveProvider(*args, **kwargs): | |
2407 | """ | |
2408 | RemoveProvider(ArtProvider provider) -> bool | |
2409 | ||
2410 | Remove provider. The provider must have been added previously! The | |
2411 | provider is _not_ deleted. | |
2412 | """ | |
2413 | return _misc_.ArtProvider_RemoveProvider(*args, **kwargs) | |
2414 | ||
2415 | RemoveProvider = staticmethod(RemoveProvider) | |
2416 | def GetBitmap(*args, **kwargs): | |
2417 | """ | |
2418 | GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap | |
2419 | ||
2420 | Query the providers for bitmap with given ID and return it. Return | |
2421 | wx.NullBitmap if no provider provides it. | |
2422 | """ | |
2423 | return _misc_.ArtProvider_GetBitmap(*args, **kwargs) | |
2424 | ||
2425 | GetBitmap = staticmethod(GetBitmap) | |
2426 | def GetIcon(*args, **kwargs): | |
2427 | """ | |
2428 | GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon | |
2429 | ||
2430 | Query the providers for icon with given ID and return it. Return | |
2431 | wx.NullIcon if no provider provides it. | |
2432 | """ | |
2433 | return _misc_.ArtProvider_GetIcon(*args, **kwargs) | |
2434 | ||
2435 | GetIcon = staticmethod(GetIcon) | |
2436 | def Destroy(*args, **kwargs): | |
2437 | """Destroy(self)""" | |
2438 | return _misc_.ArtProvider_Destroy(*args, **kwargs) | |
2439 | ||
2440 | ||
2441 | class ArtProviderPtr(ArtProvider): | |
2442 | def __init__(self, this): | |
2443 | self.this = this | |
2444 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2445 | self.__class__ = ArtProvider | |
2446 | _misc_.ArtProvider_swigregister(ArtProviderPtr) | |
2447 | ART_TOOLBAR = cvar.ART_TOOLBAR | |
2448 | ART_MENU = cvar.ART_MENU | |
2449 | ART_FRAME_ICON = cvar.ART_FRAME_ICON | |
2450 | ART_CMN_DIALOG = cvar.ART_CMN_DIALOG | |
2451 | ART_HELP_BROWSER = cvar.ART_HELP_BROWSER | |
2452 | ART_MESSAGE_BOX = cvar.ART_MESSAGE_BOX | |
2453 | ART_OTHER = cvar.ART_OTHER | |
2454 | ART_ADD_BOOKMARK = cvar.ART_ADD_BOOKMARK | |
2455 | ART_DEL_BOOKMARK = cvar.ART_DEL_BOOKMARK | |
2456 | ART_HELP_SIDE_PANEL = cvar.ART_HELP_SIDE_PANEL | |
2457 | ART_HELP_SETTINGS = cvar.ART_HELP_SETTINGS | |
2458 | ART_HELP_BOOK = cvar.ART_HELP_BOOK | |
2459 | ART_HELP_FOLDER = cvar.ART_HELP_FOLDER | |
2460 | ART_HELP_PAGE = cvar.ART_HELP_PAGE | |
2461 | ART_GO_BACK = cvar.ART_GO_BACK | |
2462 | ART_GO_FORWARD = cvar.ART_GO_FORWARD | |
2463 | ART_GO_UP = cvar.ART_GO_UP | |
2464 | ART_GO_DOWN = cvar.ART_GO_DOWN | |
2465 | ART_GO_TO_PARENT = cvar.ART_GO_TO_PARENT | |
2466 | ART_GO_HOME = cvar.ART_GO_HOME | |
2467 | ART_FILE_OPEN = cvar.ART_FILE_OPEN | |
2468 | ART_PRINT = cvar.ART_PRINT | |
2469 | ART_HELP = cvar.ART_HELP | |
2470 | ART_TIP = cvar.ART_TIP | |
2471 | ART_REPORT_VIEW = cvar.ART_REPORT_VIEW | |
2472 | ART_LIST_VIEW = cvar.ART_LIST_VIEW | |
2473 | ART_NEW_DIR = cvar.ART_NEW_DIR | |
2474 | ART_FOLDER = cvar.ART_FOLDER | |
2475 | ART_GO_DIR_UP = cvar.ART_GO_DIR_UP | |
2476 | ART_EXECUTABLE_FILE = cvar.ART_EXECUTABLE_FILE | |
2477 | ART_NORMAL_FILE = cvar.ART_NORMAL_FILE | |
2478 | ART_TICK_MARK = cvar.ART_TICK_MARK | |
2479 | ART_CROSS_MARK = cvar.ART_CROSS_MARK | |
2480 | ART_ERROR = cvar.ART_ERROR | |
2481 | ART_QUESTION = cvar.ART_QUESTION | |
2482 | ART_WARNING = cvar.ART_WARNING | |
2483 | ART_INFORMATION = cvar.ART_INFORMATION | |
2484 | ART_MISSING_IMAGE = cvar.ART_MISSING_IMAGE | |
2485 | ||
2486 | def ArtProvider_PushProvider(*args, **kwargs): | |
2487 | """ | |
2488 | ArtProvider_PushProvider(ArtProvider provider) | |
2489 | ||
2490 | Add new provider to the top of providers stack. | |
2491 | """ | |
2492 | return _misc_.ArtProvider_PushProvider(*args, **kwargs) | |
2493 | ||
2494 | def ArtProvider_PopProvider(*args, **kwargs): | |
2495 | """ | |
2496 | ArtProvider_PopProvider() -> bool | |
2497 | ||
2498 | Remove latest added provider and delete it. | |
2499 | """ | |
2500 | return _misc_.ArtProvider_PopProvider(*args, **kwargs) | |
2501 | ||
2502 | def ArtProvider_RemoveProvider(*args, **kwargs): | |
2503 | """ | |
2504 | ArtProvider_RemoveProvider(ArtProvider provider) -> bool | |
2505 | ||
2506 | Remove provider. The provider must have been added previously! The | |
2507 | provider is _not_ deleted. | |
2508 | """ | |
2509 | return _misc_.ArtProvider_RemoveProvider(*args, **kwargs) | |
2510 | ||
2511 | def ArtProvider_GetBitmap(*args, **kwargs): | |
2512 | """ | |
2513 | ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap | |
2514 | ||
2515 | Query the providers for bitmap with given ID and return it. Return | |
2516 | wx.NullBitmap if no provider provides it. | |
2517 | """ | |
2518 | return _misc_.ArtProvider_GetBitmap(*args, **kwargs) | |
2519 | ||
2520 | def ArtProvider_GetIcon(*args, **kwargs): | |
2521 | """ | |
2522 | ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon | |
2523 | ||
2524 | Query the providers for icon with given ID and return it. Return | |
2525 | wx.NullIcon if no provider provides it. | |
2526 | """ | |
2527 | return _misc_.ArtProvider_GetIcon(*args, **kwargs) | |
2528 | ||
2529 | #--------------------------------------------------------------------------- | |
2530 | ||
2531 | CONFIG_USE_LOCAL_FILE = _misc_.CONFIG_USE_LOCAL_FILE | |
2532 | CONFIG_USE_GLOBAL_FILE = _misc_.CONFIG_USE_GLOBAL_FILE | |
2533 | CONFIG_USE_RELATIVE_PATH = _misc_.CONFIG_USE_RELATIVE_PATH | |
2534 | CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc_.CONFIG_USE_NO_ESCAPE_CHARACTERS | |
2535 | class ConfigBase(object): | |
2536 | """ | |
2537 | wx.ConfigBase class defines the basic interface of all config | |
2538 | classes. It can not be used by itself (it is an abstract base class) | |
2539 | and you will always use one of its derivations: wx.Config or | |
2540 | wx.FileConfig. | |
2541 | ||
2542 | wx.ConfigBase organizes the items in a tree-like structure, modeled | |
2543 | after the Unix/Dos filesystem. There are groups that act like | |
2544 | directories and entries, key/value pairs that act like files. There | |
2545 | is always one current group given by the current path. As in the file | |
2546 | system case, to specify a key in the config class you must use a path | |
2547 | to it. Config classes also support the notion of the current group, | |
2548 | which makes it possible to use relative paths. | |
2549 | ||
2550 | Keys are pairs "key_name = value" where value may be of string, | |
2551 | integer floating point or boolean, you can not store binary data | |
2552 | without first encoding it as a string. For performance reasons items | |
2553 | should be kept small, no more than a couple kilobytes. | |
2554 | ||
2555 | """ | |
2556 | def __init__(self): raise RuntimeError, "No constructor defined" | |
2557 | def __repr__(self): | |
2558 | return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2559 | def __del__(self, destroy=_misc_.delete_ConfigBase): | |
2560 | """__del__(self)""" | |
2561 | try: | |
2562 | if self.thisown: destroy(self) | |
2563 | except: pass | |
2564 | ||
2565 | Type_Unknown = _misc_.ConfigBase_Type_Unknown | |
2566 | Type_String = _misc_.ConfigBase_Type_String | |
2567 | Type_Boolean = _misc_.ConfigBase_Type_Boolean | |
2568 | Type_Integer = _misc_.ConfigBase_Type_Integer | |
2569 | Type_Float = _misc_.ConfigBase_Type_Float | |
2570 | def Set(*args, **kwargs): | |
2571 | """ | |
2572 | Set(ConfigBase config) -> ConfigBase | |
2573 | ||
2574 | Sets the global config object (the one returned by Get) and returns a | |
2575 | reference to the previous global config object. | |
2576 | """ | |
2577 | return _misc_.ConfigBase_Set(*args, **kwargs) | |
2578 | ||
2579 | Set = staticmethod(Set) | |
2580 | def Get(*args, **kwargs): | |
2581 | """ | |
2582 | Get(bool createOnDemand=True) -> ConfigBase | |
2583 | ||
2584 | Returns the current global config object, creating one if neccessary. | |
2585 | """ | |
2586 | return _misc_.ConfigBase_Get(*args, **kwargs) | |
2587 | ||
2588 | Get = staticmethod(Get) | |
2589 | def Create(*args, **kwargs): | |
2590 | """ | |
2591 | Create() -> ConfigBase | |
2592 | ||
2593 | Create and return a new global config object. This function will | |
2594 | create the "best" implementation of wx.Config available for the | |
2595 | current platform. | |
2596 | """ | |
2597 | return _misc_.ConfigBase_Create(*args, **kwargs) | |
2598 | ||
2599 | Create = staticmethod(Create) | |
2600 | def DontCreateOnDemand(*args, **kwargs): | |
2601 | """ | |
2602 | DontCreateOnDemand() | |
2603 | ||
2604 | Should Get() try to create a new log object if there isn't a current | |
2605 | one? | |
2606 | """ | |
2607 | return _misc_.ConfigBase_DontCreateOnDemand(*args, **kwargs) | |
2608 | ||
2609 | DontCreateOnDemand = staticmethod(DontCreateOnDemand) | |
2610 | def SetPath(*args, **kwargs): | |
2611 | """ | |
2612 | SetPath(self, String path) | |
2613 | ||
2614 | Set current path: if the first character is '/', it's the absolute | |
2615 | path, otherwise it's a relative path. '..' is supported. If the | |
2616 | strPath doesn't exist it is created. | |
2617 | """ | |
2618 | return _misc_.ConfigBase_SetPath(*args, **kwargs) | |
2619 | ||
2620 | def GetPath(*args, **kwargs): | |
2621 | """ | |
2622 | GetPath(self) -> String | |
2623 | ||
2624 | Retrieve the current path (always as absolute path) | |
2625 | """ | |
2626 | return _misc_.ConfigBase_GetPath(*args, **kwargs) | |
2627 | ||
2628 | def GetFirstGroup(*args, **kwargs): | |
2629 | """ | |
2630 | GetFirstGroup() -> (more, value, index) | |
2631 | ||
2632 | Allows enumerating the subgroups in a config object. Returns a tuple | |
2633 | containing a flag indicating there are more items, the name of the | |
2634 | current item, and an index to pass to GetNextGroup to fetch the next | |
2635 | item. | |
2636 | """ | |
2637 | return _misc_.ConfigBase_GetFirstGroup(*args, **kwargs) | |
2638 | ||
2639 | def GetNextGroup(*args, **kwargs): | |
2640 | """ | |
2641 | GetNextGroup(long index) -> (more, value, index) | |
2642 | ||
2643 | Allows enumerating the subgroups in a config object. Returns a tuple | |
2644 | containing a flag indicating there are more items, the name of the | |
2645 | current item, and an index to pass to GetNextGroup to fetch the next | |
2646 | item. | |
2647 | """ | |
2648 | return _misc_.ConfigBase_GetNextGroup(*args, **kwargs) | |
2649 | ||
2650 | def GetFirstEntry(*args, **kwargs): | |
2651 | """ | |
2652 | GetFirstEntry() -> (more, value, index) | |
2653 | ||
2654 | Allows enumerating the entries in the current group in a config | |
2655 | object. Returns a tuple containing a flag indicating there are more | |
2656 | items, the name of the current item, and an index to pass to | |
2657 | GetNextGroup to fetch the next item. | |
2658 | """ | |
2659 | return _misc_.ConfigBase_GetFirstEntry(*args, **kwargs) | |
2660 | ||
2661 | def GetNextEntry(*args, **kwargs): | |
2662 | """ | |
2663 | GetNextEntry(long index) -> (more, value, index) | |
2664 | ||
2665 | Allows enumerating the entries in the current group in a config | |
2666 | object. Returns a tuple containing a flag indicating there are more | |
2667 | items, the name of the current item, and an index to pass to | |
2668 | GetNextGroup to fetch the next item. | |
2669 | """ | |
2670 | return _misc_.ConfigBase_GetNextEntry(*args, **kwargs) | |
2671 | ||
2672 | def GetNumberOfEntries(*args, **kwargs): | |
2673 | """ | |
2674 | GetNumberOfEntries(self, bool recursive=False) -> size_t | |
2675 | ||
2676 | Get the number of entries in the current group, with or without its | |
2677 | subgroups. | |
2678 | """ | |
2679 | return _misc_.ConfigBase_GetNumberOfEntries(*args, **kwargs) | |
2680 | ||
2681 | def GetNumberOfGroups(*args, **kwargs): | |
2682 | """ | |
2683 | GetNumberOfGroups(self, bool recursive=False) -> size_t | |
2684 | ||
2685 | Get the number of subgroups in the current group, with or without its | |
2686 | subgroups. | |
2687 | """ | |
2688 | return _misc_.ConfigBase_GetNumberOfGroups(*args, **kwargs) | |
2689 | ||
2690 | def HasGroup(*args, **kwargs): | |
2691 | """ | |
2692 | HasGroup(self, String name) -> bool | |
2693 | ||
2694 | Returns True if the group by this name exists | |
2695 | """ | |
2696 | return _misc_.ConfigBase_HasGroup(*args, **kwargs) | |
2697 | ||
2698 | def HasEntry(*args, **kwargs): | |
2699 | """ | |
2700 | HasEntry(self, String name) -> bool | |
2701 | ||
2702 | Returns True if the entry by this name exists | |
2703 | """ | |
2704 | return _misc_.ConfigBase_HasEntry(*args, **kwargs) | |
2705 | ||
2706 | def Exists(*args, **kwargs): | |
2707 | """ | |
2708 | Exists(self, String name) -> bool | |
2709 | ||
2710 | Returns True if either a group or an entry with a given name exists | |
2711 | """ | |
2712 | return _misc_.ConfigBase_Exists(*args, **kwargs) | |
2713 | ||
2714 | def GetEntryType(*args, **kwargs): | |
2715 | """ | |
2716 | GetEntryType(self, String name) -> int | |
2717 | ||
2718 | Get the type of the entry. Returns one of the wx.Config.Type_XXX values. | |
2719 | """ | |
2720 | return _misc_.ConfigBase_GetEntryType(*args, **kwargs) | |
2721 | ||
2722 | def Read(*args, **kwargs): | |
2723 | """ | |
2724 | Read(self, String key, String defaultVal=EmptyString) -> String | |
2725 | ||
2726 | Returns the value of key if it exists, defaultVal otherwise. | |
2727 | """ | |
2728 | return _misc_.ConfigBase_Read(*args, **kwargs) | |
2729 | ||
2730 | def ReadInt(*args, **kwargs): | |
2731 | """ | |
2732 | ReadInt(self, String key, long defaultVal=0) -> long | |
2733 | ||
2734 | Returns the value of key if it exists, defaultVal otherwise. | |
2735 | """ | |
2736 | return _misc_.ConfigBase_ReadInt(*args, **kwargs) | |
2737 | ||
2738 | def ReadFloat(*args, **kwargs): | |
2739 | """ | |
2740 | ReadFloat(self, String key, double defaultVal=0.0) -> double | |
2741 | ||
2742 | Returns the value of key if it exists, defaultVal otherwise. | |
2743 | """ | |
2744 | return _misc_.ConfigBase_ReadFloat(*args, **kwargs) | |
2745 | ||
2746 | def ReadBool(*args, **kwargs): | |
2747 | """ | |
2748 | ReadBool(self, String key, bool defaultVal=False) -> bool | |
2749 | ||
2750 | Returns the value of key if it exists, defaultVal otherwise. | |
2751 | """ | |
2752 | return _misc_.ConfigBase_ReadBool(*args, **kwargs) | |
2753 | ||
2754 | def Write(*args, **kwargs): | |
2755 | """ | |
2756 | Write(self, String key, String value) -> bool | |
2757 | ||
2758 | write the value (return True on success) | |
2759 | """ | |
2760 | return _misc_.ConfigBase_Write(*args, **kwargs) | |
2761 | ||
2762 | def WriteInt(*args, **kwargs): | |
2763 | """ | |
2764 | WriteInt(self, String key, long value) -> bool | |
2765 | ||
2766 | write the value (return True on success) | |
2767 | """ | |
2768 | return _misc_.ConfigBase_WriteInt(*args, **kwargs) | |
2769 | ||
2770 | def WriteFloat(*args, **kwargs): | |
2771 | """ | |
2772 | WriteFloat(self, String key, double value) -> bool | |
2773 | ||
2774 | write the value (return True on success) | |
2775 | """ | |
2776 | return _misc_.ConfigBase_WriteFloat(*args, **kwargs) | |
2777 | ||
2778 | def WriteBool(*args, **kwargs): | |
2779 | """ | |
2780 | WriteBool(self, String key, bool value) -> bool | |
2781 | ||
2782 | write the value (return True on success) | |
2783 | """ | |
2784 | return _misc_.ConfigBase_WriteBool(*args, **kwargs) | |
2785 | ||
2786 | def Flush(*args, **kwargs): | |
2787 | """ | |
2788 | Flush(self, bool currentOnly=False) -> bool | |
2789 | ||
2790 | permanently writes all changes | |
2791 | """ | |
2792 | return _misc_.ConfigBase_Flush(*args, **kwargs) | |
2793 | ||
2794 | def RenameEntry(*args, **kwargs): | |
2795 | """ | |
2796 | RenameEntry(self, String oldName, String newName) -> bool | |
2797 | ||
2798 | Rename an entry. Returns False on failure (probably because the new | |
2799 | name is already taken by an existing entry) | |
2800 | """ | |
2801 | return _misc_.ConfigBase_RenameEntry(*args, **kwargs) | |
2802 | ||
2803 | def RenameGroup(*args, **kwargs): | |
2804 | """ | |
2805 | RenameGroup(self, String oldName, String newName) -> bool | |
2806 | ||
2807 | Rename a group. Returns False on failure (probably because the new | |
2808 | name is already taken by an existing entry) | |
2809 | """ | |
2810 | return _misc_.ConfigBase_RenameGroup(*args, **kwargs) | |
2811 | ||
2812 | def DeleteEntry(*args, **kwargs): | |
2813 | """ | |
2814 | DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool | |
2815 | ||
2816 | Deletes the specified entry and the group it belongs to if it was the | |
2817 | last key in it and the second parameter is True | |
2818 | """ | |
2819 | return _misc_.ConfigBase_DeleteEntry(*args, **kwargs) | |
2820 | ||
2821 | def DeleteGroup(*args, **kwargs): | |
2822 | """ | |
2823 | DeleteGroup(self, String key) -> bool | |
2824 | ||
2825 | Delete the group (with all subgroups) | |
2826 | """ | |
2827 | return _misc_.ConfigBase_DeleteGroup(*args, **kwargs) | |
2828 | ||
2829 | def DeleteAll(*args, **kwargs): | |
2830 | """ | |
2831 | DeleteAll(self) -> bool | |
2832 | ||
2833 | Delete the whole underlying object (disk file, registry key, ...) | |
2834 | primarly intended for use by deinstallation routine. | |
2835 | """ | |
2836 | return _misc_.ConfigBase_DeleteAll(*args, **kwargs) | |
2837 | ||
2838 | def SetExpandEnvVars(*args, **kwargs): | |
2839 | """ | |
2840 | SetExpandEnvVars(self, bool doIt=True) | |
2841 | ||
2842 | We can automatically expand environment variables in the config | |
2843 | entries this option is on by default, you can turn it on/off at any | |
2844 | time) | |
2845 | """ | |
2846 | return _misc_.ConfigBase_SetExpandEnvVars(*args, **kwargs) | |
2847 | ||
2848 | def IsExpandingEnvVars(*args, **kwargs): | |
2849 | """ | |
2850 | IsExpandingEnvVars(self) -> bool | |
2851 | ||
2852 | Are we currently expanding environment variables? | |
2853 | """ | |
2854 | return _misc_.ConfigBase_IsExpandingEnvVars(*args, **kwargs) | |
2855 | ||
2856 | def SetRecordDefaults(*args, **kwargs): | |
2857 | """ | |
2858 | SetRecordDefaults(self, bool doIt=True) | |
2859 | ||
2860 | Set whether the config objec should record default values. | |
2861 | """ | |
2862 | return _misc_.ConfigBase_SetRecordDefaults(*args, **kwargs) | |
2863 | ||
2864 | def IsRecordingDefaults(*args, **kwargs): | |
2865 | """ | |
2866 | IsRecordingDefaults(self) -> bool | |
2867 | ||
2868 | Are we currently recording default values? | |
2869 | """ | |
2870 | return _misc_.ConfigBase_IsRecordingDefaults(*args, **kwargs) | |
2871 | ||
2872 | def ExpandEnvVars(*args, **kwargs): | |
2873 | """ | |
2874 | ExpandEnvVars(self, String str) -> String | |
2875 | ||
2876 | Expand any environment variables in str and return the result | |
2877 | """ | |
2878 | return _misc_.ConfigBase_ExpandEnvVars(*args, **kwargs) | |
2879 | ||
2880 | def GetAppName(*args, **kwargs): | |
2881 | """GetAppName(self) -> String""" | |
2882 | return _misc_.ConfigBase_GetAppName(*args, **kwargs) | |
2883 | ||
2884 | def GetVendorName(*args, **kwargs): | |
2885 | """GetVendorName(self) -> String""" | |
2886 | return _misc_.ConfigBase_GetVendorName(*args, **kwargs) | |
2887 | ||
2888 | def SetAppName(*args, **kwargs): | |
2889 | """SetAppName(self, String appName)""" | |
2890 | return _misc_.ConfigBase_SetAppName(*args, **kwargs) | |
2891 | ||
2892 | def SetVendorName(*args, **kwargs): | |
2893 | """SetVendorName(self, String vendorName)""" | |
2894 | return _misc_.ConfigBase_SetVendorName(*args, **kwargs) | |
2895 | ||
2896 | def SetStyle(*args, **kwargs): | |
2897 | """SetStyle(self, long style)""" | |
2898 | return _misc_.ConfigBase_SetStyle(*args, **kwargs) | |
2899 | ||
2900 | def GetStyle(*args, **kwargs): | |
2901 | """GetStyle(self) -> long""" | |
2902 | return _misc_.ConfigBase_GetStyle(*args, **kwargs) | |
2903 | ||
2904 | ||
2905 | class ConfigBasePtr(ConfigBase): | |
2906 | def __init__(self, this): | |
2907 | self.this = this | |
2908 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2909 | self.__class__ = ConfigBase | |
2910 | _misc_.ConfigBase_swigregister(ConfigBasePtr) | |
2911 | ||
2912 | def ConfigBase_Set(*args, **kwargs): | |
2913 | """ | |
2914 | ConfigBase_Set(ConfigBase config) -> ConfigBase | |
2915 | ||
2916 | Sets the global config object (the one returned by Get) and returns a | |
2917 | reference to the previous global config object. | |
2918 | """ | |
2919 | return _misc_.ConfigBase_Set(*args, **kwargs) | |
2920 | ||
2921 | def ConfigBase_Get(*args, **kwargs): | |
2922 | """ | |
2923 | ConfigBase_Get(bool createOnDemand=True) -> ConfigBase | |
2924 | ||
2925 | Returns the current global config object, creating one if neccessary. | |
2926 | """ | |
2927 | return _misc_.ConfigBase_Get(*args, **kwargs) | |
2928 | ||
2929 | def ConfigBase_Create(*args, **kwargs): | |
2930 | """ | |
2931 | ConfigBase_Create() -> ConfigBase | |
2932 | ||
2933 | Create and return a new global config object. This function will | |
2934 | create the "best" implementation of wx.Config available for the | |
2935 | current platform. | |
2936 | """ | |
2937 | return _misc_.ConfigBase_Create(*args, **kwargs) | |
2938 | ||
2939 | def ConfigBase_DontCreateOnDemand(*args, **kwargs): | |
2940 | """ | |
2941 | ConfigBase_DontCreateOnDemand() | |
2942 | ||
2943 | Should Get() try to create a new log object if there isn't a current | |
2944 | one? | |
2945 | """ | |
2946 | return _misc_.ConfigBase_DontCreateOnDemand(*args, **kwargs) | |
2947 | ||
2948 | class Config(ConfigBase): | |
2949 | """ | |
2950 | This ConfigBase-derived class will use the registry on Windows, | |
2951 | and will be a wx.FileConfig on other platforms. | |
2952 | """ | |
2953 | def __repr__(self): | |
2954 | return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2955 | def __init__(self, *args, **kwargs): | |
2956 | """ | |
2957 | __init__(self, String appName=EmptyString, String vendorName=EmptyString, | |
2958 | String localFilename=EmptyString, String globalFilename=EmptyString, | |
2959 | long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config | |
2960 | """ | |
2961 | newobj = _misc_.new_Config(*args, **kwargs) | |
2962 | self.this = newobj.this | |
2963 | self.thisown = 1 | |
2964 | del newobj.thisown | |
2965 | def __del__(self, destroy=_misc_.delete_Config): | |
2966 | """__del__(self)""" | |
2967 | try: | |
2968 | if self.thisown: destroy(self) | |
2969 | except: pass | |
2970 | ||
2971 | ||
2972 | class ConfigPtr(Config): | |
2973 | def __init__(self, this): | |
2974 | self.this = this | |
2975 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2976 | self.__class__ = Config | |
2977 | _misc_.Config_swigregister(ConfigPtr) | |
2978 | ||
2979 | class FileConfig(ConfigBase): | |
2980 | """This config class will use a file for storage on all platforms.""" | |
2981 | def __repr__(self): | |
2982 | return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2983 | def __init__(self, *args, **kwargs): | |
2984 | """ | |
2985 | __init__(self, String appName=EmptyString, String vendorName=EmptyString, | |
2986 | String localFilename=EmptyString, String globalFilename=EmptyString, | |
2987 | long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig | |
2988 | """ | |
2989 | newobj = _misc_.new_FileConfig(*args, **kwargs) | |
2990 | self.this = newobj.this | |
2991 | self.thisown = 1 | |
2992 | del newobj.thisown | |
2993 | def __del__(self, destroy=_misc_.delete_FileConfig): | |
2994 | """__del__(self)""" | |
2995 | try: | |
2996 | if self.thisown: destroy(self) | |
2997 | except: pass | |
2998 | ||
2999 | ||
3000 | class FileConfigPtr(FileConfig): | |
3001 | def __init__(self, this): | |
3002 | self.this = this | |
3003 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3004 | self.__class__ = FileConfig | |
3005 | _misc_.FileConfig_swigregister(FileConfigPtr) | |
3006 | ||
3007 | class ConfigPathChanger(object): | |
3008 | """ | |
3009 | A handy little class which changes current path to the path of given | |
3010 | entry and restores it in the destructoir: so if you declare a local | |
3011 | variable of this type, you work in the entry directory and the path is | |
3012 | automatically restored when the function returns. | |
3013 | """ | |
3014 | def __repr__(self): | |
3015 | return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3016 | def __init__(self, *args, **kwargs): | |
3017 | """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger""" | |
3018 | newobj = _misc_.new_ConfigPathChanger(*args, **kwargs) | |
3019 | self.this = newobj.this | |
3020 | self.thisown = 1 | |
3021 | del newobj.thisown | |
3022 | def __del__(self, destroy=_misc_.delete_ConfigPathChanger): | |
3023 | """__del__(self)""" | |
3024 | try: | |
3025 | if self.thisown: destroy(self) | |
3026 | except: pass | |
3027 | ||
3028 | def Name(*args, **kwargs): | |
3029 | """ | |
3030 | Name(self) -> String | |
3031 | ||
3032 | Get the key name | |
3033 | """ | |
3034 | return _misc_.ConfigPathChanger_Name(*args, **kwargs) | |
3035 | ||
3036 | ||
3037 | class ConfigPathChangerPtr(ConfigPathChanger): | |
3038 | def __init__(self, this): | |
3039 | self.this = this | |
3040 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3041 | self.__class__ = ConfigPathChanger | |
3042 | _misc_.ConfigPathChanger_swigregister(ConfigPathChangerPtr) | |
3043 | ||
3044 | ||
3045 | def ExpandEnvVars(*args, **kwargs): | |
3046 | """ | |
3047 | ExpandEnvVars(String sz) -> String | |
3048 | ||
3049 | Replace environment variables ($SOMETHING) with their values. The | |
3050 | format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric | |
3051 | characters and '_' only. '$' must be escaped ('\$') in order to be | |
3052 | taken literally. | |
3053 | """ | |
3054 | return _misc_.ExpandEnvVars(*args, **kwargs) | |
3055 | #--------------------------------------------------------------------------- | |
3056 | ||
3057 | class DateTime(object): | |
3058 | def __repr__(self): | |
3059 | return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3060 | Local = _misc_.DateTime_Local | |
3061 | GMT_12 = _misc_.DateTime_GMT_12 | |
3062 | GMT_11 = _misc_.DateTime_GMT_11 | |
3063 | GMT_10 = _misc_.DateTime_GMT_10 | |
3064 | GMT_9 = _misc_.DateTime_GMT_9 | |
3065 | GMT_8 = _misc_.DateTime_GMT_8 | |
3066 | GMT_7 = _misc_.DateTime_GMT_7 | |
3067 | GMT_6 = _misc_.DateTime_GMT_6 | |
3068 | GMT_5 = _misc_.DateTime_GMT_5 | |
3069 | GMT_4 = _misc_.DateTime_GMT_4 | |
3070 | GMT_3 = _misc_.DateTime_GMT_3 | |
3071 | GMT_2 = _misc_.DateTime_GMT_2 | |
3072 | GMT_1 = _misc_.DateTime_GMT_1 | |
3073 | GMT0 = _misc_.DateTime_GMT0 | |
3074 | GMT1 = _misc_.DateTime_GMT1 | |
3075 | GMT2 = _misc_.DateTime_GMT2 | |
3076 | GMT3 = _misc_.DateTime_GMT3 | |
3077 | GMT4 = _misc_.DateTime_GMT4 | |
3078 | GMT5 = _misc_.DateTime_GMT5 | |
3079 | GMT6 = _misc_.DateTime_GMT6 | |
3080 | GMT7 = _misc_.DateTime_GMT7 | |
3081 | GMT8 = _misc_.DateTime_GMT8 | |
3082 | GMT9 = _misc_.DateTime_GMT9 | |
3083 | GMT10 = _misc_.DateTime_GMT10 | |
3084 | GMT11 = _misc_.DateTime_GMT11 | |
3085 | GMT12 = _misc_.DateTime_GMT12 | |
3086 | WET = _misc_.DateTime_WET | |
3087 | WEST = _misc_.DateTime_WEST | |
3088 | CET = _misc_.DateTime_CET | |
3089 | CEST = _misc_.DateTime_CEST | |
3090 | EET = _misc_.DateTime_EET | |
3091 | EEST = _misc_.DateTime_EEST | |
3092 | MSK = _misc_.DateTime_MSK | |
3093 | MSD = _misc_.DateTime_MSD | |
3094 | AST = _misc_.DateTime_AST | |
3095 | ADT = _misc_.DateTime_ADT | |
3096 | EST = _misc_.DateTime_EST | |
3097 | EDT = _misc_.DateTime_EDT | |
3098 | CST = _misc_.DateTime_CST | |
3099 | CDT = _misc_.DateTime_CDT | |
3100 | MST = _misc_.DateTime_MST | |
3101 | MDT = _misc_.DateTime_MDT | |
3102 | PST = _misc_.DateTime_PST | |
3103 | PDT = _misc_.DateTime_PDT | |
3104 | HST = _misc_.DateTime_HST | |
3105 | AKST = _misc_.DateTime_AKST | |
3106 | AKDT = _misc_.DateTime_AKDT | |
3107 | A_WST = _misc_.DateTime_A_WST | |
3108 | A_CST = _misc_.DateTime_A_CST | |
3109 | A_EST = _misc_.DateTime_A_EST | |
3110 | A_ESST = _misc_.DateTime_A_ESST | |
3111 | UTC = _misc_.DateTime_UTC | |
3112 | Gregorian = _misc_.DateTime_Gregorian | |
3113 | Julian = _misc_.DateTime_Julian | |
3114 | Gr_Unknown = _misc_.DateTime_Gr_Unknown | |
3115 | Gr_Standard = _misc_.DateTime_Gr_Standard | |
3116 | Gr_Alaska = _misc_.DateTime_Gr_Alaska | |
3117 | Gr_Albania = _misc_.DateTime_Gr_Albania | |
3118 | Gr_Austria = _misc_.DateTime_Gr_Austria | |
3119 | Gr_Austria_Brixen = _misc_.DateTime_Gr_Austria_Brixen | |
3120 | Gr_Austria_Salzburg = _misc_.DateTime_Gr_Austria_Salzburg | |
3121 | Gr_Austria_Tyrol = _misc_.DateTime_Gr_Austria_Tyrol | |
3122 | Gr_Austria_Carinthia = _misc_.DateTime_Gr_Austria_Carinthia | |
3123 | Gr_Austria_Styria = _misc_.DateTime_Gr_Austria_Styria | |
3124 | Gr_Belgium = _misc_.DateTime_Gr_Belgium | |
3125 | Gr_Bulgaria = _misc_.DateTime_Gr_Bulgaria | |
3126 | Gr_Bulgaria_1 = _misc_.DateTime_Gr_Bulgaria_1 | |
3127 | Gr_Bulgaria_2 = _misc_.DateTime_Gr_Bulgaria_2 | |
3128 | Gr_Bulgaria_3 = _misc_.DateTime_Gr_Bulgaria_3 | |
3129 | Gr_Canada = _misc_.DateTime_Gr_Canada | |
3130 | Gr_China = _misc_.DateTime_Gr_China | |
3131 | Gr_China_1 = _misc_.DateTime_Gr_China_1 | |
3132 | Gr_China_2 = _misc_.DateTime_Gr_China_2 | |
3133 | Gr_Czechoslovakia = _misc_.DateTime_Gr_Czechoslovakia | |
3134 | Gr_Denmark = _misc_.DateTime_Gr_Denmark | |
3135 | Gr_Egypt = _misc_.DateTime_Gr_Egypt | |
3136 | Gr_Estonia = _misc_.DateTime_Gr_Estonia | |
3137 | Gr_Finland = _misc_.DateTime_Gr_Finland | |
3138 | Gr_France = _misc_.DateTime_Gr_France | |
3139 | Gr_France_Alsace = _misc_.DateTime_Gr_France_Alsace | |
3140 | Gr_France_Lorraine = _misc_.DateTime_Gr_France_Lorraine | |
3141 | Gr_France_Strasbourg = _misc_.DateTime_Gr_France_Strasbourg | |
3142 | Gr_Germany = _misc_.DateTime_Gr_Germany | |
3143 | Gr_Germany_Catholic = _misc_.DateTime_Gr_Germany_Catholic | |
3144 | Gr_Germany_Prussia = _misc_.DateTime_Gr_Germany_Prussia | |
3145 | Gr_Germany_Protestant = _misc_.DateTime_Gr_Germany_Protestant | |
3146 | Gr_GreatBritain = _misc_.DateTime_Gr_GreatBritain | |
3147 | Gr_Greece = _misc_.DateTime_Gr_Greece | |
3148 | Gr_Hungary = _misc_.DateTime_Gr_Hungary | |
3149 | Gr_Ireland = _misc_.DateTime_Gr_Ireland | |
3150 | Gr_Italy = _misc_.DateTime_Gr_Italy | |
3151 | Gr_Japan = _misc_.DateTime_Gr_Japan | |
3152 | Gr_Japan_1 = _misc_.DateTime_Gr_Japan_1 | |
3153 | Gr_Japan_2 = _misc_.DateTime_Gr_Japan_2 | |
3154 | Gr_Japan_3 = _misc_.DateTime_Gr_Japan_3 | |
3155 | Gr_Latvia = _misc_.DateTime_Gr_Latvia | |
3156 | Gr_Lithuania = _misc_.DateTime_Gr_Lithuania | |
3157 | Gr_Luxemburg = _misc_.DateTime_Gr_Luxemburg | |
3158 | Gr_Netherlands = _misc_.DateTime_Gr_Netherlands | |
3159 | Gr_Netherlands_Groningen = _misc_.DateTime_Gr_Netherlands_Groningen | |
3160 | Gr_Netherlands_Gelderland = _misc_.DateTime_Gr_Netherlands_Gelderland | |
3161 | Gr_Netherlands_Utrecht = _misc_.DateTime_Gr_Netherlands_Utrecht | |
3162 | Gr_Netherlands_Friesland = _misc_.DateTime_Gr_Netherlands_Friesland | |
3163 | Gr_Norway = _misc_.DateTime_Gr_Norway | |
3164 | Gr_Poland = _misc_.DateTime_Gr_Poland | |
3165 | Gr_Portugal = _misc_.DateTime_Gr_Portugal | |
3166 | Gr_Romania = _misc_.DateTime_Gr_Romania | |
3167 | Gr_Russia = _misc_.DateTime_Gr_Russia | |
3168 | Gr_Scotland = _misc_.DateTime_Gr_Scotland | |
3169 | Gr_Spain = _misc_.DateTime_Gr_Spain | |
3170 | Gr_Sweden = _misc_.DateTime_Gr_Sweden | |
3171 | Gr_Switzerland = _misc_.DateTime_Gr_Switzerland | |
3172 | Gr_Switzerland_Catholic = _misc_.DateTime_Gr_Switzerland_Catholic | |
3173 | Gr_Switzerland_Protestant = _misc_.DateTime_Gr_Switzerland_Protestant | |
3174 | Gr_Turkey = _misc_.DateTime_Gr_Turkey | |
3175 | Gr_USA = _misc_.DateTime_Gr_USA | |
3176 | Gr_Wales = _misc_.DateTime_Gr_Wales | |
3177 | Gr_Yugoslavia = _misc_.DateTime_Gr_Yugoslavia | |
3178 | Country_Unknown = _misc_.DateTime_Country_Unknown | |
3179 | Country_Default = _misc_.DateTime_Country_Default | |
3180 | Country_WesternEurope_Start = _misc_.DateTime_Country_WesternEurope_Start | |
3181 | Country_EEC = _misc_.DateTime_Country_EEC | |
3182 | France = _misc_.DateTime_France | |
3183 | Germany = _misc_.DateTime_Germany | |
3184 | UK = _misc_.DateTime_UK | |
3185 | Country_WesternEurope_End = _misc_.DateTime_Country_WesternEurope_End | |
3186 | Russia = _misc_.DateTime_Russia | |
3187 | USA = _misc_.DateTime_USA | |
3188 | Jan = _misc_.DateTime_Jan | |
3189 | Feb = _misc_.DateTime_Feb | |
3190 | Mar = _misc_.DateTime_Mar | |
3191 | Apr = _misc_.DateTime_Apr | |
3192 | May = _misc_.DateTime_May | |
3193 | Jun = _misc_.DateTime_Jun | |
3194 | Jul = _misc_.DateTime_Jul | |
3195 | Aug = _misc_.DateTime_Aug | |
3196 | Sep = _misc_.DateTime_Sep | |
3197 | Oct = _misc_.DateTime_Oct | |
3198 | Nov = _misc_.DateTime_Nov | |
3199 | Dec = _misc_.DateTime_Dec | |
3200 | Inv_Month = _misc_.DateTime_Inv_Month | |
3201 | Sun = _misc_.DateTime_Sun | |
3202 | Mon = _misc_.DateTime_Mon | |
3203 | Tue = _misc_.DateTime_Tue | |
3204 | Wed = _misc_.DateTime_Wed | |
3205 | Thu = _misc_.DateTime_Thu | |
3206 | Fri = _misc_.DateTime_Fri | |
3207 | Sat = _misc_.DateTime_Sat | |
3208 | Inv_WeekDay = _misc_.DateTime_Inv_WeekDay | |
3209 | Inv_Year = _misc_.DateTime_Inv_Year | |
3210 | Name_Full = _misc_.DateTime_Name_Full | |
3211 | Name_Abbr = _misc_.DateTime_Name_Abbr | |
3212 | Default_First = _misc_.DateTime_Default_First | |
3213 | Monday_First = _misc_.DateTime_Monday_First | |
3214 | Sunday_First = _misc_.DateTime_Sunday_First | |
3215 | def SetCountry(*args, **kwargs): | |
3216 | """SetCountry(int country)""" | |
3217 | return _misc_.DateTime_SetCountry(*args, **kwargs) | |
3218 | ||
3219 | SetCountry = staticmethod(SetCountry) | |
3220 | def GetCountry(*args, **kwargs): | |
3221 | """GetCountry() -> int""" | |
3222 | return _misc_.DateTime_GetCountry(*args, **kwargs) | |
3223 | ||
3224 | GetCountry = staticmethod(GetCountry) | |
3225 | def IsWestEuropeanCountry(*args, **kwargs): | |
3226 | """IsWestEuropeanCountry(int country=Country_Default) -> bool""" | |
3227 | return _misc_.DateTime_IsWestEuropeanCountry(*args, **kwargs) | |
3228 | ||
3229 | IsWestEuropeanCountry = staticmethod(IsWestEuropeanCountry) | |
3230 | def GetCurrentYear(*args, **kwargs): | |
3231 | """GetCurrentYear(int cal=Gregorian) -> int""" | |
3232 | return _misc_.DateTime_GetCurrentYear(*args, **kwargs) | |
3233 | ||
3234 | GetCurrentYear = staticmethod(GetCurrentYear) | |
3235 | def ConvertYearToBC(*args, **kwargs): | |
3236 | """ConvertYearToBC(int year) -> int""" | |
3237 | return _misc_.DateTime_ConvertYearToBC(*args, **kwargs) | |
3238 | ||
3239 | ConvertYearToBC = staticmethod(ConvertYearToBC) | |
3240 | def GetCurrentMonth(*args, **kwargs): | |
3241 | """GetCurrentMonth(int cal=Gregorian) -> int""" | |
3242 | return _misc_.DateTime_GetCurrentMonth(*args, **kwargs) | |
3243 | ||
3244 | GetCurrentMonth = staticmethod(GetCurrentMonth) | |
3245 | def IsLeapYear(*args, **kwargs): | |
3246 | """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool""" | |
3247 | return _misc_.DateTime_IsLeapYear(*args, **kwargs) | |
3248 | ||
3249 | IsLeapYear = staticmethod(IsLeapYear) | |
3250 | def GetCentury(*args, **kwargs): | |
3251 | """GetCentury(int year=Inv_Year) -> int""" | |
3252 | return _misc_.DateTime_GetCentury(*args, **kwargs) | |
3253 | ||
3254 | GetCentury = staticmethod(GetCentury) | |
3255 | def GetNumberOfDaysinYear(*args, **kwargs): | |
3256 | """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int""" | |
3257 | return _misc_.DateTime_GetNumberOfDaysinYear(*args, **kwargs) | |
3258 | ||
3259 | GetNumberOfDaysinYear = staticmethod(GetNumberOfDaysinYear) | |
3260 | def GetNumberOfDaysInMonth(*args, **kwargs): | |
3261 | """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int""" | |
3262 | return _misc_.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) | |
3263 | ||
3264 | GetNumberOfDaysInMonth = staticmethod(GetNumberOfDaysInMonth) | |
3265 | def GetMonthName(*args, **kwargs): | |
3266 | """GetMonthName(int month, int flags=Name_Full) -> String""" | |
3267 | return _misc_.DateTime_GetMonthName(*args, **kwargs) | |
3268 | ||
3269 | GetMonthName = staticmethod(GetMonthName) | |
3270 | def GetWeekDayName(*args, **kwargs): | |
3271 | """GetWeekDayName(int weekday, int flags=Name_Full) -> String""" | |
3272 | return _misc_.DateTime_GetWeekDayName(*args, **kwargs) | |
3273 | ||
3274 | GetWeekDayName = staticmethod(GetWeekDayName) | |
3275 | def GetAmPmStrings(*args, **kwargs): | |
3276 | """ | |
3277 | GetAmPmStrings() -> (am, pm) | |
3278 | ||
3279 | Get the AM and PM strings in the current locale (may be empty) | |
3280 | """ | |
3281 | return _misc_.DateTime_GetAmPmStrings(*args, **kwargs) | |
3282 | ||
3283 | GetAmPmStrings = staticmethod(GetAmPmStrings) | |
3284 | def IsDSTApplicable(*args, **kwargs): | |
3285 | """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool""" | |
3286 | return _misc_.DateTime_IsDSTApplicable(*args, **kwargs) | |
3287 | ||
3288 | IsDSTApplicable = staticmethod(IsDSTApplicable) | |
3289 | def GetBeginDST(*args, **kwargs): | |
3290 | """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" | |
3291 | return _misc_.DateTime_GetBeginDST(*args, **kwargs) | |
3292 | ||
3293 | GetBeginDST = staticmethod(GetBeginDST) | |
3294 | def GetEndDST(*args, **kwargs): | |
3295 | """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" | |
3296 | return _misc_.DateTime_GetEndDST(*args, **kwargs) | |
3297 | ||
3298 | GetEndDST = staticmethod(GetEndDST) | |
3299 | def Now(*args, **kwargs): | |
3300 | """Now() -> DateTime""" | |
3301 | return _misc_.DateTime_Now(*args, **kwargs) | |
3302 | ||
3303 | Now = staticmethod(Now) | |
3304 | def UNow(*args, **kwargs): | |
3305 | """UNow() -> DateTime""" | |
3306 | return _misc_.DateTime_UNow(*args, **kwargs) | |
3307 | ||
3308 | UNow = staticmethod(UNow) | |
3309 | def Today(*args, **kwargs): | |
3310 | """Today() -> DateTime""" | |
3311 | return _misc_.DateTime_Today(*args, **kwargs) | |
3312 | ||
3313 | Today = staticmethod(Today) | |
3314 | def __init__(self, *args, **kwargs): | |
3315 | """__init__(self) -> DateTime""" | |
3316 | newobj = _misc_.new_DateTime(*args, **kwargs) | |
3317 | self.this = newobj.this | |
3318 | self.thisown = 1 | |
3319 | del newobj.thisown | |
3320 | def __del__(self, destroy=_misc_.delete_DateTime): | |
3321 | """__del__(self)""" | |
3322 | try: | |
3323 | if self.thisown: destroy(self) | |
3324 | except: pass | |
3325 | ||
3326 | def SetToCurrent(*args, **kwargs): | |
3327 | """SetToCurrent(self) -> DateTime""" | |
3328 | return _misc_.DateTime_SetToCurrent(*args, **kwargs) | |
3329 | ||
3330 | def SetTimeT(*args, **kwargs): | |
3331 | """SetTimeT(self, time_t timet) -> DateTime""" | |
3332 | return _misc_.DateTime_SetTimeT(*args, **kwargs) | |
3333 | ||
3334 | def SetJDN(*args, **kwargs): | |
3335 | """SetJDN(self, double jdn) -> DateTime""" | |
3336 | return _misc_.DateTime_SetJDN(*args, **kwargs) | |
3337 | ||
3338 | def SetHMS(*args, **kwargs): | |
3339 | """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime""" | |
3340 | return _misc_.DateTime_SetHMS(*args, **kwargs) | |
3341 | ||
3342 | def Set(*args, **kwargs): | |
3343 | """ | |
3344 | Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0, | |
3345 | int minute=0, int second=0, int millisec=0) -> DateTime | |
3346 | """ | |
3347 | return _misc_.DateTime_Set(*args, **kwargs) | |
3348 | ||
3349 | def ResetTime(*args, **kwargs): | |
3350 | """ResetTime(self) -> DateTime""" | |
3351 | return _misc_.DateTime_ResetTime(*args, **kwargs) | |
3352 | ||
3353 | def SetYear(*args, **kwargs): | |
3354 | """SetYear(self, int year) -> DateTime""" | |
3355 | return _misc_.DateTime_SetYear(*args, **kwargs) | |
3356 | ||
3357 | def SetMonth(*args, **kwargs): | |
3358 | """SetMonth(self, int month) -> DateTime""" | |
3359 | return _misc_.DateTime_SetMonth(*args, **kwargs) | |
3360 | ||
3361 | def SetDay(*args, **kwargs): | |
3362 | """SetDay(self, int day) -> DateTime""" | |
3363 | return _misc_.DateTime_SetDay(*args, **kwargs) | |
3364 | ||
3365 | def SetHour(*args, **kwargs): | |
3366 | """SetHour(self, int hour) -> DateTime""" | |
3367 | return _misc_.DateTime_SetHour(*args, **kwargs) | |
3368 | ||
3369 | def SetMinute(*args, **kwargs): | |
3370 | """SetMinute(self, int minute) -> DateTime""" | |
3371 | return _misc_.DateTime_SetMinute(*args, **kwargs) | |
3372 | ||
3373 | def SetSecond(*args, **kwargs): | |
3374 | """SetSecond(self, int second) -> DateTime""" | |
3375 | return _misc_.DateTime_SetSecond(*args, **kwargs) | |
3376 | ||
3377 | def SetMillisecond(*args, **kwargs): | |
3378 | """SetMillisecond(self, int millisecond) -> DateTime""" | |
3379 | return _misc_.DateTime_SetMillisecond(*args, **kwargs) | |
3380 | ||
3381 | def SetToWeekDayInSameWeek(*args, **kwargs): | |
3382 | """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime""" | |
3383 | return _misc_.DateTime_SetToWeekDayInSameWeek(*args, **kwargs) | |
3384 | ||
3385 | def GetWeekDayInSameWeek(*args, **kwargs): | |
3386 | """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime""" | |
3387 | return _misc_.DateTime_GetWeekDayInSameWeek(*args, **kwargs) | |
3388 | ||
3389 | def SetToNextWeekDay(*args, **kwargs): | |
3390 | """SetToNextWeekDay(self, int weekday) -> DateTime""" | |
3391 | return _misc_.DateTime_SetToNextWeekDay(*args, **kwargs) | |
3392 | ||
3393 | def GetNextWeekDay(*args, **kwargs): | |
3394 | """GetNextWeekDay(self, int weekday) -> DateTime""" | |
3395 | return _misc_.DateTime_GetNextWeekDay(*args, **kwargs) | |
3396 | ||
3397 | def SetToPrevWeekDay(*args, **kwargs): | |
3398 | """SetToPrevWeekDay(self, int weekday) -> DateTime""" | |
3399 | return _misc_.DateTime_SetToPrevWeekDay(*args, **kwargs) | |
3400 | ||
3401 | def GetPrevWeekDay(*args, **kwargs): | |
3402 | """GetPrevWeekDay(self, int weekday) -> DateTime""" | |
3403 | return _misc_.DateTime_GetPrevWeekDay(*args, **kwargs) | |
3404 | ||
3405 | def SetToWeekDay(*args, **kwargs): | |
3406 | """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool""" | |
3407 | return _misc_.DateTime_SetToWeekDay(*args, **kwargs) | |
3408 | ||
3409 | def SetToLastWeekDay(*args, **kwargs): | |
3410 | """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool""" | |
3411 | return _misc_.DateTime_SetToLastWeekDay(*args, **kwargs) | |
3412 | ||
3413 | def GetLastWeekDay(*args, **kwargs): | |
3414 | """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime""" | |
3415 | return _misc_.DateTime_GetLastWeekDay(*args, **kwargs) | |
3416 | ||
3417 | def SetToTheWeek(*args, **kwargs): | |
3418 | """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool""" | |
3419 | return _misc_.DateTime_SetToTheWeek(*args, **kwargs) | |
3420 | ||
3421 | def GetWeek(*args, **kwargs): | |
3422 | """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime""" | |
3423 | return _misc_.DateTime_GetWeek(*args, **kwargs) | |
3424 | ||
3425 | def SetToLastMonthDay(*args, **kwargs): | |
3426 | """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime""" | |
3427 | return _misc_.DateTime_SetToLastMonthDay(*args, **kwargs) | |
3428 | ||
3429 | def GetLastMonthDay(*args, **kwargs): | |
3430 | """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime""" | |
3431 | return _misc_.DateTime_GetLastMonthDay(*args, **kwargs) | |
3432 | ||
3433 | def SetToYearDay(*args, **kwargs): | |
3434 | """SetToYearDay(self, int yday) -> DateTime""" | |
3435 | return _misc_.DateTime_SetToYearDay(*args, **kwargs) | |
3436 | ||
3437 | def GetYearDay(*args, **kwargs): | |
3438 | """GetYearDay(self, int yday) -> DateTime""" | |
3439 | return _misc_.DateTime_GetYearDay(*args, **kwargs) | |
3440 | ||
3441 | def GetJulianDayNumber(*args, **kwargs): | |
3442 | """GetJulianDayNumber(self) -> double""" | |
3443 | return _misc_.DateTime_GetJulianDayNumber(*args, **kwargs) | |
3444 | ||
3445 | def GetJDN(*args, **kwargs): | |
3446 | """GetJDN(self) -> double""" | |
3447 | return _misc_.DateTime_GetJDN(*args, **kwargs) | |
3448 | ||
3449 | def GetModifiedJulianDayNumber(*args, **kwargs): | |
3450 | """GetModifiedJulianDayNumber(self) -> double""" | |
3451 | return _misc_.DateTime_GetModifiedJulianDayNumber(*args, **kwargs) | |
3452 | ||
3453 | def GetMJD(*args, **kwargs): | |
3454 | """GetMJD(self) -> double""" | |
3455 | return _misc_.DateTime_GetMJD(*args, **kwargs) | |
3456 | ||
3457 | def GetRataDie(*args, **kwargs): | |
3458 | """GetRataDie(self) -> double""" | |
3459 | return _misc_.DateTime_GetRataDie(*args, **kwargs) | |
3460 | ||
3461 | def ToTimezone(*args, **kwargs): | |
3462 | """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" | |
3463 | return _misc_.DateTime_ToTimezone(*args, **kwargs) | |
3464 | ||
3465 | def MakeTimezone(*args, **kwargs): | |
3466 | """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" | |
3467 | return _misc_.DateTime_MakeTimezone(*args, **kwargs) | |
3468 | ||
3469 | def ToGMT(*args, **kwargs): | |
3470 | """ToGMT(self, bool noDST=False) -> DateTime""" | |
3471 | return _misc_.DateTime_ToGMT(*args, **kwargs) | |
3472 | ||
3473 | def MakeGMT(*args, **kwargs): | |
3474 | """MakeGMT(self, bool noDST=False) -> DateTime""" | |
3475 | return _misc_.DateTime_MakeGMT(*args, **kwargs) | |
3476 | ||
3477 | def IsDST(*args, **kwargs): | |
3478 | """IsDST(self, int country=Country_Default) -> int""" | |
3479 | return _misc_.DateTime_IsDST(*args, **kwargs) | |
3480 | ||
3481 | def IsValid(*args, **kwargs): | |
3482 | """IsValid(self) -> bool""" | |
3483 | return _misc_.DateTime_IsValid(*args, **kwargs) | |
3484 | ||
3485 | Ok = IsValid | |
3486 | def __nonzero__(self): return self.Ok() | |
3487 | def GetTicks(*args, **kwargs): | |
3488 | """GetTicks(self) -> time_t""" | |
3489 | return _misc_.DateTime_GetTicks(*args, **kwargs) | |
3490 | ||
3491 | def GetYear(*args, **kwargs): | |
3492 | """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3493 | return _misc_.DateTime_GetYear(*args, **kwargs) | |
3494 | ||
3495 | def GetMonth(*args, **kwargs): | |
3496 | """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3497 | return _misc_.DateTime_GetMonth(*args, **kwargs) | |
3498 | ||
3499 | def GetDay(*args, **kwargs): | |
3500 | """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3501 | return _misc_.DateTime_GetDay(*args, **kwargs) | |
3502 | ||
3503 | def GetWeekDay(*args, **kwargs): | |
3504 | """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3505 | return _misc_.DateTime_GetWeekDay(*args, **kwargs) | |
3506 | ||
3507 | def GetHour(*args, **kwargs): | |
3508 | """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3509 | return _misc_.DateTime_GetHour(*args, **kwargs) | |
3510 | ||
3511 | def GetMinute(*args, **kwargs): | |
3512 | """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3513 | return _misc_.DateTime_GetMinute(*args, **kwargs) | |
3514 | ||
3515 | def GetSecond(*args, **kwargs): | |
3516 | """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3517 | return _misc_.DateTime_GetSecond(*args, **kwargs) | |
3518 | ||
3519 | def GetMillisecond(*args, **kwargs): | |
3520 | """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3521 | return _misc_.DateTime_GetMillisecond(*args, **kwargs) | |
3522 | ||
3523 | def GetDayOfYear(*args, **kwargs): | |
3524 | """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3525 | return _misc_.DateTime_GetDayOfYear(*args, **kwargs) | |
3526 | ||
3527 | def GetWeekOfYear(*args, **kwargs): | |
3528 | """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3529 | return _misc_.DateTime_GetWeekOfYear(*args, **kwargs) | |
3530 | ||
3531 | def GetWeekOfMonth(*args, **kwargs): | |
3532 | """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3533 | return _misc_.DateTime_GetWeekOfMonth(*args, **kwargs) | |
3534 | ||
3535 | def IsWorkDay(*args, **kwargs): | |
3536 | """IsWorkDay(self, int country=Country_Default) -> bool""" | |
3537 | return _misc_.DateTime_IsWorkDay(*args, **kwargs) | |
3538 | ||
3539 | def IsEqualTo(*args, **kwargs): | |
3540 | """IsEqualTo(self, DateTime datetime) -> bool""" | |
3541 | return _misc_.DateTime_IsEqualTo(*args, **kwargs) | |
3542 | ||
3543 | def IsEarlierThan(*args, **kwargs): | |
3544 | """IsEarlierThan(self, DateTime datetime) -> bool""" | |
3545 | return _misc_.DateTime_IsEarlierThan(*args, **kwargs) | |
3546 | ||
3547 | def IsLaterThan(*args, **kwargs): | |
3548 | """IsLaterThan(self, DateTime datetime) -> bool""" | |
3549 | return _misc_.DateTime_IsLaterThan(*args, **kwargs) | |
3550 | ||
3551 | def IsStrictlyBetween(*args, **kwargs): | |
3552 | """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool""" | |
3553 | return _misc_.DateTime_IsStrictlyBetween(*args, **kwargs) | |
3554 | ||
3555 | def IsBetween(*args, **kwargs): | |
3556 | """IsBetween(self, DateTime t1, DateTime t2) -> bool""" | |
3557 | return _misc_.DateTime_IsBetween(*args, **kwargs) | |
3558 | ||
3559 | def IsSameDate(*args, **kwargs): | |
3560 | """IsSameDate(self, DateTime dt) -> bool""" | |
3561 | return _misc_.DateTime_IsSameDate(*args, **kwargs) | |
3562 | ||
3563 | def IsSameTime(*args, **kwargs): | |
3564 | """IsSameTime(self, DateTime dt) -> bool""" | |
3565 | return _misc_.DateTime_IsSameTime(*args, **kwargs) | |
3566 | ||
3567 | def IsEqualUpTo(*args, **kwargs): | |
3568 | """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool""" | |
3569 | return _misc_.DateTime_IsEqualUpTo(*args, **kwargs) | |
3570 | ||
3571 | def AddTS(*args, **kwargs): | |
3572 | """AddTS(self, TimeSpan diff) -> DateTime""" | |
3573 | return _misc_.DateTime_AddTS(*args, **kwargs) | |
3574 | ||
3575 | def AddDS(*args, **kwargs): | |
3576 | """AddDS(self, DateSpan diff) -> DateTime""" | |
3577 | return _misc_.DateTime_AddDS(*args, **kwargs) | |
3578 | ||
3579 | def SubtractTS(*args, **kwargs): | |
3580 | """SubtractTS(self, TimeSpan diff) -> DateTime""" | |
3581 | return _misc_.DateTime_SubtractTS(*args, **kwargs) | |
3582 | ||
3583 | def SubtractDS(*args, **kwargs): | |
3584 | """SubtractDS(self, DateSpan diff) -> DateTime""" | |
3585 | return _misc_.DateTime_SubtractDS(*args, **kwargs) | |
3586 | ||
3587 | def Subtract(*args, **kwargs): | |
3588 | """Subtract(self, DateTime dt) -> TimeSpan""" | |
3589 | return _misc_.DateTime_Subtract(*args, **kwargs) | |
3590 | ||
3591 | def __iadd__(*args): | |
3592 | """ | |
3593 | __iadd__(self, TimeSpan diff) -> DateTime | |
3594 | __iadd__(self, DateSpan diff) -> DateTime | |
3595 | """ | |
3596 | return _misc_.DateTime___iadd__(*args) | |
3597 | ||
3598 | def __isub__(*args): | |
3599 | """ | |
3600 | __isub__(self, TimeSpan diff) -> DateTime | |
3601 | __isub__(self, DateSpan diff) -> DateTime | |
3602 | """ | |
3603 | return _misc_.DateTime___isub__(*args) | |
3604 | ||
3605 | def __add__(*args): | |
3606 | """ | |
3607 | __add__(self, TimeSpan other) -> DateTime | |
3608 | __add__(self, DateSpan other) -> DateTime | |
3609 | """ | |
3610 | return _misc_.DateTime___add__(*args) | |
3611 | ||
3612 | def __sub__(*args): | |
3613 | """ | |
3614 | __sub__(self, DateTime other) -> TimeSpan | |
3615 | __sub__(self, TimeSpan other) -> DateTime | |
3616 | __sub__(self, DateSpan other) -> DateTime | |
3617 | """ | |
3618 | return _misc_.DateTime___sub__(*args) | |
3619 | ||
3620 | def __lt__(*args): | |
3621 | """__lt__(self, DateTime other) -> bool""" | |
3622 | return _misc_.DateTime___lt__(*args) | |
3623 | ||
3624 | def __le__(*args): | |
3625 | """__le__(self, DateTime other) -> bool""" | |
3626 | return _misc_.DateTime___le__(*args) | |
3627 | ||
3628 | def __gt__(*args): | |
3629 | """__gt__(self, DateTime other) -> bool""" | |
3630 | return _misc_.DateTime___gt__(*args) | |
3631 | ||
3632 | def __ge__(*args): | |
3633 | """__ge__(self, DateTime other) -> bool""" | |
3634 | return _misc_.DateTime___ge__(*args) | |
3635 | ||
3636 | def __eq__(*args): | |
3637 | """__eq__(self, DateTime other) -> bool""" | |
3638 | return _misc_.DateTime___eq__(*args) | |
3639 | ||
3640 | def __ne__(*args): | |
3641 | """__ne__(self, DateTime other) -> bool""" | |
3642 | return _misc_.DateTime___ne__(*args) | |
3643 | ||
3644 | def ParseRfc822Date(*args, **kwargs): | |
3645 | """ParseRfc822Date(self, String date) -> int""" | |
3646 | return _misc_.DateTime_ParseRfc822Date(*args, **kwargs) | |
3647 | ||
3648 | def ParseFormat(*args, **kwargs): | |
3649 | """ParseFormat(self, String date, String format=DateFormatStr, DateTime dateDef=DefaultDateTime) -> int""" | |
3650 | return _misc_.DateTime_ParseFormat(*args, **kwargs) | |
3651 | ||
3652 | def ParseDateTime(*args, **kwargs): | |
3653 | """ParseDateTime(self, String datetime) -> int""" | |
3654 | return _misc_.DateTime_ParseDateTime(*args, **kwargs) | |
3655 | ||
3656 | def ParseDate(*args, **kwargs): | |
3657 | """ParseDate(self, String date) -> int""" | |
3658 | return _misc_.DateTime_ParseDate(*args, **kwargs) | |
3659 | ||
3660 | def ParseTime(*args, **kwargs): | |
3661 | """ParseTime(self, String time) -> int""" | |
3662 | return _misc_.DateTime_ParseTime(*args, **kwargs) | |
3663 | ||
3664 | def Format(*args, **kwargs): | |
3665 | """Format(self, String format=DateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> String""" | |
3666 | return _misc_.DateTime_Format(*args, **kwargs) | |
3667 | ||
3668 | def FormatDate(*args, **kwargs): | |
3669 | """FormatDate(self) -> String""" | |
3670 | return _misc_.DateTime_FormatDate(*args, **kwargs) | |
3671 | ||
3672 | def FormatTime(*args, **kwargs): | |
3673 | """FormatTime(self) -> String""" | |
3674 | return _misc_.DateTime_FormatTime(*args, **kwargs) | |
3675 | ||
3676 | def FormatISODate(*args, **kwargs): | |
3677 | """FormatISODate(self) -> String""" | |
3678 | return _misc_.DateTime_FormatISODate(*args, **kwargs) | |
3679 | ||
3680 | def FormatISOTime(*args, **kwargs): | |
3681 | """FormatISOTime(self) -> String""" | |
3682 | return _misc_.DateTime_FormatISOTime(*args, **kwargs) | |
3683 | ||
3684 | def __repr__(self): | |
3685 | if self.IsValid(): | |
3686 | return '<wx.DateTime: \"%s\" at %s>' % ( self.Format(), self.this) | |
3687 | else: | |
3688 | return '<wx.DateTime: \"INVALID\" at %s>' % self.this | |
3689 | def __str__(self): | |
3690 | if self.IsValid(): | |
3691 | return self.Format() | |
3692 | else: | |
3693 | return "INVALID DateTime" | |
3694 | ||
3695 | ||
3696 | class DateTimePtr(DateTime): | |
3697 | def __init__(self, this): | |
3698 | self.this = this | |
3699 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3700 | self.__class__ = DateTime | |
3701 | _misc_.DateTime_swigregister(DateTimePtr) | |
3702 | DateFormatStr = cvar.DateFormatStr | |
3703 | TimeSpanFormatStr = cvar.TimeSpanFormatStr | |
3704 | ||
3705 | def DateTime_SetCountry(*args, **kwargs): | |
3706 | """DateTime_SetCountry(int country)""" | |
3707 | return _misc_.DateTime_SetCountry(*args, **kwargs) | |
3708 | ||
3709 | def DateTime_GetCountry(*args, **kwargs): | |
3710 | """DateTime_GetCountry() -> int""" | |
3711 | return _misc_.DateTime_GetCountry(*args, **kwargs) | |
3712 | ||
3713 | def DateTime_IsWestEuropeanCountry(*args, **kwargs): | |
3714 | """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool""" | |
3715 | return _misc_.DateTime_IsWestEuropeanCountry(*args, **kwargs) | |
3716 | ||
3717 | def DateTime_GetCurrentYear(*args, **kwargs): | |
3718 | """DateTime_GetCurrentYear(int cal=Gregorian) -> int""" | |
3719 | return _misc_.DateTime_GetCurrentYear(*args, **kwargs) | |
3720 | ||
3721 | def DateTime_ConvertYearToBC(*args, **kwargs): | |
3722 | """DateTime_ConvertYearToBC(int year) -> int""" | |
3723 | return _misc_.DateTime_ConvertYearToBC(*args, **kwargs) | |
3724 | ||
3725 | def DateTime_GetCurrentMonth(*args, **kwargs): | |
3726 | """DateTime_GetCurrentMonth(int cal=Gregorian) -> int""" | |
3727 | return _misc_.DateTime_GetCurrentMonth(*args, **kwargs) | |
3728 | ||
3729 | def DateTime_IsLeapYear(*args, **kwargs): | |
3730 | """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool""" | |
3731 | return _misc_.DateTime_IsLeapYear(*args, **kwargs) | |
3732 | ||
3733 | def DateTime_GetCentury(*args, **kwargs): | |
3734 | """DateTime_GetCentury(int year=Inv_Year) -> int""" | |
3735 | return _misc_.DateTime_GetCentury(*args, **kwargs) | |
3736 | ||
3737 | def DateTime_GetNumberOfDaysinYear(*args, **kwargs): | |
3738 | """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int""" | |
3739 | return _misc_.DateTime_GetNumberOfDaysinYear(*args, **kwargs) | |
3740 | ||
3741 | def DateTime_GetNumberOfDaysInMonth(*args, **kwargs): | |
3742 | """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int""" | |
3743 | return _misc_.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) | |
3744 | ||
3745 | def DateTime_GetMonthName(*args, **kwargs): | |
3746 | """DateTime_GetMonthName(int month, int flags=Name_Full) -> String""" | |
3747 | return _misc_.DateTime_GetMonthName(*args, **kwargs) | |
3748 | ||
3749 | def DateTime_GetWeekDayName(*args, **kwargs): | |
3750 | """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String""" | |
3751 | return _misc_.DateTime_GetWeekDayName(*args, **kwargs) | |
3752 | ||
3753 | def DateTime_GetAmPmStrings(*args, **kwargs): | |
3754 | """ | |
3755 | GetAmPmStrings() -> (am, pm) | |
3756 | ||
3757 | Get the AM and PM strings in the current locale (may be empty) | |
3758 | """ | |
3759 | return _misc_.DateTime_GetAmPmStrings(*args, **kwargs) | |
3760 | ||
3761 | def DateTime_IsDSTApplicable(*args, **kwargs): | |
3762 | """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool""" | |
3763 | return _misc_.DateTime_IsDSTApplicable(*args, **kwargs) | |
3764 | ||
3765 | def DateTime_GetBeginDST(*args, **kwargs): | |
3766 | """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" | |
3767 | return _misc_.DateTime_GetBeginDST(*args, **kwargs) | |
3768 | ||
3769 | def DateTime_GetEndDST(*args, **kwargs): | |
3770 | """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" | |
3771 | return _misc_.DateTime_GetEndDST(*args, **kwargs) | |
3772 | ||
3773 | def DateTime_Now(*args, **kwargs): | |
3774 | """DateTime_Now() -> DateTime""" | |
3775 | return _misc_.DateTime_Now(*args, **kwargs) | |
3776 | ||
3777 | def DateTime_UNow(*args, **kwargs): | |
3778 | """DateTime_UNow() -> DateTime""" | |
3779 | return _misc_.DateTime_UNow(*args, **kwargs) | |
3780 | ||
3781 | def DateTime_Today(*args, **kwargs): | |
3782 | """DateTime_Today() -> DateTime""" | |
3783 | return _misc_.DateTime_Today(*args, **kwargs) | |
3784 | ||
3785 | def DateTimeFromTimeT(*args, **kwargs): | |
3786 | """DateTimeFromTimeT(time_t timet) -> DateTime""" | |
3787 | val = _misc_.new_DateTimeFromTimeT(*args, **kwargs) | |
3788 | val.thisown = 1 | |
3789 | return val | |
3790 | ||
3791 | def DateTimeFromJDN(*args, **kwargs): | |
3792 | """DateTimeFromJDN(double jdn) -> DateTime""" | |
3793 | val = _misc_.new_DateTimeFromJDN(*args, **kwargs) | |
3794 | val.thisown = 1 | |
3795 | return val | |
3796 | ||
3797 | def DateTimeFromHMS(*args, **kwargs): | |
3798 | """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime""" | |
3799 | val = _misc_.new_DateTimeFromHMS(*args, **kwargs) | |
3800 | val.thisown = 1 | |
3801 | return val | |
3802 | ||
3803 | def DateTimeFromDMY(*args, **kwargs): | |
3804 | """ | |
3805 | DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0, | |
3806 | int minute=0, int second=0, int millisec=0) -> DateTime | |
3807 | """ | |
3808 | val = _misc_.new_DateTimeFromDMY(*args, **kwargs) | |
3809 | val.thisown = 1 | |
3810 | return val | |
3811 | ||
3812 | class TimeSpan(object): | |
3813 | def __repr__(self): | |
3814 | return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3815 | def Seconds(*args, **kwargs): | |
3816 | """Seconds(long sec) -> TimeSpan""" | |
3817 | return _misc_.TimeSpan_Seconds(*args, **kwargs) | |
3818 | ||
3819 | Seconds = staticmethod(Seconds) | |
3820 | def Second(*args, **kwargs): | |
3821 | """Second() -> TimeSpan""" | |
3822 | return _misc_.TimeSpan_Second(*args, **kwargs) | |
3823 | ||
3824 | Second = staticmethod(Second) | |
3825 | def Minutes(*args, **kwargs): | |
3826 | """Minutes(long min) -> TimeSpan""" | |
3827 | return _misc_.TimeSpan_Minutes(*args, **kwargs) | |
3828 | ||
3829 | Minutes = staticmethod(Minutes) | |
3830 | def Minute(*args, **kwargs): | |
3831 | """Minute() -> TimeSpan""" | |
3832 | return _misc_.TimeSpan_Minute(*args, **kwargs) | |
3833 | ||
3834 | Minute = staticmethod(Minute) | |
3835 | def Hours(*args, **kwargs): | |
3836 | """Hours(long hours) -> TimeSpan""" | |
3837 | return _misc_.TimeSpan_Hours(*args, **kwargs) | |
3838 | ||
3839 | Hours = staticmethod(Hours) | |
3840 | def Hour(*args, **kwargs): | |
3841 | """Hour() -> TimeSpan""" | |
3842 | return _misc_.TimeSpan_Hour(*args, **kwargs) | |
3843 | ||
3844 | Hour = staticmethod(Hour) | |
3845 | def Days(*args, **kwargs): | |
3846 | """Days(long days) -> TimeSpan""" | |
3847 | return _misc_.TimeSpan_Days(*args, **kwargs) | |
3848 | ||
3849 | Days = staticmethod(Days) | |
3850 | def Day(*args, **kwargs): | |
3851 | """Day() -> TimeSpan""" | |
3852 | return _misc_.TimeSpan_Day(*args, **kwargs) | |
3853 | ||
3854 | Day = staticmethod(Day) | |
3855 | def Weeks(*args, **kwargs): | |
3856 | """Weeks(long days) -> TimeSpan""" | |
3857 | return _misc_.TimeSpan_Weeks(*args, **kwargs) | |
3858 | ||
3859 | Weeks = staticmethod(Weeks) | |
3860 | def Week(*args, **kwargs): | |
3861 | """Week() -> TimeSpan""" | |
3862 | return _misc_.TimeSpan_Week(*args, **kwargs) | |
3863 | ||
3864 | Week = staticmethod(Week) | |
3865 | def __init__(self, *args, **kwargs): | |
3866 | """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan""" | |
3867 | newobj = _misc_.new_TimeSpan(*args, **kwargs) | |
3868 | self.this = newobj.this | |
3869 | self.thisown = 1 | |
3870 | del newobj.thisown | |
3871 | def __del__(self, destroy=_misc_.delete_TimeSpan): | |
3872 | """__del__(self)""" | |
3873 | try: | |
3874 | if self.thisown: destroy(self) | |
3875 | except: pass | |
3876 | ||
3877 | def Add(*args, **kwargs): | |
3878 | """Add(self, TimeSpan diff) -> TimeSpan""" | |
3879 | return _misc_.TimeSpan_Add(*args, **kwargs) | |
3880 | ||
3881 | def Subtract(*args, **kwargs): | |
3882 | """Subtract(self, TimeSpan diff) -> TimeSpan""" | |
3883 | return _misc_.TimeSpan_Subtract(*args, **kwargs) | |
3884 | ||
3885 | def Multiply(*args, **kwargs): | |
3886 | """Multiply(self, int n) -> TimeSpan""" | |
3887 | return _misc_.TimeSpan_Multiply(*args, **kwargs) | |
3888 | ||
3889 | def Neg(*args, **kwargs): | |
3890 | """Neg(self) -> TimeSpan""" | |
3891 | return _misc_.TimeSpan_Neg(*args, **kwargs) | |
3892 | ||
3893 | def Abs(*args, **kwargs): | |
3894 | """Abs(self) -> TimeSpan""" | |
3895 | return _misc_.TimeSpan_Abs(*args, **kwargs) | |
3896 | ||
3897 | def __iadd__(*args, **kwargs): | |
3898 | """__iadd__(self, TimeSpan diff) -> TimeSpan""" | |
3899 | return _misc_.TimeSpan___iadd__(*args, **kwargs) | |
3900 | ||
3901 | def __isub__(*args, **kwargs): | |
3902 | """__isub__(self, TimeSpan diff) -> TimeSpan""" | |
3903 | return _misc_.TimeSpan___isub__(*args, **kwargs) | |
3904 | ||
3905 | def __imul__(*args, **kwargs): | |
3906 | """__imul__(self, int n) -> TimeSpan""" | |
3907 | return _misc_.TimeSpan___imul__(*args, **kwargs) | |
3908 | ||
3909 | def __neg__(*args, **kwargs): | |
3910 | """__neg__(self) -> TimeSpan""" | |
3911 | return _misc_.TimeSpan___neg__(*args, **kwargs) | |
3912 | ||
3913 | def __add__(*args, **kwargs): | |
3914 | """__add__(self, TimeSpan other) -> TimeSpan""" | |
3915 | return _misc_.TimeSpan___add__(*args, **kwargs) | |
3916 | ||
3917 | def __sub__(*args, **kwargs): | |
3918 | """__sub__(self, TimeSpan other) -> TimeSpan""" | |
3919 | return _misc_.TimeSpan___sub__(*args, **kwargs) | |
3920 | ||
3921 | def __mul__(*args, **kwargs): | |
3922 | """__mul__(self, int n) -> TimeSpan""" | |
3923 | return _misc_.TimeSpan___mul__(*args, **kwargs) | |
3924 | ||
3925 | def __rmul__(*args, **kwargs): | |
3926 | """__rmul__(self, int n) -> TimeSpan""" | |
3927 | return _misc_.TimeSpan___rmul__(*args, **kwargs) | |
3928 | ||
3929 | def __lt__(*args, **kwargs): | |
3930 | """__lt__(self, TimeSpan other) -> bool""" | |
3931 | return _misc_.TimeSpan___lt__(*args, **kwargs) | |
3932 | ||
3933 | def __le__(*args, **kwargs): | |
3934 | """__le__(self, TimeSpan other) -> bool""" | |
3935 | return _misc_.TimeSpan___le__(*args, **kwargs) | |
3936 | ||
3937 | def __gt__(*args, **kwargs): | |
3938 | """__gt__(self, TimeSpan other) -> bool""" | |
3939 | return _misc_.TimeSpan___gt__(*args, **kwargs) | |
3940 | ||
3941 | def __ge__(*args, **kwargs): | |
3942 | """__ge__(self, TimeSpan other) -> bool""" | |
3943 | return _misc_.TimeSpan___ge__(*args, **kwargs) | |
3944 | ||
3945 | def __eq__(*args, **kwargs): | |
3946 | """__eq__(self, TimeSpan other) -> bool""" | |
3947 | return _misc_.TimeSpan___eq__(*args, **kwargs) | |
3948 | ||
3949 | def __ne__(*args, **kwargs): | |
3950 | """__ne__(self, TimeSpan other) -> bool""" | |
3951 | return _misc_.TimeSpan___ne__(*args, **kwargs) | |
3952 | ||
3953 | def IsNull(*args, **kwargs): | |
3954 | """IsNull(self) -> bool""" | |
3955 | return _misc_.TimeSpan_IsNull(*args, **kwargs) | |
3956 | ||
3957 | def IsPositive(*args, **kwargs): | |
3958 | """IsPositive(self) -> bool""" | |
3959 | return _misc_.TimeSpan_IsPositive(*args, **kwargs) | |
3960 | ||
3961 | def IsNegative(*args, **kwargs): | |
3962 | """IsNegative(self) -> bool""" | |
3963 | return _misc_.TimeSpan_IsNegative(*args, **kwargs) | |
3964 | ||
3965 | def IsEqualTo(*args, **kwargs): | |
3966 | """IsEqualTo(self, TimeSpan ts) -> bool""" | |
3967 | return _misc_.TimeSpan_IsEqualTo(*args, **kwargs) | |
3968 | ||
3969 | def IsLongerThan(*args, **kwargs): | |
3970 | """IsLongerThan(self, TimeSpan ts) -> bool""" | |
3971 | return _misc_.TimeSpan_IsLongerThan(*args, **kwargs) | |
3972 | ||
3973 | def IsShorterThan(*args, **kwargs): | |
3974 | """IsShorterThan(self, TimeSpan t) -> bool""" | |
3975 | return _misc_.TimeSpan_IsShorterThan(*args, **kwargs) | |
3976 | ||
3977 | def GetWeeks(*args, **kwargs): | |
3978 | """GetWeeks(self) -> int""" | |
3979 | return _misc_.TimeSpan_GetWeeks(*args, **kwargs) | |
3980 | ||
3981 | def GetDays(*args, **kwargs): | |
3982 | """GetDays(self) -> int""" | |
3983 | return _misc_.TimeSpan_GetDays(*args, **kwargs) | |
3984 | ||
3985 | def GetHours(*args, **kwargs): | |
3986 | """GetHours(self) -> int""" | |
3987 | return _misc_.TimeSpan_GetHours(*args, **kwargs) | |
3988 | ||
3989 | def GetMinutes(*args, **kwargs): | |
3990 | """GetMinutes(self) -> int""" | |
3991 | return _misc_.TimeSpan_GetMinutes(*args, **kwargs) | |
3992 | ||
3993 | def GetSeconds(*args, **kwargs): | |
3994 | """GetSeconds(self) -> wxLongLong""" | |
3995 | return _misc_.TimeSpan_GetSeconds(*args, **kwargs) | |
3996 | ||
3997 | def GetMilliseconds(*args, **kwargs): | |
3998 | """GetMilliseconds(self) -> wxLongLong""" | |
3999 | return _misc_.TimeSpan_GetMilliseconds(*args, **kwargs) | |
4000 | ||
4001 | def Format(*args, **kwargs): | |
4002 | """Format(self, String format=TimeSpanFormatStr) -> String""" | |
4003 | return _misc_.TimeSpan_Format(*args, **kwargs) | |
4004 | ||
4005 | def __repr__(self): | |
4006 | return '<wx.TimeSpan: \"%s\" at %s>' % ( self.Format(), self.this) | |
4007 | def __str__(self): | |
4008 | return self.Format() | |
4009 | ||
4010 | ||
4011 | class TimeSpanPtr(TimeSpan): | |
4012 | def __init__(self, this): | |
4013 | self.this = this | |
4014 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4015 | self.__class__ = TimeSpan | |
4016 | _misc_.TimeSpan_swigregister(TimeSpanPtr) | |
4017 | ||
4018 | def TimeSpan_Seconds(*args, **kwargs): | |
4019 | """TimeSpan_Seconds(long sec) -> TimeSpan""" | |
4020 | return _misc_.TimeSpan_Seconds(*args, **kwargs) | |
4021 | ||
4022 | def TimeSpan_Second(*args, **kwargs): | |
4023 | """TimeSpan_Second() -> TimeSpan""" | |
4024 | return _misc_.TimeSpan_Second(*args, **kwargs) | |
4025 | ||
4026 | def TimeSpan_Minutes(*args, **kwargs): | |
4027 | """TimeSpan_Minutes(long min) -> TimeSpan""" | |
4028 | return _misc_.TimeSpan_Minutes(*args, **kwargs) | |
4029 | ||
4030 | def TimeSpan_Minute(*args, **kwargs): | |
4031 | """TimeSpan_Minute() -> TimeSpan""" | |
4032 | return _misc_.TimeSpan_Minute(*args, **kwargs) | |
4033 | ||
4034 | def TimeSpan_Hours(*args, **kwargs): | |
4035 | """TimeSpan_Hours(long hours) -> TimeSpan""" | |
4036 | return _misc_.TimeSpan_Hours(*args, **kwargs) | |
4037 | ||
4038 | def TimeSpan_Hour(*args, **kwargs): | |
4039 | """TimeSpan_Hour() -> TimeSpan""" | |
4040 | return _misc_.TimeSpan_Hour(*args, **kwargs) | |
4041 | ||
4042 | def TimeSpan_Days(*args, **kwargs): | |
4043 | """TimeSpan_Days(long days) -> TimeSpan""" | |
4044 | return _misc_.TimeSpan_Days(*args, **kwargs) | |
4045 | ||
4046 | def TimeSpan_Day(*args, **kwargs): | |
4047 | """TimeSpan_Day() -> TimeSpan""" | |
4048 | return _misc_.TimeSpan_Day(*args, **kwargs) | |
4049 | ||
4050 | def TimeSpan_Weeks(*args, **kwargs): | |
4051 | """TimeSpan_Weeks(long days) -> TimeSpan""" | |
4052 | return _misc_.TimeSpan_Weeks(*args, **kwargs) | |
4053 | ||
4054 | def TimeSpan_Week(*args, **kwargs): | |
4055 | """TimeSpan_Week() -> TimeSpan""" | |
4056 | return _misc_.TimeSpan_Week(*args, **kwargs) | |
4057 | ||
4058 | class DateSpan(object): | |
4059 | def __repr__(self): | |
4060 | return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4061 | def __init__(self, *args, **kwargs): | |
4062 | """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan""" | |
4063 | newobj = _misc_.new_DateSpan(*args, **kwargs) | |
4064 | self.this = newobj.this | |
4065 | self.thisown = 1 | |
4066 | del newobj.thisown | |
4067 | def __del__(self, destroy=_misc_.delete_DateSpan): | |
4068 | """__del__(self)""" | |
4069 | try: | |
4070 | if self.thisown: destroy(self) | |
4071 | except: pass | |
4072 | ||
4073 | def Days(*args, **kwargs): | |
4074 | """Days(int days) -> DateSpan""" | |
4075 | return _misc_.DateSpan_Days(*args, **kwargs) | |
4076 | ||
4077 | Days = staticmethod(Days) | |
4078 | def Day(*args, **kwargs): | |
4079 | """Day() -> DateSpan""" | |
4080 | return _misc_.DateSpan_Day(*args, **kwargs) | |
4081 | ||
4082 | Day = staticmethod(Day) | |
4083 | def Weeks(*args, **kwargs): | |
4084 | """Weeks(int weeks) -> DateSpan""" | |
4085 | return _misc_.DateSpan_Weeks(*args, **kwargs) | |
4086 | ||
4087 | Weeks = staticmethod(Weeks) | |
4088 | def Week(*args, **kwargs): | |
4089 | """Week() -> DateSpan""" | |
4090 | return _misc_.DateSpan_Week(*args, **kwargs) | |
4091 | ||
4092 | Week = staticmethod(Week) | |
4093 | def Months(*args, **kwargs): | |
4094 | """Months(int mon) -> DateSpan""" | |
4095 | return _misc_.DateSpan_Months(*args, **kwargs) | |
4096 | ||
4097 | Months = staticmethod(Months) | |
4098 | def Month(*args, **kwargs): | |
4099 | """Month() -> DateSpan""" | |
4100 | return _misc_.DateSpan_Month(*args, **kwargs) | |
4101 | ||
4102 | Month = staticmethod(Month) | |
4103 | def Years(*args, **kwargs): | |
4104 | """Years(int years) -> DateSpan""" | |
4105 | return _misc_.DateSpan_Years(*args, **kwargs) | |
4106 | ||
4107 | Years = staticmethod(Years) | |
4108 | def Year(*args, **kwargs): | |
4109 | """Year() -> DateSpan""" | |
4110 | return _misc_.DateSpan_Year(*args, **kwargs) | |
4111 | ||
4112 | Year = staticmethod(Year) | |
4113 | def SetYears(*args, **kwargs): | |
4114 | """SetYears(self, int n) -> DateSpan""" | |
4115 | return _misc_.DateSpan_SetYears(*args, **kwargs) | |
4116 | ||
4117 | def SetMonths(*args, **kwargs): | |
4118 | """SetMonths(self, int n) -> DateSpan""" | |
4119 | return _misc_.DateSpan_SetMonths(*args, **kwargs) | |
4120 | ||
4121 | def SetWeeks(*args, **kwargs): | |
4122 | """SetWeeks(self, int n) -> DateSpan""" | |
4123 | return _misc_.DateSpan_SetWeeks(*args, **kwargs) | |
4124 | ||
4125 | def SetDays(*args, **kwargs): | |
4126 | """SetDays(self, int n) -> DateSpan""" | |
4127 | return _misc_.DateSpan_SetDays(*args, **kwargs) | |
4128 | ||
4129 | def GetYears(*args, **kwargs): | |
4130 | """GetYears(self) -> int""" | |
4131 | return _misc_.DateSpan_GetYears(*args, **kwargs) | |
4132 | ||
4133 | def GetMonths(*args, **kwargs): | |
4134 | """GetMonths(self) -> int""" | |
4135 | return _misc_.DateSpan_GetMonths(*args, **kwargs) | |
4136 | ||
4137 | def GetWeeks(*args, **kwargs): | |
4138 | """GetWeeks(self) -> int""" | |
4139 | return _misc_.DateSpan_GetWeeks(*args, **kwargs) | |
4140 | ||
4141 | def GetDays(*args, **kwargs): | |
4142 | """GetDays(self) -> int""" | |
4143 | return _misc_.DateSpan_GetDays(*args, **kwargs) | |
4144 | ||
4145 | def GetTotalDays(*args, **kwargs): | |
4146 | """GetTotalDays(self) -> int""" | |
4147 | return _misc_.DateSpan_GetTotalDays(*args, **kwargs) | |
4148 | ||
4149 | def Add(*args, **kwargs): | |
4150 | """Add(self, DateSpan other) -> DateSpan""" | |
4151 | return _misc_.DateSpan_Add(*args, **kwargs) | |
4152 | ||
4153 | def Subtract(*args, **kwargs): | |
4154 | """Subtract(self, DateSpan other) -> DateSpan""" | |
4155 | return _misc_.DateSpan_Subtract(*args, **kwargs) | |
4156 | ||
4157 | def Neg(*args, **kwargs): | |
4158 | """Neg(self) -> DateSpan""" | |
4159 | return _misc_.DateSpan_Neg(*args, **kwargs) | |
4160 | ||
4161 | def Multiply(*args, **kwargs): | |
4162 | """Multiply(self, int factor) -> DateSpan""" | |
4163 | return _misc_.DateSpan_Multiply(*args, **kwargs) | |
4164 | ||
4165 | def __iadd__(*args, **kwargs): | |
4166 | """__iadd__(self, DateSpan other) -> DateSpan""" | |
4167 | return _misc_.DateSpan___iadd__(*args, **kwargs) | |
4168 | ||
4169 | def __isub__(*args, **kwargs): | |
4170 | """__isub__(self, DateSpan other) -> DateSpan""" | |
4171 | return _misc_.DateSpan___isub__(*args, **kwargs) | |
4172 | ||
4173 | def __neg__(*args, **kwargs): | |
4174 | """__neg__(self) -> DateSpan""" | |
4175 | return _misc_.DateSpan___neg__(*args, **kwargs) | |
4176 | ||
4177 | def __imul__(*args, **kwargs): | |
4178 | """__imul__(self, int factor) -> DateSpan""" | |
4179 | return _misc_.DateSpan___imul__(*args, **kwargs) | |
4180 | ||
4181 | def __add__(*args, **kwargs): | |
4182 | """__add__(self, DateSpan other) -> DateSpan""" | |
4183 | return _misc_.DateSpan___add__(*args, **kwargs) | |
4184 | ||
4185 | def __sub__(*args, **kwargs): | |
4186 | """__sub__(self, DateSpan other) -> DateSpan""" | |
4187 | return _misc_.DateSpan___sub__(*args, **kwargs) | |
4188 | ||
4189 | def __mul__(*args, **kwargs): | |
4190 | """__mul__(self, int n) -> DateSpan""" | |
4191 | return _misc_.DateSpan___mul__(*args, **kwargs) | |
4192 | ||
4193 | def __rmul__(*args, **kwargs): | |
4194 | """__rmul__(self, int n) -> DateSpan""" | |
4195 | return _misc_.DateSpan___rmul__(*args, **kwargs) | |
4196 | ||
4197 | def __eq__(*args, **kwargs): | |
4198 | """__eq__(self, DateSpan other) -> bool""" | |
4199 | return _misc_.DateSpan___eq__(*args, **kwargs) | |
4200 | ||
4201 | def __ne__(*args, **kwargs): | |
4202 | """__ne__(self, DateSpan other) -> bool""" | |
4203 | return _misc_.DateSpan___ne__(*args, **kwargs) | |
4204 | ||
4205 | ||
4206 | class DateSpanPtr(DateSpan): | |
4207 | def __init__(self, this): | |
4208 | self.this = this | |
4209 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4210 | self.__class__ = DateSpan | |
4211 | _misc_.DateSpan_swigregister(DateSpanPtr) | |
4212 | ||
4213 | def DateSpan_Days(*args, **kwargs): | |
4214 | """DateSpan_Days(int days) -> DateSpan""" | |
4215 | return _misc_.DateSpan_Days(*args, **kwargs) | |
4216 | ||
4217 | def DateSpan_Day(*args, **kwargs): | |
4218 | """DateSpan_Day() -> DateSpan""" | |
4219 | return _misc_.DateSpan_Day(*args, **kwargs) | |
4220 | ||
4221 | def DateSpan_Weeks(*args, **kwargs): | |
4222 | """DateSpan_Weeks(int weeks) -> DateSpan""" | |
4223 | return _misc_.DateSpan_Weeks(*args, **kwargs) | |
4224 | ||
4225 | def DateSpan_Week(*args, **kwargs): | |
4226 | """DateSpan_Week() -> DateSpan""" | |
4227 | return _misc_.DateSpan_Week(*args, **kwargs) | |
4228 | ||
4229 | def DateSpan_Months(*args, **kwargs): | |
4230 | """DateSpan_Months(int mon) -> DateSpan""" | |
4231 | return _misc_.DateSpan_Months(*args, **kwargs) | |
4232 | ||
4233 | def DateSpan_Month(*args, **kwargs): | |
4234 | """DateSpan_Month() -> DateSpan""" | |
4235 | return _misc_.DateSpan_Month(*args, **kwargs) | |
4236 | ||
4237 | def DateSpan_Years(*args, **kwargs): | |
4238 | """DateSpan_Years(int years) -> DateSpan""" | |
4239 | return _misc_.DateSpan_Years(*args, **kwargs) | |
4240 | ||
4241 | def DateSpan_Year(*args, **kwargs): | |
4242 | """DateSpan_Year() -> DateSpan""" | |
4243 | return _misc_.DateSpan_Year(*args, **kwargs) | |
4244 | ||
4245 | ||
4246 | def GetLocalTime(*args, **kwargs): | |
4247 | """GetLocalTime() -> long""" | |
4248 | return _misc_.GetLocalTime(*args, **kwargs) | |
4249 | ||
4250 | def GetUTCTime(*args, **kwargs): | |
4251 | """GetUTCTime() -> long""" | |
4252 | return _misc_.GetUTCTime(*args, **kwargs) | |
4253 | ||
4254 | def GetCurrentTime(*args, **kwargs): | |
4255 | """GetCurrentTime() -> long""" | |
4256 | return _misc_.GetCurrentTime(*args, **kwargs) | |
4257 | ||
4258 | def GetLocalTimeMillis(*args, **kwargs): | |
4259 | """GetLocalTimeMillis() -> wxLongLong""" | |
4260 | return _misc_.GetLocalTimeMillis(*args, **kwargs) | |
4261 | #--------------------------------------------------------------------------- | |
4262 | ||
4263 | DF_INVALID = _misc_.DF_INVALID | |
4264 | DF_TEXT = _misc_.DF_TEXT | |
4265 | DF_BITMAP = _misc_.DF_BITMAP | |
4266 | DF_METAFILE = _misc_.DF_METAFILE | |
4267 | DF_SYLK = _misc_.DF_SYLK | |
4268 | DF_DIF = _misc_.DF_DIF | |
4269 | DF_TIFF = _misc_.DF_TIFF | |
4270 | DF_OEMTEXT = _misc_.DF_OEMTEXT | |
4271 | DF_DIB = _misc_.DF_DIB | |
4272 | DF_PALETTE = _misc_.DF_PALETTE | |
4273 | DF_PENDATA = _misc_.DF_PENDATA | |
4274 | DF_RIFF = _misc_.DF_RIFF | |
4275 | DF_WAVE = _misc_.DF_WAVE | |
4276 | DF_UNICODETEXT = _misc_.DF_UNICODETEXT | |
4277 | DF_ENHMETAFILE = _misc_.DF_ENHMETAFILE | |
4278 | DF_FILENAME = _misc_.DF_FILENAME | |
4279 | DF_LOCALE = _misc_.DF_LOCALE | |
4280 | DF_PRIVATE = _misc_.DF_PRIVATE | |
4281 | DF_HTML = _misc_.DF_HTML | |
4282 | DF_MAX = _misc_.DF_MAX | |
4283 | class DataFormat(object): | |
4284 | """ | |
4285 | A wx.DataFormat is an encapsulation of a platform-specific format | |
4286 | handle which is used by the system for the clipboard and drag and drop | |
4287 | operations. The applications are usually only interested in, for | |
4288 | example, pasting data from the clipboard only if the data is in a | |
4289 | format the program understands. A data format is is used to uniquely | |
4290 | identify this format. | |
4291 | """ | |
4292 | def __repr__(self): | |
4293 | return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4294 | def __init__(self, *args, **kwargs): | |
4295 | """ | |
4296 | __init__(self, int type) -> DataFormat | |
4297 | ||
4298 | Constructs a data format object for one of the standard data formats | |
4299 | or an empty data object (use SetType or SetId later in this case) | |
4300 | """ | |
4301 | newobj = _misc_.new_DataFormat(*args, **kwargs) | |
4302 | self.this = newobj.this | |
4303 | self.thisown = 1 | |
4304 | del newobj.thisown | |
4305 | def __del__(self, destroy=_misc_.delete_DataFormat): | |
4306 | """__del__(self)""" | |
4307 | try: | |
4308 | if self.thisown: destroy(self) | |
4309 | except: pass | |
4310 | ||
4311 | def __eq__(*args): | |
4312 | """ | |
4313 | __eq__(self, int format) -> bool | |
4314 | __eq__(self, DataFormat format) -> bool | |
4315 | """ | |
4316 | return _misc_.DataFormat___eq__(*args) | |
4317 | ||
4318 | def __ne__(*args): | |
4319 | """ | |
4320 | __ne__(self, int format) -> bool | |
4321 | __ne__(self, DataFormat format) -> bool | |
4322 | """ | |
4323 | return _misc_.DataFormat___ne__(*args) | |
4324 | ||
4325 | def SetType(*args, **kwargs): | |
4326 | """ | |
4327 | SetType(self, int format) | |
4328 | ||
4329 | Sets the format to the given value, which should be one of wx.DF_XXX | |
4330 | constants. | |
4331 | """ | |
4332 | return _misc_.DataFormat_SetType(*args, **kwargs) | |
4333 | ||
4334 | def GetType(*args, **kwargs): | |
4335 | """ | |
4336 | GetType(self) -> int | |
4337 | ||
4338 | Returns the platform-specific number identifying the format. | |
4339 | """ | |
4340 | return _misc_.DataFormat_GetType(*args, **kwargs) | |
4341 | ||
4342 | def GetId(*args, **kwargs): | |
4343 | """ | |
4344 | GetId(self) -> String | |
4345 | ||
4346 | Returns the name of a custom format (this function will fail for a | |
4347 | standard format). | |
4348 | """ | |
4349 | return _misc_.DataFormat_GetId(*args, **kwargs) | |
4350 | ||
4351 | def SetId(*args, **kwargs): | |
4352 | """ | |
4353 | SetId(self, String format) | |
4354 | ||
4355 | Sets the format to be the custom format identified by the given name. | |
4356 | """ | |
4357 | return _misc_.DataFormat_SetId(*args, **kwargs) | |
4358 | ||
4359 | ||
4360 | class DataFormatPtr(DataFormat): | |
4361 | def __init__(self, this): | |
4362 | self.this = this | |
4363 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4364 | self.__class__ = DataFormat | |
4365 | _misc_.DataFormat_swigregister(DataFormatPtr) | |
4366 | DefaultDateTime = cvar.DefaultDateTime | |
4367 | ||
4368 | def CustomDataFormat(*args, **kwargs): | |
4369 | """ | |
4370 | CustomDataFormat(String format) -> DataFormat | |
4371 | ||
4372 | Constructs a data format object for a custom format identified by its | |
4373 | name. | |
4374 | """ | |
4375 | val = _misc_.new_CustomDataFormat(*args, **kwargs) | |
4376 | val.thisown = 1 | |
4377 | return val | |
4378 | ||
4379 | class DataObject(object): | |
4380 | """ | |
4381 | A wx.DataObject represents data that can be copied to or from the | |
4382 | clipboard, or dragged and dropped. The important thing about | |
4383 | wx.DataObject is that this is a 'smart' piece of data unlike usual | |
4384 | 'dumb' data containers such as memory buffers or files. Being 'smart' | |
4385 | here means that the data object itself should know what data formats | |
4386 | it supports and how to render itself in each of supported formats. | |
4387 | ||
4388 | **NOTE**: This class is an abstract base class and can not be used | |
4389 | directly from Python. If you need a custom type of data object then | |
4390 | you should instead derive from `wx.PyDataObjectSimple` or use | |
4391 | `wx.CustomDataObject`. | |
4392 | ||
4393 | """ | |
4394 | def __init__(self): raise RuntimeError, "No constructor defined" | |
4395 | def __repr__(self): | |
4396 | return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4397 | Get = _misc_.DataObject_Get | |
4398 | Set = _misc_.DataObject_Set | |
4399 | Both = _misc_.DataObject_Both | |
4400 | def __del__(self, destroy=_misc_.delete_DataObject): | |
4401 | """__del__(self)""" | |
4402 | try: | |
4403 | if self.thisown: destroy(self) | |
4404 | except: pass | |
4405 | ||
4406 | def GetPreferredFormat(*args, **kwargs): | |
4407 | """ | |
4408 | GetPreferredFormat(self, int dir=Get) -> DataFormat | |
4409 | ||
4410 | Returns the preferred format for either rendering the data (if dir is | |
4411 | Get, its default value) or for setting it. Usually this will be the | |
4412 | native format of the wx.DataObject. | |
4413 | """ | |
4414 | return _misc_.DataObject_GetPreferredFormat(*args, **kwargs) | |
4415 | ||
4416 | def GetFormatCount(*args, **kwargs): | |
4417 | """ | |
4418 | GetFormatCount(self, int dir=Get) -> size_t | |
4419 | ||
4420 | Returns the number of available formats for rendering or setting the | |
4421 | data. | |
4422 | """ | |
4423 | return _misc_.DataObject_GetFormatCount(*args, **kwargs) | |
4424 | ||
4425 | def IsSupported(*args, **kwargs): | |
4426 | """ | |
4427 | IsSupported(self, DataFormat format, int dir=Get) -> bool | |
4428 | ||
4429 | Returns True if this format is supported. | |
4430 | """ | |
4431 | return _misc_.DataObject_IsSupported(*args, **kwargs) | |
4432 | ||
4433 | def GetDataSize(*args, **kwargs): | |
4434 | """ | |
4435 | GetDataSize(self, DataFormat format) -> size_t | |
4436 | ||
4437 | Get the (total) size of data for the given format | |
4438 | """ | |
4439 | return _misc_.DataObject_GetDataSize(*args, **kwargs) | |
4440 | ||
4441 | def GetAllFormats(*args, **kwargs): | |
4442 | """ | |
4443 | GetAllFormats(self, int dir=Get) -> [formats] | |
4444 | ||
4445 | Returns a list of all the wx.DataFormats that this dataobject supports | |
4446 | in the given direction. | |
4447 | """ | |
4448 | return _misc_.DataObject_GetAllFormats(*args, **kwargs) | |
4449 | ||
4450 | def GetDataHere(*args, **kwargs): | |
4451 | """ | |
4452 | GetDataHere(self, DataFormat format) -> String | |
4453 | ||
4454 | Get the data bytes in the specified format, returns None on failure. | |
4455 | ||
4456 | """ | |
4457 | return _misc_.DataObject_GetDataHere(*args, **kwargs) | |
4458 | ||
4459 | def SetData(*args, **kwargs): | |
4460 | """ | |
4461 | SetData(self, DataFormat format, String data) -> bool | |
4462 | ||
4463 | Set the data in the specified format from the bytes in the the data string. | |
4464 | ||
4465 | """ | |
4466 | return _misc_.DataObject_SetData(*args, **kwargs) | |
4467 | ||
4468 | ||
4469 | class DataObjectPtr(DataObject): | |
4470 | def __init__(self, this): | |
4471 | self.this = this | |
4472 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4473 | self.__class__ = DataObject | |
4474 | _misc_.DataObject_swigregister(DataObjectPtr) | |
4475 | FormatInvalid = cvar.FormatInvalid | |
4476 | ||
4477 | class DataObjectSimple(DataObject): | |
4478 | """ | |
4479 | wx.DataObjectSimple is a `wx.DataObject` which only supports one | |
4480 | format. This is the simplest possible `wx.DataObject` implementation. | |
4481 | ||
4482 | This is still an "abstract base class" meaning that you can't use it | |
4483 | directly. You either need to use one of the predefined base classes, | |
4484 | or derive your own class from `wx.PyDataObjectSimple`. | |
4485 | ||
4486 | """ | |
4487 | def __repr__(self): | |
4488 | return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4489 | def __init__(self, *args, **kwargs): | |
4490 | """ | |
4491 | __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple | |
4492 | ||
4493 | Constructor accepts the supported format (none by default) which may | |
4494 | also be set later with `SetFormat`. | |
4495 | """ | |
4496 | newobj = _misc_.new_DataObjectSimple(*args, **kwargs) | |
4497 | self.this = newobj.this | |
4498 | self.thisown = 1 | |
4499 | del newobj.thisown | |
4500 | def GetFormat(*args, **kwargs): | |
4501 | """ | |
4502 | GetFormat(self) -> DataFormat | |
4503 | ||
4504 | Returns the (one and only one) format supported by this object. It is | |
4505 | assumed that the format is supported in both directions. | |
4506 | """ | |
4507 | return _misc_.DataObjectSimple_GetFormat(*args, **kwargs) | |
4508 | ||
4509 | def SetFormat(*args, **kwargs): | |
4510 | """ | |
4511 | SetFormat(self, DataFormat format) | |
4512 | ||
4513 | Sets the supported format. | |
4514 | """ | |
4515 | return _misc_.DataObjectSimple_SetFormat(*args, **kwargs) | |
4516 | ||
4517 | def GetDataSize(*args, **kwargs): | |
4518 | """ | |
4519 | GetDataSize(self) -> size_t | |
4520 | ||
4521 | Get the size of our data. | |
4522 | """ | |
4523 | return _misc_.DataObjectSimple_GetDataSize(*args, **kwargs) | |
4524 | ||
4525 | def GetDataHere(*args, **kwargs): | |
4526 | """ | |
4527 | GetDataHere(self) -> String | |
4528 | ||
4529 | Returns the data bytes from the data object as a string, returns None | |
4530 | on failure. Must be implemented in the derived class if the object | |
4531 | supports rendering its data. | |
4532 | """ | |
4533 | return _misc_.DataObjectSimple_GetDataHere(*args, **kwargs) | |
4534 | ||
4535 | def SetData(*args, **kwargs): | |
4536 | """ | |
4537 | SetData(self, String data) -> bool | |
4538 | ||
4539 | Copy the data value to the data object. Must be implemented in the | |
4540 | derived class if the object supports setting its data. | |
4541 | ||
4542 | """ | |
4543 | return _misc_.DataObjectSimple_SetData(*args, **kwargs) | |
4544 | ||
4545 | ||
4546 | class DataObjectSimplePtr(DataObjectSimple): | |
4547 | def __init__(self, this): | |
4548 | self.this = this | |
4549 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4550 | self.__class__ = DataObjectSimple | |
4551 | _misc_.DataObjectSimple_swigregister(DataObjectSimplePtr) | |
4552 | ||
4553 | class PyDataObjectSimple(DataObjectSimple): | |
4554 | """ | |
4555 | wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is | |
4556 | Python-aware and knows how to reflect calls to its C++ virtual methods | |
4557 | to methods in the Python derived class. You should derive from this | |
4558 | class and overload `GetDataSize`, `GetDataHere` and `SetData` when you | |
4559 | need to create your own simple single-format type of `wx.DataObject`. | |
4560 | ||
4561 | """ | |
4562 | def __repr__(self): | |
4563 | return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4564 | def __init__(self, *args, **kwargs): | |
4565 | """ | |
4566 | __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple | |
4567 | ||
4568 | wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is | |
4569 | Python-aware and knows how to reflect calls to its C++ virtual methods | |
4570 | to methods in the Python derived class. You should derive from this | |
4571 | class and overload `GetDataSize`, `GetDataHere` and `SetData` when you | |
4572 | need to create your own simple single-format type of `wx.DataObject`. | |
4573 | ||
4574 | """ | |
4575 | newobj = _misc_.new_PyDataObjectSimple(*args, **kwargs) | |
4576 | self.this = newobj.this | |
4577 | self.thisown = 1 | |
4578 | del newobj.thisown | |
4579 | self._setCallbackInfo(self, PyDataObjectSimple) | |
4580 | ||
4581 | def _setCallbackInfo(*args, **kwargs): | |
4582 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4583 | return _misc_.PyDataObjectSimple__setCallbackInfo(*args, **kwargs) | |
4584 | ||
4585 | ||
4586 | class PyDataObjectSimplePtr(PyDataObjectSimple): | |
4587 | def __init__(self, this): | |
4588 | self.this = this | |
4589 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4590 | self.__class__ = PyDataObjectSimple | |
4591 | _misc_.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr) | |
4592 | ||
4593 | class DataObjectComposite(DataObject): | |
4594 | """ | |
4595 | wx.DataObjectComposite is the simplest `wx.DataObject` derivation | |
4596 | which may be sued to support multiple formats. It contains several | |
4597 | 'wx.DataObjectSimple` objects and supports any format supported by at | |
4598 | least one of them. Only one of these data objects is *preferred* (the | |
4599 | first one if not explicitly changed by using the second parameter of | |
4600 | `Add`) and its format determines the preferred format of the composite | |
4601 | data object as well. | |
4602 | ||
4603 | See `wx.DataObject` documentation for the reasons why you might prefer | |
4604 | to use wx.DataObject directly instead of wx.DataObjectComposite for | |
4605 | efficiency reasons. | |
4606 | ||
4607 | """ | |
4608 | def __repr__(self): | |
4609 | return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4610 | def __init__(self, *args, **kwargs): | |
4611 | """ | |
4612 | __init__(self) -> DataObjectComposite | |
4613 | ||
4614 | wx.DataObjectComposite is the simplest `wx.DataObject` derivation | |
4615 | which may be sued to support multiple formats. It contains several | |
4616 | 'wx.DataObjectSimple` objects and supports any format supported by at | |
4617 | least one of them. Only one of these data objects is *preferred* (the | |
4618 | first one if not explicitly changed by using the second parameter of | |
4619 | `Add`) and its format determines the preferred format of the composite | |
4620 | data object as well. | |
4621 | ||
4622 | See `wx.DataObject` documentation for the reasons why you might prefer | |
4623 | to use wx.DataObject directly instead of wx.DataObjectComposite for | |
4624 | efficiency reasons. | |
4625 | ||
4626 | """ | |
4627 | newobj = _misc_.new_DataObjectComposite(*args, **kwargs) | |
4628 | self.this = newobj.this | |
4629 | self.thisown = 1 | |
4630 | del newobj.thisown | |
4631 | def Add(*args, **kwargs): | |
4632 | """ | |
4633 | Add(self, DataObjectSimple dataObject, bool preferred=False) | |
4634 | ||
4635 | Adds the dataObject to the list of supported objects and it becomes | |
4636 | the preferred object if preferred is True. | |
4637 | """ | |
4638 | return _misc_.DataObjectComposite_Add(*args, **kwargs) | |
4639 | ||
4640 | ||
4641 | class DataObjectCompositePtr(DataObjectComposite): | |
4642 | def __init__(self, this): | |
4643 | self.this = this | |
4644 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4645 | self.__class__ = DataObjectComposite | |
4646 | _misc_.DataObjectComposite_swigregister(DataObjectCompositePtr) | |
4647 | ||
4648 | class TextDataObject(DataObjectSimple): | |
4649 | """ | |
4650 | wx.TextDataObject is a specialization of `wx.DataObject` for text | |
4651 | data. It can be used without change to paste data into the `wx.Clipboard` | |
4652 | or a `wx.DropSource`. | |
4653 | ||
4654 | Alternativly, you may wish to derive a new class from the | |
4655 | `wx.PyTextDataObject` class for providing text on-demand in order to | |
4656 | minimize memory consumption when offering data in several formats, | |
4657 | such as plain text and RTF, because by default the text is stored in a | |
4658 | string in this class, but it might as well be generated on demand when | |
4659 | requested. For this, `GetTextLength` and `GetText` will have to be | |
4660 | overridden. | |
4661 | """ | |
4662 | def __repr__(self): | |
4663 | return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4664 | def __init__(self, *args, **kwargs): | |
4665 | """ | |
4666 | __init__(self, String text=EmptyString) -> TextDataObject | |
4667 | ||
4668 | Constructor, may be used to initialise the text (otherwise `SetText` | |
4669 | should be used later). | |
4670 | """ | |
4671 | newobj = _misc_.new_TextDataObject(*args, **kwargs) | |
4672 | self.this = newobj.this | |
4673 | self.thisown = 1 | |
4674 | del newobj.thisown | |
4675 | def GetTextLength(*args, **kwargs): | |
4676 | """ | |
4677 | GetTextLength(self) -> size_t | |
4678 | ||
4679 | Returns the data size. By default, returns the size of the text data | |
4680 | set in the constructor or using `SetText`. This can be overridden (via | |
4681 | `wx.PyTextDataObject`) to provide text size data on-demand. It is | |
4682 | recommended to return the text length plus 1 for a trailing zero, but | |
4683 | this is not strictly required. | |
4684 | """ | |
4685 | return _misc_.TextDataObject_GetTextLength(*args, **kwargs) | |
4686 | ||
4687 | def GetText(*args, **kwargs): | |
4688 | """ | |
4689 | GetText(self) -> String | |
4690 | ||
4691 | Returns the text associated with the data object. | |
4692 | """ | |
4693 | return _misc_.TextDataObject_GetText(*args, **kwargs) | |
4694 | ||
4695 | def SetText(*args, **kwargs): | |
4696 | """ | |
4697 | SetText(self, String text) | |
4698 | ||
4699 | Sets the text associated with the data object. This method is called | |
4700 | when the data object receives the data and, by default, copies the | |
4701 | text into the member variable. If you want to process the text on the | |
4702 | fly you may wish to override this function (via | |
4703 | `wx.PyTextDataObject`.) | |
4704 | """ | |
4705 | return _misc_.TextDataObject_SetText(*args, **kwargs) | |
4706 | ||
4707 | ||
4708 | class TextDataObjectPtr(TextDataObject): | |
4709 | def __init__(self, this): | |
4710 | self.this = this | |
4711 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4712 | self.__class__ = TextDataObject | |
4713 | _misc_.TextDataObject_swigregister(TextDataObjectPtr) | |
4714 | ||
4715 | class PyTextDataObject(TextDataObject): | |
4716 | """ | |
4717 | wx.PyTextDataObject is a version of `wx.TextDataObject` that is | |
4718 | Python-aware and knows how to reflect calls to its C++ virtual methods | |
4719 | to methods in the Python derived class. You should derive from this | |
4720 | class and overload `GetTextLength`, `GetText`, and `SetText` when you | |
4721 | want to be able to provide text on demand instead of preloading it | |
4722 | into the data object. | |
4723 | """ | |
4724 | def __repr__(self): | |
4725 | return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4726 | def __init__(self, *args, **kwargs): | |
4727 | """ | |
4728 | __init__(self, String text=EmptyString) -> PyTextDataObject | |
4729 | ||
4730 | wx.PyTextDataObject is a version of `wx.TextDataObject` that is | |
4731 | Python-aware and knows how to reflect calls to its C++ virtual methods | |
4732 | to methods in the Python derived class. You should derive from this | |
4733 | class and overload `GetTextLength`, `GetText`, and `SetText` when you | |
4734 | want to be able to provide text on demand instead of preloading it | |
4735 | into the data object. | |
4736 | """ | |
4737 | newobj = _misc_.new_PyTextDataObject(*args, **kwargs) | |
4738 | self.this = newobj.this | |
4739 | self.thisown = 1 | |
4740 | del newobj.thisown | |
4741 | self._setCallbackInfo(self, PyTextDataObject) | |
4742 | ||
4743 | def _setCallbackInfo(*args, **kwargs): | |
4744 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4745 | return _misc_.PyTextDataObject__setCallbackInfo(*args, **kwargs) | |
4746 | ||
4747 | ||
4748 | class PyTextDataObjectPtr(PyTextDataObject): | |
4749 | def __init__(self, this): | |
4750 | self.this = this | |
4751 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4752 | self.__class__ = PyTextDataObject | |
4753 | _misc_.PyTextDataObject_swigregister(PyTextDataObjectPtr) | |
4754 | ||
4755 | class BitmapDataObject(DataObjectSimple): | |
4756 | """ | |
4757 | wx.BitmapDataObject is a specialization of wxDataObject for bitmap | |
4758 | data. It can be used without change to paste data into the `wx.Clipboard` | |
4759 | or a `wx.DropSource`. | |
4760 | ||
4761 | """ | |
4762 | def __repr__(self): | |
4763 | return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4764 | def __init__(self, *args, **kwargs): | |
4765 | """ | |
4766 | __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject | |
4767 | ||
4768 | Constructor, optionally passing a bitmap (otherwise use `SetBitmap` | |
4769 | later). | |
4770 | """ | |
4771 | newobj = _misc_.new_BitmapDataObject(*args, **kwargs) | |
4772 | self.this = newobj.this | |
4773 | self.thisown = 1 | |
4774 | del newobj.thisown | |
4775 | def GetBitmap(*args, **kwargs): | |
4776 | """ | |
4777 | GetBitmap(self) -> Bitmap | |
4778 | ||
4779 | Returns the bitmap associated with the data object. You may wish to | |
4780 | override this method (by deriving from `wx.PyBitmapDataObject`) when | |
4781 | offering data on-demand, but this is not required by wxWidgets' | |
4782 | internals. Use this method to get data in bitmap form from the | |
4783 | `wx.Clipboard`. | |
4784 | """ | |
4785 | return _misc_.BitmapDataObject_GetBitmap(*args, **kwargs) | |
4786 | ||
4787 | def SetBitmap(*args, **kwargs): | |
4788 | """ | |
4789 | SetBitmap(self, Bitmap bitmap) | |
4790 | ||
4791 | Sets the bitmap associated with the data object. This method is called | |
4792 | when the data object receives data. Usually there will be no reason to | |
4793 | override this function. | |
4794 | """ | |
4795 | return _misc_.BitmapDataObject_SetBitmap(*args, **kwargs) | |
4796 | ||
4797 | ||
4798 | class BitmapDataObjectPtr(BitmapDataObject): | |
4799 | def __init__(self, this): | |
4800 | self.this = this | |
4801 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4802 | self.__class__ = BitmapDataObject | |
4803 | _misc_.BitmapDataObject_swigregister(BitmapDataObjectPtr) | |
4804 | ||
4805 | class PyBitmapDataObject(BitmapDataObject): | |
4806 | """ | |
4807 | wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is | |
4808 | Python-aware and knows how to reflect calls to its C++ virtual methods | |
4809 | to methods in the Python derived class. To be able to provide bitmap | |
4810 | data on demand derive from this class and overload `GetBitmap`. | |
4811 | """ | |
4812 | def __repr__(self): | |
4813 | return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4814 | def __init__(self, *args, **kwargs): | |
4815 | """ | |
4816 | __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject | |
4817 | ||
4818 | wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is | |
4819 | Python-aware and knows how to reflect calls to its C++ virtual methods | |
4820 | to methods in the Python derived class. To be able to provide bitmap | |
4821 | data on demand derive from this class and overload `GetBitmap`. | |
4822 | """ | |
4823 | newobj = _misc_.new_PyBitmapDataObject(*args, **kwargs) | |
4824 | self.this = newobj.this | |
4825 | self.thisown = 1 | |
4826 | del newobj.thisown | |
4827 | self._setCallbackInfo(self, PyBitmapDataObject) | |
4828 | ||
4829 | def _setCallbackInfo(*args, **kwargs): | |
4830 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4831 | return _misc_.PyBitmapDataObject__setCallbackInfo(*args, **kwargs) | |
4832 | ||
4833 | ||
4834 | class PyBitmapDataObjectPtr(PyBitmapDataObject): | |
4835 | def __init__(self, this): | |
4836 | self.this = this | |
4837 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4838 | self.__class__ = PyBitmapDataObject | |
4839 | _misc_.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr) | |
4840 | ||
4841 | class FileDataObject(DataObjectSimple): | |
4842 | """ | |
4843 | wx.FileDataObject is a specialization of `wx.DataObjectSimple` for | |
4844 | file names. The program works with it just as if it were a list of | |
4845 | absolute file names, but internally it uses the same format as | |
4846 | Explorer and other compatible programs under Windows or GNOME/KDE | |
4847 | filemanager under Unix which makes it possible to receive files from | |
4848 | them using this class. | |
4849 | ||
4850 | :Warning: Under all non-Windows platforms this class is currently | |
4851 | "input-only", i.e. you can receive the files from another | |
4852 | application, but copying (or dragging) file(s) from a wxWidgets | |
4853 | application is not currently supported. | |
4854 | ||
4855 | """ | |
4856 | def __repr__(self): | |
4857 | return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4858 | def __init__(self, *args, **kwargs): | |
4859 | """__init__(self) -> FileDataObject""" | |
4860 | newobj = _misc_.new_FileDataObject(*args, **kwargs) | |
4861 | self.this = newobj.this | |
4862 | self.thisown = 1 | |
4863 | del newobj.thisown | |
4864 | def GetFilenames(*args, **kwargs): | |
4865 | """ | |
4866 | GetFilenames(self) -> [names] | |
4867 | ||
4868 | Returns a list of file names. | |
4869 | """ | |
4870 | return _misc_.FileDataObject_GetFilenames(*args, **kwargs) | |
4871 | ||
4872 | def AddFile(*args, **kwargs): | |
4873 | """ | |
4874 | AddFile(self, String filename) | |
4875 | ||
4876 | Adds a file to the list of files represented by this data object. | |
4877 | """ | |
4878 | return _misc_.FileDataObject_AddFile(*args, **kwargs) | |
4879 | ||
4880 | ||
4881 | class FileDataObjectPtr(FileDataObject): | |
4882 | def __init__(self, this): | |
4883 | self.this = this | |
4884 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4885 | self.__class__ = FileDataObject | |
4886 | _misc_.FileDataObject_swigregister(FileDataObjectPtr) | |
4887 | ||
4888 | class CustomDataObject(DataObjectSimple): | |
4889 | """ | |
4890 | wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for | |
4891 | some application-specific data in arbitrary format. Python strings | |
4892 | are used for getting and setting data, but any picklable object can | |
4893 | easily be transfered via strings. A copy of the data is stored in the | |
4894 | data object. | |
4895 | """ | |
4896 | def __repr__(self): | |
4897 | return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4898 | def __init__(self, *args, **kwargs): | |
4899 | """ | |
4900 | __init__(self, DataFormat format=FormatInvalid) -> CustomDataObject | |
4901 | ||
4902 | wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for | |
4903 | some application-specific data in arbitrary format. Python strings | |
4904 | are used for getting and setting data, but any picklable object can | |
4905 | easily be transfered via strings. A copy of the data is stored in the | |
4906 | data object. | |
4907 | """ | |
4908 | newobj = _misc_.new_CustomDataObject(*args, **kwargs) | |
4909 | self.this = newobj.this | |
4910 | self.thisown = 1 | |
4911 | del newobj.thisown | |
4912 | def SetData(*args, **kwargs): | |
4913 | """ | |
4914 | SetData(self, String data) -> bool | |
4915 | ||
4916 | Copy the data value to the data object. | |
4917 | """ | |
4918 | return _misc_.CustomDataObject_SetData(*args, **kwargs) | |
4919 | ||
4920 | TakeData = SetData | |
4921 | def GetSize(*args, **kwargs): | |
4922 | """ | |
4923 | GetSize(self) -> size_t | |
4924 | ||
4925 | Get the size of the data. | |
4926 | """ | |
4927 | return _misc_.CustomDataObject_GetSize(*args, **kwargs) | |
4928 | ||
4929 | def GetData(*args, **kwargs): | |
4930 | """ | |
4931 | GetData(self) -> String | |
4932 | ||
4933 | Returns the data bytes from the data object as a string. | |
4934 | """ | |
4935 | return _misc_.CustomDataObject_GetData(*args, **kwargs) | |
4936 | ||
4937 | ||
4938 | class CustomDataObjectPtr(CustomDataObject): | |
4939 | def __init__(self, this): | |
4940 | self.this = this | |
4941 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4942 | self.__class__ = CustomDataObject | |
4943 | _misc_.CustomDataObject_swigregister(CustomDataObjectPtr) | |
4944 | ||
4945 | class URLDataObject(DataObjectComposite): | |
4946 | """ | |
4947 | This data object holds a URL in a format that is compatible with some | |
4948 | browsers such that it is able to be dragged to or from them. | |
4949 | """ | |
4950 | def __repr__(self): | |
4951 | return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4952 | def __init__(self, *args, **kwargs): | |
4953 | """ | |
4954 | __init__(self) -> URLDataObject | |
4955 | ||
4956 | This data object holds a URL in a format that is compatible with some | |
4957 | browsers such that it is able to be dragged to or from them. | |
4958 | """ | |
4959 | newobj = _misc_.new_URLDataObject(*args, **kwargs) | |
4960 | self.this = newobj.this | |
4961 | self.thisown = 1 | |
4962 | del newobj.thisown | |
4963 | def GetURL(*args, **kwargs): | |
4964 | """ | |
4965 | GetURL(self) -> String | |
4966 | ||
4967 | Returns a string containing the current URL. | |
4968 | """ | |
4969 | return _misc_.URLDataObject_GetURL(*args, **kwargs) | |
4970 | ||
4971 | def SetURL(*args, **kwargs): | |
4972 | """ | |
4973 | SetURL(self, String url) | |
4974 | ||
4975 | Set the URL. | |
4976 | """ | |
4977 | return _misc_.URLDataObject_SetURL(*args, **kwargs) | |
4978 | ||
4979 | ||
4980 | class URLDataObjectPtr(URLDataObject): | |
4981 | def __init__(self, this): | |
4982 | self.this = this | |
4983 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4984 | self.__class__ = URLDataObject | |
4985 | _misc_.URLDataObject_swigregister(URLDataObjectPtr) | |
4986 | ||
4987 | class MetafileDataObject(DataObjectSimple): | |
4988 | def __repr__(self): | |
4989 | return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4990 | def __init__(self, *args, **kwargs): | |
4991 | """__init__(self) -> MetafileDataObject""" | |
4992 | newobj = _misc_.new_MetafileDataObject(*args, **kwargs) | |
4993 | self.this = newobj.this | |
4994 | self.thisown = 1 | |
4995 | del newobj.thisown | |
4996 | ||
4997 | class MetafileDataObjectPtr(MetafileDataObject): | |
4998 | def __init__(self, this): | |
4999 | self.this = this | |
5000 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5001 | self.__class__ = MetafileDataObject | |
5002 | _misc_.MetafileDataObject_swigregister(MetafileDataObjectPtr) | |
5003 | ||
5004 | #--------------------------------------------------------------------------- | |
5005 | ||
5006 | Drag_CopyOnly = _misc_.Drag_CopyOnly | |
5007 | Drag_AllowMove = _misc_.Drag_AllowMove | |
5008 | Drag_DefaultMove = _misc_.Drag_DefaultMove | |
5009 | DragError = _misc_.DragError | |
5010 | DragNone = _misc_.DragNone | |
5011 | DragCopy = _misc_.DragCopy | |
5012 | DragMove = _misc_.DragMove | |
5013 | DragLink = _misc_.DragLink | |
5014 | DragCancel = _misc_.DragCancel | |
5015 | ||
5016 | def IsDragResultOk(*args, **kwargs): | |
5017 | """IsDragResultOk(int res) -> bool""" | |
5018 | return _misc_.IsDragResultOk(*args, **kwargs) | |
5019 | class DropSource(object): | |
5020 | def __repr__(self): | |
5021 | return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5022 | def __init__(self, *args, **kwargs): | |
5023 | """ | |
5024 | __init__(self, Window win, Icon copy=wxNullIcon, Icon move=wxNullIcon, | |
5025 | Icon none=wxNullIcon) -> DropSource | |
5026 | """ | |
5027 | newobj = _misc_.new_DropSource(*args, **kwargs) | |
5028 | self.this = newobj.this | |
5029 | self.thisown = 1 | |
5030 | del newobj.thisown | |
5031 | self._setCallbackInfo(self, DropSource, 0) | |
5032 | ||
5033 | def _setCallbackInfo(*args, **kwargs): | |
5034 | """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)""" | |
5035 | return _misc_.DropSource__setCallbackInfo(*args, **kwargs) | |
5036 | ||
5037 | def __del__(self, destroy=_misc_.delete_DropSource): | |
5038 | """__del__(self)""" | |
5039 | try: | |
5040 | if self.thisown: destroy(self) | |
5041 | except: pass | |
5042 | ||
5043 | def SetData(*args, **kwargs): | |
5044 | """SetData(self, DataObject data)""" | |
5045 | return _misc_.DropSource_SetData(*args, **kwargs) | |
5046 | ||
5047 | def GetDataObject(*args, **kwargs): | |
5048 | """GetDataObject(self) -> DataObject""" | |
5049 | return _misc_.DropSource_GetDataObject(*args, **kwargs) | |
5050 | ||
5051 | def SetCursor(*args, **kwargs): | |
5052 | """SetCursor(self, int res, Cursor cursor)""" | |
5053 | return _misc_.DropSource_SetCursor(*args, **kwargs) | |
5054 | ||
5055 | def DoDragDrop(*args, **kwargs): | |
5056 | """DoDragDrop(self, int flags=Drag_CopyOnly) -> int""" | |
5057 | return _misc_.DropSource_DoDragDrop(*args, **kwargs) | |
5058 | ||
5059 | def base_GiveFeedback(*args, **kwargs): | |
5060 | """base_GiveFeedback(self, int effect) -> bool""" | |
5061 | return _misc_.DropSource_base_GiveFeedback(*args, **kwargs) | |
5062 | ||
5063 | ||
5064 | class DropSourcePtr(DropSource): | |
5065 | def __init__(self, this): | |
5066 | self.this = this | |
5067 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5068 | self.__class__ = DropSource | |
5069 | _misc_.DropSource_swigregister(DropSourcePtr) | |
5070 | ||
5071 | class DropTarget(object): | |
5072 | def __repr__(self): | |
5073 | return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5074 | def __init__(self, *args, **kwargs): | |
5075 | """__init__(self, DataObject dataObject=None) -> DropTarget""" | |
5076 | newobj = _misc_.new_DropTarget(*args, **kwargs) | |
5077 | self.this = newobj.this | |
5078 | self.thisown = 1 | |
5079 | del newobj.thisown | |
5080 | self._setCallbackInfo(self, DropTarget) | |
5081 | ||
5082 | def _setCallbackInfo(*args, **kwargs): | |
5083 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
5084 | return _misc_.DropTarget__setCallbackInfo(*args, **kwargs) | |
5085 | ||
5086 | def __del__(self, destroy=_misc_.delete_DropTarget): | |
5087 | """__del__(self)""" | |
5088 | try: | |
5089 | if self.thisown: destroy(self) | |
5090 | except: pass | |
5091 | ||
5092 | def GetDataObject(*args, **kwargs): | |
5093 | """GetDataObject(self) -> DataObject""" | |
5094 | return _misc_.DropTarget_GetDataObject(*args, **kwargs) | |
5095 | ||
5096 | def SetDataObject(*args, **kwargs): | |
5097 | """SetDataObject(self, DataObject dataObject)""" | |
5098 | return _misc_.DropTarget_SetDataObject(*args, **kwargs) | |
5099 | ||
5100 | def base_OnEnter(*args, **kwargs): | |
5101 | """base_OnEnter(self, int x, int y, int def) -> int""" | |
5102 | return _misc_.DropTarget_base_OnEnter(*args, **kwargs) | |
5103 | ||
5104 | def base_OnDragOver(*args, **kwargs): | |
5105 | """base_OnDragOver(self, int x, int y, int def) -> int""" | |
5106 | return _misc_.DropTarget_base_OnDragOver(*args, **kwargs) | |
5107 | ||
5108 | def base_OnLeave(*args, **kwargs): | |
5109 | """base_OnLeave(self)""" | |
5110 | return _misc_.DropTarget_base_OnLeave(*args, **kwargs) | |
5111 | ||
5112 | def base_OnDrop(*args, **kwargs): | |
5113 | """base_OnDrop(self, int x, int y) -> bool""" | |
5114 | return _misc_.DropTarget_base_OnDrop(*args, **kwargs) | |
5115 | ||
5116 | def GetData(*args, **kwargs): | |
5117 | """GetData(self) -> bool""" | |
5118 | return _misc_.DropTarget_GetData(*args, **kwargs) | |
5119 | ||
5120 | ||
5121 | class DropTargetPtr(DropTarget): | |
5122 | def __init__(self, this): | |
5123 | self.this = this | |
5124 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5125 | self.__class__ = DropTarget | |
5126 | _misc_.DropTarget_swigregister(DropTargetPtr) | |
5127 | ||
5128 | PyDropTarget = DropTarget | |
5129 | class TextDropTarget(DropTarget): | |
5130 | def __repr__(self): | |
5131 | return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5132 | def __init__(self, *args, **kwargs): | |
5133 | """__init__(self) -> TextDropTarget""" | |
5134 | newobj = _misc_.new_TextDropTarget(*args, **kwargs) | |
5135 | self.this = newobj.this | |
5136 | self.thisown = 1 | |
5137 | del newobj.thisown | |
5138 | self._setCallbackInfo(self, TextDropTarget) | |
5139 | ||
5140 | def _setCallbackInfo(*args, **kwargs): | |
5141 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
5142 | return _misc_.TextDropTarget__setCallbackInfo(*args, **kwargs) | |
5143 | ||
5144 | def base_OnEnter(*args, **kwargs): | |
5145 | """base_OnEnter(self, int x, int y, int def) -> int""" | |
5146 | return _misc_.TextDropTarget_base_OnEnter(*args, **kwargs) | |
5147 | ||
5148 | def base_OnDragOver(*args, **kwargs): | |
5149 | """base_OnDragOver(self, int x, int y, int def) -> int""" | |
5150 | return _misc_.TextDropTarget_base_OnDragOver(*args, **kwargs) | |
5151 | ||
5152 | def base_OnLeave(*args, **kwargs): | |
5153 | """base_OnLeave(self)""" | |
5154 | return _misc_.TextDropTarget_base_OnLeave(*args, **kwargs) | |
5155 | ||
5156 | def base_OnDrop(*args, **kwargs): | |
5157 | """base_OnDrop(self, int x, int y) -> bool""" | |
5158 | return _misc_.TextDropTarget_base_OnDrop(*args, **kwargs) | |
5159 | ||
5160 | def base_OnData(*args, **kwargs): | |
5161 | """base_OnData(self, int x, int y, int def) -> int""" | |
5162 | return _misc_.TextDropTarget_base_OnData(*args, **kwargs) | |
5163 | ||
5164 | ||
5165 | class TextDropTargetPtr(TextDropTarget): | |
5166 | def __init__(self, this): | |
5167 | self.this = this | |
5168 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5169 | self.__class__ = TextDropTarget | |
5170 | _misc_.TextDropTarget_swigregister(TextDropTargetPtr) | |
5171 | ||
5172 | class FileDropTarget(DropTarget): | |
5173 | def __repr__(self): | |
5174 | return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5175 | def __init__(self, *args, **kwargs): | |
5176 | """__init__(self) -> FileDropTarget""" | |
5177 | newobj = _misc_.new_FileDropTarget(*args, **kwargs) | |
5178 | self.this = newobj.this | |
5179 | self.thisown = 1 | |
5180 | del newobj.thisown | |
5181 | self._setCallbackInfo(self, FileDropTarget) | |
5182 | ||
5183 | def _setCallbackInfo(*args, **kwargs): | |
5184 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
5185 | return _misc_.FileDropTarget__setCallbackInfo(*args, **kwargs) | |
5186 | ||
5187 | def base_OnEnter(*args, **kwargs): | |
5188 | """base_OnEnter(self, int x, int y, int def) -> int""" | |
5189 | return _misc_.FileDropTarget_base_OnEnter(*args, **kwargs) | |
5190 | ||
5191 | def base_OnDragOver(*args, **kwargs): | |
5192 | """base_OnDragOver(self, int x, int y, int def) -> int""" | |
5193 | return _misc_.FileDropTarget_base_OnDragOver(*args, **kwargs) | |
5194 | ||
5195 | def base_OnLeave(*args, **kwargs): | |
5196 | """base_OnLeave(self)""" | |
5197 | return _misc_.FileDropTarget_base_OnLeave(*args, **kwargs) | |
5198 | ||
5199 | def base_OnDrop(*args, **kwargs): | |
5200 | """base_OnDrop(self, int x, int y) -> bool""" | |
5201 | return _misc_.FileDropTarget_base_OnDrop(*args, **kwargs) | |
5202 | ||
5203 | def base_OnData(*args, **kwargs): | |
5204 | """base_OnData(self, int x, int y, int def) -> int""" | |
5205 | return _misc_.FileDropTarget_base_OnData(*args, **kwargs) | |
5206 | ||
5207 | ||
5208 | class FileDropTargetPtr(FileDropTarget): | |
5209 | def __init__(self, this): | |
5210 | self.this = this | |
5211 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5212 | self.__class__ = FileDropTarget | |
5213 | _misc_.FileDropTarget_swigregister(FileDropTargetPtr) | |
5214 | ||
5215 | #--------------------------------------------------------------------------- | |
5216 | ||
5217 | class Clipboard(_core.Object): | |
5218 | """ | |
5219 | wx.Clipboard represents the system clipboard and provides methods to | |
5220 | copy data to it or paste data from it. Normally, you should only use | |
5221 | ``wx.TheClipboard`` which is a reference to a global wx.Clipboard | |
5222 | instance. | |
5223 | ||
5224 | Call ``wx.TheClipboard``'s `Open` method to get ownership of the | |
5225 | clipboard. If this operation returns True, you now own the | |
5226 | clipboard. Call `SetData` to put data on the clipboard, or `GetData` | |
5227 | to retrieve data from the clipboard. Call `Close` to close the | |
5228 | clipboard and relinquish ownership. You should keep the clipboard open | |
5229 | only momentarily. | |
5230 | ||
5231 | :see: `wx.DataObject` | |
5232 | ||
5233 | """ | |
5234 | def __repr__(self): | |
5235 | return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5236 | def __init__(self, *args, **kwargs): | |
5237 | """__init__(self) -> Clipboard""" | |
5238 | newobj = _misc_.new_Clipboard(*args, **kwargs) | |
5239 | self.this = newobj.this | |
5240 | self.thisown = 1 | |
5241 | del newobj.thisown | |
5242 | def __del__(self, destroy=_misc_.delete_Clipboard): | |
5243 | """__del__(self)""" | |
5244 | try: | |
5245 | if self.thisown: destroy(self) | |
5246 | except: pass | |
5247 | ||
5248 | def Open(*args, **kwargs): | |
5249 | """ | |
5250 | Open(self) -> bool | |
5251 | ||
5252 | Call this function to open the clipboard before calling SetData and | |
5253 | GetData. Call Close when you have finished with the clipboard. You | |
5254 | should keep the clipboard open for only a very short time. Returns | |
5255 | True on success. | |
5256 | """ | |
5257 | return _misc_.Clipboard_Open(*args, **kwargs) | |
5258 | ||
5259 | def Close(*args, **kwargs): | |
5260 | """ | |
5261 | Close(self) | |
5262 | ||
5263 | Closes the clipboard. | |
5264 | """ | |
5265 | return _misc_.Clipboard_Close(*args, **kwargs) | |
5266 | ||
5267 | def IsOpened(*args, **kwargs): | |
5268 | """ | |
5269 | IsOpened(self) -> bool | |
5270 | ||
5271 | Query whether the clipboard is opened | |
5272 | """ | |
5273 | return _misc_.Clipboard_IsOpened(*args, **kwargs) | |
5274 | ||
5275 | def AddData(*args, **kwargs): | |
5276 | """ | |
5277 | AddData(self, DataObject data) -> bool | |
5278 | ||
5279 | Call this function to add the data object to the clipboard. You may | |
5280 | call this function repeatedly after having cleared the clipboard. | |
5281 | After this function has been called, the clipboard owns the data, so | |
5282 | do not delete the data explicitly. | |
5283 | ||
5284 | :see: `wx.DataObject` | |
5285 | """ | |
5286 | return _misc_.Clipboard_AddData(*args, **kwargs) | |
5287 | ||
5288 | def SetData(*args, **kwargs): | |
5289 | """ | |
5290 | SetData(self, DataObject data) -> bool | |
5291 | ||
5292 | Set the clipboard data, this is the same as `Clear` followed by | |
5293 | `AddData`. | |
5294 | ||
5295 | :see: `wx.DataObject` | |
5296 | """ | |
5297 | return _misc_.Clipboard_SetData(*args, **kwargs) | |
5298 | ||
5299 | def IsSupported(*args, **kwargs): | |
5300 | """ | |
5301 | IsSupported(self, DataFormat format) -> bool | |
5302 | ||
5303 | Returns True if the given format is available in the data object(s) on | |
5304 | the clipboard. | |
5305 | """ | |
5306 | return _misc_.Clipboard_IsSupported(*args, **kwargs) | |
5307 | ||
5308 | def GetData(*args, **kwargs): | |
5309 | """ | |
5310 | GetData(self, DataObject data) -> bool | |
5311 | ||
5312 | Call this function to fill data with data on the clipboard, if | |
5313 | available in the required format. Returns true on success. | |
5314 | """ | |
5315 | return _misc_.Clipboard_GetData(*args, **kwargs) | |
5316 | ||
5317 | def Clear(*args, **kwargs): | |
5318 | """ | |
5319 | Clear(self) | |
5320 | ||
5321 | Clears data from the clipboard object and also the system's clipboard | |
5322 | if possible. | |
5323 | """ | |
5324 | return _misc_.Clipboard_Clear(*args, **kwargs) | |
5325 | ||
5326 | def Flush(*args, **kwargs): | |
5327 | """ | |
5328 | Flush(self) -> bool | |
5329 | ||
5330 | Flushes the clipboard: this means that the data which is currently on | |
5331 | clipboard will stay available even after the application exits, | |
5332 | possibly eating memory, otherwise the clipboard will be emptied on | |
5333 | exit. Returns False if the operation is unsuccesful for any reason. | |
5334 | """ | |
5335 | return _misc_.Clipboard_Flush(*args, **kwargs) | |
5336 | ||
5337 | def UsePrimarySelection(*args, **kwargs): | |
5338 | """ | |
5339 | UsePrimarySelection(self, bool primary=True) | |
5340 | ||
5341 | On platforms supporting it (the X11 based platforms), selects the | |
5342 | so called PRIMARY SELECTION as the clipboard as opposed to the | |
5343 | normal clipboard, if primary is True. | |
5344 | """ | |
5345 | return _misc_.Clipboard_UsePrimarySelection(*args, **kwargs) | |
5346 | ||
5347 | ||
5348 | class ClipboardPtr(Clipboard): | |
5349 | def __init__(self, this): | |
5350 | self.this = this | |
5351 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5352 | self.__class__ = Clipboard | |
5353 | _misc_.Clipboard_swigregister(ClipboardPtr) | |
5354 | ||
5355 | class ClipboardLocker(object): | |
5356 | """ | |
5357 | A helpful class for opening the clipboard and automatically | |
5358 | closing it when the locker is destroyed. | |
5359 | """ | |
5360 | def __repr__(self): | |
5361 | return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5362 | def __init__(self, *args, **kwargs): | |
5363 | """ | |
5364 | __init__(self, Clipboard clipboard=None) -> ClipboardLocker | |
5365 | ||
5366 | A helpful class for opening the clipboard and automatically | |
5367 | closing it when the locker is destroyed. | |
5368 | """ | |
5369 | newobj = _misc_.new_ClipboardLocker(*args, **kwargs) | |
5370 | self.this = newobj.this | |
5371 | self.thisown = 1 | |
5372 | del newobj.thisown | |
5373 | def __del__(self, destroy=_misc_.delete_ClipboardLocker): | |
5374 | """__del__(self)""" | |
5375 | try: | |
5376 | if self.thisown: destroy(self) | |
5377 | except: pass | |
5378 | ||
5379 | def __nonzero__(*args, **kwargs): | |
5380 | """ | |
5381 | __nonzero__(self) -> bool | |
5382 | ||
5383 | A ClipboardLocker instance evaluates to True if the clipboard was | |
5384 | successfully opened. | |
5385 | """ | |
5386 | return _misc_.ClipboardLocker___nonzero__(*args, **kwargs) | |
5387 | ||
5388 | ||
5389 | class ClipboardLockerPtr(ClipboardLocker): | |
5390 | def __init__(self, this): | |
5391 | self.this = this | |
5392 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5393 | self.__class__ = ClipboardLocker | |
5394 | _misc_.ClipboardLocker_swigregister(ClipboardLockerPtr) | |
5395 | TheClipboard = cvar.TheClipboard | |
5396 | ||
5397 | #--------------------------------------------------------------------------- | |
5398 | ||
5399 | class VideoMode(object): | |
5400 | """A simple struct containing video mode parameters for a display""" | |
5401 | def __repr__(self): | |
5402 | return "<%s.%s; proxy of C++ wxVideoMode instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5403 | def __init__(self, *args, **kwargs): | |
5404 | """ | |
5405 | __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode | |
5406 | ||
5407 | A simple struct containing video mode parameters for a display | |
5408 | """ | |
5409 | newobj = _misc_.new_VideoMode(*args, **kwargs) | |
5410 | self.this = newobj.this | |
5411 | self.thisown = 1 | |
5412 | del newobj.thisown | |
5413 | def __del__(self, destroy=_misc_.delete_VideoMode): | |
5414 | """__del__(self)""" | |
5415 | try: | |
5416 | if self.thisown: destroy(self) | |
5417 | except: pass | |
5418 | ||
5419 | def Matches(*args, **kwargs): | |
5420 | """ | |
5421 | Matches(self, VideoMode other) -> bool | |
5422 | ||
5423 | Returns true if this mode matches the other one in the sense that all | |
5424 | non zero fields of the other mode have the same value in this | |
5425 | one (except for refresh which is allowed to have a greater value) | |
5426 | """ | |
5427 | return _misc_.VideoMode_Matches(*args, **kwargs) | |
5428 | ||
5429 | def GetWidth(*args, **kwargs): | |
5430 | """ | |
5431 | GetWidth(self) -> int | |
5432 | ||
5433 | Returns the screen width in pixels (e.g. 640*480), 0 means unspecified | |
5434 | """ | |
5435 | return _misc_.VideoMode_GetWidth(*args, **kwargs) | |
5436 | ||
5437 | def GetHeight(*args, **kwargs): | |
5438 | """ | |
5439 | GetHeight(self) -> int | |
5440 | ||
5441 | Returns the screen width in pixels (e.g. 640*480), 0 means | |
5442 | unspecified | |
5443 | """ | |
5444 | return _misc_.VideoMode_GetHeight(*args, **kwargs) | |
5445 | ||
5446 | def GetDepth(*args, **kwargs): | |
5447 | """ | |
5448 | GetDepth(self) -> int | |
5449 | ||
5450 | Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0 | |
5451 | means unspecified/known | |
5452 | """ | |
5453 | return _misc_.VideoMode_GetDepth(*args, **kwargs) | |
5454 | ||
5455 | def IsOk(*args, **kwargs): | |
5456 | """ | |
5457 | IsOk(self) -> bool | |
5458 | ||
5459 | returns true if the object has been initialized | |
5460 | """ | |
5461 | return _misc_.VideoMode_IsOk(*args, **kwargs) | |
5462 | ||
5463 | def __nonzero__(self): return self.IsOk() | |
5464 | def __eq__(*args, **kwargs): | |
5465 | """__eq__(self, VideoMode other) -> bool""" | |
5466 | return _misc_.VideoMode___eq__(*args, **kwargs) | |
5467 | ||
5468 | def __ne__(*args, **kwargs): | |
5469 | """__ne__(self, VideoMode other) -> bool""" | |
5470 | return _misc_.VideoMode___ne__(*args, **kwargs) | |
5471 | ||
5472 | w = property(_misc_.VideoMode_w_get, _misc_.VideoMode_w_set) | |
5473 | h = property(_misc_.VideoMode_h_get, _misc_.VideoMode_h_set) | |
5474 | bpp = property(_misc_.VideoMode_bpp_get, _misc_.VideoMode_bpp_set) | |
5475 | refresh = property(_misc_.VideoMode_refresh_get, _misc_.VideoMode_refresh_set) | |
5476 | ||
5477 | class VideoModePtr(VideoMode): | |
5478 | def __init__(self, this): | |
5479 | self.this = this | |
5480 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5481 | self.__class__ = VideoMode | |
5482 | _misc_.VideoMode_swigregister(VideoModePtr) | |
5483 | ||
5484 | class Display(object): | |
5485 | """Represents a display/monitor attached to the system""" | |
5486 | def __repr__(self): | |
5487 | return "<%s.%s; proxy of C++ wxDisplay instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5488 | def __init__(self, *args, **kwargs): | |
5489 | """ | |
5490 | __init__(self, size_t index=0) -> Display | |
5491 | ||
5492 | Set up a Display instance with the specified display. The displays | |
5493 | are numbered from 0 to GetCount() - 1, 0 is always the primary display | |
5494 | and the only one which is always supported | |
5495 | """ | |
5496 | newobj = _misc_.new_Display(*args, **kwargs) | |
5497 | self.this = newobj.this | |
5498 | self.thisown = 1 | |
5499 | del newobj.thisown | |
5500 | def __del__(self, destroy=_misc_.delete_Display): | |
5501 | """__del__(self)""" | |
5502 | try: | |
5503 | if self.thisown: destroy(self) | |
5504 | except: pass | |
5505 | ||
5506 | def GetCount(*args, **kwargs): | |
5507 | """ | |
5508 | GetCount() -> size_t | |
5509 | ||
5510 | Return the number of available displays. | |
5511 | """ | |
5512 | return _misc_.Display_GetCount(*args, **kwargs) | |
5513 | ||
5514 | GetCount = staticmethod(GetCount) | |
5515 | def GetFromPoint(*args, **kwargs): | |
5516 | """ | |
5517 | GetFromPoint(Point pt) -> int | |
5518 | ||
5519 | Find the display where the given point lies, return wx.NOT_FOUND if it | |
5520 | doesn't belong to any display | |
5521 | """ | |
5522 | return _misc_.Display_GetFromPoint(*args, **kwargs) | |
5523 | ||
5524 | GetFromPoint = staticmethod(GetFromPoint) | |
5525 | def GetFromWindow(*args, **kwargs): | |
5526 | """ | |
5527 | GetFromWindow(Window window) -> int | |
5528 | ||
5529 | Find the display where the given window lies, return wx.NOT_FOUND if | |
5530 | it is not shown at all. | |
5531 | """ | |
5532 | return _misc_.Display_GetFromWindow(*args, **kwargs) | |
5533 | ||
5534 | GetFromWindow = staticmethod(GetFromWindow) | |
5535 | def IsOk(*args, **kwargs): | |
5536 | """ | |
5537 | IsOk(self) -> bool | |
5538 | ||
5539 | Return true if the object was initialized successfully | |
5540 | """ | |
5541 | return _misc_.Display_IsOk(*args, **kwargs) | |
5542 | ||
5543 | def __nonzero__(self): return self.IsOk() | |
5544 | def GetGeometry(*args, **kwargs): | |
5545 | """ | |
5546 | GetGeometry(self) -> Rect | |
5547 | ||
5548 | Returns the bounding rectangle of the display whose index was passed | |
5549 | to the constructor. | |
5550 | """ | |
5551 | return _misc_.Display_GetGeometry(*args, **kwargs) | |
5552 | ||
5553 | def GetName(*args, **kwargs): | |
5554 | """ | |
5555 | GetName(self) -> String | |
5556 | ||
5557 | Returns the display's name. A name is not available on all platforms. | |
5558 | """ | |
5559 | return _misc_.Display_GetName(*args, **kwargs) | |
5560 | ||
5561 | def IsPrimary(*args, **kwargs): | |
5562 | """ | |
5563 | IsPrimary(self) -> bool | |
5564 | ||
5565 | Returns true if the display is the primary display. The primary | |
5566 | display is the one whose index is 0. | |
5567 | """ | |
5568 | return _misc_.Display_IsPrimary(*args, **kwargs) | |
5569 | ||
5570 | def GetModes(*args, **kwargs): | |
5571 | """ | |
5572 | GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...] | |
5573 | ||
5574 | Enumerate all video modes supported by this display matching the given | |
5575 | one (in the sense of VideoMode.Match()). | |
5576 | ||
5577 | As any mode matches the default value of the argument and there is | |
5578 | always at least one video mode supported by display, the returned | |
5579 | array is only empty for the default value of the argument if this | |
5580 | function is not supported at all on this platform. | |
5581 | """ | |
5582 | return _misc_.Display_GetModes(*args, **kwargs) | |
5583 | ||
5584 | def GetCurrentMode(*args, **kwargs): | |
5585 | """ | |
5586 | GetCurrentMode(self) -> VideoMode | |
5587 | ||
5588 | Get the current video mode. | |
5589 | """ | |
5590 | return _misc_.Display_GetCurrentMode(*args, **kwargs) | |
5591 | ||
5592 | def ChangeMode(*args, **kwargs): | |
5593 | """ | |
5594 | ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool | |
5595 | ||
5596 | Change current mode, return true if succeeded, false otherwise | |
5597 | """ | |
5598 | return _misc_.Display_ChangeMode(*args, **kwargs) | |
5599 | ||
5600 | def ResetMode(*args, **kwargs): | |
5601 | """ | |
5602 | ResetMode(self) | |
5603 | ||
5604 | Restore the default video mode (just a more readable synonym) | |
5605 | """ | |
5606 | return _misc_.Display_ResetMode(*args, **kwargs) | |
5607 | ||
5608 | ||
5609 | class DisplayPtr(Display): | |
5610 | def __init__(self, this): | |
5611 | self.this = this | |
5612 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5613 | self.__class__ = Display | |
5614 | _misc_.Display_swigregister(DisplayPtr) | |
5615 | DefaultVideoMode = cvar.DefaultVideoMode | |
5616 | ||
5617 | def Display_GetCount(*args, **kwargs): | |
5618 | """ | |
5619 | Display_GetCount() -> size_t | |
5620 | ||
5621 | Return the number of available displays. | |
5622 | """ | |
5623 | return _misc_.Display_GetCount(*args, **kwargs) | |
5624 | ||
5625 | def Display_GetFromPoint(*args, **kwargs): | |
5626 | """ | |
5627 | Display_GetFromPoint(Point pt) -> int | |
5628 | ||
5629 | Find the display where the given point lies, return wx.NOT_FOUND if it | |
5630 | doesn't belong to any display | |
5631 | """ | |
5632 | return _misc_.Display_GetFromPoint(*args, **kwargs) | |
5633 | ||
5634 | def Display_GetFromWindow(*args, **kwargs): | |
5635 | """ | |
5636 | Display_GetFromWindow(Window window) -> int | |
5637 | ||
5638 | Find the display where the given window lies, return wx.NOT_FOUND if | |
5639 | it is not shown at all. | |
5640 | """ | |
5641 | return _misc_.Display_GetFromWindow(*args, **kwargs) | |
5642 | ||
5643 |