re.finditer() skips unicode into selection

2013-06-26 Thread akshay . ksth
I am using the following Highlighter class for Spell Checking to work on my QTextEdit. class Highlighter(QSyntaxHighlighter): pattern = ur'\w+' def __init__(self, *args): QSyntaxHighlighter.__init__(self, *args) self.dict = None def setDict(self, dict):

Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread akshay . ksth
Im required to import ha certain dll called 'NHunspell.dll' which is used for Spell Checking purposes. I am using Python for the software. Although I checked out several websites to properly use ctypes, I have been unable to load the dll properly. When I use this code. from ctypes import

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread akshay . ksth
Thanks for the reply Mark. I did what you suggested. But now I'm getting an error like this. Traceback (most recent call last): File start.py, line 15, in module hunspell = cdll.LoadLibrary('/home/kuro/Desktop/notepad/Hunspellx64.dll') File /usr/lib/python2.7/ctypes/__init__.py, line

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread akshay . ksth
Thanks Dave. I'm using Python 2.7 and am working on Linux Mint. Does it mean that I cant load the functions within the dll whilst on Linux. I thought that was what ctypes was used for. Please correct me if I misunderstood what you meant. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread akshay . ksth
On Tuesday, June 25, 2013 12:08:17 PM UTC+5:45, aksha...@gmail.com wrote: Im required to import ha certain dll called 'NHunspell.dll' which is used for Spell Checking purposes. I am using Python for the software. Although I checked out several websites to properly use ctypes, I have been

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread akshay . ksth
Thanks everyone. But it still did not work. I instead used a Python wrapper for Hunspell called Pyhunspell. The actual link in PyPi does not work for Python 2.7 but it has been improved and upgraded in [here](https://github.com/akshaylb/nepali-spellchecker-v2/tree/master/pyhunspell). --