I'm writing a python plasmoid and I want to initialize a field with a default value from this function KSystemTimeZones::local().latitude() but it doesn't work. If I put a number in the default value it is taken correctly. I've also tried to add another include tag with KTimeZone. I've tried even with the point insted of :: KSystemTimeZones.local().latitude() . But it still doesn't work. Any idea?
<?xml version="1.0" encoding="UTF-8"?> <kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > <include>KSystemTimeZones</include> <kcfgfile name="redshiftrc"/> <group name="General"> <entry name="latitude" type="Double"> <label>Latitude</label> <default code="true">KSystemTimeZones::local().latitude()</default> </entry> </group> </kcfg> _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel