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