More STC fixes and tweaks.

Added another STC demo for wxPython.  This one sets up an editor with
the Python lexer and a bunch of styles.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2000-04-21 09:14:06 +00:00
parent 156cb8c2e4
commit 017582cd23
8 changed files with 293 additions and 496 deletions

View File

@@ -65,8 +65,15 @@ def EVT_STC_MODIFIED(win, id, fn):
def EVT_STC_CMDKEY(win, id, fn):
win.Connect(id, -1, wxEVT_STC_CMDKEY, fn)
def EVT_STC_UNKNOWNCMDKEY(win, id, fn):
win.Connect(id, -1, wxEVT_STC_UNKNOWNCMDKEY, fn)
def EVT_STC_MACRORECORD(win, id, fn):
win.Connect(id, -1, wxEVT_STC_MACRORECORD, fn)
def EVT_STC_MARGINCLICK(win, id, fn):
win.Connect(id, -1, wxEVT_STC_MARGINCLICK, fn)
def EVT_STC_NEEDSHOWN(win, id, fn):
win.Connect(id, -1, wxEVT_STC_NEEDSHOWN, fn)
class wxStyledTextCtrlPtr(wxControlPtr):
@@ -838,3 +845,10 @@ wxEVT_STC_KEY = stc_c.wxEVT_STC_KEY
wxEVT_STC_MACRORECORD = stc_c.wxEVT_STC_MACRORECORD
wxEVT_STC_MARGINCLICK = stc_c.wxEVT_STC_MARGINCLICK
wxEVT_STC_NEEDSHOWN = stc_c.wxEVT_STC_NEEDSHOWN
#-------------- USER INCLUDE -----------------------
# Stuff these names into the wx namespace so wxPyConstructObject can find them
wx.wxStyledTextEventPtr = wxStyledTextEventPtr