diff options
| author | nyamatongwe <unknown> | 2010-08-04 09:44:08 +1000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2010-08-04 09:44:08 +1000 | 
| commit | b0f75d4547c41e0c06083df95b0db85a1440b355 (patch) | |
| tree | 0632fd5b2f2af945bed0b0cebbbbc666c2dd4d00 | |
| parent | c38a645865461ec153af761c3b36c333224904ee (diff) | |
| download | scintilla-mirror-b0f75d4547c41e0c06083df95b0db85a1440b355.tar.gz | |
Added more style setting, using byte strings as that matches API.
| -rw-r--r-- | test/XiteWin.py | 12 | 
1 files changed, 7 insertions, 5 deletions
| diff --git a/test/XiteWin.py b/test/XiteWin.py index 882d2f657..6cb4f35f6 100644 --- a/test/XiteWin.py +++ b/test/XiteWin.py @@ -432,20 +432,22 @@ class XiteWin():  			self.ed.FocusOn()  			self.ed.LexerLanguage = "python"  			self.ed.Lexer = self.ed.SCLEX_PYTHON -			self.ed.SetKeyWords(0, "class def else for if import print return while") +			self.ed.SetKeyWords(0, b"class def else for from if import print return while")  			for style in [k for k in self.ed.k if k.startswith("SCE_P_")]: -				self.ed.StyleSetFont(self.ed.k[style], "Verdana") +				self.ed.StyleSetFont(self.ed.k[style], b"Verdana")  				if "COMMENT" in style:  					self.ed.StyleSetFore(self.ed.k[style], 127 * 256) -					self.ed.StyleSetFont(self.ed.k[style], "Comic Sans MS") +					self.ed.StyleSetFont(self.ed.k[style], b"Comic Sans MS")  				elif "OPERATOR" in style: -					print(style, self.ed.k[style])  					self.ed.StyleSetBold(self.ed.k[style], 1)  					self.ed.StyleSetFore(self.ed.k[style], 127 * 256 * 256)  				elif "WORD" in style: -					print(style, self.ed.k[style])  					self.ed.StyleSetItalic(self.ed.k[style], 255)  					self.ed.StyleSetFore(self.ed.k[style], 255 * 256 * 256) +				elif "TRIPLE" in style: +					self.ed.StyleSetFore(self.ed.k[style], 0xA0A0) +				elif "STRING" in style or "CHARACTER" in style: +					self.ed.StyleSetFore(self.ed.k[style], 0xA000A0)  				else:  					self.ed.StyleSetFore(self.ed.k[style], 0) | 
