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