Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/356.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
wxPython:更改wx.stc.StyledTextCtrl的颜色方案_Python_User Interface_Wxpython_Color Scheme - Fatal编程技术网

wxPython:更改wx.stc.StyledTextCtrl的颜色方案

wxPython:更改wx.stc.StyledTextCtrl的颜色方案,python,user-interface,wxpython,color-scheme,Python,User Interface,Wxpython,Color Scheme,我有一个PyShell,它应该是从wx.stc.StyledTextCtrl派生的。如何更改当前使用的配色方案?您可以使用 styledTextCtrl.StyleSetSpec(wx.stc.stc_STYLE_INDENTGUIDE,“fore:#CDCDCD”) (一组.StyleSetSpec属性) ... ... ... styCtrl.SetCaretForeground(“蓝色”) styCtrl.SetSelBackground(True,wx.SystemSettings\u

我有一个PyShell,它应该是从
wx.stc.StyledTextCtrl
派生的。如何更改当前使用的配色方案?

您可以使用 styledTextCtrl.StyleSetSpec(wx.stc.stc_STYLE_INDENTGUIDE,“fore:#CDCDCD”) (一组.StyleSetSpec属性) ... ... ... styCtrl.SetCaretForeground(“蓝色”) styCtrl.SetSelBackground(True,wx.SystemSettings\u getcolor(wx.SYS\u color\u HIGHLIGHT)) styCtrl.SetSelForeground(True,wx.SystemSettings\u getcolor(wx.SYS\u color\u HIGHLIGHTTEXT)) ... (一组Set*()命令)

不知道是否有办法加载预定义的配色方案。 您可以在YAML中定义它,并通过上面的命令和更多命令加载它