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