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