[PyKDE] eric3: Line wrapping

Sebastian Kügler sebas at kde.org
Thu May 11 13:48:44 BST 2006


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. :-)
-- 
sebas

 http://www.kde.org | http://vizZzion.org |  GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Which mindset is right? Mine, of course. People who disagree with me are by 
definition crazy. (Until I change my mind, when they can suddenly become 
upstanding citizens. I'm flexible, and not black-and-white.) - Linus Torvalds

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 483 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060511/74476112/attachment.bin


More information about the PyQt mailing list