PEATDB/plugins/PEATSAplugin.py
def addColoredText(self, st, tag, word, fg='black', bg='white'):
        """add a space to the end of the word"""
        word = word + " "
        st.insert('end', word)
        end_index = st.index('end')
        begin_index = "%s-%sc" % (end_index, len(word) + 1)
        st.tag_add(tag, begin_index, end_index)
        st.tag_config(tag, foreground=fg, background=bg)
        return
add a space to the end of the word
add a space to the end of the word
add a space to the end of the word
def addColoredText(self, st, tag, word, fg='black', bg='white'):
        word = word + " "
        st.insert('end', word)
        end_index = st.index('end')
        begin_index = "%s-%sc" % (end_index, len(word) + 1)
        st.tag_add(tag, begin_index, end_index)
        st.tag_config(tag, foreground=fg, background=bg)
        return
def addColoredText ( self , st , tag , word , fg = 'black' , bg = 'white' ) : word = word + " " st . insert ( 'end' , word ) end_index = st . index ( 'end' ) begin_index = "%s-%sc" % ( end_index , len ( word ) + 1 ) st . tag_add ( tag , begin_index , end_index ) st . tag_config ( tag , foreground = fg , background = bg ) return
add a space to the end of the word
add a space to the end of the word
"""add a space to the end of the word"""
self
st
tag
word
fg
bg