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