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