Hi.
I use wxPy version 2.4.2 for Python 2.3.
Now I wanted to use the wxStyledTextCtr l for viewing (editing) of sql
code.
I have the following:
self.__m_styled _text_ctrl = wxPython.stc.wx StyledTextCtrl(
self, wx.NewId(),
style=wxPython. wx.wxNO_FULL_RE PAINT_ON_RESIZE )
self.__m_styled _text_ctrl.SetL exer(wxPython.s tc.wxSTC_LEX_SQ L)
self.__m_styled _text_ctrl.SetP roperty("fold", "1")
self.__m_styled _text_ctrl.SetM argins(0,0)
self.__m_styled _text_ctrl.SetK eyWords(0, SQL_KEYWORDS)
Where sql_keywords is string with space separated sql keywords.
When i add text to the ctrl i don't get the right highlightning.
What do i do wrong and what else do i have to specify?
thx in advance
I use wxPy version 2.4.2 for Python 2.3.
Now I wanted to use the wxStyledTextCtr l for viewing (editing) of sql
code.
I have the following:
self.__m_styled _text_ctrl = wxPython.stc.wx StyledTextCtrl(
self, wx.NewId(),
style=wxPython. wx.wxNO_FULL_RE PAINT_ON_RESIZE )
self.__m_styled _text_ctrl.SetL exer(wxPython.s tc.wxSTC_LEX_SQ L)
self.__m_styled _text_ctrl.SetP roperty("fold", "1")
self.__m_styled _text_ctrl.SetM argins(0,0)
self.__m_styled _text_ctrl.SetK eyWords(0, SQL_KEYWORDS)
Where sql_keywords is string with space separated sql keywords.
When i add text to the ctrl i don't get the right highlightning.
What do i do wrong and what else do i have to specify?
thx in advance
Comment