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