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