Hello:
I was wondering if it should be possible to use a styled text control
that uses indent guides and has SetUseTabs set to False. The following
script shows the indent guides on linux and Windows XP, but not on OS
X Tiger. Is there something wrong with my script? Thanks for your
time.
Regards,
Craig
import wx
import wx.stc as stc
app = wx.PySimpleApp()
f = wx.Frame(parent=None, id=wx.ID_ANY, title='Indent Guide Test',
size=(300, 200), pos=(100, 100))
ctrl = stc.StyledTextCtrl(f, wx.ID_ANY)
ctrl.StyleSetSpec(stc.STC_STYLE_DEFAULT,
'fore:#000000,back:#FFFFFF,face:Courier,size:12')
# Clear styles and revert to default.
ctrl.StyleClearAll()
ctrl.SetIndentationGuides(True)
ctrl.SetTabWidth(4)
ctrl.SetUseTabs(False) #Setting it to False turns off indentation
guides in os x.
ctrl.SetWrapMode(True)
f.Show()
app.MainLoop()