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