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
STC_TIME_FOREVER = _stc.STC_TIME_FOREVER
STC_WRAP_NONE = _stc.STC_WRAP_NONE
STC_WRAP_WORD = _stc.STC_WRAP_WORD
+STC_WRAPVISUALFLAG_NONE = _stc.STC_WRAPVISUALFLAG_NONE
+STC_WRAPVISUALFLAG_END = _stc.STC_WRAPVISUALFLAG_END
+STC_WRAPVISUALFLAG_START = _stc.STC_WRAPVISUALFLAG_START
+STC_WRAPVISUALFLAGLOC_DEFAULT = _stc.STC_WRAPVISUALFLAGLOC_DEFAULT
+STC_WRAPVISUALFLAGLOC_END_BY_TEXT = _stc.STC_WRAPVISUALFLAGLOC_END_BY_TEXT
+STC_WRAPVISUALFLAGLOC_START_BY_TEXT = _stc.STC_WRAPVISUALFLAGLOC_START_BY_TEXT
STC_CACHE_NONE = _stc.STC_CACHE_NONE
STC_CACHE_CARET = _stc.STC_CACHE_CARET
STC_CACHE_PAGE = _stc.STC_CACHE_PAGE
STC_LEX_FORTH = _stc.STC_LEX_FORTH
STC_LEX_ERLANG = _stc.STC_LEX_ERLANG
STC_LEX_OCTAVE = _stc.STC_LEX_OCTAVE
+STC_LEX_MSSQL = _stc.STC_LEX_MSSQL
+STC_LEX_VERILOG = _stc.STC_LEX_VERILOG
+STC_LEX_KIX = _stc.STC_LEX_KIX
+STC_LEX_GUI4CLI = _stc.STC_LEX_GUI4CLI
+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_AUTOMATIC = _stc.STC_LEX_AUTOMATIC
STC_P_DEFAULT = _stc.STC_P_DEFAULT
STC_P_COMMENTLINE = _stc.STC_P_COMMENTLINE
STC_HP_DEFNAME = _stc.STC_HP_DEFNAME
STC_HP_OPERATOR = _stc.STC_HP_OPERATOR
STC_HP_IDENTIFIER = _stc.STC_HP_IDENTIFIER
+STC_HPHP_COMPLEX_VARIABLE = _stc.STC_HPHP_COMPLEX_VARIABLE
STC_HPA_START = _stc.STC_HPA_START
STC_HPA_DEFAULT = _stc.STC_HPA_DEFAULT
STC_HPA_COMMENTLINE = _stc.STC_HPA_COMMENTLINE
STC_B_KEYWORD2 = _stc.STC_B_KEYWORD2
STC_B_KEYWORD3 = _stc.STC_B_KEYWORD3
STC_B_KEYWORD4 = _stc.STC_B_KEYWORD4
+STC_B_CONSTANT = _stc.STC_B_CONSTANT
+STC_B_ASM = _stc.STC_B_ASM
STC_PROPS_DEFAULT = _stc.STC_PROPS_DEFAULT
STC_PROPS_COMMENT = _stc.STC_PROPS_COMMENT
STC_PROPS_SECTION = _stc.STC_PROPS_SECTION
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_BAT_DEFAULT = _stc.STC_BAT_DEFAULT
STC_BAT_COMMENT = _stc.STC_BAT_COMMENT
STC_BAT_WORD = _stc.STC_BAT_WORD
STC_NSIS_IFDEFINEDEF = _stc.STC_NSIS_IFDEFINEDEF
STC_NSIS_MACRODEF = _stc.STC_NSIS_MACRODEF
STC_NSIS_STRINGVAR = _stc.STC_NSIS_STRINGVAR
+STC_NSIS_NUMBER = _stc.STC_NSIS_NUMBER
STC_MMIXAL_LEADWS = _stc.STC_MMIXAL_LEADWS
STC_MMIXAL_COMMENT = _stc.STC_MMIXAL_COMMENT
STC_MMIXAL_LABEL = _stc.STC_MMIXAL_LABEL
STC_ERLANG_SEPARATOR = _stc.STC_ERLANG_SEPARATOR
STC_ERLANG_NODE_NAME = _stc.STC_ERLANG_NODE_NAME
STC_ERLANG_UNKNOWN = _stc.STC_ERLANG_UNKNOWN
+STC_MSSQL_DEFAULT = _stc.STC_MSSQL_DEFAULT
+STC_MSSQL_COMMENT = _stc.STC_MSSQL_COMMENT
+STC_MSSQL_LINE_COMMENT = _stc.STC_MSSQL_LINE_COMMENT
+STC_MSSQL_NUMBER = _stc.STC_MSSQL_NUMBER
+STC_MSSQL_STRING = _stc.STC_MSSQL_STRING
+STC_MSSQL_OPERATOR = _stc.STC_MSSQL_OPERATOR
+STC_MSSQL_IDENTIFIER = _stc.STC_MSSQL_IDENTIFIER
+STC_MSSQL_VARIABLE = _stc.STC_MSSQL_VARIABLE
+STC_MSSQL_COLUMN_NAME = _stc.STC_MSSQL_COLUMN_NAME
+STC_MSSQL_STATEMENT = _stc.STC_MSSQL_STATEMENT
+STC_MSSQL_DATATYPE = _stc.STC_MSSQL_DATATYPE
+STC_MSSQL_SYSTABLE = _stc.STC_MSSQL_SYSTABLE
+STC_MSSQL_GLOBAL_VARIABLE = _stc.STC_MSSQL_GLOBAL_VARIABLE
+STC_MSSQL_FUNCTION = _stc.STC_MSSQL_FUNCTION
+STC_MSSQL_STORED_PROCEDURE = _stc.STC_MSSQL_STORED_PROCEDURE
+STC_MSSQL_DEFAULT_PREF_DATATYPE = _stc.STC_MSSQL_DEFAULT_PREF_DATATYPE
+STC_MSSQL_COLUMN_NAME_2 = _stc.STC_MSSQL_COLUMN_NAME_2
+STC_V_DEFAULT = _stc.STC_V_DEFAULT
+STC_V_COMMENT = _stc.STC_V_COMMENT
+STC_V_COMMENTLINE = _stc.STC_V_COMMENTLINE
+STC_V_COMMENTLINEBANG = _stc.STC_V_COMMENTLINEBANG
+STC_V_NUMBER = _stc.STC_V_NUMBER
+STC_V_WORD = _stc.STC_V_WORD
+STC_V_STRING = _stc.STC_V_STRING
+STC_V_WORD2 = _stc.STC_V_WORD2
+STC_V_WORD3 = _stc.STC_V_WORD3
+STC_V_PREPROCESSOR = _stc.STC_V_PREPROCESSOR
+STC_V_OPERATOR = _stc.STC_V_OPERATOR
+STC_V_IDENTIFIER = _stc.STC_V_IDENTIFIER
+STC_V_STRINGEOL = _stc.STC_V_STRINGEOL
+STC_V_USER = _stc.STC_V_USER
+STC_KIX_DEFAULT = _stc.STC_KIX_DEFAULT
+STC_KIX_COMMENT = _stc.STC_KIX_COMMENT
+STC_KIX_STRING1 = _stc.STC_KIX_STRING1
+STC_KIX_STRING2 = _stc.STC_KIX_STRING2
+STC_KIX_NUMBER = _stc.STC_KIX_NUMBER
+STC_KIX_VAR = _stc.STC_KIX_VAR
+STC_KIX_MACRO = _stc.STC_KIX_MACRO
+STC_KIX_KEYWORD = _stc.STC_KIX_KEYWORD
+STC_KIX_FUNCTIONS = _stc.STC_KIX_FUNCTIONS
+STC_KIX_OPERATOR = _stc.STC_KIX_OPERATOR
+STC_KIX_IDENTIFIER = _stc.STC_KIX_IDENTIFIER
+STC_GC_DEFAULT = _stc.STC_GC_DEFAULT
+STC_GC_COMMENTLINE = _stc.STC_GC_COMMENTLINE
+STC_GC_COMMENTBLOCK = _stc.STC_GC_COMMENTBLOCK
+STC_GC_GLOBAL = _stc.STC_GC_GLOBAL
+STC_GC_EVENT = _stc.STC_GC_EVENT
+STC_GC_ATTRIBUTE = _stc.STC_GC_ATTRIBUTE
+STC_GC_CONTROL = _stc.STC_GC_CONTROL
+STC_GC_COMMAND = _stc.STC_GC_COMMAND
+STC_GC_STRING = _stc.STC_GC_STRING
+STC_GC_OPERATOR = _stc.STC_GC_OPERATOR
+STC_SN_DEFAULT = _stc.STC_SN_DEFAULT
+STC_SN_CODE = _stc.STC_SN_CODE
+STC_SN_COMMENTLINE = _stc.STC_SN_COMMENTLINE
+STC_SN_COMMENTLINEBANG = _stc.STC_SN_COMMENTLINEBANG
+STC_SN_NUMBER = _stc.STC_SN_NUMBER
+STC_SN_WORD = _stc.STC_SN_WORD
+STC_SN_STRING = _stc.STC_SN_STRING
+STC_SN_WORD2 = _stc.STC_SN_WORD2
+STC_SN_WORD3 = _stc.STC_SN_WORD3
+STC_SN_PREPROCESSOR = _stc.STC_SN_PREPROCESSOR
+STC_SN_OPERATOR = _stc.STC_SN_OPERATOR
+STC_SN_IDENTIFIER = _stc.STC_SN_IDENTIFIER
+STC_SN_STRINGEOL = _stc.STC_SN_STRINGEOL
+STC_SN_REGEXTAG = _stc.STC_SN_REGEXTAG
+STC_SN_SIGNAL = _stc.STC_SN_SIGNAL
+STC_SN_USER = _stc.STC_SN_USER
+STC_AU3_DEFAULT = _stc.STC_AU3_DEFAULT
+STC_AU3_COMMENT = _stc.STC_AU3_COMMENT
+STC_AU3_COMMENTBLOCK = _stc.STC_AU3_COMMENTBLOCK
+STC_AU3_NUMBER = _stc.STC_AU3_NUMBER
+STC_AU3_FUNCTION = _stc.STC_AU3_FUNCTION
+STC_AU3_KEYWORD = _stc.STC_AU3_KEYWORD
+STC_AU3_MACRO = _stc.STC_AU3_MACRO
+STC_AU3_STRING = _stc.STC_AU3_STRING
+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_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_WORD = _stc.STC_APDL_WORD
+STC_APDL_COMMAND = _stc.STC_APDL_COMMAND
+STC_APDL_PROCESSOR = _stc.STC_APDL_PROCESSOR
+STC_APDL_FUNCTION = _stc.STC_APDL_FUNCTION
+STC_SH_DEFAULT = _stc.STC_SH_DEFAULT
+STC_SH_ERROR = _stc.STC_SH_ERROR
+STC_SH_COMMENTLINE = _stc.STC_SH_COMMENTLINE
+STC_SH_NUMBER = _stc.STC_SH_NUMBER
+STC_SH_WORD = _stc.STC_SH_WORD
+STC_SH_STRING = _stc.STC_SH_STRING
+STC_SH_CHARACTER = _stc.STC_SH_CHARACTER
+STC_SH_OPERATOR = _stc.STC_SH_OPERATOR
+STC_SH_IDENTIFIER = _stc.STC_SH_IDENTIFIER
+STC_SH_SCALAR = _stc.STC_SH_SCALAR
+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_CMD_REDO = _stc.STC_CMD_REDO
STC_CMD_SELECTALL = _stc.STC_CMD_SELECTALL
STC_CMD_UNDO = _stc.STC_CMD_UNDO
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):
"""
- __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- long style=0, String name=STCNameStr) -> StyledTextCtrl
+ __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
+ Size size=DefaultSize, long style=0, String name=STCNameStr) -> StyledTextCtrl
"""
newobj = _stc.new_StyledTextCtrl(*args, **kwargs)
self.this = newobj.this
def Create(*args, **kwargs):
"""
- Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- long style=0, String name=wxSTCNameStr)
+ Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
+ Size size=DefaultSize, long style=0, String name=wxSTCNameStr)
"""
return _stc.StyledTextCtrl_Create(*args, **kwargs)
"""GetWrapMode(self) -> int"""
return _stc.StyledTextCtrl_GetWrapMode(*args, **kwargs)
+ def SetWrapVisualFlags(*args, **kwargs):
+ """SetWrapVisualFlags(self, int wrapVisualFlags)"""
+ return _stc.StyledTextCtrl_SetWrapVisualFlags(*args, **kwargs)
+
+ def GetWrapVisualFlags(*args, **kwargs):
+ """GetWrapVisualFlags(self) -> int"""
+ return _stc.StyledTextCtrl_GetWrapVisualFlags(*args, **kwargs)
+
+ def SetWrapVisualFlagsLocation(*args, **kwargs):
+ """SetWrapVisualFlagsLocation(self, int wrapVisualFlagsLocation)"""
+ return _stc.StyledTextCtrl_SetWrapVisualFlagsLocation(*args, **kwargs)
+
+ def GetWrapVisualFlagsLocation(*args, **kwargs):
+ """GetWrapVisualFlagsLocation(self) -> int"""
+ return _stc.StyledTextCtrl_GetWrapVisualFlagsLocation(*args, **kwargs)
+
+ def SetWrapStartIndent(*args, **kwargs):
+ """SetWrapStartIndent(self, int indent)"""
+ return _stc.StyledTextCtrl_SetWrapStartIndent(*args, **kwargs)
+
+ def GetWrapStartIndent(*args, **kwargs):
+ """GetWrapStartIndent(self) -> int"""
+ return _stc.StyledTextCtrl_GetWrapStartIndent(*args, **kwargs)
+
def SetLayoutCache(*args, **kwargs):
"""SetLayoutCache(self, int mode)"""
return _stc.StyledTextCtrl_SetLayoutCache(*args, **kwargs)
"""AutoCompGetCurrent(self) -> int"""
return _stc.StyledTextCtrl_AutoCompGetCurrent(*args, **kwargs)
+ def Allocate(*args, **kwargs):
+ """Allocate(self, int bytes)"""
+ return _stc.StyledTextCtrl_Allocate(*args, **kwargs)
+
def StartRecord(*args, **kwargs):
"""StartRecord(self)"""
return _stc.StyledTextCtrl_StartRecord(*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):