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