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