On Tue, Aug 5, 2014 at 5:43 AM, Edward K. Ream <[email protected]> wrote:
For now vc.set_border will jam the border style by hand using
w.setStyleSheet(s).
Success at last. The syntax for the border property is picky. It must be::
{ border: 5px solid red; }
**not**:
{ border: solid 5px red; }
To summarize, Terry's original suggestion works::
selector = 'vim_%s' % (vc.state)
w.setProperty('vim_state',selector)
w.style().unpolish(w)
w.style().polish(w)
*provided* the stylesheets are correct. Here are mine::
QTextEdit#richTextEdit[vim_state~="vim_normal"] {
border: 5px solid red;
}
QTextEdit#richTextEdit[vim_state~="vim_insert"] {
border: 5px solid blue;
}
QTextEdit#richTextEdit[vim_state~="vim_visual"] {
border: 5px solid green;
}
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.