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