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