]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/misc.py
Applied patch #809019 (Adds embedded/plugin capabilities to wxMac).
[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
4import _misc
5
6import core
7wx = core
8#---------------------------------------------------------------------------
9
10SYS_OEM_FIXED_FONT = _misc.SYS_OEM_FIXED_FONT
11SYS_ANSI_FIXED_FONT = _misc.SYS_ANSI_FIXED_FONT
12SYS_ANSI_VAR_FONT = _misc.SYS_ANSI_VAR_FONT
13SYS_SYSTEM_FONT = _misc.SYS_SYSTEM_FONT
14SYS_DEVICE_DEFAULT_FONT = _misc.SYS_DEVICE_DEFAULT_FONT
15SYS_DEFAULT_PALETTE = _misc.SYS_DEFAULT_PALETTE
16SYS_SYSTEM_FIXED_FONT = _misc.SYS_SYSTEM_FIXED_FONT
17SYS_DEFAULT_GUI_FONT = _misc.SYS_DEFAULT_GUI_FONT
18SYS_ICONTITLE_FONT = _misc.SYS_ICONTITLE_FONT
19SYS_COLOUR_SCROLLBAR = _misc.SYS_COLOUR_SCROLLBAR
20SYS_COLOUR_BACKGROUND = _misc.SYS_COLOUR_BACKGROUND
21SYS_COLOUR_DESKTOP = _misc.SYS_COLOUR_DESKTOP
22SYS_COLOUR_ACTIVECAPTION = _misc.SYS_COLOUR_ACTIVECAPTION
23SYS_COLOUR_INACTIVECAPTION = _misc.SYS_COLOUR_INACTIVECAPTION
24SYS_COLOUR_MENU = _misc.SYS_COLOUR_MENU
25SYS_COLOUR_WINDOW = _misc.SYS_COLOUR_WINDOW
26SYS_COLOUR_WINDOWFRAME = _misc.SYS_COLOUR_WINDOWFRAME
27SYS_COLOUR_MENUTEXT = _misc.SYS_COLOUR_MENUTEXT
28SYS_COLOUR_WINDOWTEXT = _misc.SYS_COLOUR_WINDOWTEXT
29SYS_COLOUR_CAPTIONTEXT = _misc.SYS_COLOUR_CAPTIONTEXT
30SYS_COLOUR_ACTIVEBORDER = _misc.SYS_COLOUR_ACTIVEBORDER
31SYS_COLOUR_INACTIVEBORDER = _misc.SYS_COLOUR_INACTIVEBORDER
32SYS_COLOUR_APPWORKSPACE = _misc.SYS_COLOUR_APPWORKSPACE
33SYS_COLOUR_HIGHLIGHT = _misc.SYS_COLOUR_HIGHLIGHT
34SYS_COLOUR_HIGHLIGHTTEXT = _misc.SYS_COLOUR_HIGHLIGHTTEXT
35SYS_COLOUR_BTNFACE = _misc.SYS_COLOUR_BTNFACE
36SYS_COLOUR_3DFACE = _misc.SYS_COLOUR_3DFACE
37SYS_COLOUR_BTNSHADOW = _misc.SYS_COLOUR_BTNSHADOW
38SYS_COLOUR_3DSHADOW = _misc.SYS_COLOUR_3DSHADOW
39SYS_COLOUR_GRAYTEXT = _misc.SYS_COLOUR_GRAYTEXT
40SYS_COLOUR_BTNTEXT = _misc.SYS_COLOUR_BTNTEXT
41SYS_COLOUR_INACTIVECAPTIONTEXT = _misc.SYS_COLOUR_INACTIVECAPTIONTEXT
42SYS_COLOUR_BTNHIGHLIGHT = _misc.SYS_COLOUR_BTNHIGHLIGHT
43SYS_COLOUR_BTNHILIGHT = _misc.SYS_COLOUR_BTNHILIGHT
44SYS_COLOUR_3DHIGHLIGHT = _misc.SYS_COLOUR_3DHIGHLIGHT
45SYS_COLOUR_3DHILIGHT = _misc.SYS_COLOUR_3DHILIGHT
46SYS_COLOUR_3DDKSHADOW = _misc.SYS_COLOUR_3DDKSHADOW
47SYS_COLOUR_3DLIGHT = _misc.SYS_COLOUR_3DLIGHT
48SYS_COLOUR_INFOTEXT = _misc.SYS_COLOUR_INFOTEXT
49SYS_COLOUR_INFOBK = _misc.SYS_COLOUR_INFOBK
50SYS_COLOUR_LISTBOX = _misc.SYS_COLOUR_LISTBOX
51SYS_COLOUR_HOTLIGHT = _misc.SYS_COLOUR_HOTLIGHT
52SYS_COLOUR_GRADIENTACTIVECAPTION = _misc.SYS_COLOUR_GRADIENTACTIVECAPTION
53SYS_COLOUR_GRADIENTINACTIVECAPTION = _misc.SYS_COLOUR_GRADIENTINACTIVECAPTION
54SYS_COLOUR_MENUHILIGHT = _misc.SYS_COLOUR_MENUHILIGHT
55SYS_COLOUR_MENUBAR = _misc.SYS_COLOUR_MENUBAR
56SYS_COLOUR_MAX = _misc.SYS_COLOUR_MAX
57SYS_MOUSE_BUTTONS = _misc.SYS_MOUSE_BUTTONS
58SYS_BORDER_X = _misc.SYS_BORDER_X
59SYS_BORDER_Y = _misc.SYS_BORDER_Y
60SYS_CURSOR_X = _misc.SYS_CURSOR_X
61SYS_CURSOR_Y = _misc.SYS_CURSOR_Y
62SYS_DCLICK_X = _misc.SYS_DCLICK_X
63SYS_DCLICK_Y = _misc.SYS_DCLICK_Y
64SYS_DRAG_X = _misc.SYS_DRAG_X
65SYS_DRAG_Y = _misc.SYS_DRAG_Y
66SYS_EDGE_X = _misc.SYS_EDGE_X
67SYS_EDGE_Y = _misc.SYS_EDGE_Y
68SYS_HSCROLL_ARROW_X = _misc.SYS_HSCROLL_ARROW_X
69SYS_HSCROLL_ARROW_Y = _misc.SYS_HSCROLL_ARROW_Y
70SYS_HTHUMB_X = _misc.SYS_HTHUMB_X
71SYS_ICON_X = _misc.SYS_ICON_X
72SYS_ICON_Y = _misc.SYS_ICON_Y
73SYS_ICONSPACING_X = _misc.SYS_ICONSPACING_X
74SYS_ICONSPACING_Y = _misc.SYS_ICONSPACING_Y
75SYS_WINDOWMIN_X = _misc.SYS_WINDOWMIN_X
76SYS_WINDOWMIN_Y = _misc.SYS_WINDOWMIN_Y
77SYS_SCREEN_X = _misc.SYS_SCREEN_X
78SYS_SCREEN_Y = _misc.SYS_SCREEN_Y
79SYS_FRAMESIZE_X = _misc.SYS_FRAMESIZE_X
80SYS_FRAMESIZE_Y = _misc.SYS_FRAMESIZE_Y
81SYS_SMALLICON_X = _misc.SYS_SMALLICON_X
82SYS_SMALLICON_Y = _misc.SYS_SMALLICON_Y
83SYS_HSCROLL_Y = _misc.SYS_HSCROLL_Y
84SYS_VSCROLL_X = _misc.SYS_VSCROLL_X
85SYS_VSCROLL_ARROW_X = _misc.SYS_VSCROLL_ARROW_X
86SYS_VSCROLL_ARROW_Y = _misc.SYS_VSCROLL_ARROW_Y
87SYS_VTHUMB_Y = _misc.SYS_VTHUMB_Y
88SYS_CAPTION_Y = _misc.SYS_CAPTION_Y
89SYS_MENU_Y = _misc.SYS_MENU_Y
90SYS_NETWORK_PRESENT = _misc.SYS_NETWORK_PRESENT
91SYS_PENWINDOWS_PRESENT = _misc.SYS_PENWINDOWS_PRESENT
92SYS_SHOW_SOUNDS = _misc.SYS_SHOW_SOUNDS
93SYS_SWAP_BUTTONS = _misc.SYS_SWAP_BUTTONS
94SYS_CAN_DRAW_FRAME_DECORATIONS = _misc.SYS_CAN_DRAW_FRAME_DECORATIONS
95SYS_CAN_ICONIZE_FRAME = _misc.SYS_CAN_ICONIZE_FRAME
96SYS_SCREEN_NONE = _misc.SYS_SCREEN_NONE
97SYS_SCREEN_TINY = _misc.SYS_SCREEN_TINY
98SYS_SCREEN_PDA = _misc.SYS_SCREEN_PDA
99SYS_SCREEN_SMALL = _misc.SYS_SCREEN_SMALL
100SYS_SCREEN_DESKTOP = _misc.SYS_SCREEN_DESKTOP
101class SystemSettings(object):
e811c8ce 102 """"""
d14a1e28
RD
103 def __init__(self): raise RuntimeError, "No constructor defined"
104 def __repr__(self):
105 return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e811c8ce
RD
106 def GetColour(*args, **kwargs):
107 """SystemSettings.GetColour(wxSystemColour index) -> wxColour"""
108 return _misc.SystemSettings_GetColour(*args, **kwargs)
109
110 GetColour = staticmethod(GetColour)
111 def GetFont(*args, **kwargs):
112 """SystemSettings.GetFont(wxSystemFont index) -> wxFont"""
113 return _misc.SystemSettings_GetFont(*args, **kwargs)
114
115 GetFont = staticmethod(GetFont)
116 def GetMetric(*args, **kwargs):
117 """SystemSettings.GetMetric(wxSystemMetric index) -> int"""
118 return _misc.SystemSettings_GetMetric(*args, **kwargs)
119
120 GetMetric = staticmethod(GetMetric)
121 def HasFeature(*args, **kwargs):
122 """SystemSettings.HasFeature(wxSystemFeature index) -> bool"""
123 return _misc.SystemSettings_HasFeature(*args, **kwargs)
124
125 HasFeature = staticmethod(HasFeature)
126 def GetScreenType(*args, **kwargs):
127 """SystemSettings.GetScreenType() -> wxSystemScreenType"""
128 return _misc.SystemSettings_GetScreenType(*args, **kwargs)
129
130 GetScreenType = staticmethod(GetScreenType)
131 def SetScreenType(*args, **kwargs):
132 """SystemSettings.SetScreenType(wxSystemScreenType screen)"""
133 return _misc.SystemSettings_SetScreenType(*args, **kwargs)
134
135 SetScreenType = staticmethod(SetScreenType)
d14a1e28
RD
136
137class SystemSettingsPtr(SystemSettings):
138 def __init__(self, this):
9df61a29 139 self.this = this
d14a1e28
RD
140 if not hasattr(self,"thisown"): self.thisown = 0
141 self.__class__ = SystemSettings
142_misc.SystemSettings_swigregister(SystemSettingsPtr)
143
e811c8ce
RD
144def SystemSettings_GetColour(*args, **kwargs):
145 """SystemSettings_GetColour(wxSystemColour index) -> wxColour"""
146 return _misc.SystemSettings_GetColour(*args, **kwargs)
d14a1e28 147
e811c8ce
RD
148def SystemSettings_GetFont(*args, **kwargs):
149 """SystemSettings_GetFont(wxSystemFont index) -> wxFont"""
150 return _misc.SystemSettings_GetFont(*args, **kwargs)
d14a1e28 151
e811c8ce
RD
152def SystemSettings_GetMetric(*args, **kwargs):
153 """SystemSettings_GetMetric(wxSystemMetric index) -> int"""
154 return _misc.SystemSettings_GetMetric(*args, **kwargs)
d14a1e28 155
e811c8ce
RD
156def SystemSettings_HasFeature(*args, **kwargs):
157 """SystemSettings_HasFeature(wxSystemFeature index) -> bool"""
158 return _misc.SystemSettings_HasFeature(*args, **kwargs)
d14a1e28 159
e811c8ce
RD
160def SystemSettings_GetScreenType(*args, **kwargs):
161 """SystemSettings_GetScreenType() -> wxSystemScreenType"""
162 return _misc.SystemSettings_GetScreenType(*args, **kwargs)
d14a1e28 163
e811c8ce
RD
164def SystemSettings_SetScreenType(*args, **kwargs):
165 """SystemSettings_SetScreenType(wxSystemScreenType screen)"""
166 return _misc.SystemSettings_SetScreenType(*args, **kwargs)
d14a1e28
RD
167
168class SystemOptions(core.Object):
e811c8ce
RD
169 """"""
170 def __repr__(self):
171 return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 172 def __init__(self, *args, **kwargs):
e811c8ce 173 """__init__() -> SystemOptions"""
d14a1e28
RD
174 newobj = _misc.new_SystemOptions(*args, **kwargs)
175 self.this = newobj.this
176 self.thisown = 1
177 del newobj.thisown
e811c8ce
RD
178 def SetOption(*args, **kwargs):
179 """SystemOptions.SetOption(wxString name, wxString value)"""
180 return _misc.SystemOptions_SetOption(*args, **kwargs)
181
182 SetOption = staticmethod(SetOption)
183 def SetOptionInt(*args, **kwargs):
184 """SystemOptions.SetOptionInt(wxString name, int value)"""
185 return _misc.SystemOptions_SetOptionInt(*args, **kwargs)
186
187 SetOptionInt = staticmethod(SetOptionInt)
188 def GetOption(*args, **kwargs):
189 """SystemOptions.GetOption(wxString name) -> wxString"""
190 return _misc.SystemOptions_GetOption(*args, **kwargs)
191
192 GetOption = staticmethod(GetOption)
193 def GetOptionInt(*args, **kwargs):
194 """SystemOptions.GetOptionInt(wxString name) -> int"""
195 return _misc.SystemOptions_GetOptionInt(*args, **kwargs)
196
197 GetOptionInt = staticmethod(GetOptionInt)
198 def HasOption(*args, **kwargs):
199 """SystemOptions.HasOption(wxString name) -> bool"""
200 return _misc.SystemOptions_HasOption(*args, **kwargs)
201
202 HasOption = staticmethod(HasOption)
d14a1e28
RD
203
204class SystemOptionsPtr(SystemOptions):
205 def __init__(self, this):
9df61a29 206 self.this = this
d14a1e28
RD
207 if not hasattr(self,"thisown"): self.thisown = 0
208 self.__class__ = SystemOptions
209_misc.SystemOptions_swigregister(SystemOptionsPtr)
210
e811c8ce
RD
211def SystemOptions_SetOption(*args, **kwargs):
212 """SystemOptions_SetOption(wxString name, wxString value)"""
213 return _misc.SystemOptions_SetOption(*args, **kwargs)
d14a1e28 214
e811c8ce
RD
215def SystemOptions_SetOptionInt(*args, **kwargs):
216 """SystemOptions_SetOptionInt(wxString name, int value)"""
217 return _misc.SystemOptions_SetOptionInt(*args, **kwargs)
d14a1e28 218
e811c8ce
RD
219def SystemOptions_GetOption(*args, **kwargs):
220 """SystemOptions_GetOption(wxString name) -> wxString"""
221 return _misc.SystemOptions_GetOption(*args, **kwargs)
d14a1e28 222
e811c8ce
RD
223def SystemOptions_GetOptionInt(*args, **kwargs):
224 """SystemOptions_GetOptionInt(wxString name) -> int"""
225 return _misc.SystemOptions_GetOptionInt(*args, **kwargs)
d14a1e28 226
e811c8ce
RD
227def SystemOptions_HasOption(*args, **kwargs):
228 """SystemOptions_HasOption(wxString name) -> bool"""
229 return _misc.SystemOptions_HasOption(*args, **kwargs)
d14a1e28
RD
230
231#---------------------------------------------------------------------------
232
233
e811c8ce
RD
234def NewId(*args, **kwargs):
235 """NewId() -> long"""
236 return _misc.NewId(*args, **kwargs)
d14a1e28 237
e811c8ce
RD
238def RegisterId(*args, **kwargs):
239 """RegisterId(long id)"""
240 return _misc.RegisterId(*args, **kwargs)
d14a1e28 241
e811c8ce
RD
242def GetCurrentId(*args, **kwargs):
243 """GetCurrentId() -> long"""
244 return _misc.GetCurrentId(*args, **kwargs)
d14a1e28 245
e811c8ce
RD
246def Bell(*args, **kwargs):
247 """Bell()"""
248 return _misc.Bell(*args, **kwargs)
d14a1e28 249
e811c8ce
RD
250def EndBusyCursor(*args, **kwargs):
251 """EndBusyCursor()"""
252 return _misc.EndBusyCursor(*args, **kwargs)
d14a1e28 253
e811c8ce
RD
254def GetElapsedTime(*args, **kwargs):
255 """GetElapsedTime(bool resetTimer=True) -> long"""
256 return _misc.GetElapsedTime(*args, **kwargs)
d14a1e28 257
e811c8ce 258def GetMousePosition(*args, **kwargs):
322913ce 259 """GetMousePosition() -> (x,y)"""
e811c8ce 260 return _misc.GetMousePosition(*args, **kwargs)
d14a1e28 261
e811c8ce
RD
262def IsBusy(*args, **kwargs):
263 """IsBusy() -> bool"""
264 return _misc.IsBusy(*args, **kwargs)
d14a1e28 265
e811c8ce
RD
266def Now(*args, **kwargs):
267 """Now() -> wxString"""
268 return _misc.Now(*args, **kwargs)
d14a1e28 269
e811c8ce
RD
270def Shell(*args, **kwargs):
271 """Shell(wxString command=wxPyEmptyString) -> bool"""
272 return _misc.Shell(*args, **kwargs)
d14a1e28 273
e811c8ce
RD
274def StartTimer(*args, **kwargs):
275 """StartTimer()"""
276 return _misc.StartTimer(*args, **kwargs)
d14a1e28 277
e811c8ce 278def GetOsVersion(*args, **kwargs):
322913ce 279 """GetOsVersion() -> (platform, major, minor)"""
e811c8ce 280 return _misc.GetOsVersion(*args, **kwargs)
d14a1e28 281
e811c8ce
RD
282def GetOsDescription(*args, **kwargs):
283 """GetOsDescription() -> wxString"""
284 return _misc.GetOsDescription(*args, **kwargs)
d14a1e28 285
e811c8ce
RD
286def GetFreeMemory(*args, **kwargs):
287 """GetFreeMemory() -> long"""
288 return _misc.GetFreeMemory(*args, **kwargs)
d14a1e28
RD
289SHUTDOWN_POWEROFF = _misc.SHUTDOWN_POWEROFF
290SHUTDOWN_REBOOT = _misc.SHUTDOWN_REBOOT
291
e811c8ce
RD
292def Shutdown(*args, **kwargs):
293 """Shutdown(wxShutdownFlags wFlags) -> bool"""
294 return _misc.Shutdown(*args, **kwargs)
295
296def Sleep(*args, **kwargs):
297 """Sleep(int secs)"""
298 return _misc.Sleep(*args, **kwargs)
299
300def Usleep(*args, **kwargs):
301 """Usleep(unsigned long milliseconds)"""
302 return _misc.Usleep(*args, **kwargs)
303
304def EnableTopLevelWindows(*args, **kwargs):
305 """EnableTopLevelWindows(bool enable)"""
306 return _misc.EnableTopLevelWindows(*args, **kwargs)
307
308def StripMenuCodes(*args, **kwargs):
309 """StripMenuCodes(wxString in) -> wxString"""
310 return _misc.StripMenuCodes(*args, **kwargs)
311
312def GetEmailAddress(*args, **kwargs):
313 """GetEmailAddress() -> wxString"""
314 return _misc.GetEmailAddress(*args, **kwargs)
315
316def GetHostName(*args, **kwargs):
317 """GetHostName() -> wxString"""
318 return _misc.GetHostName(*args, **kwargs)
319
320def GetFullHostName(*args, **kwargs):
321 """GetFullHostName() -> wxString"""
322 return _misc.GetFullHostName(*args, **kwargs)
323
324def GetUserId(*args, **kwargs):
325 """GetUserId() -> wxString"""
326 return _misc.GetUserId(*args, **kwargs)
327
328def GetUserName(*args, **kwargs):
329 """GetUserName() -> wxString"""
330 return _misc.GetUserName(*args, **kwargs)
331
332def GetHomeDir(*args, **kwargs):
333 """GetHomeDir() -> wxString"""
334 return _misc.GetHomeDir(*args, **kwargs)
335
336def GetUserHome(*args, **kwargs):
337 """GetUserHome(wxString user=wxPyEmptyString) -> wxString"""
338 return _misc.GetUserHome(*args, **kwargs)
339
340def GetProcessId(*args, **kwargs):
341 """GetProcessId() -> unsigned long"""
342 return _misc.GetProcessId(*args, **kwargs)
343
344def Trap(*args, **kwargs):
345 """Trap()"""
346 return _misc.Trap(*args, **kwargs)
347
348def FileSelector(*args, **kwargs):
349 """FileSelector(wxString message=wxPyFileSelectorPromptStr, wxString default_path=wxPyEmptyString,
350 wxString default_filename=wxPyEmptyString,
351 wxString default_extension=wxPyEmptyString,
352 wxString wildcard=wxPyFileSelectorDefaultWildcardStr,
353 int flags=0,
354 Window parent=None, int x=-1, int y=-1) -> wxString"""
355 return _misc.FileSelector(*args, **kwargs)
356
357def LoadFileSelector(*args, **kwargs):
358 """LoadFileSelector(wxString what, wxString extension, wxString default_name=wxPyEmptyString,
359 Window parent=None) -> wxString"""
360 return _misc.LoadFileSelector(*args, **kwargs)
361
362def SaveFileSelector(*args, **kwargs):
363 """SaveFileSelector(wxString what, wxString extension, wxString default_name=wxPyEmptyString,
364 Window parent=None) -> wxString"""
365 return _misc.SaveFileSelector(*args, **kwargs)
366
367def DirSelector(*args, **kwargs):
368 """DirSelector(wxString message=wxPyDirSelectorPromptStr, wxString defaultPath=wxPyEmptyString,
369 long style=DD_DEFAULT_STYLE,
370 Point pos=DefaultPosition, Window parent=None) -> wxString"""
371 return _misc.DirSelector(*args, **kwargs)
372
373def GetTextFromUser(*args, **kwargs):
374 """GetTextFromUser(wxString message, wxString caption=wxPyEmptyString,
375 wxString default_value=wxPyEmptyString, Window parent=None,
376 int x=-1, int y=-1, bool centre=True) -> wxString"""
377 return _misc.GetTextFromUser(*args, **kwargs)
378
379def GetPasswordFromUser(*args, **kwargs):
380 """GetPasswordFromUser(wxString message, wxString caption=wxPyEmptyString,
381 wxString default_value=wxPyEmptyString, Window parent=None) -> wxString"""
382 return _misc.GetPasswordFromUser(*args, **kwargs)
383
384def GetSingleChoice(*args, **kwargs):
385 """GetSingleChoice(wxString message, wxString caption, int choices, wxString choices_array,
386 Window parent=None, int x=-1,
387 int y=-1, bool centre=True, int width=150,
388 int height=200) -> wxString"""
389 return _misc.GetSingleChoice(*args, **kwargs)
390
391def GetSingleChoiceIndex(*args, **kwargs):
392 """GetSingleChoiceIndex(wxString message, wxString caption, int choices, wxString choices_array,
393 Window parent=None, int x=-1,
394 int y=-1, bool centre=True, int width=150,
395 int height=200) -> int"""
396 return _misc.GetSingleChoiceIndex(*args, **kwargs)
397
398def MessageBox(*args, **kwargs):
399 """MessageBox(wxString message, wxString caption=wxPyEmptyString,
400 int style=wxOK|wxCENTRE, Window parent=None,
401 int x=-1, int y=-1) -> int"""
402 return _misc.MessageBox(*args, **kwargs)
403
404def GetNumberFromUser(*args, **kwargs):
405 """GetNumberFromUser(wxString message, wxString prompt, wxString caption,
406 long value, long min=0, long max=100, Window parent=None,
407 Point pos=DefaultPosition) -> long"""
408 return _misc.GetNumberFromUser(*args, **kwargs)
409
410def ColourDisplay(*args, **kwargs):
411 """ColourDisplay() -> bool"""
412 return _misc.ColourDisplay(*args, **kwargs)
413
414def DisplayDepth(*args, **kwargs):
415 """DisplayDepth() -> int"""
416 return _misc.DisplayDepth(*args, **kwargs)
417
418def GetDisplayDepth(*args, **kwargs):
419 """GetDisplayDepth() -> int"""
420 return _misc.GetDisplayDepth(*args, **kwargs)
421
422def DisplaySize(*args, **kwargs):
322913ce 423 """DisplaySize() -> (width, height)"""
e811c8ce
RD
424 return _misc.DisplaySize(*args, **kwargs)
425
426def GetDisplaySize(*args, **kwargs):
427 """GetDisplaySize() -> Size"""
428 return _misc.GetDisplaySize(*args, **kwargs)
429
430def DisplaySizeMM(*args, **kwargs):
322913ce 431 """DisplaySizeMM() -> (width, height)"""
e811c8ce
RD
432 return _misc.DisplaySizeMM(*args, **kwargs)
433
434def GetDisplaySizeMM(*args, **kwargs):
435 """GetDisplaySizeMM() -> Size"""
436 return _misc.GetDisplaySizeMM(*args, **kwargs)
437
438def ClientDisplayRect(*args, **kwargs):
322913ce 439 """ClientDisplayRect() -> (x, y, width, height)"""
e811c8ce
RD
440 return _misc.ClientDisplayRect(*args, **kwargs)
441
442def GetClientDisplayRect(*args, **kwargs):
443 """GetClientDisplayRect() -> Rect"""
444 return _misc.GetClientDisplayRect(*args, **kwargs)
445
446def SetCursor(*args, **kwargs):
447 """SetCursor(wxCursor cursor)"""
448 return _misc.SetCursor(*args, **kwargs)
449
450def BeginBusyCursor(*args, **kwargs):
451 """BeginBusyCursor(wxCursor cursor=wxHOURGLASS_CURSOR)"""
452 return _misc.BeginBusyCursor(*args, **kwargs)
453
454def GetActiveWindow(*args, **kwargs):
455 """GetActiveWindow() -> Window"""
456 return _misc.GetActiveWindow(*args, **kwargs)
457
458def GenericFindWindowAtPoint(*args, **kwargs):
459 """GenericFindWindowAtPoint(Point pt) -> Window"""
460 return _misc.GenericFindWindowAtPoint(*args, **kwargs)
461
462def FindWindowAtPoint(*args, **kwargs):
463 """FindWindowAtPoint(Point pt) -> Window"""
464 return _misc.FindWindowAtPoint(*args, **kwargs)
465
466def GetTopLevelParent(*args, **kwargs):
467 """GetTopLevelParent(Window win) -> Window"""
468 return _misc.GetTopLevelParent(*args, **kwargs)
469
470def WakeUpMainThread(*args, **kwargs):
471 """WakeUpMainThread()"""
472 return _misc.WakeUpMainThread(*args, **kwargs)
473
474def MutexGuiEnter(*args, **kwargs):
475 """MutexGuiEnter()"""
476 return _misc.MutexGuiEnter(*args, **kwargs)
477
478def MutexGuiLeave(*args, **kwargs):
479 """MutexGuiLeave()"""
480 return _misc.MutexGuiLeave(*args, **kwargs)
d14a1e28 481class MutexGuiLocker(object):
e811c8ce
RD
482 """"""
483 def __repr__(self):
484 return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 485 def __init__(self, *args, **kwargs):
e811c8ce 486 """__init__() -> MutexGuiLocker"""
d14a1e28
RD
487 newobj = _misc.new_MutexGuiLocker(*args, **kwargs)
488 self.this = newobj.this
489 self.thisown = 1
490 del newobj.thisown
491 def __del__(self, destroy=_misc.delete_MutexGuiLocker):
e811c8ce 492 """__del__()"""
d14a1e28
RD
493 try:
494 if self.thisown: destroy(self)
495 except: pass
e811c8ce 496
d14a1e28
RD
497
498class MutexGuiLockerPtr(MutexGuiLocker):
499 def __init__(self, this):
70551f47 500 self.this = this
d14a1e28
RD
501 if not hasattr(self,"thisown"): self.thisown = 0
502 self.__class__ = MutexGuiLocker
503_misc.MutexGuiLocker_swigregister(MutexGuiLockerPtr)
504
505
e811c8ce
RD
506def Thread_IsMain(*args, **kwargs):
507 """Thread_IsMain() -> bool"""
508 return _misc.Thread_IsMain(*args, **kwargs)
d14a1e28
RD
509#---------------------------------------------------------------------------
510
511class ToolTip(core.Object):
e811c8ce
RD
512 """"""
513 def __repr__(self):
514 return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 515 def __init__(self, *args, **kwargs):
e811c8ce 516 """__init__(wxString tip) -> ToolTip"""
d14a1e28
RD
517 newobj = _misc.new_ToolTip(*args, **kwargs)
518 self.this = newobj.this
519 self.thisown = 1
520 del newobj.thisown
e811c8ce
RD
521 def SetTip(*args, **kwargs):
522 """SetTip(wxString tip)"""
523 return _misc.ToolTip_SetTip(*args, **kwargs)
524
525 def GetTip(*args, **kwargs):
526 """GetTip() -> wxString"""
527 return _misc.ToolTip_GetTip(*args, **kwargs)
528
529 def GetWindow(*args, **kwargs):
530 """GetWindow() -> Window"""
531 return _misc.ToolTip_GetWindow(*args, **kwargs)
532
533 def Enable(*args, **kwargs):
534 """ToolTip.Enable(bool flag)"""
535 return _misc.ToolTip_Enable(*args, **kwargs)
536
537 Enable = staticmethod(Enable)
538 def SetDelay(*args, **kwargs):
539 """ToolTip.SetDelay(long milliseconds)"""
540 return _misc.ToolTip_SetDelay(*args, **kwargs)
541
542 SetDelay = staticmethod(SetDelay)
d14a1e28
RD
543
544class ToolTipPtr(ToolTip):
545 def __init__(self, this):
546 self.this = this
547 if not hasattr(self,"thisown"): self.thisown = 0
548 self.__class__ = ToolTip
549_misc.ToolTip_swigregister(ToolTipPtr)
550
e811c8ce
RD
551def ToolTip_Enable(*args, **kwargs):
552 """ToolTip_Enable(bool flag)"""
553 return _misc.ToolTip_Enable(*args, **kwargs)
d14a1e28 554
e811c8ce
RD
555def ToolTip_SetDelay(*args, **kwargs):
556 """ToolTip_SetDelay(long milliseconds)"""
557 return _misc.ToolTip_SetDelay(*args, **kwargs)
d14a1e28
RD
558
559class Caret(object):
e811c8ce
RD
560 """"""
561 def __repr__(self):
562 return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 563 def __init__(self, *args, **kwargs):
e811c8ce 564 """__init__(Window window, Size size) -> Caret"""
d14a1e28
RD
565 newobj = _misc.new_Caret(*args, **kwargs)
566 self.this = newobj.this
567 self.thisown = 1
568 del newobj.thisown
569 def __del__(self, destroy=_misc.delete_Caret):
e811c8ce 570 """__del__()"""
ab2208b5 571 try:
d14a1e28
RD
572 if self.thisown: destroy(self)
573 except: pass
e811c8ce
RD
574
575 def IsOk(*args, **kwargs):
576 """IsOk() -> bool"""
577 return _misc.Caret_IsOk(*args, **kwargs)
578
579 def IsVisible(*args, **kwargs):
580 """IsVisible() -> bool"""
581 return _misc.Caret_IsVisible(*args, **kwargs)
582
e811c8ce
RD
583 def GetPosition(*args, **kwargs):
584 """GetPosition() -> Point"""
585 return _misc.Caret_GetPosition(*args, **kwargs)
586
322913ce
RD
587 def GetPositionTuple(*args, **kwargs):
588 """GetPositionTuple() -> (x,y)"""
589 return _misc.Caret_GetPositionTuple(*args, **kwargs)
e811c8ce
RD
590
591 def GetSize(*args, **kwargs):
592 """GetSize() -> Size"""
593 return _misc.Caret_GetSize(*args, **kwargs)
594
322913ce
RD
595 def GetSizeTuple(*args, **kwargs):
596 """GetSizeTuple() -> (width, height)"""
597 return _misc.Caret_GetSizeTuple(*args, **kwargs)
598
e811c8ce
RD
599 def GetWindow(*args, **kwargs):
600 """GetWindow() -> Window"""
601 return _misc.Caret_GetWindow(*args, **kwargs)
602
603 def MoveXY(*args, **kwargs):
604 """MoveXY(int x, int y)"""
605 return _misc.Caret_MoveXY(*args, **kwargs)
606
607 def Move(*args, **kwargs):
608 """Move(Point pt)"""
609 return _misc.Caret_Move(*args, **kwargs)
610
611 def SetSizeWH(*args, **kwargs):
612 """SetSizeWH(int width, int height)"""
613 return _misc.Caret_SetSizeWH(*args, **kwargs)
614
615 def SetSize(*args, **kwargs):
616 """SetSize(Size size)"""
617 return _misc.Caret_SetSize(*args, **kwargs)
618
619 def Show(*args, **kwargs):
620 """Show(int show=True)"""
621 return _misc.Caret_Show(*args, **kwargs)
622
623 def Hide(*args, **kwargs):
624 """Hide()"""
625 return _misc.Caret_Hide(*args, **kwargs)
626
322913ce 627 def __nonzero__(self): return self.IsOk()
d14a1e28
RD
628
629class CaretPtr(Caret):
630 def __init__(self, this):
631 self.this = this
632 if not hasattr(self,"thisown"): self.thisown = 0
633 self.__class__ = Caret
634_misc.Caret_swigregister(CaretPtr)
635
636
e811c8ce
RD
637def Caret_GetBlinkTime(*args, **kwargs):
638 """Caret_GetBlinkTime() -> int"""
639 return _misc.Caret_GetBlinkTime(*args, **kwargs)
d14a1e28 640
e811c8ce
RD
641def Caret_SetBlinkTime(*args, **kwargs):
642 """Caret_SetBlinkTime(int milliseconds)"""
643 return _misc.Caret_SetBlinkTime(*args, **kwargs)
d14a1e28 644class BusyCursor(object):
e811c8ce
RD
645 """"""
646 def __repr__(self):
647 return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 648 def __init__(self, *args, **kwargs):
e811c8ce 649 """__init__(wxCursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
d14a1e28
RD
650 newobj = _misc.new_BusyCursor(*args, **kwargs)
651 self.this = newobj.this
652 self.thisown = 1
653 del newobj.thisown
654 def __del__(self, destroy=_misc.delete_BusyCursor):
e811c8ce 655 """__del__()"""
ab2208b5 656 try:
d14a1e28
RD
657 if self.thisown: destroy(self)
658 except: pass
e811c8ce 659
d14a1e28
RD
660
661class BusyCursorPtr(BusyCursor):
662 def __init__(self, this):
663 self.this = this
664 if not hasattr(self,"thisown"): self.thisown = 0
665 self.__class__ = BusyCursor
666_misc.BusyCursor_swigregister(BusyCursorPtr)
667
668class WindowDisabler(object):
e811c8ce
RD
669 """"""
670 def __repr__(self):
671 return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 672 def __init__(self, *args, **kwargs):
e811c8ce 673 """__init__(Window winToSkip=None) -> WindowDisabler"""
d14a1e28
RD
674 newobj = _misc.new_WindowDisabler(*args, **kwargs)
675 self.this = newobj.this
70551f47 676 self.thisown = 1
d14a1e28
RD
677 del newobj.thisown
678 def __del__(self, destroy=_misc.delete_WindowDisabler):
e811c8ce 679 """__del__()"""
d14a1e28
RD
680 try:
681 if self.thisown: destroy(self)
682 except: pass
e811c8ce 683
70551f47 684
d14a1e28
RD
685class WindowDisablerPtr(WindowDisabler):
686 def __init__(self, this):
687 self.this = this
688 if not hasattr(self,"thisown"): self.thisown = 0
689 self.__class__ = WindowDisabler
690_misc.WindowDisabler_swigregister(WindowDisablerPtr)
691
692class BusyInfo(core.Object):
e811c8ce
RD
693 """"""
694 def __repr__(self):
695 return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 696 def __init__(self, *args, **kwargs):
e811c8ce 697 """__init__(wxString message) -> BusyInfo"""
d14a1e28
RD
698 newobj = _misc.new_BusyInfo(*args, **kwargs)
699 self.this = newobj.this
700 self.thisown = 1
701 del newobj.thisown
702 def __del__(self, destroy=_misc.delete_BusyInfo):
e811c8ce 703 """__del__()"""
d14a1e28
RD
704 try:
705 if self.thisown: destroy(self)
706 except: pass
e811c8ce 707
70551f47 708
d14a1e28
RD
709class BusyInfoPtr(BusyInfo):
710 def __init__(self, this):
711 self.this = this
712 if not hasattr(self,"thisown"): self.thisown = 0
713 self.__class__ = BusyInfo
714_misc.BusyInfo_swigregister(BusyInfoPtr)
715
716class StopWatch(object):
e811c8ce
RD
717 """"""
718 def __repr__(self):
719 return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 720 def __init__(self, *args, **kwargs):
e811c8ce 721 """__init__() -> StopWatch"""
d14a1e28
RD
722 newobj = _misc.new_StopWatch(*args, **kwargs)
723 self.this = newobj.this
724 self.thisown = 1
725 del newobj.thisown
e811c8ce
RD
726 def Start(*args, **kwargs):
727 """Start(long t0=0)"""
728 return _misc.StopWatch_Start(*args, **kwargs)
729
730 def Pause(*args, **kwargs):
731 """Pause()"""
732 return _misc.StopWatch_Pause(*args, **kwargs)
733
734 def Resume(*args, **kwargs):
735 """Resume()"""
736 return _misc.StopWatch_Resume(*args, **kwargs)
737
738 def Time(*args, **kwargs):
739 """Time() -> long"""
740 return _misc.StopWatch_Time(*args, **kwargs)
741
70551f47 742
d14a1e28
RD
743class StopWatchPtr(StopWatch):
744 def __init__(self, this):
745 self.this = this
746 if not hasattr(self,"thisown"): self.thisown = 0
747 self.__class__ = StopWatch
748_misc.StopWatch_swigregister(StopWatchPtr)
749
750class FileHistory(core.Object):
e811c8ce
RD
751 """"""
752 def __repr__(self):
753 return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 754 def __init__(self, *args, **kwargs):
e811c8ce 755 """__init__(int maxFiles=9) -> FileHistory"""
d14a1e28
RD
756 newobj = _misc.new_FileHistory(*args, **kwargs)
757 self.this = newobj.this
758 self.thisown = 1
759 del newobj.thisown
760 def __del__(self, destroy=_misc.delete_FileHistory):
e811c8ce 761 """__del__()"""
d14a1e28
RD
762 try:
763 if self.thisown: destroy(self)
764 except: pass
e811c8ce
RD
765
766 def AddFileToHistory(*args, **kwargs):
767 """AddFileToHistory(wxString file)"""
768 return _misc.FileHistory_AddFileToHistory(*args, **kwargs)
769
770 def RemoveFileFromHistory(*args, **kwargs):
771 """RemoveFileFromHistory(int i)"""
772 return _misc.FileHistory_RemoveFileFromHistory(*args, **kwargs)
773
774 def GetMaxFiles(*args, **kwargs):
775 """GetMaxFiles() -> int"""
776 return _misc.FileHistory_GetMaxFiles(*args, **kwargs)
777
778 def UseMenu(*args, **kwargs):
779 """UseMenu(Menu menu)"""
780 return _misc.FileHistory_UseMenu(*args, **kwargs)
781
782 def RemoveMenu(*args, **kwargs):
783 """RemoveMenu(Menu menu)"""
784 return _misc.FileHistory_RemoveMenu(*args, **kwargs)
785
786 def Load(*args, **kwargs):
787 """Load(ConfigBase config)"""
788 return _misc.FileHistory_Load(*args, **kwargs)
789
790 def Save(*args, **kwargs):
791 """Save(ConfigBase config)"""
792 return _misc.FileHistory_Save(*args, **kwargs)
793
794 def AddFilesToMenu(*args, **kwargs):
795 """AddFilesToMenu()"""
796 return _misc.FileHistory_AddFilesToMenu(*args, **kwargs)
797
798 def AddFilesToThisMenu(*args, **kwargs):
799 """AddFilesToThisMenu(Menu menu)"""
800 return _misc.FileHistory_AddFilesToThisMenu(*args, **kwargs)
801
802 def GetHistoryFile(*args, **kwargs):
803 """GetHistoryFile(int i) -> wxString"""
804 return _misc.FileHistory_GetHistoryFile(*args, **kwargs)
805
806 def GetCount(*args, **kwargs):
807 """GetCount() -> int"""
808 return _misc.FileHistory_GetCount(*args, **kwargs)
809
70551f47 810
d14a1e28
RD
811class FileHistoryPtr(FileHistory):
812 def __init__(self, this):
b67a9327 813 self.this = this
d14a1e28
RD
814 if not hasattr(self,"thisown"): self.thisown = 0
815 self.__class__ = FileHistory
816_misc.FileHistory_swigregister(FileHistoryPtr)
817
818class SingleInstanceChecker(object):
e811c8ce
RD
819 """"""
820 def __repr__(self):
821 return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 822 def __init__(self, *args, **kwargs):
e811c8ce 823 """__init__(wxString name, wxString path=wxPyEmptyString) -> SingleInstanceChecker"""
d14a1e28
RD
824 newobj = _misc.new_SingleInstanceChecker(*args, **kwargs)
825 self.this = newobj.this
826 self.thisown = 1
827 del newobj.thisown
828 def __del__(self, destroy=_misc.delete_SingleInstanceChecker):
e811c8ce 829 """__del__()"""
d14a1e28
RD
830 try:
831 if self.thisown: destroy(self)
832 except: pass
e811c8ce
RD
833
834 def Create(*args, **kwargs):
835 """Create(wxString name, wxString path=wxPyEmptyString) -> bool"""
836 return _misc.SingleInstanceChecker_Create(*args, **kwargs)
837
838 def IsAnotherRunning(*args, **kwargs):
839 """IsAnotherRunning() -> bool"""
840 return _misc.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs)
841
b67a9327 842
d14a1e28
RD
843class SingleInstanceCheckerPtr(SingleInstanceChecker):
844 def __init__(self, this):
845 self.this = this
846 if not hasattr(self,"thisown"): self.thisown = 0
847 self.__class__ = SingleInstanceChecker
848_misc.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr)
849
850def PreSingleInstanceChecker(*args, **kwargs):
e811c8ce 851 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
d14a1e28 852 val = _misc.new_PreSingleInstanceChecker(*args, **kwargs)
b67a9327
RD
853 val.thisown = 1
854 return val
855
856
e811c8ce
RD
857def DrawWindowOnDC(*args, **kwargs):
858 """DrawWindowOnDC(Window window, wxDC dc, int method)"""
859 return _misc.DrawWindowOnDC(*args, **kwargs)
d14a1e28
RD
860#---------------------------------------------------------------------------
861
862class TipProvider(object):
e811c8ce
RD
863 """"""
864 def __init__(self): raise RuntimeError, "No constructor defined"
865 def __repr__(self):
866 return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 867 def __del__(self, destroy=_misc.delete_TipProvider):
e811c8ce 868 """__del__()"""
d14a1e28
RD
869 try:
870 if self.thisown: destroy(self)
871 except: pass
e811c8ce
RD
872
873 def GetTip(*args, **kwargs):
874 """GetTip() -> wxString"""
875 return _misc.TipProvider_GetTip(*args, **kwargs)
876
877 def GetCurrentTip(*args, **kwargs):
878 """GetCurrentTip() -> size_t"""
879 return _misc.TipProvider_GetCurrentTip(*args, **kwargs)
880
881 def PreprocessTip(*args, **kwargs):
882 """PreprocessTip(wxString tip) -> wxString"""
883 return _misc.TipProvider_PreprocessTip(*args, **kwargs)
884
d14a1e28
RD
885
886class TipProviderPtr(TipProvider):
887 def __init__(self, this):
70551f47 888 self.this = this
d14a1e28
RD
889 if not hasattr(self,"thisown"): self.thisown = 0
890 self.__class__ = TipProvider
891_misc.TipProvider_swigregister(TipProviderPtr)
892
893class PyTipProvider(TipProvider):
e811c8ce
RD
894 """"""
895 def __repr__(self):
896 return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 897 def __init__(self, *args, **kwargs):
e811c8ce 898 """__init__(size_t currentTip) -> PyTipProvider"""
d14a1e28
RD
899 newobj = _misc.new_PyTipProvider(*args, **kwargs)
900 self.this = newobj.this
901 self.thisown = 1
902 del newobj.thisown
e811c8ce
RD
903 def _setCallbackInfo(*args, **kwargs):
904 """_setCallbackInfo(PyObject self, PyObject _class)"""
905 return _misc.PyTipProvider__setCallbackInfo(*args, **kwargs)
906
d14a1e28
RD
907
908class PyTipProviderPtr(PyTipProvider):
909 def __init__(self, this):
910 self.this = this
911 if not hasattr(self,"thisown"): self.thisown = 0
912 self.__class__ = PyTipProvider
913_misc.PyTipProvider_swigregister(PyTipProviderPtr)
914
915
e811c8ce
RD
916def ShowTip(*args, **kwargs):
917 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
918 return _misc.ShowTip(*args, **kwargs)
d14a1e28 919
e811c8ce
RD
920def CreateFileTipProvider(*args, **kwargs):
921 """CreateFileTipProvider(wxString filename, size_t currentTip) -> TipProvider"""
922 return _misc.CreateFileTipProvider(*args, **kwargs)
d14a1e28
RD
923#---------------------------------------------------------------------------
924
925TIMER_CONTINUOUS = _misc.TIMER_CONTINUOUS
926TIMER_ONE_SHOT = _misc.TIMER_ONE_SHOT
927wxEVT_TIMER = _misc.wxEVT_TIMER
928class Timer(core.EvtHandler):
e811c8ce
RD
929 """"""
930 def __repr__(self):
931 return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 932 def __init__(self, *args, **kwargs):
e811c8ce 933 """__init__(EvtHandler owner=None, int id=-1) -> Timer"""
d14a1e28
RD
934 newobj = _misc.new_Timer(*args, **kwargs)
935 self.this = newobj.this
936 self.thisown = 1
937 del newobj.thisown
7722248d
RD
938 self._setCallbackInfo(self, Timer)
939
d14a1e28 940 def __del__(self, destroy=_misc.delete_Timer):
e811c8ce 941 """__del__()"""
d14a1e28
RD
942 try:
943 if self.thisown: destroy(self)
944 except: pass
e811c8ce 945
7722248d
RD
946 def _setCallbackInfo(*args, **kwargs):
947 """_setCallbackInfo(PyObject self, PyObject _class)"""
948 return _misc.Timer__setCallbackInfo(*args, **kwargs)
949
e811c8ce
RD
950 def SetOwner(*args, **kwargs):
951 """SetOwner(EvtHandler owner, int id=-1)"""
952 return _misc.Timer_SetOwner(*args, **kwargs)
953
954 def Start(*args, **kwargs):
955 """Start(int milliseconds=-1, bool oneShot=False) -> bool"""
956 return _misc.Timer_Start(*args, **kwargs)
957
958 def Stop(*args, **kwargs):
959 """Stop()"""
960 return _misc.Timer_Stop(*args, **kwargs)
961
e811c8ce
RD
962 def IsRunning(*args, **kwargs):
963 """IsRunning() -> bool"""
964 return _misc.Timer_IsRunning(*args, **kwargs)
965
966 def GetInterval(*args, **kwargs):
967 """GetInterval() -> int"""
968 return _misc.Timer_GetInterval(*args, **kwargs)
969
970 def IsOneShot(*args, **kwargs):
971 """IsOneShot() -> bool"""
972 return _misc.Timer_IsOneShot(*args, **kwargs)
973
d14a1e28
RD
974
975class TimerPtr(Timer):
976 def __init__(self, this):
977 self.this = this
978 if not hasattr(self,"thisown"): self.thisown = 0
979 self.__class__ = Timer
980_misc.Timer_swigregister(TimerPtr)
981
982# For backwards compatibility with 2.4
983class PyTimer(Timer):
984 def __init__(self, notify):
985 Timer.__init__(self)
986 self.notify = notify
987
988 def Notify(self):
989 if self.notify:
990 self.notify()
991
992
993EVT_TIMER = wx.PyEventBinder( wxEVT_TIMER, 1 )
994
995
996class TimerEvent(core.Event):
e811c8ce
RD
997 """"""
998 def __repr__(self):
999 return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1000 def __init__(self, *args, **kwargs):
e811c8ce 1001 """__init__(int timerid=0, int interval=0) -> TimerEvent"""
d14a1e28
RD
1002 newobj = _misc.new_TimerEvent(*args, **kwargs)
1003 self.this = newobj.this
1004 self.thisown = 1
1005 del newobj.thisown
e811c8ce
RD
1006 def GetInterval(*args, **kwargs):
1007 """GetInterval() -> int"""
1008 return _misc.TimerEvent_GetInterval(*args, **kwargs)
1009
d14a1e28
RD
1010
1011class TimerEventPtr(TimerEvent):
1012 def __init__(self, this):
1013 self.this = this
1014 if not hasattr(self,"thisown"): self.thisown = 0
1015 self.__class__ = TimerEvent
1016_misc.TimerEvent_swigregister(TimerEventPtr)
1017
1018class TimerRunner(object):
e811c8ce
RD
1019 """"""
1020 def __repr__(self):
1021 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1022 def __init__(self, *args):
e811c8ce
RD
1023 """__init__(wxTimer timer) -> TimerRunner
1024__init__(wxTimer timer, int milli, bool oneShot=False) -> TimerRunner"""
d14a1e28
RD
1025 newobj = _misc.new_TimerRunner(*args)
1026 self.this = newobj.this
1027 self.thisown = 1
1028 del newobj.thisown
1029 def __del__(self, destroy=_misc.delete_TimerRunner):
e811c8ce 1030 """__del__()"""
d14a1e28
RD
1031 try:
1032 if self.thisown: destroy(self)
1033 except: pass
e811c8ce
RD
1034
1035 def Start(*args, **kwargs):
1036 """Start(int milli, bool oneShot=False)"""
1037 return _misc.TimerRunner_Start(*args, **kwargs)
1038
d14a1e28
RD
1039
1040class TimerRunnerPtr(TimerRunner):
1041 def __init__(self, this):
1042 self.this = this
1043 if not hasattr(self,"thisown"): self.thisown = 0
1044 self.__class__ = TimerRunner
1045_misc.TimerRunner_swigregister(TimerRunnerPtr)
1046
1047#---------------------------------------------------------------------------
1048
1049LOG_FatalError = _misc.LOG_FatalError
1050LOG_Error = _misc.LOG_Error
1051LOG_Warning = _misc.LOG_Warning
1052LOG_Message = _misc.LOG_Message
1053LOG_Status = _misc.LOG_Status
1054LOG_Info = _misc.LOG_Info
1055LOG_Debug = _misc.LOG_Debug
1056LOG_Trace = _misc.LOG_Trace
1057LOG_Progress = _misc.LOG_Progress
1058LOG_User = _misc.LOG_User
1059LOG_Max = _misc.LOG_Max
1060TRACE_MemAlloc = _misc.TRACE_MemAlloc
1061TRACE_Messages = _misc.TRACE_Messages
1062TRACE_ResAlloc = _misc.TRACE_ResAlloc
1063TRACE_RefCount = _misc.TRACE_RefCount
1064TRACE_OleCalls = _misc.TRACE_OleCalls
1065TraceMemAlloc = _misc.TraceMemAlloc
1066TraceMessages = _misc.TraceMessages
1067TraceResAlloc = _misc.TraceResAlloc
1068TraceRefCount = _misc.TraceRefCount
1069TraceOleCalls = _misc.TraceOleCalls
1070class Log(object):
e811c8ce
RD
1071 """"""
1072 def __repr__(self):
1073 return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1074 def __init__(self, *args, **kwargs):
e811c8ce 1075 """__init__() -> Log"""
d14a1e28
RD
1076 newobj = _misc.new_Log(*args, **kwargs)
1077 self.this = newobj.this
faf3cb35 1078 self.thisown = 1
d14a1e28 1079 del newobj.thisown
e811c8ce
RD
1080 def IsEnabled(*args, **kwargs):
1081 """Log.IsEnabled() -> bool"""
1082 return _misc.Log_IsEnabled(*args, **kwargs)
1083
1084 IsEnabled = staticmethod(IsEnabled)
1085 def EnableLogging(*args, **kwargs):
1086 """Log.EnableLogging(bool doIt=True) -> bool"""
1087 return _misc.Log_EnableLogging(*args, **kwargs)
1088
1089 EnableLogging = staticmethod(EnableLogging)
1090 def OnLog(*args, **kwargs):
1091 """Log.OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1092 return _misc.Log_OnLog(*args, **kwargs)
1093
1094 OnLog = staticmethod(OnLog)
1095 def Flush(*args, **kwargs):
1096 """Flush()"""
1097 return _misc.Log_Flush(*args, **kwargs)
1098
1099 def FlushActive(*args, **kwargs):
1100 """Log.FlushActive()"""
1101 return _misc.Log_FlushActive(*args, **kwargs)
1102
1103 FlushActive = staticmethod(FlushActive)
1104 def GetActiveTarget(*args, **kwargs):
1105 """Log.GetActiveTarget() -> Log"""
1106 return _misc.Log_GetActiveTarget(*args, **kwargs)
1107
1108 GetActiveTarget = staticmethod(GetActiveTarget)
1109 def SetActiveTarget(*args, **kwargs):
1110 """Log.SetActiveTarget(Log pLogger) -> Log"""
1111 return _misc.Log_SetActiveTarget(*args, **kwargs)
1112
1113 SetActiveTarget = staticmethod(SetActiveTarget)
1114 def Suspend(*args, **kwargs):
1115 """Log.Suspend()"""
1116 return _misc.Log_Suspend(*args, **kwargs)
1117
1118 Suspend = staticmethod(Suspend)
1119 def Resume(*args, **kwargs):
1120 """Log.Resume()"""
1121 return _misc.Log_Resume(*args, **kwargs)
1122
1123 Resume = staticmethod(Resume)
1124 def SetVerbose(*args, **kwargs):
1125 """Log.SetVerbose(bool bVerbose=True)"""
1126 return _misc.Log_SetVerbose(*args, **kwargs)
1127
1128 SetVerbose = staticmethod(SetVerbose)
1129 def SetLogLevel(*args, **kwargs):
1130 """Log.SetLogLevel(wxLogLevel logLevel)"""
1131 return _misc.Log_SetLogLevel(*args, **kwargs)
1132
1133 SetLogLevel = staticmethod(SetLogLevel)
1134 def DontCreateOnDemand(*args, **kwargs):
1135 """Log.DontCreateOnDemand()"""
1136 return _misc.Log_DontCreateOnDemand(*args, **kwargs)
1137
1138 DontCreateOnDemand = staticmethod(DontCreateOnDemand)
1139 def SetTraceMask(*args, **kwargs):
1140 """Log.SetTraceMask(wxTraceMask ulMask)"""
1141 return _misc.Log_SetTraceMask(*args, **kwargs)
1142
1143 SetTraceMask = staticmethod(SetTraceMask)
1144 def AddTraceMask(*args, **kwargs):
1145 """Log.AddTraceMask(wxString str)"""
1146 return _misc.Log_AddTraceMask(*args, **kwargs)
1147
1148 AddTraceMask = staticmethod(AddTraceMask)
1149 def RemoveTraceMask(*args, **kwargs):
1150 """Log.RemoveTraceMask(wxString str)"""
1151 return _misc.Log_RemoveTraceMask(*args, **kwargs)
1152
1153 RemoveTraceMask = staticmethod(RemoveTraceMask)
1154 def ClearTraceMasks(*args, **kwargs):
1155 """Log.ClearTraceMasks()"""
1156 return _misc.Log_ClearTraceMasks(*args, **kwargs)
1157
1158 ClearTraceMasks = staticmethod(ClearTraceMasks)
1159 def GetTraceMasks(*args, **kwargs):
1160 """Log.GetTraceMasks() -> wxArrayString"""
1161 return _misc.Log_GetTraceMasks(*args, **kwargs)
1162
1163 GetTraceMasks = staticmethod(GetTraceMasks)
1164 def SetTimestamp(*args, **kwargs):
1165 """Log.SetTimestamp(wxChar ts)"""
1166 return _misc.Log_SetTimestamp(*args, **kwargs)
1167
1168 SetTimestamp = staticmethod(SetTimestamp)
1169 def GetVerbose(*args, **kwargs):
1170 """Log.GetVerbose() -> bool"""
1171 return _misc.Log_GetVerbose(*args, **kwargs)
1172
1173 GetVerbose = staticmethod(GetVerbose)
1174 def GetTraceMask(*args, **kwargs):
1175 """Log.GetTraceMask() -> wxTraceMask"""
1176 return _misc.Log_GetTraceMask(*args, **kwargs)
1177
1178 GetTraceMask = staticmethod(GetTraceMask)
1179 def IsAllowedTraceMask(*args, **kwargs):
1180 """Log.IsAllowedTraceMask(wxChar mask) -> bool"""
1181 return _misc.Log_IsAllowedTraceMask(*args, **kwargs)
1182
1183 IsAllowedTraceMask = staticmethod(IsAllowedTraceMask)
1184 def GetLogLevel(*args, **kwargs):
1185 """Log.GetLogLevel() -> wxLogLevel"""
1186 return _misc.Log_GetLogLevel(*args, **kwargs)
1187
1188 GetLogLevel = staticmethod(GetLogLevel)
1189 def GetTimestamp(*args, **kwargs):
1190 """Log.GetTimestamp() -> wxChar"""
1191 return _misc.Log_GetTimestamp(*args, **kwargs)
1192
1193 GetTimestamp = staticmethod(GetTimestamp)
1194 def TimeStamp(*args, **kwargs):
1195 """Log.TimeStamp() -> wxString"""
1196 return _misc.Log_TimeStamp(*args, **kwargs)
1197
1198 TimeStamp = staticmethod(TimeStamp)
1199 def Destroy(*args, **kwargs):
1200 """Destroy()"""
1201 return _misc.Log_Destroy(*args, **kwargs)
1202
d14a1e28
RD
1203
1204class LogPtr(Log):
1205 def __init__(self, this):
1206 self.this = this
1207 if not hasattr(self,"thisown"): self.thisown = 0
1208 self.__class__ = Log
1209_misc.Log_swigregister(LogPtr)
1210
e811c8ce
RD
1211def Log_IsEnabled(*args, **kwargs):
1212 """Log_IsEnabled() -> bool"""
1213 return _misc.Log_IsEnabled(*args, **kwargs)
d14a1e28 1214
e811c8ce
RD
1215def Log_EnableLogging(*args, **kwargs):
1216 """Log_EnableLogging(bool doIt=True) -> bool"""
1217 return _misc.Log_EnableLogging(*args, **kwargs)
d14a1e28 1218
e811c8ce
RD
1219def Log_OnLog(*args, **kwargs):
1220 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1221 return _misc.Log_OnLog(*args, **kwargs)
d14a1e28 1222
e811c8ce
RD
1223def Log_FlushActive(*args, **kwargs):
1224 """Log_FlushActive()"""
1225 return _misc.Log_FlushActive(*args, **kwargs)
d14a1e28 1226
e811c8ce
RD
1227def Log_GetActiveTarget(*args, **kwargs):
1228 """Log_GetActiveTarget() -> Log"""
1229 return _misc.Log_GetActiveTarget(*args, **kwargs)
d14a1e28 1230
e811c8ce
RD
1231def Log_SetActiveTarget(*args, **kwargs):
1232 """Log_SetActiveTarget(Log pLogger) -> Log"""
1233 return _misc.Log_SetActiveTarget(*args, **kwargs)
d14a1e28 1234
e811c8ce
RD
1235def Log_Suspend(*args, **kwargs):
1236 """Log_Suspend()"""
1237 return _misc.Log_Suspend(*args, **kwargs)
d14a1e28 1238
e811c8ce
RD
1239def Log_Resume(*args, **kwargs):
1240 """Log_Resume()"""
1241 return _misc.Log_Resume(*args, **kwargs)
d14a1e28 1242
e811c8ce
RD
1243def Log_SetVerbose(*args, **kwargs):
1244 """Log_SetVerbose(bool bVerbose=True)"""
1245 return _misc.Log_SetVerbose(*args, **kwargs)
d14a1e28 1246
e811c8ce
RD
1247def Log_SetLogLevel(*args, **kwargs):
1248 """Log_SetLogLevel(wxLogLevel logLevel)"""
1249 return _misc.Log_SetLogLevel(*args, **kwargs)
d14a1e28 1250
e811c8ce
RD
1251def Log_DontCreateOnDemand(*args, **kwargs):
1252 """Log_DontCreateOnDemand()"""
1253 return _misc.Log_DontCreateOnDemand(*args, **kwargs)
d14a1e28 1254
e811c8ce
RD
1255def Log_SetTraceMask(*args, **kwargs):
1256 """Log_SetTraceMask(wxTraceMask ulMask)"""
1257 return _misc.Log_SetTraceMask(*args, **kwargs)
d14a1e28 1258
e811c8ce
RD
1259def Log_AddTraceMask(*args, **kwargs):
1260 """Log_AddTraceMask(wxString str)"""
1261 return _misc.Log_AddTraceMask(*args, **kwargs)
d14a1e28 1262
e811c8ce
RD
1263def Log_RemoveTraceMask(*args, **kwargs):
1264 """Log_RemoveTraceMask(wxString str)"""
1265 return _misc.Log_RemoveTraceMask(*args, **kwargs)
d14a1e28 1266
e811c8ce
RD
1267def Log_ClearTraceMasks(*args, **kwargs):
1268 """Log_ClearTraceMasks()"""
1269 return _misc.Log_ClearTraceMasks(*args, **kwargs)
d14a1e28 1270
e811c8ce
RD
1271def Log_GetTraceMasks(*args, **kwargs):
1272 """Log_GetTraceMasks() -> wxArrayString"""
1273 return _misc.Log_GetTraceMasks(*args, **kwargs)
faf3cb35 1274
e811c8ce
RD
1275def Log_SetTimestamp(*args, **kwargs):
1276 """Log_SetTimestamp(wxChar ts)"""
1277 return _misc.Log_SetTimestamp(*args, **kwargs)
faf3cb35 1278
e811c8ce
RD
1279def Log_GetVerbose(*args, **kwargs):
1280 """Log_GetVerbose() -> bool"""
1281 return _misc.Log_GetVerbose(*args, **kwargs)
faf3cb35 1282
e811c8ce
RD
1283def Log_GetTraceMask(*args, **kwargs):
1284 """Log_GetTraceMask() -> wxTraceMask"""
1285 return _misc.Log_GetTraceMask(*args, **kwargs)
faf3cb35 1286
e811c8ce
RD
1287def Log_IsAllowedTraceMask(*args, **kwargs):
1288 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1289 return _misc.Log_IsAllowedTraceMask(*args, **kwargs)
d14a1e28 1290
e811c8ce
RD
1291def Log_GetLogLevel(*args, **kwargs):
1292 """Log_GetLogLevel() -> wxLogLevel"""
1293 return _misc.Log_GetLogLevel(*args, **kwargs)
d14a1e28 1294
e811c8ce
RD
1295def Log_GetTimestamp(*args, **kwargs):
1296 """Log_GetTimestamp() -> wxChar"""
1297 return _misc.Log_GetTimestamp(*args, **kwargs)
d14a1e28 1298
e811c8ce
RD
1299def Log_TimeStamp(*args, **kwargs):
1300 """Log_TimeStamp() -> wxString"""
1301 return _misc.Log_TimeStamp(*args, **kwargs)
d14a1e28
RD
1302
1303class LogStderr(Log):
e811c8ce
RD
1304 """"""
1305 def __repr__(self):
1306 return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1307 def __init__(self, *args, **kwargs):
e811c8ce 1308 """__init__() -> LogStderr"""
d14a1e28
RD
1309 newobj = _misc.new_LogStderr(*args, **kwargs)
1310 self.this = newobj.this
1311 self.thisown = 1
1312 del newobj.thisown
d14a1e28
RD
1313
1314class LogStderrPtr(LogStderr):
1315 def __init__(self, this):
1316 self.this = this
1317 if not hasattr(self,"thisown"): self.thisown = 0
1318 self.__class__ = LogStderr
1319_misc.LogStderr_swigregister(LogStderrPtr)
1320
1321class LogTextCtrl(Log):
e811c8ce
RD
1322 """"""
1323 def __repr__(self):
1324 return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1325 def __init__(self, *args, **kwargs):
e811c8ce 1326 """__init__(wxTextCtrl pTextCtrl) -> LogTextCtrl"""
d14a1e28
RD
1327 newobj = _misc.new_LogTextCtrl(*args, **kwargs)
1328 self.this = newobj.this
1329 self.thisown = 1
1330 del newobj.thisown
d14a1e28
RD
1331
1332class LogTextCtrlPtr(LogTextCtrl):
1333 def __init__(self, this):
1334 self.this = this
1335 if not hasattr(self,"thisown"): self.thisown = 0
1336 self.__class__ = LogTextCtrl
1337_misc.LogTextCtrl_swigregister(LogTextCtrlPtr)
1338
1339class LogGui(Log):
e811c8ce
RD
1340 """"""
1341 def __repr__(self):
1342 return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1343 def __init__(self, *args, **kwargs):
e811c8ce 1344 """__init__() -> LogGui"""
d14a1e28
RD
1345 newobj = _misc.new_LogGui(*args, **kwargs)
1346 self.this = newobj.this
1347 self.thisown = 1
1348 del newobj.thisown
d14a1e28
RD
1349
1350class LogGuiPtr(LogGui):
1351 def __init__(self, this):
faf3cb35 1352 self.this = this
d14a1e28
RD
1353 if not hasattr(self,"thisown"): self.thisown = 0
1354 self.__class__ = LogGui
1355_misc.LogGui_swigregister(LogGuiPtr)
1356
1357class LogWindow(Log):
e811c8ce
RD
1358 """"""
1359 def __repr__(self):
1360 return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1361 def __init__(self, *args, **kwargs):
e811c8ce
RD
1362 """__init__(wxFrame pParent, wxString szTitle, bool bShow=True,
1363 bool bPassToOld=True) -> LogWindow"""
d14a1e28
RD
1364 newobj = _misc.new_LogWindow(*args, **kwargs)
1365 self.this = newobj.this
1366 self.thisown = 1
1367 del newobj.thisown
e811c8ce
RD
1368 def Show(*args, **kwargs):
1369 """Show(bool bShow=True)"""
1370 return _misc.LogWindow_Show(*args, **kwargs)
1371
1372 def GetFrame(*args, **kwargs):
1373 """GetFrame() -> wxFrame"""
1374 return _misc.LogWindow_GetFrame(*args, **kwargs)
1375
1376 def GetOldLog(*args, **kwargs):
1377 """GetOldLog() -> Log"""
1378 return _misc.LogWindow_GetOldLog(*args, **kwargs)
1379
1380 def IsPassingMessages(*args, **kwargs):
1381 """IsPassingMessages() -> bool"""
1382 return _misc.LogWindow_IsPassingMessages(*args, **kwargs)
1383
1384 def PassMessages(*args, **kwargs):
1385 """PassMessages(bool bDoPass)"""
1386 return _misc.LogWindow_PassMessages(*args, **kwargs)
1387
d14a1e28
RD
1388
1389class LogWindowPtr(LogWindow):
1390 def __init__(self, this):
1391 self.this = this
1392 if not hasattr(self,"thisown"): self.thisown = 0
1393 self.__class__ = LogWindow
1394_misc.LogWindow_swigregister(LogWindowPtr)
1395
1396class LogChain(Log):
e811c8ce
RD
1397 """"""
1398 def __repr__(self):
1399 return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1400 def __init__(self, *args, **kwargs):
e811c8ce 1401 """__init__(Log logger) -> LogChain"""
d14a1e28
RD
1402 newobj = _misc.new_LogChain(*args, **kwargs)
1403 self.this = newobj.this
faf3cb35 1404 self.thisown = 1
d14a1e28 1405 del newobj.thisown
e811c8ce
RD
1406 def SetLog(*args, **kwargs):
1407 """SetLog(Log logger)"""
1408 return _misc.LogChain_SetLog(*args, **kwargs)
1409
1410 def PassMessages(*args, **kwargs):
1411 """PassMessages(bool bDoPass)"""
1412 return _misc.LogChain_PassMessages(*args, **kwargs)
1413
1414 def IsPassingMessages(*args, **kwargs):
1415 """IsPassingMessages() -> bool"""
1416 return _misc.LogChain_IsPassingMessages(*args, **kwargs)
1417
1418 def GetOldLog(*args, **kwargs):
1419 """GetOldLog() -> Log"""
1420 return _misc.LogChain_GetOldLog(*args, **kwargs)
1421
d14a1e28
RD
1422
1423class LogChainPtr(LogChain):
1424 def __init__(self, this):
1425 self.this = this
1426 if not hasattr(self,"thisown"): self.thisown = 0
1427 self.__class__ = LogChain
1428_misc.LogChain_swigregister(LogChainPtr)
1429
1430
e811c8ce
RD
1431def SysErrorCode(*args, **kwargs):
1432 """SysErrorCode() -> unsigned long"""
1433 return _misc.SysErrorCode(*args, **kwargs)
d14a1e28 1434
e811c8ce
RD
1435def SysErrorMsg(*args, **kwargs):
1436 """SysErrorMsg(unsigned long nErrCode=0) -> wxString"""
1437 return _misc.SysErrorMsg(*args, **kwargs)
d14a1e28 1438
e811c8ce
RD
1439def LogFatalError(*args, **kwargs):
1440 """LogFatalError(wxString msg)"""
1441 return _misc.LogFatalError(*args, **kwargs)
d14a1e28 1442
e811c8ce
RD
1443def LogError(*args, **kwargs):
1444 """LogError(wxString msg)"""
1445 return _misc.LogError(*args, **kwargs)
d14a1e28 1446
e811c8ce
RD
1447def LogWarning(*args, **kwargs):
1448 """LogWarning(wxString msg)"""
1449 return _misc.LogWarning(*args, **kwargs)
d14a1e28 1450
e811c8ce
RD
1451def LogMessage(*args, **kwargs):
1452 """LogMessage(wxString msg)"""
1453 return _misc.LogMessage(*args, **kwargs)
d14a1e28 1454
e811c8ce
RD
1455def LogInfo(*args, **kwargs):
1456 """LogInfo(wxString msg)"""
1457 return _misc.LogInfo(*args, **kwargs)
d14a1e28 1458
e811c8ce
RD
1459def LogDebug(*args, **kwargs):
1460 """LogDebug(wxString msg)"""
1461 return _misc.LogDebug(*args, **kwargs)
d14a1e28 1462
e811c8ce
RD
1463def LogVerbose(*args, **kwargs):
1464 """LogVerbose(wxString msg)"""
1465 return _misc.LogVerbose(*args, **kwargs)
d14a1e28 1466
e811c8ce
RD
1467def LogStatus(*args, **kwargs):
1468 """LogStatus(wxString msg)"""
1469 return _misc.LogStatus(*args, **kwargs)
faf3cb35 1470
e811c8ce
RD
1471def LogStatusFrame(*args, **kwargs):
1472 """LogStatusFrame(wxFrame pFrame, wxString msg)"""
1473 return _misc.LogStatusFrame(*args, **kwargs)
faf3cb35 1474
e811c8ce
RD
1475def LogSysError(*args, **kwargs):
1476 """LogSysError(wxString msg)"""
1477 return _misc.LogSysError(*args, **kwargs)
faf3cb35 1478
e811c8ce
RD
1479def LogTrace(*args, **kwargs):
1480 """LogTrace(wxString msg)"""
1481 return _misc.LogTrace(*args, **kwargs)
faf3cb35 1482
e811c8ce
RD
1483def LogTraceMask(*args, **kwargs):
1484 """LogTraceMask(wxString mask, wxString msg)"""
1485 return _misc.LogTraceMask(*args, **kwargs)
d14a1e28 1486
e811c8ce
RD
1487def LogGeneric(*args, **kwargs):
1488 """LogGeneric(unsigned long level, wxString msg)"""
1489 return _misc.LogGeneric(*args, **kwargs)
d14a1e28 1490
e811c8ce
RD
1491def SafeShowMessage(*args, **kwargs):
1492 """SafeShowMessage(wxString title, wxString text)"""
1493 return _misc.SafeShowMessage(*args, **kwargs)
d14a1e28 1494class LogNull(object):
e811c8ce
RD
1495 """"""
1496 def __repr__(self):
1497 return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1498 def __init__(self, *args, **kwargs):
e811c8ce 1499 """__init__() -> LogNull"""
d14a1e28
RD
1500 newobj = _misc.new_LogNull(*args, **kwargs)
1501 self.this = newobj.this
1502 self.thisown = 1
1503 del newobj.thisown
1504 def __del__(self, destroy=_misc.delete_LogNull):
e811c8ce 1505 """__del__()"""
d14a1e28
RD
1506 try:
1507 if self.thisown: destroy(self)
1508 except: pass
e811c8ce 1509
d14a1e28
RD
1510
1511class LogNullPtr(LogNull):
1512 def __init__(self, this):
4120ef2b 1513 self.this = this
d14a1e28
RD
1514 if not hasattr(self,"thisown"): self.thisown = 0
1515 self.__class__ = LogNull
1516_misc.LogNull_swigregister(LogNullPtr)
1517
1518class PyLog(Log):
e811c8ce
RD
1519 """"""
1520 def __repr__(self):
1521 return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1522 def __init__(self, *args, **kwargs):
e811c8ce 1523 """__init__() -> PyLog"""
d14a1e28
RD
1524 newobj = _misc.new_PyLog(*args, **kwargs)
1525 self.this = newobj.this
1526 self.thisown = 1
1527 del newobj.thisown
1528 self._setCallbackInfo(self, PyLog)
e811c8ce
RD
1529
1530 def _setCallbackInfo(*args, **kwargs):
1531 """_setCallbackInfo(PyObject self, PyObject _class)"""
1532 return _misc.PyLog__setCallbackInfo(*args, **kwargs)
1533
d14a1e28
RD
1534
1535class PyLogPtr(PyLog):
1536 def __init__(self, this):
1537 self.this = this
1538 if not hasattr(self,"thisown"): self.thisown = 0
1539 self.__class__ = PyLog
1540_misc.PyLog_swigregister(PyLogPtr)
1541
1542#---------------------------------------------------------------------------
1543
1544PROCESS_DEFAULT = _misc.PROCESS_DEFAULT
1545PROCESS_REDIRECT = _misc.PROCESS_REDIRECT
1546KILL_OK = _misc.KILL_OK
1547KILL_BAD_SIGNAL = _misc.KILL_BAD_SIGNAL
1548KILL_ACCESS_DENIED = _misc.KILL_ACCESS_DENIED
1549KILL_NO_PROCESS = _misc.KILL_NO_PROCESS
1550KILL_ERROR = _misc.KILL_ERROR
1551SIGNONE = _misc.SIGNONE
1552SIGHUP = _misc.SIGHUP
1553SIGINT = _misc.SIGINT
1554SIGQUIT = _misc.SIGQUIT
1555SIGILL = _misc.SIGILL
1556SIGTRAP = _misc.SIGTRAP
1557SIGABRT = _misc.SIGABRT
1558SIGIOT = _misc.SIGIOT
1559SIGEMT = _misc.SIGEMT
1560SIGFPE = _misc.SIGFPE
1561SIGKILL = _misc.SIGKILL
1562SIGBUS = _misc.SIGBUS
1563SIGSEGV = _misc.SIGSEGV
1564SIGSYS = _misc.SIGSYS
1565SIGPIPE = _misc.SIGPIPE
1566SIGALRM = _misc.SIGALRM
1567SIGTERM = _misc.SIGTERM
1568class Process(core.EvtHandler):
e811c8ce
RD
1569 """"""
1570 def __repr__(self):
1571 return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1572 def Kill(*args, **kwargs):
1573 """Process.Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError"""
1574 return _misc.Process_Kill(*args, **kwargs)
1575
1576 Kill = staticmethod(Kill)
1577 def Exists(*args, **kwargs):
1578 """Process.Exists(int pid) -> bool"""
1579 return _misc.Process_Exists(*args, **kwargs)
1580
1581 Exists = staticmethod(Exists)
1582 def Open(*args, **kwargs):
1583 """Process.Open(wxString cmd, int flags=EXEC_ASYNC) -> Process"""
1584 return _misc.Process_Open(*args, **kwargs)
1585
1586 Open = staticmethod(Open)
d14a1e28 1587 def __init__(self, *args, **kwargs):
e811c8ce 1588 """__init__(EvtHandler parent=None, int id=-1) -> Process"""
d14a1e28
RD
1589 newobj = _misc.new_Process(*args, **kwargs)
1590 self.this = newobj.this
4120ef2b 1591 self.thisown = 1
d14a1e28
RD
1592 del newobj.thisown
1593 self._setCallbackInfo(self, Process)
e811c8ce
RD
1594
1595 def _setCallbackInfo(*args, **kwargs):
1596 """_setCallbackInfo(PyObject self, PyObject _class)"""
1597 return _misc.Process__setCallbackInfo(*args, **kwargs)
1598
1599 def base_OnTerminate(*args, **kwargs):
1600 """base_OnTerminate(int pid, int status)"""
1601 return _misc.Process_base_OnTerminate(*args, **kwargs)
1602
1603 def Redirect(*args, **kwargs):
1604 """Redirect()"""
1605 return _misc.Process_Redirect(*args, **kwargs)
1606
1607 def IsRedirected(*args, **kwargs):
1608 """IsRedirected() -> bool"""
1609 return _misc.Process_IsRedirected(*args, **kwargs)
1610
1611 def Detach(*args, **kwargs):
1612 """Detach()"""
1613 return _misc.Process_Detach(*args, **kwargs)
1614
1615 def GetInputStream(*args, **kwargs):
1616 """GetInputStream() -> wxInputStream"""
1617 return _misc.Process_GetInputStream(*args, **kwargs)
1618
1619 def GetErrorStream(*args, **kwargs):
1620 """GetErrorStream() -> wxInputStream"""
1621 return _misc.Process_GetErrorStream(*args, **kwargs)
1622
1623 def GetOutputStream(*args, **kwargs):
1624 """GetOutputStream() -> OutputStream"""
1625 return _misc.Process_GetOutputStream(*args, **kwargs)
1626
1627 def CloseOutput(*args, **kwargs):
1628 """CloseOutput()"""
1629 return _misc.Process_CloseOutput(*args, **kwargs)
1630
1631 def IsInputOpened(*args, **kwargs):
1632 """IsInputOpened() -> bool"""
1633 return _misc.Process_IsInputOpened(*args, **kwargs)
1634
1635 def IsInputAvailable(*args, **kwargs):
1636 """IsInputAvailable() -> bool"""
1637 return _misc.Process_IsInputAvailable(*args, **kwargs)
1638
1639 def IsErrorAvailable(*args, **kwargs):
1640 """IsErrorAvailable() -> bool"""
1641 return _misc.Process_IsErrorAvailable(*args, **kwargs)
1642
4120ef2b 1643
d14a1e28
RD
1644class ProcessPtr(Process):
1645 def __init__(self, this):
1646 self.this = this
1647 if not hasattr(self,"thisown"): self.thisown = 0
1648 self.__class__ = Process
1649_misc.Process_swigregister(ProcessPtr)
4120ef2b 1650
e811c8ce
RD
1651def Process_Kill(*args, **kwargs):
1652 """Process_Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError"""
1653 return _misc.Process_Kill(*args, **kwargs)
4120ef2b 1654
e811c8ce
RD
1655def Process_Exists(*args, **kwargs):
1656 """Process_Exists(int pid) -> bool"""
1657 return _misc.Process_Exists(*args, **kwargs)
4120ef2b 1658
e811c8ce
RD
1659def Process_Open(*args, **kwargs):
1660 """Process_Open(wxString cmd, int flags=EXEC_ASYNC) -> Process"""
1661 return _misc.Process_Open(*args, **kwargs)
70551f47 1662
d14a1e28 1663class ProcessEvent(core.Event):
e811c8ce
RD
1664 """"""
1665 def __repr__(self):
1666 return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1667 def __init__(self, *args, **kwargs):
e811c8ce 1668 """__init__(int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
d14a1e28
RD
1669 newobj = _misc.new_ProcessEvent(*args, **kwargs)
1670 self.this = newobj.this
1671 self.thisown = 1
1672 del newobj.thisown
e811c8ce
RD
1673 def GetPid(*args, **kwargs):
1674 """GetPid() -> int"""
1675 return _misc.ProcessEvent_GetPid(*args, **kwargs)
1676
1677 def GetExitCode(*args, **kwargs):
1678 """GetExitCode() -> int"""
1679 return _misc.ProcessEvent_GetExitCode(*args, **kwargs)
1680
d14a1e28
RD
1681 m_pid = property(_misc.ProcessEvent_m_pid_get, _misc.ProcessEvent_m_pid_set)
1682 m_exitcode = property(_misc.ProcessEvent_m_exitcode_get, _misc.ProcessEvent_m_exitcode_set)
70551f47 1683
d14a1e28
RD
1684class ProcessEventPtr(ProcessEvent):
1685 def __init__(self, this):
1686 self.this = this
1687 if not hasattr(self,"thisown"): self.thisown = 0
1688 self.__class__ = ProcessEvent
1689_misc.ProcessEvent_swigregister(ProcessEventPtr)
1690
1691wxEVT_END_PROCESS = _misc.wxEVT_END_PROCESS
1692EVT_END_PROCESS = wx.PyEventBinder( wxEVT_END_PROCESS, 1 )
1693
1694EXEC_ASYNC = _misc.EXEC_ASYNC
1695EXEC_SYNC = _misc.EXEC_SYNC
1696EXEC_NOHIDE = _misc.EXEC_NOHIDE
1697EXEC_MAKE_GROUP_LEADER = _misc.EXEC_MAKE_GROUP_LEADER
1698
e811c8ce
RD
1699def Execute(*args, **kwargs):
1700 """Execute(wxString command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1701 return _misc.Execute(*args, **kwargs)
d14a1e28
RD
1702#---------------------------------------------------------------------------
1703
1704JOYSTICK1 = _misc.JOYSTICK1
1705JOYSTICK2 = _misc.JOYSTICK2
1706JOY_BUTTON_ANY = _misc.JOY_BUTTON_ANY
1707JOY_BUTTON1 = _misc.JOY_BUTTON1
1708JOY_BUTTON2 = _misc.JOY_BUTTON2
1709JOY_BUTTON3 = _misc.JOY_BUTTON3
1710JOY_BUTTON4 = _misc.JOY_BUTTON4
1711class Joystick(object):
e811c8ce
RD
1712 """"""
1713 def __repr__(self):
1714 return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1715 def __init__(self, *args, **kwargs):
e811c8ce 1716 """__init__(int joystick=JOYSTICK1) -> Joystick"""
d14a1e28
RD
1717 newobj = _misc.new_Joystick(*args, **kwargs)
1718 self.this = newobj.this
1719 self.thisown = 1
1720 del newobj.thisown
1721 def __del__(self, destroy=_misc.delete_Joystick):
e811c8ce 1722 """__del__()"""
d14a1e28
RD
1723 try:
1724 if self.thisown: destroy(self)
1725 except: pass
e811c8ce
RD
1726
1727 def GetPosition(*args, **kwargs):
1728 """GetPosition() -> Point"""
1729 return _misc.Joystick_GetPosition(*args, **kwargs)
1730
1731 def GetZPosition(*args, **kwargs):
1732 """GetZPosition() -> int"""
1733 return _misc.Joystick_GetZPosition(*args, **kwargs)
1734
1735 def GetButtonState(*args, **kwargs):
1736 """GetButtonState() -> int"""
1737 return _misc.Joystick_GetButtonState(*args, **kwargs)
1738
1739 def GetPOVPosition(*args, **kwargs):
1740 """GetPOVPosition() -> int"""
1741 return _misc.Joystick_GetPOVPosition(*args, **kwargs)
1742
1743 def GetPOVCTSPosition(*args, **kwargs):
1744 """GetPOVCTSPosition() -> int"""
1745 return _misc.Joystick_GetPOVCTSPosition(*args, **kwargs)
1746
1747 def GetRudderPosition(*args, **kwargs):
1748 """GetRudderPosition() -> int"""
1749 return _misc.Joystick_GetRudderPosition(*args, **kwargs)
1750
1751 def GetUPosition(*args, **kwargs):
1752 """GetUPosition() -> int"""
1753 return _misc.Joystick_GetUPosition(*args, **kwargs)
1754
1755 def GetVPosition(*args, **kwargs):
1756 """GetVPosition() -> int"""
1757 return _misc.Joystick_GetVPosition(*args, **kwargs)
1758
1759 def GetMovementThreshold(*args, **kwargs):
1760 """GetMovementThreshold() -> int"""
1761 return _misc.Joystick_GetMovementThreshold(*args, **kwargs)
1762
1763 def SetMovementThreshold(*args, **kwargs):
1764 """SetMovementThreshold(int threshold)"""
1765 return _misc.Joystick_SetMovementThreshold(*args, **kwargs)
1766
1767 def IsOk(*args, **kwargs):
1768 """IsOk(void ??) -> bool"""
1769 return _misc.Joystick_IsOk(*args, **kwargs)
1770
1771 def GetNumberJoysticks(*args, **kwargs):
1772 """GetNumberJoysticks() -> int"""
1773 return _misc.Joystick_GetNumberJoysticks(*args, **kwargs)
1774
1775 def GetManufacturerId(*args, **kwargs):
1776 """GetManufacturerId() -> int"""
1777 return _misc.Joystick_GetManufacturerId(*args, **kwargs)
1778
1779 def GetProductId(*args, **kwargs):
1780 """GetProductId() -> int"""
1781 return _misc.Joystick_GetProductId(*args, **kwargs)
1782
1783 def GetProductName(*args, **kwargs):
1784 """GetProductName() -> wxString"""
1785 return _misc.Joystick_GetProductName(*args, **kwargs)
1786
1787 def GetXMin(*args, **kwargs):
1788 """GetXMin() -> int"""
1789 return _misc.Joystick_GetXMin(*args, **kwargs)
1790
1791 def GetYMin(*args, **kwargs):
1792 """GetYMin() -> int"""
1793 return _misc.Joystick_GetYMin(*args, **kwargs)
1794
1795 def GetZMin(*args, **kwargs):
1796 """GetZMin() -> int"""
1797 return _misc.Joystick_GetZMin(*args, **kwargs)
1798
1799 def GetXMax(*args, **kwargs):
1800 """GetXMax() -> int"""
1801 return _misc.Joystick_GetXMax(*args, **kwargs)
1802
1803 def GetYMax(*args, **kwargs):
1804 """GetYMax() -> int"""
1805 return _misc.Joystick_GetYMax(*args, **kwargs)
1806
1807 def GetZMax(*args, **kwargs):
1808 """GetZMax() -> int"""
1809 return _misc.Joystick_GetZMax(*args, **kwargs)
1810
1811 def GetNumberButtons(*args, **kwargs):
1812 """GetNumberButtons() -> int"""
1813 return _misc.Joystick_GetNumberButtons(*args, **kwargs)
1814
1815 def GetNumberAxes(*args, **kwargs):
1816 """GetNumberAxes() -> int"""
1817 return _misc.Joystick_GetNumberAxes(*args, **kwargs)
1818
1819 def GetMaxButtons(*args, **kwargs):
1820 """GetMaxButtons() -> int"""
1821 return _misc.Joystick_GetMaxButtons(*args, **kwargs)
1822
1823 def GetMaxAxes(*args, **kwargs):
1824 """GetMaxAxes() -> int"""
1825 return _misc.Joystick_GetMaxAxes(*args, **kwargs)
1826
1827 def GetPollingMin(*args, **kwargs):
1828 """GetPollingMin() -> int"""
1829 return _misc.Joystick_GetPollingMin(*args, **kwargs)
1830
1831 def GetPollingMax(*args, **kwargs):
1832 """GetPollingMax() -> int"""
1833 return _misc.Joystick_GetPollingMax(*args, **kwargs)
1834
1835 def GetRudderMin(*args, **kwargs):
1836 """GetRudderMin() -> int"""
1837 return _misc.Joystick_GetRudderMin(*args, **kwargs)
1838
1839 def GetRudderMax(*args, **kwargs):
1840 """GetRudderMax() -> int"""
1841 return _misc.Joystick_GetRudderMax(*args, **kwargs)
1842
1843 def GetUMin(*args, **kwargs):
1844 """GetUMin() -> int"""
1845 return _misc.Joystick_GetUMin(*args, **kwargs)
1846
1847 def GetUMax(*args, **kwargs):
1848 """GetUMax() -> int"""
1849 return _misc.Joystick_GetUMax(*args, **kwargs)
1850
1851 def GetVMin(*args, **kwargs):
1852 """GetVMin() -> int"""
1853 return _misc.Joystick_GetVMin(*args, **kwargs)
1854
1855 def GetVMax(*args, **kwargs):
1856 """GetVMax() -> int"""
1857 return _misc.Joystick_GetVMax(*args, **kwargs)
1858
1859 def HasRudder(*args, **kwargs):
1860 """HasRudder() -> bool"""
1861 return _misc.Joystick_HasRudder(*args, **kwargs)
1862
1863 def HasZ(*args, **kwargs):
1864 """HasZ() -> bool"""
1865 return _misc.Joystick_HasZ(*args, **kwargs)
1866
1867 def HasU(*args, **kwargs):
1868 """HasU() -> bool"""
1869 return _misc.Joystick_HasU(*args, **kwargs)
1870
1871 def HasV(*args, **kwargs):
1872 """HasV() -> bool"""
1873 return _misc.Joystick_HasV(*args, **kwargs)
1874
1875 def HasPOV(*args, **kwargs):
1876 """HasPOV() -> bool"""
1877 return _misc.Joystick_HasPOV(*args, **kwargs)
1878
1879 def HasPOV4Dir(*args, **kwargs):
1880 """HasPOV4Dir() -> bool"""
1881 return _misc.Joystick_HasPOV4Dir(*args, **kwargs)
1882
1883 def HasPOVCTS(*args, **kwargs):
1884 """HasPOVCTS() -> bool"""
1885 return _misc.Joystick_HasPOVCTS(*args, **kwargs)
1886
1887 def SetCapture(*args, **kwargs):
1888 """SetCapture(Window win, int pollingFreq=0) -> bool"""
1889 return _misc.Joystick_SetCapture(*args, **kwargs)
1890
1891 def ReleaseCapture(*args, **kwargs):
1892 """ReleaseCapture() -> bool"""
1893 return _misc.Joystick_ReleaseCapture(*args, **kwargs)
1894
d14a1e28 1895 def __nonzero__(self): return self.IsOk()
70551f47 1896
d14a1e28
RD
1897class JoystickPtr(Joystick):
1898 def __init__(self, this):
1899 self.this = this
1900 if not hasattr(self,"thisown"): self.thisown = 0
1901 self.__class__ = Joystick
1902_misc.Joystick_swigregister(JoystickPtr)
1903
1904wxEVT_JOY_BUTTON_DOWN = _misc.wxEVT_JOY_BUTTON_DOWN
1905wxEVT_JOY_BUTTON_UP = _misc.wxEVT_JOY_BUTTON_UP
1906wxEVT_JOY_MOVE = _misc.wxEVT_JOY_MOVE
1907wxEVT_JOY_ZMOVE = _misc.wxEVT_JOY_ZMOVE
1908class JoystickEvent(core.Event):
e811c8ce
RD
1909 """"""
1910 def __repr__(self):
1911 return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28
RD
1912 m_pos = property(_misc.JoystickEvent_m_pos_get, _misc.JoystickEvent_m_pos_set)
1913 m_zPosition = property(_misc.JoystickEvent_m_zPosition_get, _misc.JoystickEvent_m_zPosition_set)
1914 m_buttonChange = property(_misc.JoystickEvent_m_buttonChange_get, _misc.JoystickEvent_m_buttonChange_set)
1915 m_buttonState = property(_misc.JoystickEvent_m_buttonState_get, _misc.JoystickEvent_m_buttonState_set)
1916 m_joyStick = property(_misc.JoystickEvent_m_joyStick_get, _misc.JoystickEvent_m_joyStick_set)
1917 def __init__(self, *args, **kwargs):
e811c8ce
RD
1918 """__init__(wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
1919 int change=0) -> JoystickEvent"""
d14a1e28
RD
1920 newobj = _misc.new_JoystickEvent(*args, **kwargs)
1921 self.this = newobj.this
1922 self.thisown = 1
1923 del newobj.thisown
e811c8ce
RD
1924 def GetPosition(*args, **kwargs):
1925 """GetPosition() -> Point"""
1926 return _misc.JoystickEvent_GetPosition(*args, **kwargs)
1927
1928 def GetZPosition(*args, **kwargs):
1929 """GetZPosition() -> int"""
1930 return _misc.JoystickEvent_GetZPosition(*args, **kwargs)
1931
1932 def GetButtonState(*args, **kwargs):
1933 """GetButtonState() -> int"""
1934 return _misc.JoystickEvent_GetButtonState(*args, **kwargs)
1935
1936 def GetButtonChange(*args, **kwargs):
1937 """GetButtonChange() -> int"""
1938 return _misc.JoystickEvent_GetButtonChange(*args, **kwargs)
1939
1940 def GetJoystick(*args, **kwargs):
1941 """GetJoystick() -> int"""
1942 return _misc.JoystickEvent_GetJoystick(*args, **kwargs)
1943
1944 def SetJoystick(*args, **kwargs):
1945 """SetJoystick(int stick)"""
1946 return _misc.JoystickEvent_SetJoystick(*args, **kwargs)
1947
1948 def SetButtonState(*args, **kwargs):
1949 """SetButtonState(int state)"""
1950 return _misc.JoystickEvent_SetButtonState(*args, **kwargs)
1951
1952 def SetButtonChange(*args, **kwargs):
1953 """SetButtonChange(int change)"""
1954 return _misc.JoystickEvent_SetButtonChange(*args, **kwargs)
1955
1956 def SetPosition(*args, **kwargs):
1957 """SetPosition(Point pos)"""
1958 return _misc.JoystickEvent_SetPosition(*args, **kwargs)
1959
1960 def SetZPosition(*args, **kwargs):
1961 """SetZPosition(int zPos)"""
1962 return _misc.JoystickEvent_SetZPosition(*args, **kwargs)
1963
1964 def IsButton(*args, **kwargs):
1965 """IsButton() -> bool"""
1966 return _misc.JoystickEvent_IsButton(*args, **kwargs)
1967
1968 def IsMove(*args, **kwargs):
1969 """IsMove() -> bool"""
1970 return _misc.JoystickEvent_IsMove(*args, **kwargs)
1971
1972 def IsZMove(*args, **kwargs):
1973 """IsZMove() -> bool"""
1974 return _misc.JoystickEvent_IsZMove(*args, **kwargs)
1975
1976 def ButtonDown(*args, **kwargs):
1977 """ButtonDown(int but=JOY_BUTTON_ANY) -> bool"""
1978 return _misc.JoystickEvent_ButtonDown(*args, **kwargs)
1979
1980 def ButtonUp(*args, **kwargs):
1981 """ButtonUp(int but=JOY_BUTTON_ANY) -> bool"""
1982 return _misc.JoystickEvent_ButtonUp(*args, **kwargs)
1983
1984 def ButtonIsDown(*args, **kwargs):
1985 """ButtonIsDown(int but=JOY_BUTTON_ANY) -> bool"""
1986 return _misc.JoystickEvent_ButtonIsDown(*args, **kwargs)
1987
56f5d962 1988
d14a1e28
RD
1989class JoystickEventPtr(JoystickEvent):
1990 def __init__(self, this):
1991 self.this = this
1992 if not hasattr(self,"thisown"): self.thisown = 0
1993 self.__class__ = JoystickEvent
1994_misc.JoystickEvent_swigregister(JoystickEventPtr)
ab9bc19b 1995
d14a1e28
RD
1996EVT_JOY_BUTTON_DOWN = wx.PyEventBinder( wxEVT_JOY_BUTTON_DOWN )
1997EVT_JOY_BUTTON_UP = wx.PyEventBinder( wxEVT_JOY_BUTTON_UP )
1998EVT_JOY_MOVE = wx.PyEventBinder( wxEVT_JOY_MOVE )
1999EVT_JOY_ZMOVE = wx.PyEventBinder( wxEVT_JOY_ZMOVE )
ab9bc19b 2000
d14a1e28
RD
2001EVT_JOYSTICK_EVENTS = wx.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN,
2002 wxEVT_JOY_BUTTON_UP,
2003 wxEVT_JOY_MOVE,
2004 wxEVT_JOY_ZMOVE,
2005 ])
5e40f9dd 2006
70551f47 2007
d14a1e28 2008#---------------------------------------------------------------------------
70551f47 2009
d14a1e28 2010class Wave(object):
e811c8ce
RD
2011 """"""
2012 def __repr__(self):
2013 return "<%s.%s; proxy of C++ wxWave instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2014 def __init__(self, *args, **kwargs):
e811c8ce 2015 """__init__(wxString fileName, bool isResource=False) -> Wave"""
d14a1e28
RD
2016 newobj = _misc.new_Wave(*args, **kwargs)
2017 self.this = newobj.this
2018 self.thisown = 1
2019 del newobj.thisown
2020 def __del__(self, destroy=_misc.delete_Wave):
e811c8ce 2021 """__del__()"""
d14a1e28
RD
2022 try:
2023 if self.thisown: destroy(self)
2024 except: pass
e811c8ce
RD
2025
2026 def IsOk(*args, **kwargs):
2027 """IsOk() -> bool"""
2028 return _misc.Wave_IsOk(*args, **kwargs)
2029
2030 def Play(*args, **kwargs):
2031 """Play(bool async=True, bool looped=False) -> bool"""
2032 return _misc.Wave_Play(*args, **kwargs)
2033
d14a1e28 2034 def __nonzero__(self): return self.IsOk()
bc29c5e0 2035
d14a1e28
RD
2036class WavePtr(Wave):
2037 def __init__(self, this):
2038 self.this = this
2039 if not hasattr(self,"thisown"): self.thisown = 0
2040 self.__class__ = Wave
2041_misc.Wave_swigregister(WavePtr)
70551f47 2042
d14a1e28 2043def WaveData(*args, **kwargs):
e811c8ce 2044 """WaveData(wxString data) -> Wave"""
d14a1e28
RD
2045 val = _misc.new_WaveData(*args, **kwargs)
2046 val.thisown = 1
2047 return val
70551f47 2048
d14a1e28
RD
2049#---------------------------------------------------------------------------
2050
2051MAILCAP_STANDARD = _misc.MAILCAP_STANDARD
2052MAILCAP_NETSCAPE = _misc.MAILCAP_NETSCAPE
2053MAILCAP_KDE = _misc.MAILCAP_KDE
2054MAILCAP_GNOME = _misc.MAILCAP_GNOME
2055MAILCAP_ALL = _misc.MAILCAP_ALL
2056class FileTypeInfo(object):
e811c8ce
RD
2057 """"""
2058 def __repr__(self):
2059 return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2060 def __init__(self, *args, **kwargs):
e811c8ce
RD
2061 """__init__(wxString mimeType, wxString openCmd, wxString printCmd,
2062 wxString desc) -> FileTypeInfo"""
d14a1e28
RD
2063 newobj = _misc.new_FileTypeInfo(*args, **kwargs)
2064 self.this = newobj.this
2065 self.thisown = 1
2066 del newobj.thisown
e811c8ce
RD
2067 def IsValid(*args, **kwargs):
2068 """IsValid() -> bool"""
2069 return _misc.FileTypeInfo_IsValid(*args, **kwargs)
2070
2071 def SetIcon(*args, **kwargs):
2072 """SetIcon(wxString iconFile, int iconIndex=0)"""
2073 return _misc.FileTypeInfo_SetIcon(*args, **kwargs)
2074
2075 def SetShortDesc(*args, **kwargs):
2076 """SetShortDesc(wxString shortDesc)"""
2077 return _misc.FileTypeInfo_SetShortDesc(*args, **kwargs)
2078
2079 def GetMimeType(*args, **kwargs):
2080 """GetMimeType() -> wxString"""
2081 return _misc.FileTypeInfo_GetMimeType(*args, **kwargs)
2082
2083 def GetOpenCommand(*args, **kwargs):
2084 """GetOpenCommand() -> wxString"""
2085 return _misc.FileTypeInfo_GetOpenCommand(*args, **kwargs)
2086
2087 def GetPrintCommand(*args, **kwargs):
2088 """GetPrintCommand() -> wxString"""
2089 return _misc.FileTypeInfo_GetPrintCommand(*args, **kwargs)
2090
2091 def GetShortDesc(*args, **kwargs):
2092 """GetShortDesc() -> wxString"""
2093 return _misc.FileTypeInfo_GetShortDesc(*args, **kwargs)
2094
2095 def GetDescription(*args, **kwargs):
2096 """GetDescription() -> wxString"""
2097 return _misc.FileTypeInfo_GetDescription(*args, **kwargs)
2098
2099 def GetExtensions(*args, **kwargs):
2100 """GetExtensions() -> wxArrayString"""
2101 return _misc.FileTypeInfo_GetExtensions(*args, **kwargs)
2102
2103 def GetExtensionsCount(*args, **kwargs):
2104 """GetExtensionsCount() -> int"""
2105 return _misc.FileTypeInfo_GetExtensionsCount(*args, **kwargs)
2106
2107 def GetIconFile(*args, **kwargs):
2108 """GetIconFile() -> wxString"""
2109 return _misc.FileTypeInfo_GetIconFile(*args, **kwargs)
2110
2111 def GetIconIndex(*args, **kwargs):
2112 """GetIconIndex() -> int"""
2113 return _misc.FileTypeInfo_GetIconIndex(*args, **kwargs)
2114
70551f47 2115
d14a1e28
RD
2116class FileTypeInfoPtr(FileTypeInfo):
2117 def __init__(self, this):
2118 self.this = this
2119 if not hasattr(self,"thisown"): self.thisown = 0
2120 self.__class__ = FileTypeInfo
2121_misc.FileTypeInfo_swigregister(FileTypeInfoPtr)
bc29c5e0 2122
d14a1e28 2123def FileTypeInfoSequence(*args, **kwargs):
e811c8ce 2124 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
d14a1e28
RD
2125 val = _misc.new_FileTypeInfoSequence(*args, **kwargs)
2126 val.thisown = 1
2127 return val
bc29c5e0 2128
d14a1e28 2129def NullFileTypeInfo(*args, **kwargs):
e811c8ce 2130 """NullFileTypeInfo() -> FileTypeInfo"""
d14a1e28
RD
2131 val = _misc.new_NullFileTypeInfo(*args, **kwargs)
2132 val.thisown = 1
2133 return val
bc29c5e0 2134
d14a1e28 2135class FileType(object):
e811c8ce
RD
2136 """"""
2137 def __repr__(self):
2138 return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2139 def __init__(self, *args, **kwargs):
e811c8ce 2140 """__init__(FileTypeInfo ftInfo) -> FileType"""
d14a1e28
RD
2141 newobj = _misc.new_FileType(*args, **kwargs)
2142 self.this = newobj.this
2143 self.thisown = 1
2144 del newobj.thisown
2145 def __del__(self, destroy=_misc.delete_FileType):
e811c8ce 2146 """__del__()"""
d14a1e28
RD
2147 try:
2148 if self.thisown: destroy(self)
2149 except: pass
e811c8ce
RD
2150
2151 def GetMimeType(*args, **kwargs):
2152 """GetMimeType() -> PyObject"""
2153 return _misc.FileType_GetMimeType(*args, **kwargs)
2154
2155 def GetMimeTypes(*args, **kwargs):
2156 """GetMimeTypes() -> PyObject"""
2157 return _misc.FileType_GetMimeTypes(*args, **kwargs)
2158
2159 def GetExtensions(*args, **kwargs):
2160 """GetExtensions() -> PyObject"""
2161 return _misc.FileType_GetExtensions(*args, **kwargs)
2162
2163 def GetIcon(*args, **kwargs):
2164 """GetIcon() -> wxIcon"""
2165 return _misc.FileType_GetIcon(*args, **kwargs)
2166
2167 def GetIconInfo(*args, **kwargs):
2168 """GetIconInfo() -> PyObject"""
2169 return _misc.FileType_GetIconInfo(*args, **kwargs)
2170
2171 def GetDescription(*args, **kwargs):
2172 """GetDescription() -> PyObject"""
2173 return _misc.FileType_GetDescription(*args, **kwargs)
2174
2175 def GetOpenCommand(*args, **kwargs):
2176 """GetOpenCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2177 return _misc.FileType_GetOpenCommand(*args, **kwargs)
2178
2179 def GetPrintCommand(*args, **kwargs):
2180 """GetPrintCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2181 return _misc.FileType_GetPrintCommand(*args, **kwargs)
2182
2183 def GetAllCommands(*args, **kwargs):
2184 """GetAllCommands(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2185 return _misc.FileType_GetAllCommands(*args, **kwargs)
2186
2187 def SetCommand(*args, **kwargs):
2188 """SetCommand(wxString cmd, wxString verb, bool overwriteprompt=True) -> bool"""
2189 return _misc.FileType_SetCommand(*args, **kwargs)
2190
2191 def SetDefaultIcon(*args, **kwargs):
2192 """SetDefaultIcon(wxString cmd=wxPyEmptyString, int index=0) -> bool"""
2193 return _misc.FileType_SetDefaultIcon(*args, **kwargs)
2194
2195 def Unassociate(*args, **kwargs):
2196 """Unassociate() -> bool"""
2197 return _misc.FileType_Unassociate(*args, **kwargs)
2198
2199 def ExpandCommand(*args, **kwargs):
2200 """FileType.ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString"""
2201 return _misc.FileType_ExpandCommand(*args, **kwargs)
2202
2203 ExpandCommand = staticmethod(ExpandCommand)
c368d904 2204
d14a1e28
RD
2205class FileTypePtr(FileType):
2206 def __init__(self, this):
2207 self.this = this
2208 if not hasattr(self,"thisown"): self.thisown = 0
2209 self.__class__ = FileType
2210_misc.FileType_swigregister(FileTypePtr)
12d1116b 2211
e811c8ce
RD
2212def FileType_ExpandCommand(*args, **kwargs):
2213 """FileType_ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString"""
2214 return _misc.FileType_ExpandCommand(*args, **kwargs)
d24a34bb 2215
d14a1e28 2216class MimeTypesManager(object):
e811c8ce
RD
2217 """"""
2218 def __repr__(self):
2219 return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2220 def IsOfType(*args, **kwargs):
2221 """MimeTypesManager.IsOfType(wxString mimeType, wxString wildcard) -> bool"""
2222 return _misc.MimeTypesManager_IsOfType(*args, **kwargs)
2223
2224 IsOfType = staticmethod(IsOfType)
d14a1e28 2225 def __init__(self, *args, **kwargs):
e811c8ce 2226 """__init__() -> MimeTypesManager"""
d14a1e28
RD
2227 newobj = _misc.new_MimeTypesManager(*args, **kwargs)
2228 self.this = newobj.this
2229 self.thisown = 1
2230 del newobj.thisown
e811c8ce
RD
2231 def Initialize(*args, **kwargs):
2232 """Initialize(int mailcapStyle=MAILCAP_ALL, wxString extraDir=wxPyEmptyString)"""
2233 return _misc.MimeTypesManager_Initialize(*args, **kwargs)
2234
2235 def ClearData(*args, **kwargs):
2236 """ClearData()"""
2237 return _misc.MimeTypesManager_ClearData(*args, **kwargs)
2238
2239 def GetFileTypeFromExtension(*args, **kwargs):
2240 """GetFileTypeFromExtension(wxString ext) -> FileType"""
2241 return _misc.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs)
2242
2243 def GetFileTypeFromMimeType(*args, **kwargs):
2244 """GetFileTypeFromMimeType(wxString mimeType) -> FileType"""
2245 return _misc.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs)
2246
2247 def ReadMailcap(*args, **kwargs):
2248 """ReadMailcap(wxString filename, bool fallback=False) -> bool"""
2249 return _misc.MimeTypesManager_ReadMailcap(*args, **kwargs)
2250
2251 def ReadMimeTypes(*args, **kwargs):
2252 """ReadMimeTypes(wxString filename) -> bool"""
2253 return _misc.MimeTypesManager_ReadMimeTypes(*args, **kwargs)
2254
2255 def EnumAllFileTypes(*args, **kwargs):
2256 """EnumAllFileTypes() -> PyObject"""
2257 return _misc.MimeTypesManager_EnumAllFileTypes(*args, **kwargs)
2258
2259 def AddFallback(*args, **kwargs):
2260 """AddFallback(FileTypeInfo ft)"""
2261 return _misc.MimeTypesManager_AddFallback(*args, **kwargs)
2262
2263 def Associate(*args, **kwargs):
2264 """Associate(FileTypeInfo ftInfo) -> FileType"""
2265 return _misc.MimeTypesManager_Associate(*args, **kwargs)
2266
2267 def Unassociate(*args, **kwargs):
2268 """Unassociate(FileType ft) -> bool"""
2269 return _misc.MimeTypesManager_Unassociate(*args, **kwargs)
2270
d14a1e28 2271 def __del__(self, destroy=_misc.delete_MimeTypesManager):
e811c8ce 2272 """__del__()"""
d14a1e28
RD
2273 try:
2274 if self.thisown: destroy(self)
2275 except: pass
e811c8ce 2276
70551f47 2277
d14a1e28
RD
2278class MimeTypesManagerPtr(MimeTypesManager):
2279 def __init__(self, this):
2280 self.this = this
2281 if not hasattr(self,"thisown"): self.thisown = 0
2282 self.__class__ = MimeTypesManager
2283_misc.MimeTypesManager_swigregister(MimeTypesManagerPtr)
2284cvar = _misc.cvar
2285TheMimeTypesManager = cvar.TheMimeTypesManager
ab9bc19b 2286
e811c8ce
RD
2287def MimeTypesManager_IsOfType(*args, **kwargs):
2288 """MimeTypesManager_IsOfType(wxString mimeType, wxString wildcard) -> bool"""
2289 return _misc.MimeTypesManager_IsOfType(*args, **kwargs)
5e40f9dd 2290
d14a1e28 2291#---------------------------------------------------------------------------
d24a34bb 2292
d14a1e28 2293class ArtProvider(object):
e811c8ce
RD
2294 """"""
2295 def __repr__(self):
2296 return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2297 def __init__(self, *args, **kwargs):
e811c8ce 2298 """__init__() -> ArtProvider"""
d14a1e28
RD
2299 newobj = _misc.new_ArtProvider(*args, **kwargs)
2300 self.this = newobj.this
2301 self.thisown = 1
2302 del newobj.thisown
2303 self._setCallbackInfo(self, ArtProvider)
e811c8ce 2304
e811c8ce
RD
2305 def _setCallbackInfo(*args, **kwargs):
2306 """_setCallbackInfo(PyObject self, PyObject _class)"""
2307 return _misc.ArtProvider__setCallbackInfo(*args, **kwargs)
2308
2309 def PushProvider(*args, **kwargs):
2310 """ArtProvider.PushProvider(ArtProvider provider)"""
2311 return _misc.ArtProvider_PushProvider(*args, **kwargs)
2312
2313 PushProvider = staticmethod(PushProvider)
2314 def PopProvider(*args, **kwargs):
2315 """ArtProvider.PopProvider() -> bool"""
2316 return _misc.ArtProvider_PopProvider(*args, **kwargs)
2317
2318 PopProvider = staticmethod(PopProvider)
2319 def RemoveProvider(*args, **kwargs):
2320 """ArtProvider.RemoveProvider(ArtProvider provider) -> bool"""
2321 return _misc.ArtProvider_RemoveProvider(*args, **kwargs)
2322
2323 RemoveProvider = staticmethod(RemoveProvider)
2324 def GetBitmap(*args, **kwargs):
2325 """ArtProvider.GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap"""
2326 return _misc.ArtProvider_GetBitmap(*args, **kwargs)
2327
2328 GetBitmap = staticmethod(GetBitmap)
2329 def GetIcon(*args, **kwargs):
2330 """ArtProvider.GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon"""
2331 return _misc.ArtProvider_GetIcon(*args, **kwargs)
2332
2333 GetIcon = staticmethod(GetIcon)
d29aba2f 2334
d14a1e28
RD
2335class ArtProviderPtr(ArtProvider):
2336 def __init__(self, this):
2337 self.this = this
2338 if not hasattr(self,"thisown"): self.thisown = 0
2339 self.__class__ = ArtProvider
2340_misc.ArtProvider_swigregister(ArtProviderPtr)
2341ART_TOOLBAR = cvar.ART_TOOLBAR
2342ART_MENU = cvar.ART_MENU
2343ART_FRAME_ICON = cvar.ART_FRAME_ICON
2344ART_CMN_DIALOG = cvar.ART_CMN_DIALOG
2345ART_HELP_BROWSER = cvar.ART_HELP_BROWSER
2346ART_MESSAGE_BOX = cvar.ART_MESSAGE_BOX
2347ART_OTHER = cvar.ART_OTHER
2348ART_ADD_BOOKMARK = cvar.ART_ADD_BOOKMARK
2349ART_DEL_BOOKMARK = cvar.ART_DEL_BOOKMARK
2350ART_HELP_SIDE_PANEL = cvar.ART_HELP_SIDE_PANEL
2351ART_HELP_SETTINGS = cvar.ART_HELP_SETTINGS
2352ART_HELP_BOOK = cvar.ART_HELP_BOOK
2353ART_HELP_FOLDER = cvar.ART_HELP_FOLDER
2354ART_HELP_PAGE = cvar.ART_HELP_PAGE
2355ART_GO_BACK = cvar.ART_GO_BACK
2356ART_GO_FORWARD = cvar.ART_GO_FORWARD
2357ART_GO_UP = cvar.ART_GO_UP
2358ART_GO_DOWN = cvar.ART_GO_DOWN
2359ART_GO_TO_PARENT = cvar.ART_GO_TO_PARENT
2360ART_GO_HOME = cvar.ART_GO_HOME
2361ART_FILE_OPEN = cvar.ART_FILE_OPEN
2362ART_PRINT = cvar.ART_PRINT
2363ART_HELP = cvar.ART_HELP
2364ART_TIP = cvar.ART_TIP
2365ART_REPORT_VIEW = cvar.ART_REPORT_VIEW
2366ART_LIST_VIEW = cvar.ART_LIST_VIEW
2367ART_NEW_DIR = cvar.ART_NEW_DIR
2368ART_FOLDER = cvar.ART_FOLDER
2369ART_GO_DIR_UP = cvar.ART_GO_DIR_UP
2370ART_EXECUTABLE_FILE = cvar.ART_EXECUTABLE_FILE
2371ART_NORMAL_FILE = cvar.ART_NORMAL_FILE
2372ART_TICK_MARK = cvar.ART_TICK_MARK
2373ART_CROSS_MARK = cvar.ART_CROSS_MARK
2374ART_ERROR = cvar.ART_ERROR
2375ART_QUESTION = cvar.ART_QUESTION
2376ART_WARNING = cvar.ART_WARNING
2377ART_INFORMATION = cvar.ART_INFORMATION
2378ART_MISSING_IMAGE = cvar.ART_MISSING_IMAGE
2379
e811c8ce
RD
2380def ArtProvider_PushProvider(*args, **kwargs):
2381 """ArtProvider_PushProvider(ArtProvider provider)"""
2382 return _misc.ArtProvider_PushProvider(*args, **kwargs)
d14a1e28 2383
e811c8ce
RD
2384def ArtProvider_PopProvider(*args, **kwargs):
2385 """ArtProvider_PopProvider() -> bool"""
2386 return _misc.ArtProvider_PopProvider(*args, **kwargs)
d14a1e28 2387
e811c8ce
RD
2388def ArtProvider_RemoveProvider(*args, **kwargs):
2389 """ArtProvider_RemoveProvider(ArtProvider provider) -> bool"""
2390 return _misc.ArtProvider_RemoveProvider(*args, **kwargs)
d14a1e28 2391
e811c8ce
RD
2392def ArtProvider_GetBitmap(*args, **kwargs):
2393 """ArtProvider_GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap"""
2394 return _misc.ArtProvider_GetBitmap(*args, **kwargs)
d14a1e28 2395
e811c8ce
RD
2396def ArtProvider_GetIcon(*args, **kwargs):
2397 """ArtProvider_GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon"""
2398 return _misc.ArtProvider_GetIcon(*args, **kwargs)
d14a1e28
RD
2399
2400#---------------------------------------------------------------------------
2401
2402CONFIG_USE_LOCAL_FILE = _misc.CONFIG_USE_LOCAL_FILE
2403CONFIG_USE_GLOBAL_FILE = _misc.CONFIG_USE_GLOBAL_FILE
2404CONFIG_USE_RELATIVE_PATH = _misc.CONFIG_USE_RELATIVE_PATH
2405CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc.CONFIG_USE_NO_ESCAPE_CHARACTERS
2406class ConfigBase(object):
e811c8ce
RD
2407 """"""
2408 def __init__(self): raise RuntimeError, "No constructor defined"
2409 def __repr__(self):
2410 return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2411 def __del__(self, destroy=_misc.delete_ConfigBase):
e811c8ce 2412 """__del__()"""
d14a1e28
RD
2413 try:
2414 if self.thisown: destroy(self)
2415 except: pass
e811c8ce 2416
d14a1e28
RD
2417 Type_Unknown = _misc.ConfigBase_Type_Unknown
2418 Type_String = _misc.ConfigBase_Type_String
2419 Type_Boolean = _misc.ConfigBase_Type_Boolean
2420 Type_Integer = _misc.ConfigBase_Type_Integer
2421 Type_Float = _misc.ConfigBase_Type_Float
e811c8ce
RD
2422 def Set(*args, **kwargs):
2423 """ConfigBase.Set(ConfigBase pConfig) -> ConfigBase"""
2424 return _misc.ConfigBase_Set(*args, **kwargs)
2425
2426 Set = staticmethod(Set)
2427 def Get(*args, **kwargs):
2428 """ConfigBase.Get(bool createOnDemand=True) -> ConfigBase"""
2429 return _misc.ConfigBase_Get(*args, **kwargs)
2430
2431 Get = staticmethod(Get)
2432 def Create(*args, **kwargs):
2433 """ConfigBase.Create() -> ConfigBase"""
2434 return _misc.ConfigBase_Create(*args, **kwargs)
2435
2436 Create = staticmethod(Create)
2437 def DontCreateOnDemand(*args, **kwargs):
2438 """ConfigBase.DontCreateOnDemand()"""
2439 return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs)
2440
2441 DontCreateOnDemand = staticmethod(DontCreateOnDemand)
2442 def SetPath(*args, **kwargs):
2443 """SetPath(wxString strPath)"""
2444 return _misc.ConfigBase_SetPath(*args, **kwargs)
2445
2446 def GetPath(*args, **kwargs):
2447 """GetPath() -> wxString"""
2448 return _misc.ConfigBase_GetPath(*args, **kwargs)
2449
2450 def GetFirstGroup(*args, **kwargs):
2451 """GetFirstGroup() -> PyObject"""
2452 return _misc.ConfigBase_GetFirstGroup(*args, **kwargs)
2453
2454 def GetNextGroup(*args, **kwargs):
2455 """GetNextGroup(long index) -> PyObject"""
2456 return _misc.ConfigBase_GetNextGroup(*args, **kwargs)
2457
2458 def GetFirstEntry(*args, **kwargs):
2459 """GetFirstEntry() -> PyObject"""
2460 return _misc.ConfigBase_GetFirstEntry(*args, **kwargs)
2461
2462 def GetNextEntry(*args, **kwargs):
2463 """GetNextEntry(long index) -> PyObject"""
2464 return _misc.ConfigBase_GetNextEntry(*args, **kwargs)
2465
2466 def GetNumberOfEntries(*args, **kwargs):
2467 """GetNumberOfEntries(bool bRecursive=False) -> size_t"""
2468 return _misc.ConfigBase_GetNumberOfEntries(*args, **kwargs)
2469
2470 def GetNumberOfGroups(*args, **kwargs):
2471 """GetNumberOfGroups(bool bRecursive=False) -> size_t"""
2472 return _misc.ConfigBase_GetNumberOfGroups(*args, **kwargs)
2473
2474 def HasGroup(*args, **kwargs):
2475 """HasGroup(wxString strName) -> bool"""
2476 return _misc.ConfigBase_HasGroup(*args, **kwargs)
2477
2478 def HasEntry(*args, **kwargs):
2479 """HasEntry(wxString strName) -> bool"""
2480 return _misc.ConfigBase_HasEntry(*args, **kwargs)
2481
2482 def Exists(*args, **kwargs):
2483 """Exists(wxString strName) -> bool"""
2484 return _misc.ConfigBase_Exists(*args, **kwargs)
2485
2486 def GetEntryType(*args, **kwargs):
2487 """GetEntryType(wxString name) -> wxConfigBase::EntryType"""
2488 return _misc.ConfigBase_GetEntryType(*args, **kwargs)
2489
2490 def Read(*args, **kwargs):
2491 """Read(wxString key, wxString defaultVal=wxPyEmptyString) -> wxString"""
2492 return _misc.ConfigBase_Read(*args, **kwargs)
2493
2494 def ReadInt(*args, **kwargs):
2495 """ReadInt(wxString key, long defaultVal=0) -> long"""
2496 return _misc.ConfigBase_ReadInt(*args, **kwargs)
2497
2498 def ReadFloat(*args, **kwargs):
2499 """ReadFloat(wxString key, double defaultVal=0.0) -> double"""
2500 return _misc.ConfigBase_ReadFloat(*args, **kwargs)
2501
2502 def ReadBool(*args, **kwargs):
2503 """ReadBool(wxString key, bool defaultVal=False) -> bool"""
2504 return _misc.ConfigBase_ReadBool(*args, **kwargs)
2505
2506 def Write(*args, **kwargs):
2507 """Write(wxString key, wxString value) -> bool"""
2508 return _misc.ConfigBase_Write(*args, **kwargs)
2509
2510 def WriteInt(*args, **kwargs):
2511 """WriteInt(wxString key, long value) -> bool"""
2512 return _misc.ConfigBase_WriteInt(*args, **kwargs)
2513
2514 def WriteFloat(*args, **kwargs):
2515 """WriteFloat(wxString key, double value) -> bool"""
2516 return _misc.ConfigBase_WriteFloat(*args, **kwargs)
2517
2518 def WriteBool(*args, **kwargs):
2519 """WriteBool(wxString key, bool value) -> bool"""
2520 return _misc.ConfigBase_WriteBool(*args, **kwargs)
2521
2522 def Flush(*args, **kwargs):
2523 """Flush(bool bCurrentOnly=False) -> bool"""
2524 return _misc.ConfigBase_Flush(*args, **kwargs)
2525
2526 def RenameEntry(*args, **kwargs):
2527 """RenameEntry(wxString oldName, wxString newName) -> bool"""
2528 return _misc.ConfigBase_RenameEntry(*args, **kwargs)
2529
2530 def RenameGroup(*args, **kwargs):
2531 """RenameGroup(wxString oldName, wxString newName) -> bool"""
2532 return _misc.ConfigBase_RenameGroup(*args, **kwargs)
2533
2534 def DeleteEntry(*args, **kwargs):
2535 """DeleteEntry(wxString key, bool bDeleteGroupIfEmpty=True) -> bool"""
2536 return _misc.ConfigBase_DeleteEntry(*args, **kwargs)
2537
2538 def DeleteGroup(*args, **kwargs):
2539 """DeleteGroup(wxString key) -> bool"""
2540 return _misc.ConfigBase_DeleteGroup(*args, **kwargs)
2541
2542 def DeleteAll(*args, **kwargs):
2543 """DeleteAll() -> bool"""
2544 return _misc.ConfigBase_DeleteAll(*args, **kwargs)
2545
2546 def IsExpandingEnvVars(*args, **kwargs):
2547 """IsExpandingEnvVars() -> bool"""
2548 return _misc.ConfigBase_IsExpandingEnvVars(*args, **kwargs)
2549
2550 def SetExpandEnvVars(*args, **kwargs):
2551 """SetExpandEnvVars(bool bDoIt=True)"""
2552 return _misc.ConfigBase_SetExpandEnvVars(*args, **kwargs)
2553
2554 def SetRecordDefaults(*args, **kwargs):
2555 """SetRecordDefaults(bool bDoIt=True)"""
2556 return _misc.ConfigBase_SetRecordDefaults(*args, **kwargs)
2557
2558 def IsRecordingDefaults(*args, **kwargs):
2559 """IsRecordingDefaults() -> bool"""
2560 return _misc.ConfigBase_IsRecordingDefaults(*args, **kwargs)
2561
2562 def ExpandEnvVars(*args, **kwargs):
2563 """ExpandEnvVars(wxString str) -> wxString"""
2564 return _misc.ConfigBase_ExpandEnvVars(*args, **kwargs)
2565
2566 def GetAppName(*args, **kwargs):
2567 """GetAppName() -> wxString"""
2568 return _misc.ConfigBase_GetAppName(*args, **kwargs)
2569
2570 def GetVendorName(*args, **kwargs):
2571 """GetVendorName() -> wxString"""
2572 return _misc.ConfigBase_GetVendorName(*args, **kwargs)
2573
2574 def SetAppName(*args, **kwargs):
2575 """SetAppName(wxString appName)"""
2576 return _misc.ConfigBase_SetAppName(*args, **kwargs)
2577
2578 def SetVendorName(*args, **kwargs):
2579 """SetVendorName(wxString vendorName)"""
2580 return _misc.ConfigBase_SetVendorName(*args, **kwargs)
2581
2582 def SetStyle(*args, **kwargs):
2583 """SetStyle(long style)"""
2584 return _misc.ConfigBase_SetStyle(*args, **kwargs)
2585
2586 def GetStyle(*args, **kwargs):
2587 """GetStyle() -> long"""
2588 return _misc.ConfigBase_GetStyle(*args, **kwargs)
2589
c368d904 2590
d14a1e28
RD
2591class ConfigBasePtr(ConfigBase):
2592 def __init__(self, this):
2593 self.this = this
2594 if not hasattr(self,"thisown"): self.thisown = 0
2595 self.__class__ = ConfigBase
2596_misc.ConfigBase_swigregister(ConfigBasePtr)
c368d904 2597
e811c8ce
RD
2598def ConfigBase_Set(*args, **kwargs):
2599 """ConfigBase_Set(ConfigBase pConfig) -> ConfigBase"""
2600 return _misc.ConfigBase_Set(*args, **kwargs)
c368d904 2601
e811c8ce
RD
2602def ConfigBase_Get(*args, **kwargs):
2603 """ConfigBase_Get(bool createOnDemand=True) -> ConfigBase"""
2604 return _misc.ConfigBase_Get(*args, **kwargs)
c368d904 2605
e811c8ce
RD
2606def ConfigBase_Create(*args, **kwargs):
2607 """ConfigBase_Create() -> ConfigBase"""
2608 return _misc.ConfigBase_Create(*args, **kwargs)
c368d904 2609
e811c8ce
RD
2610def ConfigBase_DontCreateOnDemand(*args, **kwargs):
2611 """ConfigBase_DontCreateOnDemand()"""
2612 return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs)
c368d904 2613
d14a1e28 2614class ConfigPathChanger(object):
e811c8ce
RD
2615 """"""
2616 def __repr__(self):
2617 return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2618 def __init__(self, *args, **kwargs):
e811c8ce 2619 """__init__(ConfigBase pContainer, wxString strEntry) -> ConfigPathChanger"""
d14a1e28
RD
2620 newobj = _misc.new_ConfigPathChanger(*args, **kwargs)
2621 self.this = newobj.this
2622 self.thisown = 1
2623 del newobj.thisown
2624 def __del__(self, destroy=_misc.delete_ConfigPathChanger):
e811c8ce 2625 """__del__()"""
d14a1e28
RD
2626 try:
2627 if self.thisown: destroy(self)
2628 except: pass
e811c8ce
RD
2629
2630 def Name(*args, **kwargs):
2631 """Name() -> wxString"""
2632 return _misc.ConfigPathChanger_Name(*args, **kwargs)
2633
5d413391 2634
d14a1e28
RD
2635class ConfigPathChangerPtr(ConfigPathChanger):
2636 def __init__(self, this):
2637 self.this = this
2638 if not hasattr(self,"thisown"): self.thisown = 0
2639 self.__class__ = ConfigPathChanger
2640_misc.ConfigPathChanger_swigregister(ConfigPathChangerPtr)
2641
2642class Config(ConfigBase):
e811c8ce
RD
2643 """"""
2644 def __repr__(self):
2645 return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2646 def __init__(self, *args, **kwargs):
e811c8ce
RD
2647 """__init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString,
2648 wxString localFilename=wxPyEmptyString,
2649 wxString globalFilename=wxPyEmptyString,
2650 long style=0) -> Config"""
d14a1e28
RD
2651 newobj = _misc.new_Config(*args, **kwargs)
2652 self.this = newobj.this
2653 self.thisown = 1
2654 del newobj.thisown
2655 def __del__(self, destroy=_misc.delete_Config):
e811c8ce 2656 """__del__()"""
d14a1e28
RD
2657 try:
2658 if self.thisown: destroy(self)
2659 except: pass
e811c8ce 2660
8f8b0a8d 2661
d14a1e28
RD
2662class ConfigPtr(Config):
2663 def __init__(self, this):
2664 self.this = this
2665 if not hasattr(self,"thisown"): self.thisown = 0
2666 self.__class__ = Config
2667_misc.Config_swigregister(ConfigPtr)
2668
2669class FileConfig(ConfigBase):
e811c8ce
RD
2670 """"""
2671 def __repr__(self):
2672 return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2673 def __init__(self, *args, **kwargs):
e811c8ce
RD
2674 """__init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString,
2675 wxString localFilename=wxPyEmptyString,
2676 wxString globalFilename=wxPyEmptyString,
2677 long style=0) -> FileConfig"""
d14a1e28
RD
2678 newobj = _misc.new_FileConfig(*args, **kwargs)
2679 self.this = newobj.this
2680 self.thisown = 1
2681 del newobj.thisown
2682 def __del__(self, destroy=_misc.delete_FileConfig):
e811c8ce 2683 """__del__()"""
d14a1e28
RD
2684 try:
2685 if self.thisown: destroy(self)
2686 except: pass
e811c8ce 2687
3628e088 2688
d14a1e28
RD
2689class FileConfigPtr(FileConfig):
2690 def __init__(self, this):
2691 self.this = this
2692 if not hasattr(self,"thisown"): self.thisown = 0
2693 self.__class__ = FileConfig
2694_misc.FileConfig_swigregister(FileConfigPtr)
2695
2696
e811c8ce
RD
2697def ExpandEnvVars(*args, **kwargs):
2698 """ExpandEnvVars(wxString sz) -> wxString"""
2699 return _misc.ExpandEnvVars(*args, **kwargs)
d14a1e28
RD
2700#---------------------------------------------------------------------------
2701
2702class DateTime(object):
e811c8ce
RD
2703 """"""
2704 def __repr__(self):
2705 return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28
RD
2706 Local = _misc.DateTime_Local
2707 GMT_12 = _misc.DateTime_GMT_12
2708 GMT_11 = _misc.DateTime_GMT_11
2709 GMT_10 = _misc.DateTime_GMT_10
2710 GMT_9 = _misc.DateTime_GMT_9
2711 GMT_8 = _misc.DateTime_GMT_8
2712 GMT_7 = _misc.DateTime_GMT_7
2713 GMT_6 = _misc.DateTime_GMT_6
2714 GMT_5 = _misc.DateTime_GMT_5
2715 GMT_4 = _misc.DateTime_GMT_4
2716 GMT_3 = _misc.DateTime_GMT_3
2717 GMT_2 = _misc.DateTime_GMT_2
2718 GMT_1 = _misc.DateTime_GMT_1
2719 GMT0 = _misc.DateTime_GMT0
2720 GMT1 = _misc.DateTime_GMT1
2721 GMT2 = _misc.DateTime_GMT2
2722 GMT3 = _misc.DateTime_GMT3
2723 GMT4 = _misc.DateTime_GMT4
2724 GMT5 = _misc.DateTime_GMT5
2725 GMT6 = _misc.DateTime_GMT6
2726 GMT7 = _misc.DateTime_GMT7
2727 GMT8 = _misc.DateTime_GMT8
2728 GMT9 = _misc.DateTime_GMT9
2729 GMT10 = _misc.DateTime_GMT10
2730 GMT11 = _misc.DateTime_GMT11
2731 GMT12 = _misc.DateTime_GMT12
2732 WET = _misc.DateTime_WET
2733 WEST = _misc.DateTime_WEST
2734 CET = _misc.DateTime_CET
2735 CEST = _misc.DateTime_CEST
2736 EET = _misc.DateTime_EET
2737 EEST = _misc.DateTime_EEST
2738 MSK = _misc.DateTime_MSK
2739 MSD = _misc.DateTime_MSD
2740 AST = _misc.DateTime_AST
2741 ADT = _misc.DateTime_ADT
2742 EST = _misc.DateTime_EST
2743 EDT = _misc.DateTime_EDT
2744 CST = _misc.DateTime_CST
2745 CDT = _misc.DateTime_CDT
2746 MST = _misc.DateTime_MST
2747 MDT = _misc.DateTime_MDT
2748 PST = _misc.DateTime_PST
2749 PDT = _misc.DateTime_PDT
2750 HST = _misc.DateTime_HST
2751 AKST = _misc.DateTime_AKST
2752 AKDT = _misc.DateTime_AKDT
2753 A_WST = _misc.DateTime_A_WST
2754 A_CST = _misc.DateTime_A_CST
2755 A_EST = _misc.DateTime_A_EST
2756 A_ESST = _misc.DateTime_A_ESST
2757 UTC = _misc.DateTime_UTC
2758 Gregorian = _misc.DateTime_Gregorian
2759 Julian = _misc.DateTime_Julian
2760 Gr_Unknown = _misc.DateTime_Gr_Unknown
2761 Gr_Standard = _misc.DateTime_Gr_Standard
2762 Gr_Alaska = _misc.DateTime_Gr_Alaska
2763 Gr_Albania = _misc.DateTime_Gr_Albania
2764 Gr_Austria = _misc.DateTime_Gr_Austria
2765 Gr_Austria_Brixen = _misc.DateTime_Gr_Austria_Brixen
2766 Gr_Austria_Salzburg = _misc.DateTime_Gr_Austria_Salzburg
2767 Gr_Austria_Tyrol = _misc.DateTime_Gr_Austria_Tyrol
2768 Gr_Austria_Carinthia = _misc.DateTime_Gr_Austria_Carinthia
2769 Gr_Austria_Styria = _misc.DateTime_Gr_Austria_Styria
2770 Gr_Belgium = _misc.DateTime_Gr_Belgium
2771 Gr_Bulgaria = _misc.DateTime_Gr_Bulgaria
2772 Gr_Bulgaria_1 = _misc.DateTime_Gr_Bulgaria_1
2773 Gr_Bulgaria_2 = _misc.DateTime_Gr_Bulgaria_2
2774 Gr_Bulgaria_3 = _misc.DateTime_Gr_Bulgaria_3
2775 Gr_Canada = _misc.DateTime_Gr_Canada
2776 Gr_China = _misc.DateTime_Gr_China
2777 Gr_China_1 = _misc.DateTime_Gr_China_1
2778 Gr_China_2 = _misc.DateTime_Gr_China_2
2779 Gr_Czechoslovakia = _misc.DateTime_Gr_Czechoslovakia
2780 Gr_Denmark = _misc.DateTime_Gr_Denmark
2781 Gr_Egypt = _misc.DateTime_Gr_Egypt
2782 Gr_Estonia = _misc.DateTime_Gr_Estonia
2783 Gr_Finland = _misc.DateTime_Gr_Finland
2784 Gr_France = _misc.DateTime_Gr_France
2785 Gr_France_Alsace = _misc.DateTime_Gr_France_Alsace
2786 Gr_France_Lorraine = _misc.DateTime_Gr_France_Lorraine
2787 Gr_France_Strasbourg = _misc.DateTime_Gr_France_Strasbourg
2788 Gr_Germany = _misc.DateTime_Gr_Germany
2789 Gr_Germany_Catholic = _misc.DateTime_Gr_Germany_Catholic
2790 Gr_Germany_Prussia = _misc.DateTime_Gr_Germany_Prussia
2791 Gr_Germany_Protestant = _misc.DateTime_Gr_Germany_Protestant
2792 Gr_GreatBritain = _misc.DateTime_Gr_GreatBritain
2793 Gr_Greece = _misc.DateTime_Gr_Greece
2794 Gr_Hungary = _misc.DateTime_Gr_Hungary
2795 Gr_Ireland = _misc.DateTime_Gr_Ireland
2796 Gr_Italy = _misc.DateTime_Gr_Italy
2797 Gr_Japan = _misc.DateTime_Gr_Japan
2798 Gr_Japan_1 = _misc.DateTime_Gr_Japan_1
2799 Gr_Japan_2 = _misc.DateTime_Gr_Japan_2
2800 Gr_Japan_3 = _misc.DateTime_Gr_Japan_3
2801 Gr_Latvia = _misc.DateTime_Gr_Latvia
2802 Gr_Lithuania = _misc.DateTime_Gr_Lithuania
2803 Gr_Luxemburg = _misc.DateTime_Gr_Luxemburg
2804 Gr_Netherlands = _misc.DateTime_Gr_Netherlands
2805 Gr_Netherlands_Groningen = _misc.DateTime_Gr_Netherlands_Groningen
2806 Gr_Netherlands_Gelderland = _misc.DateTime_Gr_Netherlands_Gelderland
2807 Gr_Netherlands_Utrecht = _misc.DateTime_Gr_Netherlands_Utrecht
2808 Gr_Netherlands_Friesland = _misc.DateTime_Gr_Netherlands_Friesland
2809 Gr_Norway = _misc.DateTime_Gr_Norway
2810 Gr_Poland = _misc.DateTime_Gr_Poland
2811 Gr_Portugal = _misc.DateTime_Gr_Portugal
2812 Gr_Romania = _misc.DateTime_Gr_Romania
2813 Gr_Russia = _misc.DateTime_Gr_Russia
2814 Gr_Scotland = _misc.DateTime_Gr_Scotland
2815 Gr_Spain = _misc.DateTime_Gr_Spain
2816 Gr_Sweden = _misc.DateTime_Gr_Sweden
2817 Gr_Switzerland = _misc.DateTime_Gr_Switzerland
2818 Gr_Switzerland_Catholic = _misc.DateTime_Gr_Switzerland_Catholic
2819 Gr_Switzerland_Protestant = _misc.DateTime_Gr_Switzerland_Protestant
2820 Gr_Turkey = _misc.DateTime_Gr_Turkey
2821 Gr_USA = _misc.DateTime_Gr_USA
2822 Gr_Wales = _misc.DateTime_Gr_Wales
2823 Gr_Yugoslavia = _misc.DateTime_Gr_Yugoslavia
2824 Country_Unknown = _misc.DateTime_Country_Unknown
2825 Country_Default = _misc.DateTime_Country_Default
2826 Country_WesternEurope_Start = _misc.DateTime_Country_WesternEurope_Start
2827 Country_EEC = _misc.DateTime_Country_EEC
2828 France = _misc.DateTime_France
2829 Germany = _misc.DateTime_Germany
2830 UK = _misc.DateTime_UK
2831 Country_WesternEurope_End = _misc.DateTime_Country_WesternEurope_End
2832 Russia = _misc.DateTime_Russia
2833 USA = _misc.DateTime_USA
2834 Jan = _misc.DateTime_Jan
2835 Feb = _misc.DateTime_Feb
2836 Mar = _misc.DateTime_Mar
2837 Apr = _misc.DateTime_Apr
2838 May = _misc.DateTime_May
2839 Jun = _misc.DateTime_Jun
2840 Jul = _misc.DateTime_Jul
2841 Aug = _misc.DateTime_Aug
2842 Sep = _misc.DateTime_Sep
2843 Oct = _misc.DateTime_Oct
2844 Nov = _misc.DateTime_Nov
2845 Dec = _misc.DateTime_Dec
2846 Inv_Month = _misc.DateTime_Inv_Month
2847 Sun = _misc.DateTime_Sun
2848 Mon = _misc.DateTime_Mon
2849 Tue = _misc.DateTime_Tue
2850 Wed = _misc.DateTime_Wed
2851 Thu = _misc.DateTime_Thu
2852 Fri = _misc.DateTime_Fri
2853 Sat = _misc.DateTime_Sat
2854 Inv_WeekDay = _misc.DateTime_Inv_WeekDay
2855 Inv_Year = _misc.DateTime_Inv_Year
2856 Name_Full = _misc.DateTime_Name_Full
2857 Name_Abbr = _misc.DateTime_Name_Abbr
2858 Default_First = _misc.DateTime_Default_First
2859 Monday_First = _misc.DateTime_Monday_First
2860 Sunday_First = _misc.DateTime_Sunday_First
e811c8ce
RD
2861 def SetCountry(*args, **kwargs):
2862 """DateTime.SetCountry(wxDateTime::Country country)"""
2863 return _misc.DateTime_SetCountry(*args, **kwargs)
2864
2865 SetCountry = staticmethod(SetCountry)
2866 def GetCountry(*args, **kwargs):
2867 """DateTime.GetCountry() -> wxDateTime::Country"""
2868 return _misc.DateTime_GetCountry(*args, **kwargs)
2869
2870 GetCountry = staticmethod(GetCountry)
2871 def IsWestEuropeanCountry(*args, **kwargs):
2872 """DateTime.IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool"""
2873 return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs)
2874
2875 IsWestEuropeanCountry = staticmethod(IsWestEuropeanCountry)
2876 def GetCurrentYear(*args, **kwargs):
2877 """DateTime.GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int"""
2878 return _misc.DateTime_GetCurrentYear(*args, **kwargs)
2879
2880 GetCurrentYear = staticmethod(GetCurrentYear)
2881 def ConvertYearToBC(*args, **kwargs):
2882 """DateTime.ConvertYearToBC(int year) -> int"""
2883 return _misc.DateTime_ConvertYearToBC(*args, **kwargs)
2884
2885 ConvertYearToBC = staticmethod(ConvertYearToBC)
2886 def GetCurrentMonth(*args, **kwargs):
2887 """DateTime.GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month"""
2888 return _misc.DateTime_GetCurrentMonth(*args, **kwargs)
2889
2890 GetCurrentMonth = staticmethod(GetCurrentMonth)
2891 def IsLeapYear(*args, **kwargs):
2892 """DateTime.IsLeapYear(int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> bool"""
2893 return _misc.DateTime_IsLeapYear(*args, **kwargs)
2894
2895 IsLeapYear = staticmethod(IsLeapYear)
2896 def GetCentury(*args, **kwargs):
2897 """DateTime.GetCentury(int year=Inv_Year) -> int"""
2898 return _misc.DateTime_GetCentury(*args, **kwargs)
2899
2900 GetCentury = staticmethod(GetCentury)
2901 def GetNumberOfDaysinYear(*args, **kwargs):
322913ce 2902 """DateTime.GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> int"""
e811c8ce
RD
2903 return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs)
2904
2905 GetNumberOfDaysinYear = staticmethod(GetNumberOfDaysinYear)
2906 def GetNumberOfDaysInMonth(*args, **kwargs):
322913ce 2907 """DateTime.GetNumberOfDaysInMonth(wxDateTime::Month month, int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> int"""
e811c8ce
RD
2908 return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs)
2909
2910 GetNumberOfDaysInMonth = staticmethod(GetNumberOfDaysInMonth)
2911 def GetMonthName(*args, **kwargs):
2912 """DateTime.GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
2913 return _misc.DateTime_GetMonthName(*args, **kwargs)
2914
2915 GetMonthName = staticmethod(GetMonthName)
2916 def GetWeekDayName(*args, **kwargs):
2917 """DateTime.GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
2918 return _misc.DateTime_GetWeekDayName(*args, **kwargs)
2919
2920 GetWeekDayName = staticmethod(GetWeekDayName)
2921 def GetAmPmStrings(*args, **kwargs):
322913ce
RD
2922 """GetAmPmStrings() -> (am, pm)
2923
2924Get the AM and PM strings in the current locale (may be empty)"""
e811c8ce
RD
2925 return _misc.DateTime_GetAmPmStrings(*args, **kwargs)
2926
2927 GetAmPmStrings = staticmethod(GetAmPmStrings)
2928 def IsDSTApplicable(*args, **kwargs):
2929 """DateTime.IsDSTApplicable(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> bool"""
2930 return _misc.DateTime_IsDSTApplicable(*args, **kwargs)
2931
2932 IsDSTApplicable = staticmethod(IsDSTApplicable)
2933 def GetBeginDST(*args, **kwargs):
2934 """DateTime.GetBeginDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
2935 return _misc.DateTime_GetBeginDST(*args, **kwargs)
2936
2937 GetBeginDST = staticmethod(GetBeginDST)
2938 def GetEndDST(*args, **kwargs):
2939 """DateTime.GetEndDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
2940 return _misc.DateTime_GetEndDST(*args, **kwargs)
2941
2942 GetEndDST = staticmethod(GetEndDST)
2943 def Now(*args, **kwargs):
2944 """DateTime.Now() -> DateTime"""
2945 return _misc.DateTime_Now(*args, **kwargs)
2946
2947 Now = staticmethod(Now)
2948 def UNow(*args, **kwargs):
2949 """DateTime.UNow() -> DateTime"""
2950 return _misc.DateTime_UNow(*args, **kwargs)
2951
2952 UNow = staticmethod(UNow)
2953 def Today(*args, **kwargs):
2954 """DateTime.Today() -> DateTime"""
2955 return _misc.DateTime_Today(*args, **kwargs)
2956
2957 Today = staticmethod(Today)
d14a1e28 2958 def __init__(self, *args, **kwargs):
e811c8ce 2959 """__init__() -> DateTime"""
d14a1e28
RD
2960 newobj = _misc.new_DateTime(*args, **kwargs)
2961 self.this = newobj.this
2962 self.thisown = 1
2963 del newobj.thisown
2964 def __del__(self, destroy=_misc.delete_DateTime):
e811c8ce 2965 """__del__()"""
d14a1e28
RD
2966 try:
2967 if self.thisown: destroy(self)
2968 except: pass
e811c8ce
RD
2969
2970 def SetToCurrent(*args, **kwargs):
2971 """SetToCurrent() -> DateTime"""
2972 return _misc.DateTime_SetToCurrent(*args, **kwargs)
2973
2974 def SetTimeT(*args, **kwargs):
2975 """SetTimeT(time_t timet) -> DateTime"""
2976 return _misc.DateTime_SetTimeT(*args, **kwargs)
2977
2978 def SetJDN(*args, **kwargs):
2979 """SetJDN(double jdn) -> DateTime"""
2980 return _misc.DateTime_SetJDN(*args, **kwargs)
2981
2982 def SetHMS(*args, **kwargs):
322913ce 2983 """SetHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
e811c8ce
RD
2984 return _misc.DateTime_SetHMS(*args, **kwargs)
2985
2986 def Set(*args, **kwargs):
322913ce
RD
2987 """Set(int day, wxDateTime::Month month=Inv_Month, int year=Inv_Year,
2988 int hour=0, int minute=0, int second=0,
2989 int millisec=0) -> DateTime"""
e811c8ce
RD
2990 return _misc.DateTime_Set(*args, **kwargs)
2991
2992 def ResetTime(*args, **kwargs):
2993 """ResetTime() -> DateTime"""
2994 return _misc.DateTime_ResetTime(*args, **kwargs)
2995
2996 def SetYear(*args, **kwargs):
2997 """SetYear(int year) -> DateTime"""
2998 return _misc.DateTime_SetYear(*args, **kwargs)
2999
3000 def SetMonth(*args, **kwargs):
3001 """SetMonth(wxDateTime::Month month) -> DateTime"""
3002 return _misc.DateTime_SetMonth(*args, **kwargs)
3003
3004 def SetDay(*args, **kwargs):
322913ce 3005 """SetDay(int day) -> DateTime"""
e811c8ce
RD
3006 return _misc.DateTime_SetDay(*args, **kwargs)
3007
3008 def SetHour(*args, **kwargs):
322913ce 3009 """SetHour(int hour) -> DateTime"""
e811c8ce
RD
3010 return _misc.DateTime_SetHour(*args, **kwargs)
3011
3012 def SetMinute(*args, **kwargs):
322913ce 3013 """SetMinute(int minute) -> DateTime"""
e811c8ce
RD
3014 return _misc.DateTime_SetMinute(*args, **kwargs)
3015
3016 def SetSecond(*args, **kwargs):
322913ce 3017 """SetSecond(int second) -> DateTime"""
e811c8ce
RD
3018 return _misc.DateTime_SetSecond(*args, **kwargs)
3019
3020 def SetMillisecond(*args, **kwargs):
322913ce 3021 """SetMillisecond(int millisecond) -> DateTime"""
e811c8ce
RD
3022 return _misc.DateTime_SetMillisecond(*args, **kwargs)
3023
3024 def SetToWeekDayInSameWeek(*args, **kwargs):
3025 """SetToWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3026 return _misc.DateTime_SetToWeekDayInSameWeek(*args, **kwargs)
3027
3028 def GetWeekDayInSameWeek(*args, **kwargs):
3029 """GetWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3030 return _misc.DateTime_GetWeekDayInSameWeek(*args, **kwargs)
3031
3032 def SetToNextWeekDay(*args, **kwargs):
3033 """SetToNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3034 return _misc.DateTime_SetToNextWeekDay(*args, **kwargs)
3035
3036 def GetNextWeekDay(*args, **kwargs):
3037 """GetNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3038 return _misc.DateTime_GetNextWeekDay(*args, **kwargs)
3039
3040 def SetToPrevWeekDay(*args, **kwargs):
3041 """SetToPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3042 return _misc.DateTime_SetToPrevWeekDay(*args, **kwargs)
3043
3044 def GetPrevWeekDay(*args, **kwargs):
3045 """GetPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3046 return _misc.DateTime_GetPrevWeekDay(*args, **kwargs)
3047
3048 def SetToWeekDay(*args, **kwargs):
3049 """SetToWeekDay(wxDateTime::WeekDay weekday, int n=1, wxDateTime::Month month=Inv_Month,
3050 int year=Inv_Year) -> bool"""
3051 return _misc.DateTime_SetToWeekDay(*args, **kwargs)
3052
3053 def SetToLastWeekDay(*args, **kwargs):
3054 """SetToLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month,
3055 int year=Inv_Year) -> bool"""
3056 return _misc.DateTime_SetToLastWeekDay(*args, **kwargs)
3057
3058 def GetLastWeekDay(*args, **kwargs):
3059 """GetLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month,
3060 int year=Inv_Year) -> DateTime"""
3061 return _misc.DateTime_GetLastWeekDay(*args, **kwargs)
3062
3063 def SetToTheWeek(*args, **kwargs):
322913ce 3064 """SetToTheWeek(int numWeek, wxDateTime::WeekDay weekday=Mon, wxDateTime::WeekFlags flags=Monday_First) -> bool"""
e811c8ce
RD
3065 return _misc.DateTime_SetToTheWeek(*args, **kwargs)
3066
3067 def GetWeek(*args, **kwargs):
322913ce 3068 """GetWeek(int numWeek, wxDateTime::WeekDay weekday=Mon, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
e811c8ce
RD
3069 return _misc.DateTime_GetWeek(*args, **kwargs)
3070
3071 def SetToLastMonthDay(*args, **kwargs):
3072 """SetToLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime"""
3073 return _misc.DateTime_SetToLastMonthDay(*args, **kwargs)
3074
3075 def GetLastMonthDay(*args, **kwargs):
3076 """GetLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime"""
3077 return _misc.DateTime_GetLastMonthDay(*args, **kwargs)
3078
3079 def SetToYearDay(*args, **kwargs):
322913ce 3080 """SetToYearDay(int yday) -> DateTime"""
e811c8ce
RD
3081 return _misc.DateTime_SetToYearDay(*args, **kwargs)
3082
3083 def GetYearDay(*args, **kwargs):
322913ce 3084 """GetYearDay(int yday) -> DateTime"""
e811c8ce
RD
3085 return _misc.DateTime_GetYearDay(*args, **kwargs)
3086
3087 def GetJulianDayNumber(*args, **kwargs):
3088 """GetJulianDayNumber() -> double"""
3089 return _misc.DateTime_GetJulianDayNumber(*args, **kwargs)
3090
3091 def GetJDN(*args, **kwargs):
3092 """GetJDN() -> double"""
3093 return _misc.DateTime_GetJDN(*args, **kwargs)
3094
3095 def GetModifiedJulianDayNumber(*args, **kwargs):
3096 """GetModifiedJulianDayNumber() -> double"""
3097 return _misc.DateTime_GetModifiedJulianDayNumber(*args, **kwargs)
3098
3099 def GetMJD(*args, **kwargs):
3100 """GetMJD() -> double"""
3101 return _misc.DateTime_GetMJD(*args, **kwargs)
3102
3103 def GetRataDie(*args, **kwargs):
3104 """GetRataDie() -> double"""
3105 return _misc.DateTime_GetRataDie(*args, **kwargs)
3106
3107 def ToTimezone(*args, **kwargs):
3108 """ToTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3109 return _misc.DateTime_ToTimezone(*args, **kwargs)
3110
3111 def MakeTimezone(*args, **kwargs):
3112 """MakeTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3113 return _misc.DateTime_MakeTimezone(*args, **kwargs)
3114
3115 def ToGMT(*args, **kwargs):
3116 """ToGMT(bool noDST=False) -> DateTime"""
3117 return _misc.DateTime_ToGMT(*args, **kwargs)
3118
3119 def MakeGMT(*args, **kwargs):
3120 """MakeGMT(bool noDST=False) -> DateTime"""
3121 return _misc.DateTime_MakeGMT(*args, **kwargs)
3122
3123 def IsDST(*args, **kwargs):
3124 """IsDST(wxDateTime::Country country=Country_Default) -> int"""
3125 return _misc.DateTime_IsDST(*args, **kwargs)
3126
3127 def IsValid(*args, **kwargs):
3128 """IsValid() -> bool"""
3129 return _misc.DateTime_IsValid(*args, **kwargs)
3130
3131 def GetTicks(*args, **kwargs):
3132 """GetTicks() -> time_t"""
3133 return _misc.DateTime_GetTicks(*args, **kwargs)
3134
3135 def GetYear(*args, **kwargs):
3136 """GetYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3137 return _misc.DateTime_GetYear(*args, **kwargs)
3138
3139 def GetMonth(*args, **kwargs):
3140 """GetMonth(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::Month"""
3141 return _misc.DateTime_GetMonth(*args, **kwargs)
3142
3143 def GetDay(*args, **kwargs):
322913ce 3144 """GetDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
e811c8ce
RD
3145 return _misc.DateTime_GetDay(*args, **kwargs)
3146
3147 def GetWeekDay(*args, **kwargs):
3148 """GetWeekDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::WeekDay"""
3149 return _misc.DateTime_GetWeekDay(*args, **kwargs)
3150
3151 def GetHour(*args, **kwargs):
322913ce 3152 """GetHour(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
e811c8ce
RD
3153 return _misc.DateTime_GetHour(*args, **kwargs)
3154
3155 def GetMinute(*args, **kwargs):
322913ce 3156 """GetMinute(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
e811c8ce
RD
3157 return _misc.DateTime_GetMinute(*args, **kwargs)
3158
3159 def GetSecond(*args, **kwargs):
322913ce 3160 """GetSecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
e811c8ce
RD
3161 return _misc.DateTime_GetSecond(*args, **kwargs)
3162
3163 def GetMillisecond(*args, **kwargs):
322913ce 3164 """GetMillisecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
e811c8ce
RD
3165 return _misc.DateTime_GetMillisecond(*args, **kwargs)
3166
3167 def GetDayOfYear(*args, **kwargs):
322913ce 3168 """GetDayOfYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
e811c8ce
RD
3169 return _misc.DateTime_GetDayOfYear(*args, **kwargs)
3170
3171 def GetWeekOfYear(*args, **kwargs):
322913ce 3172 """GetWeekOfYear(wxDateTime::WeekFlags flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
e811c8ce
RD
3173 return _misc.DateTime_GetWeekOfYear(*args, **kwargs)
3174
3175 def GetWeekOfMonth(*args, **kwargs):
322913ce 3176 """GetWeekOfMonth(wxDateTime::WeekFlags flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
e811c8ce
RD
3177 return _misc.DateTime_GetWeekOfMonth(*args, **kwargs)
3178
3179 def IsWorkDay(*args, **kwargs):
3180 """IsWorkDay(wxDateTime::Country country=Country_Default) -> bool"""
3181 return _misc.DateTime_IsWorkDay(*args, **kwargs)
3182
3183 def IsEqualTo(*args, **kwargs):
3184 """IsEqualTo(DateTime datetime) -> bool"""
3185 return _misc.DateTime_IsEqualTo(*args, **kwargs)
3186
3187 def IsEarlierThan(*args, **kwargs):
3188 """IsEarlierThan(DateTime datetime) -> bool"""
3189 return _misc.DateTime_IsEarlierThan(*args, **kwargs)
3190
3191 def IsLaterThan(*args, **kwargs):
3192 """IsLaterThan(DateTime datetime) -> bool"""
3193 return _misc.DateTime_IsLaterThan(*args, **kwargs)
3194
3195 def IsStrictlyBetween(*args, **kwargs):
3196 """IsStrictlyBetween(DateTime t1, DateTime t2) -> bool"""
3197 return _misc.DateTime_IsStrictlyBetween(*args, **kwargs)
3198
3199 def IsBetween(*args, **kwargs):
3200 """IsBetween(DateTime t1, DateTime t2) -> bool"""
3201 return _misc.DateTime_IsBetween(*args, **kwargs)
3202
3203 def IsSameDate(*args, **kwargs):
3204 """IsSameDate(DateTime dt) -> bool"""
3205 return _misc.DateTime_IsSameDate(*args, **kwargs)
3206
3207 def IsSameTime(*args, **kwargs):
3208 """IsSameTime(DateTime dt) -> bool"""
3209 return _misc.DateTime_IsSameTime(*args, **kwargs)
3210
3211 def IsEqualUpTo(*args, **kwargs):
3212 """IsEqualUpTo(DateTime dt, TimeSpan ts) -> bool"""
3213 return _misc.DateTime_IsEqualUpTo(*args, **kwargs)
3214
3215 def AddTS(*args, **kwargs):
3216 """AddTS(TimeSpan diff) -> DateTime"""
3217 return _misc.DateTime_AddTS(*args, **kwargs)
3218
3219 def AddDS(*args, **kwargs):
3220 """AddDS(DateSpan diff) -> DateTime"""
3221 return _misc.DateTime_AddDS(*args, **kwargs)
3222
3223 def SubtractTS(*args, **kwargs):
3224 """SubtractTS(TimeSpan diff) -> DateTime"""
3225 return _misc.DateTime_SubtractTS(*args, **kwargs)
3226
3227 def SubtractDS(*args, **kwargs):
3228 """SubtractDS(DateSpan diff) -> DateTime"""
3229 return _misc.DateTime_SubtractDS(*args, **kwargs)
3230
3231 def Subtract(*args, **kwargs):
3232 """Subtract(DateTime dt) -> TimeSpan"""
3233 return _misc.DateTime_Subtract(*args, **kwargs)
3234
3235 def __iadd__(*args):
3236 """__iadd__(TimeSpan diff) -> DateTime
3237__iadd__(DateSpan diff) -> DateTime"""
3238 return _misc.DateTime___iadd__(*args)
3239
3240 def __isub__(*args):
3241 """__isub__(TimeSpan diff) -> DateTime
3242__isub__(DateSpan diff) -> DateTime"""
3243 return _misc.DateTime___isub__(*args)
3244
3245 def __add__(*args):
3246 """__add__(TimeSpan other) -> DateTime
3247__add__(DateSpan other) -> DateTime"""
3248 return _misc.DateTime___add__(*args)
3249
3250 def __sub__(*args):
3251 """__sub__(DateTime other) -> TimeSpan
3252__sub__(TimeSpan other) -> DateTime
3253__sub__(DateSpan other) -> DateTime"""
3254 return _misc.DateTime___sub__(*args)
3255
3256 def __lt__(*args):
3257 """__lt__(DateTime other) -> bool"""
3258 return _misc.DateTime___lt__(*args)
3259
3260 def __le__(*args):
3261 """__le__(DateTime other) -> bool"""
3262 return _misc.DateTime___le__(*args)
3263
3264 def __gt__(*args):
3265 """__gt__(DateTime other) -> bool"""
3266 return _misc.DateTime___gt__(*args)
3267
3268 def __ge__(*args):
3269 """__ge__(DateTime other) -> bool"""
3270 return _misc.DateTime___ge__(*args)
3271
3272 def __eq__(*args):
3273 """__eq__(DateTime other) -> bool"""
3274 return _misc.DateTime___eq__(*args)
3275
3276 def __ne__(*args):
3277 """__ne__(DateTime other) -> bool"""
3278 return _misc.DateTime___ne__(*args)
3279
3280 def ParseRfc822Date(*args, **kwargs):
3281 """ParseRfc822Date(wxString date) -> int"""
3282 return _misc.DateTime_ParseRfc822Date(*args, **kwargs)
3283
3284 def ParseFormat(*args, **kwargs):
3285 """ParseFormat(wxString date, wxString format=wxPyDateFormatStr, DateTime dateDef=wxDefaultDateTime) -> int"""
3286 return _misc.DateTime_ParseFormat(*args, **kwargs)
3287
3288 def ParseDateTime(*args, **kwargs):
3289 """ParseDateTime(wxString datetime) -> int"""
3290 return _misc.DateTime_ParseDateTime(*args, **kwargs)
3291
3292 def ParseDate(*args, **kwargs):
3293 """ParseDate(wxString date) -> int"""
3294 return _misc.DateTime_ParseDate(*args, **kwargs)
3295
3296 def ParseTime(*args, **kwargs):
3297 """ParseTime(wxString time) -> int"""
3298 return _misc.DateTime_ParseTime(*args, **kwargs)
3299
3300 def Format(*args, **kwargs):
3301 """Format(wxString format=wxPyDateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> wxString"""
3302 return _misc.DateTime_Format(*args, **kwargs)
3303
3304 def FormatDate(*args, **kwargs):
3305 """FormatDate() -> wxString"""
3306 return _misc.DateTime_FormatDate(*args, **kwargs)
3307
3308 def FormatTime(*args, **kwargs):
3309 """FormatTime() -> wxString"""
3310 return _misc.DateTime_FormatTime(*args, **kwargs)
3311
3312 def FormatISODate(*args, **kwargs):
3313 """FormatISODate() -> wxString"""
3314 return _misc.DateTime_FormatISODate(*args, **kwargs)
3315
3316 def FormatISOTime(*args, **kwargs):
3317 """FormatISOTime() -> wxString"""
3318 return _misc.DateTime_FormatISOTime(*args, **kwargs)
3319
d14a1e28
RD
3320 def __repr__(self):
3321 return '<wxDateTime: \"%s\" at %s>' % ( self.Format(), self.this)
3322 def __str__(self):
3323 return self.Format()
3324
3325
3326class DateTimePtr(DateTime):
3327 def __init__(self, this):
3328 self.this = this
3329 if not hasattr(self,"thisown"): self.thisown = 0
3330 self.__class__ = DateTime
3331_misc.DateTime_swigregister(DateTimePtr)
3332
e811c8ce
RD
3333def DateTime_SetCountry(*args, **kwargs):
3334 """DateTime_SetCountry(wxDateTime::Country country)"""
3335 return _misc.DateTime_SetCountry(*args, **kwargs)
d14a1e28 3336
e811c8ce
RD
3337def DateTime_GetCountry(*args, **kwargs):
3338 """DateTime_GetCountry() -> wxDateTime::Country"""
3339 return _misc.DateTime_GetCountry(*args, **kwargs)
d14a1e28 3340
e811c8ce
RD
3341def DateTime_IsWestEuropeanCountry(*args, **kwargs):
3342 """DateTime_IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool"""
3343 return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs)
d14a1e28 3344
e811c8ce
RD
3345def DateTime_GetCurrentYear(*args, **kwargs):
3346 """DateTime_GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int"""
3347 return _misc.DateTime_GetCurrentYear(*args, **kwargs)
d14a1e28 3348
e811c8ce
RD
3349def DateTime_ConvertYearToBC(*args, **kwargs):
3350 """DateTime_ConvertYearToBC(int year) -> int"""
3351 return _misc.DateTime_ConvertYearToBC(*args, **kwargs)
d14a1e28 3352
e811c8ce
RD
3353def DateTime_GetCurrentMonth(*args, **kwargs):
3354 """DateTime_GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month"""
3355 return _misc.DateTime_GetCurrentMonth(*args, **kwargs)
d14a1e28 3356
e811c8ce
RD
3357def DateTime_IsLeapYear(*args, **kwargs):
3358 """DateTime_IsLeapYear(int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> bool"""
3359 return _misc.DateTime_IsLeapYear(*args, **kwargs)
d14a1e28 3360
e811c8ce
RD
3361def DateTime_GetCentury(*args, **kwargs):
3362 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3363 return _misc.DateTime_GetCentury(*args, **kwargs)
d14a1e28 3364
e811c8ce 3365def DateTime_GetNumberOfDaysinYear(*args, **kwargs):
322913ce 3366 """DateTime_GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> int"""
e811c8ce 3367 return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs)
d14a1e28 3368
e811c8ce 3369def DateTime_GetNumberOfDaysInMonth(*args, **kwargs):
322913ce 3370 """DateTime_GetNumberOfDaysInMonth(wxDateTime::Month month, int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> int"""
e811c8ce 3371 return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs)
d14a1e28 3372
e811c8ce
RD
3373def DateTime_GetMonthName(*args, **kwargs):
3374 """DateTime_GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
3375 return _misc.DateTime_GetMonthName(*args, **kwargs)
d14a1e28 3376
e811c8ce
RD
3377def DateTime_GetWeekDayName(*args, **kwargs):
3378 """DateTime_GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
3379 return _misc.DateTime_GetWeekDayName(*args, **kwargs)
d14a1e28 3380
e811c8ce 3381def DateTime_GetAmPmStrings(*args, **kwargs):
322913ce
RD
3382 """GetAmPmStrings() -> (am, pm)
3383
3384Get the AM and PM strings in the current locale (may be empty)"""
e811c8ce 3385 return _misc.DateTime_GetAmPmStrings(*args, **kwargs)
d14a1e28 3386
e811c8ce
RD
3387def DateTime_IsDSTApplicable(*args, **kwargs):
3388 """DateTime_IsDSTApplicable(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> bool"""
3389 return _misc.DateTime_IsDSTApplicable(*args, **kwargs)
d14a1e28 3390
e811c8ce
RD
3391def DateTime_GetBeginDST(*args, **kwargs):
3392 """DateTime_GetBeginDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
3393 return _misc.DateTime_GetBeginDST(*args, **kwargs)
d14a1e28 3394
e811c8ce
RD
3395def DateTime_GetEndDST(*args, **kwargs):
3396 """DateTime_GetEndDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
3397 return _misc.DateTime_GetEndDST(*args, **kwargs)
d14a1e28 3398
e811c8ce
RD
3399def DateTime_Now(*args, **kwargs):
3400 """DateTime_Now() -> DateTime"""
3401 return _misc.DateTime_Now(*args, **kwargs)
d14a1e28 3402
e811c8ce
RD
3403def DateTime_UNow(*args, **kwargs):
3404 """DateTime_UNow() -> DateTime"""
3405 return _misc.DateTime_UNow(*args, **kwargs)
d14a1e28 3406
e811c8ce
RD
3407def DateTime_Today(*args, **kwargs):
3408 """DateTime_Today() -> DateTime"""
3409 return _misc.DateTime_Today(*args, **kwargs)
d14a1e28
RD
3410
3411def DateTimeFromTimeT(*args, **kwargs):
e811c8ce 3412 """DateTimeFromTimeT(time_t timet) -> DateTime"""
d14a1e28
RD
3413 val = _misc.new_DateTimeFromTimeT(*args, **kwargs)
3414 val.thisown = 1
c368d904
RD
3415 return val
3416
d14a1e28 3417def DateTimeFromJDN(*args, **kwargs):
e811c8ce 3418 """DateTimeFromJDN(double jdn) -> DateTime"""
d14a1e28
RD
3419 val = _misc.new_DateTimeFromJDN(*args, **kwargs)
3420 val.thisown = 1
3421 return val
3422
3423def DateTimeFromHMS(*args, **kwargs):
322913ce 3424 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
d14a1e28
RD
3425 val = _misc.new_DateTimeFromHMS(*args, **kwargs)
3426 val.thisown = 1
3427 return val
3428
3429def DateTimeFromDMY(*args, **kwargs):
322913ce
RD
3430 """DateTimeFromDMY(int day, wxDateTime::Month month=Inv_Month, int year=Inv_Year,
3431 int hour=0, int minute=0, int second=0,
3432 int millisec=0) -> DateTime"""
d14a1e28
RD
3433 val = _misc.new_DateTimeFromDMY(*args, **kwargs)
3434 val.thisown = 1
3435 return val
3436
3437class TimeSpan(object):
e811c8ce
RD
3438 """"""
3439 def __repr__(self):
3440 return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3441 def Seconds(*args, **kwargs):
3442 """TimeSpan.Seconds(long sec) -> TimeSpan"""
3443 return _misc.TimeSpan_Seconds(*args, **kwargs)
3444
3445 Seconds = staticmethod(Seconds)
3446 def Second(*args, **kwargs):
3447 """TimeSpan.Second() -> TimeSpan"""
3448 return _misc.TimeSpan_Second(*args, **kwargs)
3449
3450 Second = staticmethod(Second)
3451 def Minutes(*args, **kwargs):
3452 """TimeSpan.Minutes(long min) -> TimeSpan"""
3453 return _misc.TimeSpan_Minutes(*args, **kwargs)
3454
3455 Minutes = staticmethod(Minutes)
3456 def Minute(*args, **kwargs):
3457 """TimeSpan.Minute() -> TimeSpan"""
3458 return _misc.TimeSpan_Minute(*args, **kwargs)
3459
3460 Minute = staticmethod(Minute)
3461 def Hours(*args, **kwargs):
3462 """TimeSpan.Hours(long hours) -> TimeSpan"""
3463 return _misc.TimeSpan_Hours(*args, **kwargs)
3464
3465 Hours = staticmethod(Hours)
3466 def Hour(*args, **kwargs):
3467 """TimeSpan.Hour() -> TimeSpan"""
3468 return _misc.TimeSpan_Hour(*args, **kwargs)
3469
3470 Hour = staticmethod(Hour)
3471 def Days(*args, **kwargs):
3472 """TimeSpan.Days(long days) -> TimeSpan"""
3473 return _misc.TimeSpan_Days(*args, **kwargs)
3474
3475 Days = staticmethod(Days)
3476 def Day(*args, **kwargs):
3477 """TimeSpan.Day() -> TimeSpan"""
3478 return _misc.TimeSpan_Day(*args, **kwargs)
3479
3480 Day = staticmethod(Day)
3481 def Weeks(*args, **kwargs):
3482 """TimeSpan.Weeks(long days) -> TimeSpan"""
3483 return _misc.TimeSpan_Weeks(*args, **kwargs)
3484
3485 Weeks = staticmethod(Weeks)
3486 def Week(*args, **kwargs):
3487 """TimeSpan.Week() -> TimeSpan"""
3488 return _misc.TimeSpan_Week(*args, **kwargs)
3489
3490 Week = staticmethod(Week)
d14a1e28 3491 def __init__(self, *args, **kwargs):
e811c8ce 3492 """__init__(long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
d14a1e28
RD
3493 newobj = _misc.new_TimeSpan(*args, **kwargs)
3494 self.this = newobj.this
3495 self.thisown = 1
3496 del newobj.thisown
3497 def __del__(self, destroy=_misc.delete_TimeSpan):
e811c8ce 3498 """__del__()"""
d14a1e28
RD
3499 try:
3500 if self.thisown: destroy(self)
3501 except: pass
e811c8ce
RD
3502
3503 def Add(*args, **kwargs):
3504 """Add(TimeSpan diff) -> TimeSpan"""
3505 return _misc.TimeSpan_Add(*args, **kwargs)
3506
3507 def Subtract(*args, **kwargs):
3508 """Subtract(TimeSpan diff) -> TimeSpan"""
3509 return _misc.TimeSpan_Subtract(*args, **kwargs)
3510
3511 def Multiply(*args, **kwargs):
3512 """Multiply(int n) -> TimeSpan"""
3513 return _misc.TimeSpan_Multiply(*args, **kwargs)
3514
3515 def Neg(*args, **kwargs):
3516 """Neg() -> TimeSpan"""
3517 return _misc.TimeSpan_Neg(*args, **kwargs)
3518
3519 def Abs(*args, **kwargs):
3520 """Abs() -> TimeSpan"""
3521 return _misc.TimeSpan_Abs(*args, **kwargs)
3522
3523 def __iadd__(*args, **kwargs):
3524 """__iadd__(TimeSpan diff) -> TimeSpan"""
3525 return _misc.TimeSpan___iadd__(*args, **kwargs)
3526
3527 def __isub__(*args, **kwargs):
3528 """__isub__(TimeSpan diff) -> TimeSpan"""
3529 return _misc.TimeSpan___isub__(*args, **kwargs)
3530
3531 def __imul__(*args, **kwargs):
3532 """__imul__(int n) -> TimeSpan"""
3533 return _misc.TimeSpan___imul__(*args, **kwargs)
3534
3535 def __neg__(*args, **kwargs):
3536 """__neg__() -> TimeSpan"""
3537 return _misc.TimeSpan___neg__(*args, **kwargs)
3538
3539 def __add__(*args, **kwargs):
3540 """__add__(TimeSpan other) -> TimeSpan"""
3541 return _misc.TimeSpan___add__(*args, **kwargs)
3542
3543 def __sub__(*args, **kwargs):
3544 """__sub__(TimeSpan other) -> TimeSpan"""
3545 return _misc.TimeSpan___sub__(*args, **kwargs)
3546
3547 def __mul__(*args, **kwargs):
3548 """__mul__(int n) -> TimeSpan"""
3549 return _misc.TimeSpan___mul__(*args, **kwargs)
3550
3551 def __rmul__(*args, **kwargs):
3552 """__rmul__(int n) -> TimeSpan"""
3553 return _misc.TimeSpan___rmul__(*args, **kwargs)
3554
3555 def __lt__(*args, **kwargs):
3556 """__lt__(TimeSpan other) -> bool"""
3557 return _misc.TimeSpan___lt__(*args, **kwargs)
3558
3559 def __le__(*args, **kwargs):
3560 """__le__(TimeSpan other) -> bool"""
3561 return _misc.TimeSpan___le__(*args, **kwargs)
3562
3563 def __gt__(*args, **kwargs):
3564 """__gt__(TimeSpan other) -> bool"""
3565 return _misc.TimeSpan___gt__(*args, **kwargs)
3566
3567 def __ge__(*args, **kwargs):
3568 """__ge__(TimeSpan other) -> bool"""
3569 return _misc.TimeSpan___ge__(*args, **kwargs)
3570
3571 def __eq__(*args, **kwargs):
3572 """__eq__(TimeSpan other) -> bool"""
3573 return _misc.TimeSpan___eq__(*args, **kwargs)
3574
3575 def __ne__(*args, **kwargs):
3576 """__ne__(TimeSpan other) -> bool"""
3577 return _misc.TimeSpan___ne__(*args, **kwargs)
3578
3579 def IsNull(*args, **kwargs):
3580 """IsNull() -> bool"""
3581 return _misc.TimeSpan_IsNull(*args, **kwargs)
3582
3583 def IsPositive(*args, **kwargs):
3584 """IsPositive() -> bool"""
3585 return _misc.TimeSpan_IsPositive(*args, **kwargs)
3586
3587 def IsNegative(*args, **kwargs):
3588 """IsNegative() -> bool"""
3589 return _misc.TimeSpan_IsNegative(*args, **kwargs)
3590
3591 def IsEqualTo(*args, **kwargs):
3592 """IsEqualTo(TimeSpan ts) -> bool"""
3593 return _misc.TimeSpan_IsEqualTo(*args, **kwargs)
3594
3595 def IsLongerThan(*args, **kwargs):
3596 """IsLongerThan(TimeSpan ts) -> bool"""
3597 return _misc.TimeSpan_IsLongerThan(*args, **kwargs)
3598
3599 def IsShorterThan(*args, **kwargs):
3600 """IsShorterThan(TimeSpan t) -> bool"""
3601 return _misc.TimeSpan_IsShorterThan(*args, **kwargs)
3602
3603 def GetWeeks(*args, **kwargs):
3604 """GetWeeks() -> int"""
3605 return _misc.TimeSpan_GetWeeks(*args, **kwargs)
3606
3607 def GetDays(*args, **kwargs):
3608 """GetDays() -> int"""
3609 return _misc.TimeSpan_GetDays(*args, **kwargs)
3610
3611 def GetHours(*args, **kwargs):
3612 """GetHours() -> int"""
3613 return _misc.TimeSpan_GetHours(*args, **kwargs)
3614
3615 def GetMinutes(*args, **kwargs):
3616 """GetMinutes() -> int"""
3617 return _misc.TimeSpan_GetMinutes(*args, **kwargs)
3618
3619 def GetSeconds(*args, **kwargs):
3620 """GetSeconds() -> wxLongLong"""
3621 return _misc.TimeSpan_GetSeconds(*args, **kwargs)
3622
3623 def GetMilliseconds(*args, **kwargs):
3624 """GetMilliseconds() -> wxLongLong"""
3625 return _misc.TimeSpan_GetMilliseconds(*args, **kwargs)
3626
3627 def Format(*args, **kwargs):
3628 """Format(wxString format=wxPyTimeSpanFormatStr) -> wxString"""
3629 return _misc.TimeSpan_Format(*args, **kwargs)
3630
d14a1e28
RD
3631 def __repr__(self):
3632 return '<wxTimeSpan: \"%s\" at %s>' % ( self.Format(), self.this)
3633 def __str__(self):
3634 return self.Format()
3635
3636
3637class TimeSpanPtr(TimeSpan):
3638 def __init__(self, this):
3639 self.this = this
3640 if not hasattr(self,"thisown"): self.thisown = 0
3641 self.__class__ = TimeSpan
3642_misc.TimeSpan_swigregister(TimeSpanPtr)
3643
e811c8ce
RD
3644def TimeSpan_Seconds(*args, **kwargs):
3645 """TimeSpan_Seconds(long sec) -> TimeSpan"""
3646 return _misc.TimeSpan_Seconds(*args, **kwargs)
d14a1e28 3647
e811c8ce
RD
3648def TimeSpan_Second(*args, **kwargs):
3649 """TimeSpan_Second() -> TimeSpan"""
3650 return _misc.TimeSpan_Second(*args, **kwargs)
d14a1e28 3651
e811c8ce
RD
3652def TimeSpan_Minutes(*args, **kwargs):
3653 """TimeSpan_Minutes(long min) -> TimeSpan"""
3654 return _misc.TimeSpan_Minutes(*args, **kwargs)
d14a1e28 3655
e811c8ce
RD
3656def TimeSpan_Minute(*args, **kwargs):
3657 """TimeSpan_Minute() -> TimeSpan"""
3658 return _misc.TimeSpan_Minute(*args, **kwargs)
d14a1e28 3659
e811c8ce
RD
3660def TimeSpan_Hours(*args, **kwargs):
3661 """TimeSpan_Hours(long hours) -> TimeSpan"""
3662 return _misc.TimeSpan_Hours(*args, **kwargs)
d14a1e28 3663
e811c8ce
RD
3664def TimeSpan_Hour(*args, **kwargs):
3665 """TimeSpan_Hour() -> TimeSpan"""
3666 return _misc.TimeSpan_Hour(*args, **kwargs)
d14a1e28 3667
e811c8ce
RD
3668def TimeSpan_Days(*args, **kwargs):
3669 """TimeSpan_Days(long days) -> TimeSpan"""
3670 return _misc.TimeSpan_Days(*args, **kwargs)
d14a1e28 3671
e811c8ce
RD
3672def TimeSpan_Day(*args, **kwargs):
3673 """TimeSpan_Day() -> TimeSpan"""
3674 return _misc.TimeSpan_Day(*args, **kwargs)
d14a1e28 3675
e811c8ce
RD
3676def TimeSpan_Weeks(*args, **kwargs):
3677 """TimeSpan_Weeks(long days) -> TimeSpan"""
3678 return _misc.TimeSpan_Weeks(*args, **kwargs)
d14a1e28 3679
e811c8ce
RD
3680def TimeSpan_Week(*args, **kwargs):
3681 """TimeSpan_Week() -> TimeSpan"""
3682 return _misc.TimeSpan_Week(*args, **kwargs)
d14a1e28
RD
3683
3684class DateSpan(object):
e811c8ce
RD
3685 """"""
3686 def __repr__(self):
3687 return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3688 def __init__(self, *args, **kwargs):
e811c8ce 3689 """__init__(int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
d14a1e28
RD
3690 newobj = _misc.new_DateSpan(*args, **kwargs)
3691 self.this = newobj.this
3692 self.thisown = 1
3693 del newobj.thisown
3694 def __del__(self, destroy=_misc.delete_DateSpan):
e811c8ce 3695 """__del__()"""
d14a1e28
RD
3696 try:
3697 if self.thisown: destroy(self)
3698 except: pass
e811c8ce
RD
3699
3700 def Days(*args, **kwargs):
3701 """DateSpan.Days(int days) -> DateSpan"""
3702 return _misc.DateSpan_Days(*args, **kwargs)
3703
3704 Days = staticmethod(Days)
3705 def Day(*args, **kwargs):
3706 """DateSpan.Day() -> DateSpan"""
3707 return _misc.DateSpan_Day(*args, **kwargs)
3708
3709 Day = staticmethod(Day)
3710 def Weeks(*args, **kwargs):
3711 """DateSpan.Weeks(int weeks) -> DateSpan"""
3712 return _misc.DateSpan_Weeks(*args, **kwargs)
3713
3714 Weeks = staticmethod(Weeks)
3715 def Week(*args, **kwargs):
3716 """DateSpan.Week() -> DateSpan"""
3717 return _misc.DateSpan_Week(*args, **kwargs)
3718
3719 Week = staticmethod(Week)
3720 def Months(*args, **kwargs):
3721 """DateSpan.Months(int mon) -> DateSpan"""
3722 return _misc.DateSpan_Months(*args, **kwargs)
3723
3724 Months = staticmethod(Months)
3725 def Month(*args, **kwargs):
3726 """DateSpan.Month() -> DateSpan"""
3727 return _misc.DateSpan_Month(*args, **kwargs)
3728
3729 Month = staticmethod(Month)
3730 def Years(*args, **kwargs):
3731 """DateSpan.Years(int years) -> DateSpan"""
3732 return _misc.DateSpan_Years(*args, **kwargs)
3733
3734 Years = staticmethod(Years)
3735 def Year(*args, **kwargs):
3736 """DateSpan.Year() -> DateSpan"""
3737 return _misc.DateSpan_Year(*args, **kwargs)
3738
3739 Year = staticmethod(Year)
3740 def SetYears(*args, **kwargs):
3741 """SetYears(int n) -> DateSpan"""
3742 return _misc.DateSpan_SetYears(*args, **kwargs)
3743
3744 def SetMonths(*args, **kwargs):
3745 """SetMonths(int n) -> DateSpan"""
3746 return _misc.DateSpan_SetMonths(*args, **kwargs)
3747
3748 def SetWeeks(*args, **kwargs):
3749 """SetWeeks(int n) -> DateSpan"""
3750 return _misc.DateSpan_SetWeeks(*args, **kwargs)
3751
3752 def SetDays(*args, **kwargs):
3753 """SetDays(int n) -> DateSpan"""
3754 return _misc.DateSpan_SetDays(*args, **kwargs)
3755
3756 def GetYears(*args, **kwargs):
3757 """GetYears() -> int"""
3758 return _misc.DateSpan_GetYears(*args, **kwargs)
3759
3760 def GetMonths(*args, **kwargs):
3761 """GetMonths() -> int"""
3762 return _misc.DateSpan_GetMonths(*args, **kwargs)
3763
3764 def GetWeeks(*args, **kwargs):
3765 """GetWeeks() -> int"""
3766 return _misc.DateSpan_GetWeeks(*args, **kwargs)
3767
3768 def GetDays(*args, **kwargs):
3769 """GetDays() -> int"""
3770 return _misc.DateSpan_GetDays(*args, **kwargs)
3771
3772 def GetTotalDays(*args, **kwargs):
3773 """GetTotalDays() -> int"""
3774 return _misc.DateSpan_GetTotalDays(*args, **kwargs)
3775
3776 def Add(*args, **kwargs):
3777 """Add(DateSpan other) -> DateSpan"""
3778 return _misc.DateSpan_Add(*args, **kwargs)
3779
3780 def Subtract(*args, **kwargs):
3781 """Subtract(DateSpan other) -> DateSpan"""
3782 return _misc.DateSpan_Subtract(*args, **kwargs)
3783
3784 def Neg(*args, **kwargs):
3785 """Neg() -> DateSpan"""
3786 return _misc.DateSpan_Neg(*args, **kwargs)
3787
3788 def Multiply(*args, **kwargs):
3789 """Multiply(int factor) -> DateSpan"""
3790 return _misc.DateSpan_Multiply(*args, **kwargs)
3791
3792 def __iadd__(*args, **kwargs):
3793 """__iadd__(DateSpan other) -> DateSpan"""
3794 return _misc.DateSpan___iadd__(*args, **kwargs)
3795
3796 def __isub__(*args, **kwargs):
3797 """__isub__(DateSpan other) -> DateSpan"""
3798 return _misc.DateSpan___isub__(*args, **kwargs)
3799
3800 def __neg__(*args, **kwargs):
3801 """__neg__() -> DateSpan"""
3802 return _misc.DateSpan___neg__(*args, **kwargs)
3803
3804 def __imul__(*args, **kwargs):
3805 """__imul__(int factor) -> DateSpan"""
3806 return _misc.DateSpan___imul__(*args, **kwargs)
3807
3808 def __add__(*args, **kwargs):
3809 """__add__(DateSpan other) -> DateSpan"""
3810 return _misc.DateSpan___add__(*args, **kwargs)
3811
3812 def __sub__(*args, **kwargs):
3813 """__sub__(DateSpan other) -> DateSpan"""
3814 return _misc.DateSpan___sub__(*args, **kwargs)
3815
3816 def __mul__(*args, **kwargs):
3817 """__mul__(int n) -> DateSpan"""
3818 return _misc.DateSpan___mul__(*args, **kwargs)
3819
3820 def __rmul__(*args, **kwargs):
3821 """__rmul__(int n) -> DateSpan"""
3822 return _misc.DateSpan___rmul__(*args, **kwargs)
3823
3824 def __eq__(*args, **kwargs):
3825 """__eq__(DateSpan other) -> bool"""
3826 return _misc.DateSpan___eq__(*args, **kwargs)
3827
3828 def __ne__(*args, **kwargs):
3829 """__ne__(DateSpan other) -> bool"""
3830 return _misc.DateSpan___ne__(*args, **kwargs)
3831
d14a1e28
RD
3832
3833class DateSpanPtr(DateSpan):
3834 def __init__(self, this):
3835 self.this = this
3836 if not hasattr(self,"thisown"): self.thisown = 0
3837 self.__class__ = DateSpan
3838_misc.DateSpan_swigregister(DateSpanPtr)
3839
e811c8ce
RD
3840def DateSpan_Days(*args, **kwargs):
3841 """DateSpan_Days(int days) -> DateSpan"""
3842 return _misc.DateSpan_Days(*args, **kwargs)
d14a1e28 3843
e811c8ce
RD
3844def DateSpan_Day(*args, **kwargs):
3845 """DateSpan_Day() -> DateSpan"""
3846 return _misc.DateSpan_Day(*args, **kwargs)
d14a1e28 3847
e811c8ce
RD
3848def DateSpan_Weeks(*args, **kwargs):
3849 """DateSpan_Weeks(int weeks) -> DateSpan"""
3850 return _misc.DateSpan_Weeks(*args, **kwargs)
d14a1e28 3851
e811c8ce
RD
3852def DateSpan_Week(*args, **kwargs):
3853 """DateSpan_Week() -> DateSpan"""
3854 return _misc.DateSpan_Week(*args, **kwargs)
d14a1e28 3855
e811c8ce
RD
3856def DateSpan_Months(*args, **kwargs):
3857 """DateSpan_Months(int mon) -> DateSpan"""
3858 return _misc.DateSpan_Months(*args, **kwargs)
d14a1e28 3859
e811c8ce
RD
3860def DateSpan_Month(*args, **kwargs):
3861 """DateSpan_Month() -> DateSpan"""
3862 return _misc.DateSpan_Month(*args, **kwargs)
d14a1e28 3863
e811c8ce
RD
3864def DateSpan_Years(*args, **kwargs):
3865 """DateSpan_Years(int years) -> DateSpan"""
3866 return _misc.DateSpan_Years(*args, **kwargs)
d14a1e28 3867
e811c8ce
RD
3868def DateSpan_Year(*args, **kwargs):
3869 """DateSpan_Year() -> DateSpan"""
3870 return _misc.DateSpan_Year(*args, **kwargs)
d14a1e28
RD
3871
3872
e811c8ce
RD
3873def GetLocalTime(*args, **kwargs):
3874 """GetLocalTime() -> long"""
3875 return _misc.GetLocalTime(*args, **kwargs)
d14a1e28 3876
e811c8ce
RD
3877def GetUTCTime(*args, **kwargs):
3878 """GetUTCTime() -> long"""
3879 return _misc.GetUTCTime(*args, **kwargs)
d14a1e28 3880
e811c8ce
RD
3881def GetCurrentTime(*args, **kwargs):
3882 """GetCurrentTime() -> long"""
3883 return _misc.GetCurrentTime(*args, **kwargs)
d14a1e28 3884
e811c8ce
RD
3885def GetLocalTimeMillis(*args, **kwargs):
3886 """GetLocalTimeMillis() -> wxLongLong"""
3887 return _misc.GetLocalTimeMillis(*args, **kwargs)
d14a1e28
RD
3888#---------------------------------------------------------------------------
3889
3890DF_INVALID = _misc.DF_INVALID
3891DF_TEXT = _misc.DF_TEXT
3892DF_BITMAP = _misc.DF_BITMAP
3893DF_METAFILE = _misc.DF_METAFILE
3894DF_SYLK = _misc.DF_SYLK
3895DF_DIF = _misc.DF_DIF
3896DF_TIFF = _misc.DF_TIFF
3897DF_OEMTEXT = _misc.DF_OEMTEXT
3898DF_DIB = _misc.DF_DIB
3899DF_PALETTE = _misc.DF_PALETTE
3900DF_PENDATA = _misc.DF_PENDATA
3901DF_RIFF = _misc.DF_RIFF
3902DF_WAVE = _misc.DF_WAVE
3903DF_UNICODETEXT = _misc.DF_UNICODETEXT
3904DF_ENHMETAFILE = _misc.DF_ENHMETAFILE
3905DF_FILENAME = _misc.DF_FILENAME
3906DF_LOCALE = _misc.DF_LOCALE
3907DF_PRIVATE = _misc.DF_PRIVATE
3908DF_HTML = _misc.DF_HTML
3909DF_MAX = _misc.DF_MAX
3910class DataFormat(object):
e811c8ce
RD
3911 """"""
3912 def __repr__(self):
3913 return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3914 def __init__(self, *args, **kwargs):
e811c8ce 3915 """__init__(wxDataFormatId type) -> DataFormat"""
d14a1e28
RD
3916 newobj = _misc.new_DataFormat(*args, **kwargs)
3917 self.this = newobj.this
3918 self.thisown = 1
3919 del newobj.thisown
3920 def __del__(self, destroy=_misc.delete_DataFormat):
e811c8ce 3921 """__del__()"""
d14a1e28
RD
3922 try:
3923 if self.thisown: destroy(self)
3924 except: pass
e811c8ce
RD
3925
3926 def __eq__(*args):
3927 """__eq__(wxDataFormatId format) -> bool
3928__eq__(DataFormat format) -> bool"""
3929 return _misc.DataFormat___eq__(*args)
3930
3931 def __ne__(*args):
3932 """__ne__(wxDataFormatId format) -> bool
3933__ne__(DataFormat format) -> bool"""
3934 return _misc.DataFormat___ne__(*args)
3935
3936 def SetType(*args, **kwargs):
3937 """SetType(wxDataFormatId format)"""
3938 return _misc.DataFormat_SetType(*args, **kwargs)
3939
3940 def GetType(*args, **kwargs):
3941 """GetType() -> wxDataFormatId"""
3942 return _misc.DataFormat_GetType(*args, **kwargs)
3943
3944 def GetId(*args, **kwargs):
3945 """GetId() -> wxString"""
3946 return _misc.DataFormat_GetId(*args, **kwargs)
3947
3948 def SetId(*args, **kwargs):
3949 """SetId(wxString format)"""
3950 return _misc.DataFormat_SetId(*args, **kwargs)
3951
d14a1e28
RD
3952
3953class DataFormatPtr(DataFormat):
3954 def __init__(self, this):
3955 self.this = this
3956 if not hasattr(self,"thisown"): self.thisown = 0
3957 self.__class__ = DataFormat
3958_misc.DataFormat_swigregister(DataFormatPtr)
3959
3960def CustomDataFormat(*args, **kwargs):
e811c8ce 3961 """CustomDataFormat(wxString format) -> DataFormat"""
d14a1e28
RD
3962 val = _misc.new_CustomDataFormat(*args, **kwargs)
3963 val.thisown = 1
3964 return val
3965
3966class DataObject(object):
e811c8ce
RD
3967 """"""
3968 def __init__(self): raise RuntimeError, "No constructor defined"
3969 def __repr__(self):
3970 return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28
RD
3971 Get = _misc.DataObject_Get
3972 Set = _misc.DataObject_Set
3973 Both = _misc.DataObject_Both
3974 def __del__(self, destroy=_misc.delete_DataObject):
e811c8ce 3975 """__del__()"""
d14a1e28
RD
3976 try:
3977 if self.thisown: destroy(self)
3978 except: pass
e811c8ce
RD
3979
3980 def GetPreferredFormat(*args, **kwargs):
3981 """GetPreferredFormat(wxDataObject::Direction dir=Get) -> DataFormat"""
3982 return _misc.DataObject_GetPreferredFormat(*args, **kwargs)
3983
3984 def GetFormatCount(*args, **kwargs):
3985 """GetFormatCount(wxDataObject::Direction dir=Get) -> size_t"""
3986 return _misc.DataObject_GetFormatCount(*args, **kwargs)
3987
3988 def IsSupported(*args, **kwargs):
3989 """IsSupported(DataFormat format, wxDataObject::Direction dir=Get) -> bool"""
3990 return _misc.DataObject_IsSupported(*args, **kwargs)
3991
3992 def GetDataSize(*args, **kwargs):
3993 """GetDataSize(DataFormat format) -> size_t"""
3994 return _misc.DataObject_GetDataSize(*args, **kwargs)
3995
3996 def GetAllFormats(*args, **kwargs):
3997 """GetAllFormats(DataFormat formats, wxDataObject::Direction dir=Get)"""
3998 return _misc.DataObject_GetAllFormats(*args, **kwargs)
3999
4000 def GetDataHere(*args, **kwargs):
4001 """GetDataHere(DataFormat format, void buf) -> bool"""
4002 return _misc.DataObject_GetDataHere(*args, **kwargs)
4003
4004 def SetData(*args, **kwargs):
4005 """SetData(DataFormat format, size_t len, void buf) -> bool"""
4006 return _misc.DataObject_SetData(*args, **kwargs)
4007
d14a1e28
RD
4008
4009class DataObjectPtr(DataObject):
4010 def __init__(self, this):
4011 self.this = this
4012 if not hasattr(self,"thisown"): self.thisown = 0
4013 self.__class__ = DataObject
4014_misc.DataObject_swigregister(DataObjectPtr)
4015FormatInvalid = cvar.FormatInvalid
4016
4017class DataObjectSimple(DataObject):
e811c8ce
RD
4018 """"""
4019 def __repr__(self):
4020 return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4021 def __init__(self, *args, **kwargs):
e811c8ce 4022 """__init__(DataFormat format=FormatInvalid) -> DataObjectSimple"""
d14a1e28
RD
4023 newobj = _misc.new_DataObjectSimple(*args, **kwargs)
4024 self.this = newobj.this
4025 self.thisown = 1
4026 del newobj.thisown
e811c8ce
RD
4027 def GetFormat(*args, **kwargs):
4028 """GetFormat() -> DataFormat"""
4029 return _misc.DataObjectSimple_GetFormat(*args, **kwargs)
4030
4031 def SetFormat(*args, **kwargs):
4032 """SetFormat(DataFormat format)"""
4033 return _misc.DataObjectSimple_SetFormat(*args, **kwargs)
4034
d14a1e28
RD
4035
4036class DataObjectSimplePtr(DataObjectSimple):
4037 def __init__(self, this):
4038 self.this = this
4039 if not hasattr(self,"thisown"): self.thisown = 0
4040 self.__class__ = DataObjectSimple
4041_misc.DataObjectSimple_swigregister(DataObjectSimplePtr)
4042
4043class PyDataObjectSimple(DataObjectSimple):
e811c8ce
RD
4044 """"""
4045 def __repr__(self):
4046 return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4047 def __init__(self, *args, **kwargs):
e811c8ce 4048 """__init__(DataFormat format=FormatInvalid) -> PyDataObjectSimple"""
d14a1e28
RD
4049 newobj = _misc.new_PyDataObjectSimple(*args, **kwargs)
4050 self.this = newobj.this
4051 self.thisown = 1
4052 del newobj.thisown
4053 self._setCallbackInfo(self, PyDataObjectSimple)
e811c8ce
RD
4054
4055 def _setCallbackInfo(*args, **kwargs):
4056 """_setCallbackInfo(PyObject self, PyObject _class)"""
4057 return _misc.PyDataObjectSimple__setCallbackInfo(*args, **kwargs)
4058
d14a1e28
RD
4059
4060class PyDataObjectSimplePtr(PyDataObjectSimple):
4061 def __init__(self, this):
4062 self.this = this
4063 if not hasattr(self,"thisown"): self.thisown = 0
4064 self.__class__ = PyDataObjectSimple
4065_misc.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr)
4066
4067class DataObjectComposite(DataObject):
e811c8ce
RD
4068 """"""
4069 def __repr__(self):
4070 return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4071 def __init__(self, *args, **kwargs):
e811c8ce 4072 """__init__() -> DataObjectComposite"""
d14a1e28
RD
4073 newobj = _misc.new_DataObjectComposite(*args, **kwargs)
4074 self.this = newobj.this
4075 self.thisown = 1
4076 del newobj.thisown
e811c8ce
RD
4077 def Add(*args, **kwargs):
4078 """Add(DataObjectSimple dataObject, int preferred=False)"""
d14a1e28
RD
4079 val = _misc.DataObjectComposite_Add(*args, **kwargs)
4080 args[1].thisown = 0
4081 return val
e811c8ce 4082
d14a1e28
RD
4083
4084class DataObjectCompositePtr(DataObjectComposite):
4085 def __init__(self, this):
4086 self.this = this
4087 if not hasattr(self,"thisown"): self.thisown = 0
4088 self.__class__ = DataObjectComposite
4089_misc.DataObjectComposite_swigregister(DataObjectCompositePtr)
4090
4091class TextDataObject(DataObjectSimple):
e811c8ce
RD
4092 """"""
4093 def __repr__(self):
4094 return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4095 def __init__(self, *args, **kwargs):
e811c8ce 4096 """__init__(wxString text=wxPyEmptyString) -> TextDataObject"""
d14a1e28
RD
4097 newobj = _misc.new_TextDataObject(*args, **kwargs)
4098 self.this = newobj.this
4099 self.thisown = 1
4100 del newobj.thisown
e811c8ce
RD
4101 def GetTextLength(*args, **kwargs):
4102 """GetTextLength() -> size_t"""
4103 return _misc.TextDataObject_GetTextLength(*args, **kwargs)
4104
4105 def GetText(*args, **kwargs):
4106 """GetText() -> wxString"""
4107 return _misc.TextDataObject_GetText(*args, **kwargs)
4108
4109 def SetText(*args, **kwargs):
4110 """SetText(wxString text)"""
4111 return _misc.TextDataObject_SetText(*args, **kwargs)
4112
d14a1e28
RD
4113
4114class TextDataObjectPtr(TextDataObject):
4115 def __init__(self, this):
4116 self.this = this
4117 if not hasattr(self,"thisown"): self.thisown = 0
4118 self.__class__ = TextDataObject
4119_misc.TextDataObject_swigregister(TextDataObjectPtr)
4120
4121class PyTextDataObject(TextDataObject):
e811c8ce
RD
4122 """"""
4123 def __repr__(self):
4124 return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4125 def __init__(self, *args, **kwargs):
e811c8ce 4126 """__init__(wxString text=wxPyEmptyString) -> PyTextDataObject"""
d14a1e28
RD
4127 newobj = _misc.new_PyTextDataObject(*args, **kwargs)
4128 self.this = newobj.this
4129 self.thisown = 1
4130 del newobj.thisown
4131 self._setCallbackInfo(self, PyTextDataObject)
e811c8ce
RD
4132
4133 def _setCallbackInfo(*args, **kwargs):
4134 """_setCallbackInfo(PyObject self, PyObject _class)"""
4135 return _misc.PyTextDataObject__setCallbackInfo(*args, **kwargs)
4136
d14a1e28
RD
4137
4138class PyTextDataObjectPtr(PyTextDataObject):
4139 def __init__(self, this):
4140 self.this = this
4141 if not hasattr(self,"thisown"): self.thisown = 0
4142 self.__class__ = PyTextDataObject
4143_misc.PyTextDataObject_swigregister(PyTextDataObjectPtr)
4144
4145class BitmapDataObject(DataObjectSimple):
e811c8ce
RD
4146 """"""
4147 def __repr__(self):
4148 return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4149 def __init__(self, *args, **kwargs):
e811c8ce 4150 """__init__(wxBitmap bitmap=wxNullBitmap) -> BitmapDataObject"""
d14a1e28
RD
4151 newobj = _misc.new_BitmapDataObject(*args, **kwargs)
4152 self.this = newobj.this
4153 self.thisown = 1
4154 del newobj.thisown
e811c8ce
RD
4155 def GetBitmap(*args, **kwargs):
4156 """GetBitmap() -> wxBitmap"""
4157 return _misc.BitmapDataObject_GetBitmap(*args, **kwargs)
4158
4159 def SetBitmap(*args, **kwargs):
4160 """SetBitmap(wxBitmap bitmap)"""
4161 return _misc.BitmapDataObject_SetBitmap(*args, **kwargs)
4162
d14a1e28
RD
4163
4164class BitmapDataObjectPtr(BitmapDataObject):
4165 def __init__(self, this):
4166 self.this = this
4167 if not hasattr(self,"thisown"): self.thisown = 0
4168 self.__class__ = BitmapDataObject
4169_misc.BitmapDataObject_swigregister(BitmapDataObjectPtr)
4170
4171class PyBitmapDataObject(BitmapDataObject):
e811c8ce
RD
4172 """"""
4173 def __repr__(self):
4174 return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4175 def __init__(self, *args, **kwargs):
e811c8ce 4176 """__init__(wxBitmap bitmap=wxNullBitmap) -> PyBitmapDataObject"""
d14a1e28
RD
4177 newobj = _misc.new_PyBitmapDataObject(*args, **kwargs)
4178 self.this = newobj.this
4179 self.thisown = 1
4180 del newobj.thisown
4181 self._setCallbackInfo(self, PyBitmapDataObject)
e811c8ce
RD
4182
4183 def _setCallbackInfo(*args, **kwargs):
4184 """_setCallbackInfo(PyObject self, PyObject _class)"""
4185 return _misc.PyBitmapDataObject__setCallbackInfo(*args, **kwargs)
4186
d14a1e28
RD
4187
4188class PyBitmapDataObjectPtr(PyBitmapDataObject):
4189 def __init__(self, this):
4190 self.this = this
4191 if not hasattr(self,"thisown"): self.thisown = 0
4192 self.__class__ = PyBitmapDataObject
4193_misc.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr)
4194
4195class FileDataObject(DataObjectSimple):
e811c8ce
RD
4196 """"""
4197 def __repr__(self):
4198 return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4199 def __init__(self, *args, **kwargs):
e811c8ce 4200 """__init__() -> FileDataObject"""
d14a1e28
RD
4201 newobj = _misc.new_FileDataObject(*args, **kwargs)
4202 self.this = newobj.this
4203 self.thisown = 1
4204 del newobj.thisown
e811c8ce
RD
4205 def GetFilenames(*args, **kwargs):
4206 """GetFilenames() -> wxArrayString"""
4207 return _misc.FileDataObject_GetFilenames(*args, **kwargs)
4208
d14a1e28
RD
4209
4210class FileDataObjectPtr(FileDataObject):
4211 def __init__(self, this):
4212 self.this = this
4213 if not hasattr(self,"thisown"): self.thisown = 0
4214 self.__class__ = FileDataObject
4215_misc.FileDataObject_swigregister(FileDataObjectPtr)
4216
4217class CustomDataObject(DataObjectSimple):
e811c8ce
RD
4218 """"""
4219 def __repr__(self):
4220 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4221 def __init__(self, *args, **kwargs):
e811c8ce 4222 """__init__(DataFormat format=FormatInvalid) -> CustomDataObject"""
d14a1e28
RD
4223 newobj = _misc.new_CustomDataObject(*args, **kwargs)
4224 self.this = newobj.this
4225 self.thisown = 1
4226 del newobj.thisown
e811c8ce
RD
4227 def TakeData(*args, **kwargs):
4228 """TakeData(PyObject data)"""
4229 return _misc.CustomDataObject_TakeData(*args, **kwargs)
4230
4231 def SetData(*args, **kwargs):
4232 """SetData(PyObject data) -> bool"""
4233 return _misc.CustomDataObject_SetData(*args, **kwargs)
4234
4235 def GetSize(*args, **kwargs):
4236 """GetSize() -> size_t"""
4237 return _misc.CustomDataObject_GetSize(*args, **kwargs)
4238
4239 def GetData(*args, **kwargs):
4240 """GetData() -> PyObject"""
4241 return _misc.CustomDataObject_GetData(*args, **kwargs)
4242
d14a1e28
RD
4243
4244class CustomDataObjectPtr(CustomDataObject):
4245 def __init__(self, this):
4246 self.this = this
4247 if not hasattr(self,"thisown"): self.thisown = 0
4248 self.__class__ = CustomDataObject
4249_misc.CustomDataObject_swigregister(CustomDataObjectPtr)
4250
4251class URLDataObject(DataObjectComposite):
e811c8ce
RD
4252 """"""
4253 def __repr__(self):
4254 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4255 def __init__(self, *args, **kwargs):
e811c8ce 4256 """__init__() -> URLDataObject"""
d14a1e28
RD
4257 newobj = _misc.new_URLDataObject(*args, **kwargs)
4258 self.this = newobj.this
4259 self.thisown = 1
4260 del newobj.thisown
e811c8ce
RD
4261 def GetURL(*args, **kwargs):
4262 """GetURL() -> wxString"""
4263 return _misc.URLDataObject_GetURL(*args, **kwargs)
4264
4265 def SetURL(*args, **kwargs):
4266 """SetURL(wxString url)"""
4267 return _misc.URLDataObject_SetURL(*args, **kwargs)
4268
d14a1e28
RD
4269
4270class URLDataObjectPtr(URLDataObject):
4271 def __init__(self, this):
4272 self.this = this
4273 if not hasattr(self,"thisown"): self.thisown = 0
4274 self.__class__ = URLDataObject
4275_misc.URLDataObject_swigregister(URLDataObjectPtr)
4276
4277class MetafileDataObject(DataObjectSimple):
e811c8ce
RD
4278 """"""
4279 def __repr__(self):
4280 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4281 def __init__(self, *args, **kwargs):
e811c8ce 4282 """__init__() -> MetafileDataObject"""
d14a1e28
RD
4283 newobj = _misc.new_MetafileDataObject(*args, **kwargs)
4284 self.this = newobj.this
4285 self.thisown = 1
4286 del newobj.thisown
d14a1e28
RD
4287
4288class MetafileDataObjectPtr(MetafileDataObject):
4289 def __init__(self, this):
4290 self.this = this
4291 if not hasattr(self,"thisown"): self.thisown = 0
4292 self.__class__ = MetafileDataObject
4293_misc.MetafileDataObject_swigregister(MetafileDataObjectPtr)
4294
4295#---------------------------------------------------------------------------
4296
4297Drag_CopyOnly = _misc.Drag_CopyOnly
4298Drag_AllowMove = _misc.Drag_AllowMove
4299Drag_DefaultMove = _misc.Drag_DefaultMove
4300DragError = _misc.DragError
4301DragNone = _misc.DragNone
4302DragCopy = _misc.DragCopy
4303DragMove = _misc.DragMove
4304DragLink = _misc.DragLink
4305DragCancel = _misc.DragCancel
4306
e811c8ce
RD
4307def IsDragResultOk(*args, **kwargs):
4308 """IsDragResultOk(wxDragResult res) -> bool"""
4309 return _misc.IsDragResultOk(*args, **kwargs)
d14a1e28 4310class DropSource(object):
e811c8ce
RD
4311 """"""
4312 def __repr__(self):
4313 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4314 def __init__(self, *args, **kwargs):
e811c8ce
RD
4315 """__init__(Window win=None, wxIcon copy=wxNullIcon, wxIcon move=wxNullIcon,
4316 wxIcon none=wxNullIcon) -> DropSource"""
d14a1e28
RD
4317 newobj = _misc.new_DropSource(*args, **kwargs)
4318 self.this = newobj.this
4319 self.thisown = 1
4320 del newobj.thisown
e811c8ce
RD
4321 def _setCallbackInfo(*args, **kwargs):
4322 """_setCallbackInfo(PyObject self, PyObject _class, int incref)"""
4323 return _misc.DropSource__setCallbackInfo(*args, **kwargs)
4324
d14a1e28 4325 def __del__(self, destroy=_misc.delete_DropSource):
e811c8ce 4326 """__del__()"""
d14a1e28
RD
4327 try:
4328 if self.thisown: destroy(self)
4329 except: pass
e811c8ce
RD
4330
4331 def SetData(*args, **kwargs):
4332 """SetData(DataObject data)"""
4333 return _misc.DropSource_SetData(*args, **kwargs)
4334
4335 def GetDataObject(*args, **kwargs):
4336 """GetDataObject() -> DataObject"""
4337 return _misc.DropSource_GetDataObject(*args, **kwargs)
4338
4339 def SetCursor(*args, **kwargs):
4340 """SetCursor(wxDragResult res, wxCursor cursor)"""
4341 return _misc.DropSource_SetCursor(*args, **kwargs)
4342
4343 def DoDragDrop(*args, **kwargs):
4344 """DoDragDrop(int flags=Drag_CopyOnly) -> wxDragResult"""
4345 return _misc.DropSource_DoDragDrop(*args, **kwargs)
4346
4347 def base_GiveFeedback(*args, **kwargs):
4348 """base_GiveFeedback(wxDragResult effect) -> bool"""
4349 return _misc.DropSource_base_GiveFeedback(*args, **kwargs)
4350
d14a1e28
RD
4351
4352class DropSourcePtr(DropSource):
4353 def __init__(self, this):
4354 self.this = this
4355 if not hasattr(self,"thisown"): self.thisown = 0
4356 self.__class__ = DropSource
4357_misc.DropSource_swigregister(DropSourcePtr)
4358
4359class DropTarget(object):
e811c8ce
RD
4360 """"""
4361 def __repr__(self):
4362 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4363 def __init__(self, *args, **kwargs):
e811c8ce 4364 """__init__(DataObject dataObject=None) -> DropTarget"""
d14a1e28
RD
4365 newobj = _misc.new_DropTarget(*args, **kwargs)
4366 self.this = newobj.this
4367 self.thisown = 1
4368 del newobj.thisown
fd3f2efe
RD
4369 if args: args[0].thisown = 0;
4370 self._setCallbackInfo(self, DropTarget)
e811c8ce
RD
4371
4372 def _setCallbackInfo(*args, **kwargs):
4373 """_setCallbackInfo(PyObject self, PyObject _class)"""
4374 return _misc.DropTarget__setCallbackInfo(*args, **kwargs)
4375
d14a1e28 4376 def __del__(self, destroy=_misc.delete_DropTarget):
e811c8ce 4377 """__del__()"""
d14a1e28
RD
4378 try:
4379 if self.thisown: destroy(self)
4380 except: pass
e811c8ce
RD
4381
4382 def GetDataObject(*args, **kwargs):
4383 """GetDataObject() -> DataObject"""
4384 return _misc.DropTarget_GetDataObject(*args, **kwargs)
4385
4386 def SetDataObject(*args, **kwargs):
4387 """SetDataObject(DataObject dataObject)"""
d14a1e28
RD
4388 val = _misc.DropTarget_SetDataObject(*args, **kwargs)
4389 args[1].thisown = 0
4390 return val
e811c8ce
RD
4391
4392 def base_OnEnter(*args, **kwargs):
4393 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4394 return _misc.DropTarget_base_OnEnter(*args, **kwargs)
4395
4396 def base_OnDragOver(*args, **kwargs):
4397 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4398 return _misc.DropTarget_base_OnDragOver(*args, **kwargs)
4399
4400 def base_OnLeave(*args, **kwargs):
4401 """base_OnLeave()"""
4402 return _misc.DropTarget_base_OnLeave(*args, **kwargs)
4403
4404 def base_OnDrop(*args, **kwargs):
4405 """base_OnDrop(int x, int y) -> bool"""
4406 return _misc.DropTarget_base_OnDrop(*args, **kwargs)
4407
4408 def GetData(*args, **kwargs):
4409 """GetData() -> bool"""
4410 return _misc.DropTarget_GetData(*args, **kwargs)
4411
d14a1e28
RD
4412
4413class DropTargetPtr(DropTarget):
4414 def __init__(self, this):
4415 self.this = this
4416 if not hasattr(self,"thisown"): self.thisown = 0
4417 self.__class__ = DropTarget
4418_misc.DropTarget_swigregister(DropTargetPtr)
4419
4420PyDropTarget = DropTarget
4421class TextDropTarget(DropTarget):
e811c8ce
RD
4422 """"""
4423 def __repr__(self):
4424 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4425 def __init__(self, *args, **kwargs):
e811c8ce 4426 """__init__() -> TextDropTarget"""
d14a1e28
RD
4427 newobj = _misc.new_TextDropTarget(*args, **kwargs)
4428 self.this = newobj.this
4429 self.thisown = 1
4430 del newobj.thisown
4431 self._setCallbackInfo(self, TextDropTarget)
e811c8ce
RD
4432
4433 def _setCallbackInfo(*args, **kwargs):
4434 """_setCallbackInfo(PyObject self, PyObject _class)"""
4435 return _misc.TextDropTarget__setCallbackInfo(*args, **kwargs)
4436
4437 def base_OnEnter(*args, **kwargs):
4438 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4439 return _misc.TextDropTarget_base_OnEnter(*args, **kwargs)
4440
4441 def base_OnDragOver(*args, **kwargs):
4442 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4443 return _misc.TextDropTarget_base_OnDragOver(*args, **kwargs)
4444
4445 def base_OnLeave(*args, **kwargs):
4446 """base_OnLeave()"""
4447 return _misc.TextDropTarget_base_OnLeave(*args, **kwargs)
4448
4449 def base_OnDrop(*args, **kwargs):
4450 """base_OnDrop(int x, int y) -> bool"""
4451 return _misc.TextDropTarget_base_OnDrop(*args, **kwargs)
4452
4453 def base_OnData(*args, **kwargs):
4454 """base_OnData(int x, int y, wxDragResult def) -> wxDragResult"""
4455 return _misc.TextDropTarget_base_OnData(*args, **kwargs)
4456
d14a1e28
RD
4457
4458class TextDropTargetPtr(TextDropTarget):
4459 def __init__(self, this):
4460 self.this = this
4461 if not hasattr(self,"thisown"): self.thisown = 0
4462 self.__class__ = TextDropTarget
4463_misc.TextDropTarget_swigregister(TextDropTargetPtr)
4464
4465class FileDropTarget(DropTarget):
e811c8ce
RD
4466 """"""
4467 def __repr__(self):
4468 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4469 def __init__(self, *args, **kwargs):
e811c8ce 4470 """__init__() -> FileDropTarget"""
d14a1e28
RD
4471 newobj = _misc.new_FileDropTarget(*args, **kwargs)
4472 self.this = newobj.this
4473 self.thisown = 1
4474 del newobj.thisown
4475 self._setCallbackInfo(self, FileDropTarget)
e811c8ce
RD
4476
4477 def _setCallbackInfo(*args, **kwargs):
4478 """_setCallbackInfo(PyObject self, PyObject _class)"""
4479 return _misc.FileDropTarget__setCallbackInfo(*args, **kwargs)
4480
4481 def base_OnEnter(*args, **kwargs):
4482 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4483 return _misc.FileDropTarget_base_OnEnter(*args, **kwargs)
4484
4485 def base_OnDragOver(*args, **kwargs):
4486 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4487 return _misc.FileDropTarget_base_OnDragOver(*args, **kwargs)
4488
4489 def base_OnLeave(*args, **kwargs):
4490 """base_OnLeave()"""
4491 return _misc.FileDropTarget_base_OnLeave(*args, **kwargs)
4492
4493 def base_OnDrop(*args, **kwargs):
4494 """base_OnDrop(int x, int y) -> bool"""
4495 return _misc.FileDropTarget_base_OnDrop(*args, **kwargs)
4496
4497 def base_OnData(*args, **kwargs):
4498 """base_OnData(int x, int y, wxDragResult def) -> wxDragResult"""
4499 return _misc.FileDropTarget_base_OnData(*args, **kwargs)
4500
d14a1e28
RD
4501
4502class FileDropTargetPtr(FileDropTarget):
4503 def __init__(self, this):
4504 self.this = this
4505 if not hasattr(self,"thisown"): self.thisown = 0
4506 self.__class__ = FileDropTarget
4507_misc.FileDropTarget_swigregister(FileDropTargetPtr)
4508
4509#---------------------------------------------------------------------------
4510
4511class Clipboard(core.Object):
e811c8ce
RD
4512 """"""
4513 def __repr__(self):
4514 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4515 def __init__(self, *args, **kwargs):
e811c8ce 4516 """__init__() -> Clipboard"""
d14a1e28
RD
4517 newobj = _misc.new_Clipboard(*args, **kwargs)
4518 self.this = newobj.this
4519 self.thisown = 1
4520 del newobj.thisown
4521 def __del__(self, destroy=_misc.delete_Clipboard):
e811c8ce 4522 """__del__()"""
d14a1e28
RD
4523 try:
4524 if self.thisown: destroy(self)
4525 except: pass
e811c8ce
RD
4526
4527 def Open(*args, **kwargs):
4528 """Open() -> bool"""
4529 return _misc.Clipboard_Open(*args, **kwargs)
4530
4531 def Close(*args, **kwargs):
4532 """Close()"""
4533 return _misc.Clipboard_Close(*args, **kwargs)
4534
4535 def IsOpened(*args, **kwargs):
4536 """IsOpened() -> bool"""
4537 return _misc.Clipboard_IsOpened(*args, **kwargs)
4538
4539 def AddData(*args, **kwargs):
4540 """AddData(DataObject data) -> bool"""
4541 return _misc.Clipboard_AddData(*args, **kwargs)
4542
4543 def SetData(*args, **kwargs):
4544 """SetData(DataObject data) -> bool"""
4545 return _misc.Clipboard_SetData(*args, **kwargs)
4546
4547 def IsSupported(*args, **kwargs):
4548 """IsSupported(DataFormat format) -> bool"""
4549 return _misc.Clipboard_IsSupported(*args, **kwargs)
4550
4551 def GetData(*args, **kwargs):
4552 """GetData(DataObject data) -> bool"""
4553 return _misc.Clipboard_GetData(*args, **kwargs)
4554
4555 def Clear(*args, **kwargs):
4556 """Clear()"""
4557 return _misc.Clipboard_Clear(*args, **kwargs)
4558
4559 def Flush(*args, **kwargs):
4560 """Flush() -> bool"""
4561 return _misc.Clipboard_Flush(*args, **kwargs)
4562
4563 def UsePrimarySelection(*args, **kwargs):
4564 """UsePrimarySelection(bool primary=False)"""
4565 return _misc.Clipboard_UsePrimarySelection(*args, **kwargs)
4566
d14a1e28
RD
4567
4568class ClipboardPtr(Clipboard):
4569 def __init__(self, this):
4570 self.this = this
4571 if not hasattr(self,"thisown"): self.thisown = 0
4572 self.__class__ = Clipboard
4573_misc.Clipboard_swigregister(ClipboardPtr)
4574
4575class ClipboardLocker(object):
e811c8ce
RD
4576 """"""
4577 def __repr__(self):
4578 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4579 def __init__(self, *args, **kwargs):
e811c8ce 4580 """__init__(Clipboard clipboard=None) -> ClipboardLocker"""
d14a1e28
RD
4581 newobj = _misc.new_ClipboardLocker(*args, **kwargs)
4582 self.this = newobj.this
4583 self.thisown = 1
4584 del newobj.thisown
4585 def __del__(self, destroy=_misc.delete_ClipboardLocker):
e811c8ce 4586 """__del__()"""
d14a1e28
RD
4587 try:
4588 if self.thisown: destroy(self)
4589 except: pass
e811c8ce
RD
4590
4591 def __nonzero__(*args, **kwargs):
4592 """__nonzero__() -> bool"""
4593 return _misc.ClipboardLocker___nonzero__(*args, **kwargs)
4594
d14a1e28
RD
4595
4596class ClipboardLockerPtr(ClipboardLocker):
4597 def __init__(self, this):
4598 self.this = this
4599 if not hasattr(self,"thisown"): self.thisown = 0
4600 self.__class__ = ClipboardLocker
4601_misc.ClipboardLocker_swigregister(ClipboardLockerPtr)
4602TheClipboard = cvar.TheClipboard
70551f47
RD
4603
4604