Question

i am trying to achieve a second margin into my wxpython code editor like so

http://i.imgur.com/mFHtI.png

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:

http://i.imgur.com/Xs1yM.png

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:

http://pastebin.com/FxZgzuZp

Was it helpful?

Solution

StyledTextCtrl does this out of the box. Here are a few screenshots from the wxPython demo.

enter image description here

enter image description here

Or do I misunderstand. Aren't the marking between the line numbers and the text area what you're looking for?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top