2009-07-31 7 views

Répondre

0

Vous pouvez utiliser styledTextCtrl.StyleSetSpec (wx.stc.STC_STYLE_INDENTGUIDE, "avant: #CDCDCD") (Bouquet de propriétés .StyleSetSpec) ... ... ... styCtrl.SetCaretForeground ("BLUE") styCtrl.SetSelBackground (True, wx.SystemSettings_GetColour (wx.SYS_COLOUR_HIGHLIGHT)) styCtrl.SetSelForeground (True, wx.SystemSettings_GetColour (wx.SYS_COLOUR_HIGHLIGHTTEXT)) ... (Bouquet de Set *() commandes) Je ne sais pas s'il existe un moyen de charger un schéma de couleurs prédéfini.

Vous pouvez le définir en YAML et le charger via les commandes ci-dessus et plus encore.

+0

Consultez également le guide de Yellowbrain: http://www.yellowbrain.com/stc/styling.html – jhaukur

Questions connexes