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