tabs spaces as 4 spacebars in the wx.stc.StyledTextCtrl

i have a porblem setting the tabs space i try to set to 4 but dont is the same like the files created with the python IDLE why this is an tab space dont the 4 space bars how can solve that?

if you want 4 spaces put
self.SetUseTabs(False)
self.SetTabWidth(4)

in wx.stc.StyledTextCtrl.init

ยทยทยท

On Sunday, March 29, 2015 at 7:09:04 AM UTC+2, iozk hz wrote:

i have a porblem setting the tabs space i try to set to 4 but dont is the same like the files created with the python IDLE why this is an tab space dont the 4 space bars how can solve that?

it works thanks!!. another question here, I want add backgrond color but the code lines has by default the white I'm using this line for the background
self.StyleSetSpec(wx.stc.STC_STYLE_DEFAULT, "back:Black, fore:white")
I also try to add back color for each style and the dont works all is in black even the fore color
How I can do to affect just the black without edit each background of the styles?