awesome-widgets/source/contents/code/config.py
arcan1s 9243220505 Fixed bug with crashing plasma
!current version is unstable!
2013-05-23 03:15:43 +04:00

16 lines
350 B
Python

# -*- coding: utf-8 -*-
from util import *
class Config():
def __init__(self, applet):
self.applet = applet
self.config = self.applet.config()
def get(self, key, default = ''):
return self.config.readEntry(key, default).toString()
def set(self, key, value):
self.config.writeEntry(key, value)