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