[Panel-devel] getThemePath broken in SK
Petri Damsten
petri.damsten at iki.fi
Sun Jun 5 22:36:47 CEST 2005
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
More information about the Panel-devel
mailing list