[PyKDE] eric3: Line wrapping

Detlev Offenbach detlev at die-offenbachs.de
Wed May 24 17:56:09 BST 2006


Am Donnerstag, 11. Mai 2006 14:48 schrieb Sebastian Kügler:
> On Thursday 11 May 2006 01:54, Danny Adair wrote:
> > In
> > /usr/lib/python2.4/site-packages/eric3/QScintilla/Editor.py
> > Line 2152 in setTextDisplay():
> >
> > self.setWrapMode(QextScintilla.SC_WRAP_WORD)
> >
> > If I change that to
> >
> > self.setWrapMode(QextScintilla.SC_WRAP_NONE)
> >
> > it seems to work for me. However, this seems too easy.
> > It would have been just one checkbox in the preferences and the go
> > something like
> >
> > self.setWrapMode(Preferences.getEditor("LineWrap") and
> > QextScintilla.SC_WRAP_WORD or QextScintilla.SC_WRAP_NONE)
> >
> > so I have the fear that there is a reason why it was hardcoded...
>
> You could ask Detlef if he'd merge a patch, if you prepare one. :-)

I already implemented a condiguration option for this for 3.9.1

Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de




More information about the PyQt mailing list