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