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