# This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
+"""
+The `StyledTextCtrl` provides a text editor that can used as a syntax
+highlighting source code editor, or similar. Lexers for several programming
+languages are built-in.
+"""
+
import _stc
-import core
-import misc
-wx = core
-__docfilter__ = wx.__docfilter__
+import _core
+import _misc
+wx = _core
+__docfilter__ = wx.__DocFilter(globals())
STC_USE_DND = _stc.STC_USE_DND
STC_USE_POPUP = _stc.STC_USE_POPUP
STC_INVALID_POSITION = _stc.STC_INVALID_POSITION
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):
+class StyledTextCtrl(_core.Control):
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)
val.thisown = 1
return val
-class StyledTextEvent(core.CommandEvent):
+class StyledTextEvent(_core.CommandEvent):
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):
wxEVT_STC_MACRORECORD = _stc.wxEVT_STC_MACRORECORD
wxEVT_STC_MARGINCLICK = _stc.wxEVT_STC_MARGINCLICK
wxEVT_STC_NEEDSHOWN = _stc.wxEVT_STC_NEEDSHOWN
-wxEVT_STC_POSCHANGED = _stc.wxEVT_STC_POSCHANGED
wxEVT_STC_PAINTED = _stc.wxEVT_STC_PAINTED
wxEVT_STC_USERLISTSELECTION = _stc.wxEVT_STC_USERLISTSELECTION
wxEVT_STC_URIDROPPED = _stc.wxEVT_STC_URIDROPPED
EVT_STC_MACRORECORD = wx.PyEventBinder( wxEVT_STC_MACRORECORD, 1 )
EVT_STC_MARGINCLICK = wx.PyEventBinder( wxEVT_STC_MARGINCLICK, 1 )
EVT_STC_NEEDSHOWN = wx.PyEventBinder( wxEVT_STC_NEEDSHOWN, 1 )
-EVT_STC_POSCHANGED = wx.PyEventBinder( wxEVT_STC_POSCHANGED, 1 )
EVT_STC_PAINTED = wx.PyEventBinder( wxEVT_STC_PAINTED, 1 )
EVT_STC_USERLISTSELECTION = wx.PyEventBinder( wxEVT_STC_USERLISTSELECTION, 1 )
EVT_STC_URIDROPPED = wx.PyEventBinder( wxEVT_STC_URIDROPPED, 1 )