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