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