StyledTextCtrl does this out of the box. Here are a few screenshots from the wxPython demo.
Or do I misunderstand. Aren't the marking between the line numbers and the text area what you're looking for?
Domanda
i am trying to achieve a second margin into my wxpython code editor like so
and i would like a bit of padding above the code so the code isnt so close to the roof of the sizer.
i am currently left with this:
i got the idea of the second margin from notepad ++
there is no code on line 1 because i am indicating that there should be padding there, even thought the code would start on line 1, respectively.
i am still a beginner i python....
The question i am asking is, what method or style would i need to implement to achieve such a thing?
I have done my research on the demos and docs and yellowbrain, none which provide padding examples.
please help me out, thankyou.
code thus far, just incase:
Soluzione
StyledTextCtrl does this out of the box. Here are a few screenshots from the wxPython demo.
Or do I misunderstand. Aren't the marking between the line numbers and the text area what you're looking for?