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