X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e4835243a9d77a73e2fe928110edfb6786f7980..ff006095c2cb350af9d765e9d832fc2b7944e32f:/wxPython/contrib/stc/msw/stc.py diff --git a/wxPython/contrib/stc/msw/stc.py b/wxPython/contrib/stc/msw/stc.py index 4be679d4d3..481ac536fa 100644 --- a/wxPython/contrib/stc/msw/stc.py +++ b/wxPython/contrib/stc/msw/stc.py @@ -9,6 +9,47 @@ languages are built-in. import _stc +def _swig_setattr_nondynamic(self,class_type,name,value,static=1): + if (name == "this"): + if isinstance(value, class_type): + self.__dict__[name] = value.this + if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown + del value.thisown + return + method = class_type.__swig_setmethods__.get(name,None) + if method: return method(self,value) + if (not static) or hasattr(self,name) or (name == "thisown"): + self.__dict__[name] = value + else: + raise AttributeError("You cannot add attributes to %s" % self) + +def _swig_setattr(self,class_type,name,value): + return _swig_setattr_nondynamic(self,class_type,name,value,0) + +def _swig_getattr(self,class_type,name): + method = class_type.__swig_getmethods__.get(name,None) + if method: return method(self) + raise AttributeError,name + +import types +try: + _object = types.ObjectType + _newclass = 1 +except AttributeError: + class _object : pass + _newclass = 0 +del types + + +def _swig_setattr_nondynamic_method(set): + def set_attr(self,name,value): + if hasattr(self,name) or (name in ("this", "thisown")): + set(self,name,value) + else: + raise AttributeError("You cannot add attributes to %s" % self) + return set_attr + + import _core import _misc wx = _core @@ -254,6 +295,8 @@ STC_LEX_SPECMAN = _stc.STC_LEX_SPECMAN STC_LEX_AU3 = _stc.STC_LEX_AU3 STC_LEX_APDL = _stc.STC_LEX_APDL STC_LEX_BASH = _stc.STC_LEX_BASH +STC_LEX_ASN1 = _stc.STC_LEX_ASN1 +STC_LEX_VHDL = _stc.STC_LEX_VHDL STC_LEX_AUTOMATIC = _stc.STC_LEX_AUTOMATIC STC_P_DEFAULT = _stc.STC_P_DEFAULT STC_P_COMMENTLINE = _stc.STC_P_COMMENTLINE @@ -495,6 +538,7 @@ STC_ERR_IFC = _stc.STC_ERR_IFC STC_ERR_IFORT = _stc.STC_ERR_IFORT STC_ERR_ABSF = _stc.STC_ERR_ABSF STC_ERR_TIDY = _stc.STC_ERR_TIDY +STC_ERR_JAVA_STACK = _stc.STC_ERR_JAVA_STACK STC_BAT_DEFAULT = _stc.STC_BAT_DEFAULT STC_BAT_COMMENT = _stc.STC_BAT_COMMENT STC_BAT_WORD = _stc.STC_BAT_WORD @@ -675,6 +719,7 @@ STC_CSS_IMPORTANT = _stc.STC_CSS_IMPORTANT STC_CSS_DIRECTIVE = _stc.STC_CSS_DIRECTIVE STC_CSS_DOUBLESTRING = _stc.STC_CSS_DOUBLESTRING STC_CSS_SINGLESTRING = _stc.STC_CSS_SINGLESTRING +STC_CSS_IDENTIFIER2 = _stc.STC_CSS_IDENTIFIER2 STC_POV_DEFAULT = _stc.STC_POV_DEFAULT STC_POV_COMMENT = _stc.STC_POV_COMMENT STC_POV_COMMENTLINE = _stc.STC_POV_COMMENTLINE @@ -903,14 +948,19 @@ STC_AU3_OPERATOR = _stc.STC_AU3_OPERATOR STC_AU3_VARIABLE = _stc.STC_AU3_VARIABLE STC_AU3_SENT = _stc.STC_AU3_SENT STC_AU3_PREPROCESSOR = _stc.STC_AU3_PREPROCESSOR +STC_AU3_SPECIAL = _stc.STC_AU3_SPECIAL STC_APDL_DEFAULT = _stc.STC_APDL_DEFAULT STC_APDL_COMMENT = _stc.STC_APDL_COMMENT STC_APDL_COMMENTBLOCK = _stc.STC_APDL_COMMENTBLOCK STC_APDL_NUMBER = _stc.STC_APDL_NUMBER STC_APDL_STRING = _stc.STC_APDL_STRING +STC_APDL_OPERATOR = _stc.STC_APDL_OPERATOR STC_APDL_WORD = _stc.STC_APDL_WORD -STC_APDL_COMMAND = _stc.STC_APDL_COMMAND STC_APDL_PROCESSOR = _stc.STC_APDL_PROCESSOR +STC_APDL_COMMAND = _stc.STC_APDL_COMMAND +STC_APDL_SLASHCOMMAND = _stc.STC_APDL_SLASHCOMMAND +STC_APDL_STARCOMMAND = _stc.STC_APDL_STARCOMMAND +STC_APDL_ARGUMENT = _stc.STC_APDL_ARGUMENT STC_APDL_FUNCTION = _stc.STC_APDL_FUNCTION STC_SH_DEFAULT = _stc.STC_SH_DEFAULT STC_SH_ERROR = _stc.STC_SH_ERROR @@ -926,6 +976,32 @@ STC_SH_PARAM = _stc.STC_SH_PARAM STC_SH_BACKTICKS = _stc.STC_SH_BACKTICKS STC_SH_HERE_DELIM = _stc.STC_SH_HERE_DELIM STC_SH_HERE_Q = _stc.STC_SH_HERE_Q +STC_ASN1_DEFAULT = _stc.STC_ASN1_DEFAULT +STC_ASN1_COMMENT = _stc.STC_ASN1_COMMENT +STC_ASN1_IDENTIFIER = _stc.STC_ASN1_IDENTIFIER +STC_ASN1_STRING = _stc.STC_ASN1_STRING +STC_ASN1_OID = _stc.STC_ASN1_OID +STC_ASN1_SCALAR = _stc.STC_ASN1_SCALAR +STC_ASN1_KEYWORD = _stc.STC_ASN1_KEYWORD +STC_ASN1_ATTRIBUTE = _stc.STC_ASN1_ATTRIBUTE +STC_ASN1_DESCRIPTOR = _stc.STC_ASN1_DESCRIPTOR +STC_ASN1_TYPE = _stc.STC_ASN1_TYPE +STC_ASN1_OPERATOR = _stc.STC_ASN1_OPERATOR +STC_VHDL_DEFAULT = _stc.STC_VHDL_DEFAULT +STC_VHDL_COMMENT = _stc.STC_VHDL_COMMENT +STC_VHDL_COMMENTLINEBANG = _stc.STC_VHDL_COMMENTLINEBANG +STC_VHDL_NUMBER = _stc.STC_VHDL_NUMBER +STC_VHDL_STRING = _stc.STC_VHDL_STRING +STC_VHDL_OPERATOR = _stc.STC_VHDL_OPERATOR +STC_VHDL_IDENTIFIER = _stc.STC_VHDL_IDENTIFIER +STC_VHDL_STRINGEOL = _stc.STC_VHDL_STRINGEOL +STC_VHDL_KEYWORD = _stc.STC_VHDL_KEYWORD +STC_VHDL_STDOPERATOR = _stc.STC_VHDL_STDOPERATOR +STC_VHDL_ATTRIBUTE = _stc.STC_VHDL_ATTRIBUTE +STC_VHDL_STDFUNCTION = _stc.STC_VHDL_STDFUNCTION +STC_VHDL_STDPACKAGE = _stc.STC_VHDL_STDPACKAGE +STC_VHDL_STDTYPE = _stc.STC_VHDL_STDTYPE +STC_VHDL_USERWORD = _stc.STC_VHDL_USERWORD STC_CMD_REDO = _stc.STC_CMD_REDO STC_CMD_SELECTALL = _stc.STC_CMD_SELECTALL STC_CMD_UNDO = _stc.STC_CMD_UNDO @@ -1018,6 +1094,7 @@ STC_CMD_WORDLEFTENDEXTEND = _stc.STC_CMD_WORDLEFTENDEXTEND STC_CMD_WORDRIGHTEND = _stc.STC_CMD_WORDRIGHTEND STC_CMD_WORDRIGHTENDEXTEND = _stc.STC_CMD_WORDRIGHTENDEXTEND class StyledTextCtrl(_core.Control): + """Proxy of C++ StyledTextCtrl class""" def __repr__(self): return "<%s.%s; proxy of C++ wxStyledTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2648,6 +2725,10 @@ class StyledTextCtrl(_core.Control): """Allocate(self, int bytes)""" return _stc.StyledTextCtrl_Allocate(*args, **kwargs) + def FindColumn(*args, **kwargs): + """FindColumn(self, int line, int column) -> int""" + return _stc.StyledTextCtrl_FindColumn(*args, **kwargs) + def StartRecord(*args, **kwargs): """StartRecord(self)""" return _stc.StyledTextCtrl_StartRecord(*args, **kwargs) @@ -2784,6 +2865,7 @@ def PreStyledTextCtrl(*args, **kwargs): return val class StyledTextEvent(_core.CommandEvent): + """Proxy of C++ StyledTextEvent class""" def __repr__(self): return "<%s.%s; proxy of C++ wxStyledTextEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs):