[PyKDE] eric3: Line wrapping

Danny Adair danny at adair.net
Thu May 11 00:54:17 BST 2006


Mmmh,

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...

Cheers,
Danny

On 5/11/06, Danny Adair <danny at adair.net> wrote:
> Thanks,
>
> I'm shocked.
> Is there maybe an easy way to patch the source?
> Maybe in eric3.QScintilla.editor.setTextDisplay ?
>
> >         self.setWrapMode(QextScintilla.SC_WRAP_WORD)
> >         self.setWrapVisualFlags(\
> >             QextScintilla.SC_WRAPVISUALFLAG_START | > QextScintilla.SC_WRAPVISUALFLAG_END)
>
> looks like the culprit to me but I've no idea of side-effects.
> Detlev to the rescue? :-)
>
> Thanks so much in advance.
>
> Cheers,
> Danny
>
> On 5/11/06, Andreas Pakulat <apaku at gmx.de> wrote:
> > On 11.05.06 09:57:58, Danny Adair wrote:
> > > I just ugraded to eric 3.9.0 and I noticed that overflowing lines (=
> > > too long/wide for the editor window) are automatically wrapped.
> > >
> > > How can I turn this off?
> > > I can't seem to find a corresponing setting anywhere.
> > >
> > > It's extremely annoying and I would like to use the horizontal
> > > scrollbar instead.
> >
> > Short Answer: You can't. See the archive, this was already asked today.
> >
> > Andreas
> >
> > --
> > Your motives for doing whatever good deed you may have in mind will be
> > misinterpreted by somebody.
> >
> > _______________________________________________
> > PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> > http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
> >
>




More information about the PyQt mailing list