在wx.stc.StyledTextCtrl中增加如下兩行代碼:
self.SetMarginType(1, stc.STC_MARGIN_NUMBER)
self.SetMarginWidth(1, 20)
更多設置:http://www.wxpython.org/docs/api/wx.stc.StyledTextCtrl-class.html
在wx.stc.StyledTextCtrl中增加如下兩行代碼:
self.SetMarginType(1, stc.STC_MARGIN_NUMBER)
self.SetMarginWidth(1, 20)
更多設置:http://www.wxpython.org/docs/api/wx.stc.StyledTextCtrl-class.html