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

List:       kde-panel-devel
Subject:    [Panel-devel] getThemePath broken in SK
From:       petri.damsten () iki ! fi (Petri Damsten)
Date:       2005-06-05 22:36:58
Message-ID: 200506052336.51880.petri.damsten () iki ! fi
[Download RAW message or body]

On Sunday 05 June 2005 22:35, Matt wrote:
> Could you also explain the new readThemeFile function, so I can understand
> if it will help me.

This code should produce two similar outputs if it's run from non skz themes. 
Latter should also work from skz theme.

    # Reading file (doesn't work with skz themes)
    f = open(karamba.getThemePath(widget) + '/maindata.xml')
    s = f.read()
    f.close()
    print s

    # This works also in skz themes
    s = karamba.readThemeFile(widget, 'maindata.xml')
    print s

Petri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20050605/064c403e/attachment.pgp
[prev in list] [next in list] [prev in thread] [next in thread] 

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