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