[PyKDE] Converting font names to python strings

Jeremy Sanders jeremy at jeremysanders.net
Tue Apr 19 14:57:18 BST 2005

On Tue, 19 Apr 2005, Giovanni Bajo wrote:

> You could use unicode(i) to convert QString to a Python unicode string.
> Either that, or keep the QString. It pretty much depends on what you are
> going to do with that families dict.

Excellent. I'm doing things like

if 'Times New Roman' in families:
    # do something I shouldn't here

to check whether we have fonts installed.

So as long as that works (which it appears to do), it should be okay...



Jeremy Sanders <jeremy at jeremysanders.net>
http://www.jeremysanders.net/                Cambridge, UK
Public Key Server PGP Key ID: E1AAE053

More information about the PyQt mailing list