Re: Trying to add line numbers
Anders Munch <[email protected]> Tue, 20 Apr 2021 09:43:55 +0000
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <HE1PR0502MB3004838428753AD9590158DBB4489@HE1PR0502MB3004.eurprd05.prod.outlook.com> |
RF <[email protected]> wrote: > self.editor.SetMarginWidth(1, 20) > self.editor.SetMarginType(0, wx.stc.STC_MARGIN_NUMBER) You are adding line numbers to margin 0, but you are setting the width of margin 1. Add or change to: self.editor.SetMarginWidth(0, 20) and your snippet works. regards,Anders -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/HE1PR0502MB3004838428753AD9590158DBB4489%40HE1PR0502MB3004.eurprd05.prod.outlook.com.