[PyQt] Qt, PyQt and spelling

Roberto Alsina ralsina at kde.org
Sun Jun 20 19:27:47 BST 2010


On Sunday 20 June 2010 15:19:49 projetmbc at club-internet.fr wrote:
> >>> It's  easy to make pyenchant work with pyqt. Check this out:
> >>>  http://code.google.com/p/marave/source/browse/#svn/trunk/marave/editor
> 
> The  problem is that this project is a small one and doesn't work on Snow 
> Leopard, even after enchant has been installed via MacPort.
> 
> >>>  It's a generic "editor" widget, supports spellchecking via pyenchant 
> >>>  and
> >>> 
> >>> syntax highlighting via qt-source-highlight plus  gives you
> >>> search/replace/go to line widgets and a few  extra goodies.
> 
> That's look good but I can test it.
> 
> Every  kind of help is welcomed.

Weird, I have at least three reports of people using it in Mac.

BTW: this is not about marave, it's just about the editor folder, it's a 
generic PyQt widget.

As long as you can do "import enchant" and "from PyQt4 import QtGui" in the 
same python, the spellchecking part should work.

In fact, you can just run "python spelltextedit.py" and you should get a 
simple text editing window with line numbers and spellchecker enabled. 


More information about the PyQt mailing list