Small fixes in dataengine

This commit is contained in:
arcan1s
2013-09-04 03:41:18 +04:00
parent 2a686f4f1e
commit 1b3280c464
16 changed files with 71 additions and 39 deletions

View File

@ -0,0 +1,16 @@
# -*- 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)