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