[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Converting font names to python strings
From:       Jeremy Sanders <jeremy () jeremysanders ! net>
Date:       2005-04-19 13:57:18
Message-ID: Pine.LNX.4.62.0504191455170.27782 () xpc20 ! ast ! cam ! ac ! uk
[Download RAW message or body]

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...

Cheers

Jeremy

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

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic