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