Thanks Alex, how's this: bad news?
duncan@ubuntu:~$ python Python 2.5.1 (r251:54863, May 27 2007, 15:55:14) [GCC 4.1.3 20070518 (prerelease) (Ubuntu 4.1.2-8ubuntu1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk >>> import gtkspell >>> import locale >>> lang = locale.getlocale()[0] >>> if lang == None: print "lang is None" ... else: gtkspell.Spell(gtk.TextView()).set_language(lang) ... Segmentation fault (core dumped) duncan@ubuntu:~$
Thanks Alex, how's this: bad news?
duncan@ubuntu:~$ python getlocale( )[0] Spell(gtk. TextView( )).set_ language( lang)
Python 2.5.1 (r251:54863, May 27 2007, 15:55:14)
[GCC 4.1.3 20070518 (prerelease) (Ubuntu 4.1.2-8ubuntu1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>> import gtkspell
>>> import locale
>>> lang = locale.
>>> if lang == None: print "lang is None"
... else: gtkspell.
...
Segmentation fault (core dumped)
duncan@ubuntu:~$