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